Back to Aws Doc Sdk Examples

AWS SDK for Rust code example for AWS Auto Scaling plans

rustv1/examples/autoscalingplans/README.md

latest2.1 KB
Original Source

AWS SDK for Rust code example for AWS Auto Scaling plans

Purpose

These examples demonstrate how to perform several Auto Scaling group operations using the AWS SDK for Rust.

Use scaling plans to set up scaling policies across a collection of supported resources from services including Aurora, DynamoDB, EC2 Spot, and ECS.

Code examples

⚠ Important

  • We recommend that you grant this code least privilege, or at most the minimum permissions required to perform the task. For more information, see Grant Least Privilege in the AWS Identity and Access Management User Guide.
  • This code has not been tested in all AWS Regions. Some AWS services are available only in specific Regions.
  • Running this code might result in charges to your AWS account.

Running the code examples

describe-scaling-plans

This example lists your auto scaling plans in the Region.

cargo run --bin describe-scaling-plans -- [-r REGION] [-v]

  • REGION is name of the Region where the client is created. If not supplied, uses the value of the AWS_REGION environment variable. If the environment variable is not set, defaults to us-west-2.
  • -v displays additional information.

Resources

Contributing

To propose a new code example to the AWS documentation team, see CONTRIBUTING.md. The team prefers to create code examples that show broad scenarios rather than individual API calls.

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0