ComputeOptimizer

public struct ComputeOptimizer

Client object for interacting with AWS ComputeOptimizer service.

AWS Compute Optimizer is a service that analyzes the configuration and utilization metrics of your AWS resources, such as EC2 instances and Auto Scaling groups. 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, as well as 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 AWS Compute Optimizer User Guide.

  • Initialize the ComputeOptimizer client

    Declaration

    Swift

    public init(accessKeyId: String? = nil, secretAccessKey: String? = nil, sessionToken: String? = nil, region: AWSSDKSwiftCore.Region? = nil, endpoint: String? = nil, middlewares: [AWSServiceMiddleware] = [], eventLoopGroupProvider: AWSClient.EventLoopGroupProvider = .useAWSClientShared)

    Parameters

    accessKeyId

    Public access key provided by AWS

    secretAccessKey

    Private access key provided by AWS

    sessionToken

    Token provided by STS.AssumeRole() which allows access to another AWS account

    region

    Region of server you want to communicate with

    endpoint

    Custom endpoint URL to use instead of standard AWS servers

    middlewares

    Array of middlewares to apply to requests and responses

    eventLoopGroupProvider

    EventLoopGroup to use. Use useAWSClientShared if the client shall manage its own EventLoopGroup.

  • Undocumented

    See more

    Declaration

    Swift

    public enum ExportableAutoScalingGroupField : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum ExportableInstanceField : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum FileFormat : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum FilterName : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum Finding : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum JobFilterName : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum JobStatus : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum MetricName : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum MetricStatistic : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum RecommendationSourceType : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum ResourceType : String, CustomStringConvertible, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum Status : String, CustomStringConvertible, Codable