96 releases (52 stable)

new 1.52.0 Dec 4, 2024
1.51.0 Nov 20, 2024
1.49.0 Oct 31, 2024
1.37.0 Jul 22, 2024
0.0.0 May 7, 2021

#2527 in Network programming

Download history 196/week @ 2024-08-16 65/week @ 2024-08-23 155/week @ 2024-08-30 127/week @ 2024-09-06 130/week @ 2024-09-13 139/week @ 2024-09-20 123/week @ 2024-09-27 181/week @ 2024-10-04 107/week @ 2024-10-11 8/week @ 2024-10-18 167/week @ 2024-10-25 281/week @ 2024-11-01 78/week @ 2024-11-08 131/week @ 2024-11-15 98/week @ 2024-11-22 160/week @ 2024-11-29

540 downloads per month

Apache-2.0

5MB
60K SLoC

aws-sdk-computeoptimizer

Compute Optimizer is a service that analyzes the configuration and utilization metrics of your Amazon Web Services compute resources, such as Amazon EC2 instances, Amazon EC2 Auto Scaling groups, Lambda functions, Amazon EBS volumes, and Amazon ECS services on Fargate. It reports whether your resources are optimal, and generates optimization recommendations to reduce the cost and improve the performance of your workloads. Compute Optimizer also provides recent utilization metric data, in addition to projected utilization metric data for the recommendations, which you can use to evaluate which recommendation provides the best price-performance trade-off. The analysis of your usage patterns can help you decide when to move or resize your running resources, and still meet your performance and capacity requirements. For more information about Compute Optimizer, including the required permissions to use the service, see the Compute Optimizer User Guide.

Getting Started

Examples are available for many services and operations, check out the examples folder in GitHub.

The SDK provides one crate per AWS service. You must add Tokio as a dependency within your Rust project to execute asynchronous code. To add aws-sdk-computeoptimizer to your project, add the following to your Cargo.toml file:

[dependencies]
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
aws-sdk-computeoptimizer = "1.52.0"
tokio = { version = "1", features = ["full"] }

Then in code, a client can be created with the following:

use aws_sdk_computeoptimizer as computeoptimizer;

#[::tokio::main]
async fn main() -> Result<(), computeoptimizer::Error> {
    let config = aws_config::load_from_env().await;
    let client = aws_sdk_computeoptimizer::Client::new(&config);

    // ... make some calls with the client

    Ok(())
}

See the client documentation for information on what calls can be made, and the inputs and outputs for each of those calls.

Using the SDK

Until the SDK is released, we will be adding information about using the SDK to the Developer Guide. Feel free to suggest additional sections for the guide by opening an issue and describing what you are trying to do.

Getting Help

License

This project is licensed under the Apache-2.0 License.

Dependencies

~8–20MB
~284K SLoC