Documentation ¶
Overview ¶
Package autoscalingplans provides the client and types for making API requests to AWS Auto Scaling Plans.
See https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06 for more information on this service.
See autoscalingplans package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/autoscalingplans/
Using the Client ¶
To contact AWS Auto Scaling Plans with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the AWS Auto Scaling Plans client AutoScalingPlans for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/autoscalingplans/#New
Index ¶
- Constants
- type ApplicationSource
- type AutoScalingPlans
- func (c *AutoScalingPlans) CreateScalingPlan(input *CreateScalingPlanInput) (*CreateScalingPlanOutput, error)
- func (c *AutoScalingPlans) CreateScalingPlanRequest(input *CreateScalingPlanInput) (req *request.Request, output *CreateScalingPlanOutput)
- func (c *AutoScalingPlans) CreateScalingPlanWithContext(ctx aws.Context, input *CreateScalingPlanInput, opts ...request.Option) (*CreateScalingPlanOutput, error)
- func (c *AutoScalingPlans) DeleteScalingPlan(input *DeleteScalingPlanInput) (*DeleteScalingPlanOutput, error)
- func (c *AutoScalingPlans) DeleteScalingPlanRequest(input *DeleteScalingPlanInput) (req *request.Request, output *DeleteScalingPlanOutput)
- func (c *AutoScalingPlans) DeleteScalingPlanWithContext(ctx aws.Context, input *DeleteScalingPlanInput, opts ...request.Option) (*DeleteScalingPlanOutput, error)
- func (c *AutoScalingPlans) DescribeScalingPlanResources(input *DescribeScalingPlanResourcesInput) (*DescribeScalingPlanResourcesOutput, error)
- func (c *AutoScalingPlans) DescribeScalingPlanResourcesRequest(input *DescribeScalingPlanResourcesInput) (req *request.Request, output *DescribeScalingPlanResourcesOutput)
- func (c *AutoScalingPlans) DescribeScalingPlanResourcesWithContext(ctx aws.Context, input *DescribeScalingPlanResourcesInput, ...) (*DescribeScalingPlanResourcesOutput, error)
- func (c *AutoScalingPlans) DescribeScalingPlans(input *DescribeScalingPlansInput) (*DescribeScalingPlansOutput, error)
- func (c *AutoScalingPlans) DescribeScalingPlansRequest(input *DescribeScalingPlansInput) (req *request.Request, output *DescribeScalingPlansOutput)
- func (c *AutoScalingPlans) DescribeScalingPlansWithContext(ctx aws.Context, input *DescribeScalingPlansInput, opts ...request.Option) (*DescribeScalingPlansOutput, error)
- type CreateScalingPlanInput
- func (s CreateScalingPlanInput) GoString() string
- func (s *CreateScalingPlanInput) SetApplicationSource(v *ApplicationSource) *CreateScalingPlanInput
- func (s *CreateScalingPlanInput) SetScalingInstructions(v []*ScalingInstruction) *CreateScalingPlanInput
- func (s *CreateScalingPlanInput) SetScalingPlanName(v string) *CreateScalingPlanInput
- func (s CreateScalingPlanInput) String() string
- func (s *CreateScalingPlanInput) Validate() error
- type CreateScalingPlanOutput
- type CustomizedScalingMetricSpecification
- func (s CustomizedScalingMetricSpecification) GoString() string
- func (s *CustomizedScalingMetricSpecification) SetDimensions(v []*MetricDimension) *CustomizedScalingMetricSpecification
- func (s *CustomizedScalingMetricSpecification) SetMetricName(v string) *CustomizedScalingMetricSpecification
- func (s *CustomizedScalingMetricSpecification) SetNamespace(v string) *CustomizedScalingMetricSpecification
- func (s *CustomizedScalingMetricSpecification) SetStatistic(v string) *CustomizedScalingMetricSpecification
- func (s *CustomizedScalingMetricSpecification) SetUnit(v string) *CustomizedScalingMetricSpecification
- func (s CustomizedScalingMetricSpecification) String() string
- func (s *CustomizedScalingMetricSpecification) Validate() error
- type DeleteScalingPlanInput
- func (s DeleteScalingPlanInput) GoString() string
- func (s *DeleteScalingPlanInput) SetScalingPlanName(v string) *DeleteScalingPlanInput
- func (s *DeleteScalingPlanInput) SetScalingPlanVersion(v int64) *DeleteScalingPlanInput
- func (s DeleteScalingPlanInput) String() string
- func (s *DeleteScalingPlanInput) Validate() error
- type DeleteScalingPlanOutput
- type DescribeScalingPlanResourcesInput
- func (s DescribeScalingPlanResourcesInput) GoString() string
- func (s *DescribeScalingPlanResourcesInput) SetMaxResults(v int64) *DescribeScalingPlanResourcesInput
- func (s *DescribeScalingPlanResourcesInput) SetNextToken(v string) *DescribeScalingPlanResourcesInput
- func (s *DescribeScalingPlanResourcesInput) SetScalingPlanName(v string) *DescribeScalingPlanResourcesInput
- func (s *DescribeScalingPlanResourcesInput) SetScalingPlanVersion(v int64) *DescribeScalingPlanResourcesInput
- func (s DescribeScalingPlanResourcesInput) String() string
- func (s *DescribeScalingPlanResourcesInput) Validate() error
- type DescribeScalingPlanResourcesOutput
- func (s DescribeScalingPlanResourcesOutput) GoString() string
- func (s *DescribeScalingPlanResourcesOutput) SetNextToken(v string) *DescribeScalingPlanResourcesOutput
- func (s *DescribeScalingPlanResourcesOutput) SetScalingPlanResources(v []*ScalingPlanResource) *DescribeScalingPlanResourcesOutput
- func (s DescribeScalingPlanResourcesOutput) String() string
- type DescribeScalingPlansInput
- func (s DescribeScalingPlansInput) GoString() string
- func (s *DescribeScalingPlansInput) SetApplicationSources(v []*ApplicationSource) *DescribeScalingPlansInput
- func (s *DescribeScalingPlansInput) SetMaxResults(v int64) *DescribeScalingPlansInput
- func (s *DescribeScalingPlansInput) SetNextToken(v string) *DescribeScalingPlansInput
- func (s *DescribeScalingPlansInput) SetScalingPlanNames(v []*string) *DescribeScalingPlansInput
- func (s *DescribeScalingPlansInput) SetScalingPlanVersion(v int64) *DescribeScalingPlansInput
- func (s DescribeScalingPlansInput) String() string
- type DescribeScalingPlansOutput
- type MetricDimension
- type PredefinedScalingMetricSpecification
- func (s PredefinedScalingMetricSpecification) GoString() string
- func (s *PredefinedScalingMetricSpecification) SetPredefinedScalingMetricType(v string) *PredefinedScalingMetricSpecification
- func (s *PredefinedScalingMetricSpecification) SetResourceLabel(v string) *PredefinedScalingMetricSpecification
- func (s PredefinedScalingMetricSpecification) String() string
- func (s *PredefinedScalingMetricSpecification) Validate() error
- type ScalingInstruction
- func (s ScalingInstruction) GoString() string
- func (s *ScalingInstruction) SetMaxCapacity(v int64) *ScalingInstruction
- func (s *ScalingInstruction) SetMinCapacity(v int64) *ScalingInstruction
- func (s *ScalingInstruction) SetResourceId(v string) *ScalingInstruction
- func (s *ScalingInstruction) SetScalableDimension(v string) *ScalingInstruction
- func (s *ScalingInstruction) SetServiceNamespace(v string) *ScalingInstruction
- func (s *ScalingInstruction) SetTargetTrackingConfigurations(v []*TargetTrackingConfiguration) *ScalingInstruction
- func (s ScalingInstruction) String() string
- func (s *ScalingInstruction) Validate() error
- type ScalingPlan
- func (s ScalingPlan) GoString() string
- func (s *ScalingPlan) SetApplicationSource(v *ApplicationSource) *ScalingPlan
- func (s *ScalingPlan) SetCreationTime(v time.Time) *ScalingPlan
- func (s *ScalingPlan) SetScalingInstructions(v []*ScalingInstruction) *ScalingPlan
- func (s *ScalingPlan) SetScalingPlanName(v string) *ScalingPlan
- func (s *ScalingPlan) SetScalingPlanVersion(v int64) *ScalingPlan
- func (s *ScalingPlan) SetStatusCode(v string) *ScalingPlan
- func (s *ScalingPlan) SetStatusMessage(v string) *ScalingPlan
- func (s ScalingPlan) String() string
- type ScalingPlanResource
- func (s ScalingPlanResource) GoString() string
- func (s *ScalingPlanResource) SetResourceId(v string) *ScalingPlanResource
- func (s *ScalingPlanResource) SetScalableDimension(v string) *ScalingPlanResource
- func (s *ScalingPlanResource) SetScalingPlanName(v string) *ScalingPlanResource
- func (s *ScalingPlanResource) SetScalingPlanVersion(v int64) *ScalingPlanResource
- func (s *ScalingPlanResource) SetScalingPolicies(v []*ScalingPolicy) *ScalingPlanResource
- func (s *ScalingPlanResource) SetScalingStatusCode(v string) *ScalingPlanResource
- func (s *ScalingPlanResource) SetScalingStatusMessage(v string) *ScalingPlanResource
- func (s *ScalingPlanResource) SetServiceNamespace(v string) *ScalingPlanResource
- func (s ScalingPlanResource) String() string
- type ScalingPolicy
- func (s ScalingPolicy) GoString() string
- func (s *ScalingPolicy) SetPolicyName(v string) *ScalingPolicy
- func (s *ScalingPolicy) SetPolicyType(v string) *ScalingPolicy
- func (s *ScalingPolicy) SetTargetTrackingConfiguration(v *TargetTrackingConfiguration) *ScalingPolicy
- func (s ScalingPolicy) String() string
- type TargetTrackingConfiguration
- func (s TargetTrackingConfiguration) GoString() string
- func (s *TargetTrackingConfiguration) SetCustomizedScalingMetricSpecification(v *CustomizedScalingMetricSpecification) *TargetTrackingConfiguration
- func (s *TargetTrackingConfiguration) SetDisableScaleIn(v bool) *TargetTrackingConfiguration
- func (s *TargetTrackingConfiguration) SetEstimatedInstanceWarmup(v int64) *TargetTrackingConfiguration
- func (s *TargetTrackingConfiguration) SetPredefinedScalingMetricSpecification(v *PredefinedScalingMetricSpecification) *TargetTrackingConfiguration
- func (s *TargetTrackingConfiguration) SetScaleInCooldown(v int64) *TargetTrackingConfiguration
- func (s *TargetTrackingConfiguration) SetScaleOutCooldown(v int64) *TargetTrackingConfiguration
- func (s *TargetTrackingConfiguration) SetTargetValue(v float64) *TargetTrackingConfiguration
- func (s TargetTrackingConfiguration) String() string
- func (s *TargetTrackingConfiguration) Validate() error
Constants ¶
const ( // MetricStatisticAverage is a MetricStatistic enum value MetricStatisticAverage = "Average" // MetricStatisticMinimum is a MetricStatistic enum value MetricStatisticMinimum = "Minimum" // MetricStatisticMaximum is a MetricStatistic enum value MetricStatisticMaximum = "Maximum" // MetricStatisticSampleCount is a MetricStatistic enum value MetricStatisticSampleCount = "SampleCount" // MetricStatisticSum is a MetricStatistic enum value MetricStatisticSum = "Sum" )
const ( // ScalableDimensionAutoscalingAutoScalingGroupDesiredCapacity is a ScalableDimension enum value ScalableDimensionAutoscalingAutoScalingGroupDesiredCapacity = "autoscaling:autoScalingGroup:DesiredCapacity" // ScalableDimensionEcsServiceDesiredCount is a ScalableDimension enum value ScalableDimensionEcsServiceDesiredCount = "ecs:service:DesiredCount" // ScalableDimensionEc2SpotFleetRequestTargetCapacity is a ScalableDimension enum value ScalableDimensionEc2SpotFleetRequestTargetCapacity = "ec2:spot-fleet-request:TargetCapacity" // ScalableDimensionRdsClusterReadReplicaCount is a ScalableDimension enum value ScalableDimensionRdsClusterReadReplicaCount = "rds:cluster:ReadReplicaCount" // ScalableDimensionDynamodbTableReadCapacityUnits is a ScalableDimension enum value ScalableDimensionDynamodbTableReadCapacityUnits = "dynamodb:table:ReadCapacityUnits" // ScalableDimensionDynamodbTableWriteCapacityUnits is a ScalableDimension enum value ScalableDimensionDynamodbTableWriteCapacityUnits = "dynamodb:table:WriteCapacityUnits" // ScalableDimensionDynamodbIndexReadCapacityUnits is a ScalableDimension enum value ScalableDimensionDynamodbIndexReadCapacityUnits = "dynamodb:index:ReadCapacityUnits" // ScalableDimensionDynamodbIndexWriteCapacityUnits is a ScalableDimension enum value ScalableDimensionDynamodbIndexWriteCapacityUnits = "dynamodb:index:WriteCapacityUnits" )
const ( // ScalingMetricTypeAsgaverageCpuutilization is a ScalingMetricType enum value ScalingMetricTypeAsgaverageCpuutilization = "ASGAverageCPUUtilization" // ScalingMetricTypeAsgaverageNetworkIn is a ScalingMetricType enum value ScalingMetricTypeAsgaverageNetworkIn = "ASGAverageNetworkIn" // ScalingMetricTypeAsgaverageNetworkOut is a ScalingMetricType enum value ScalingMetricTypeAsgaverageNetworkOut = "ASGAverageNetworkOut" // ScalingMetricTypeDynamoDbreadCapacityUtilization is a ScalingMetricType enum value ScalingMetricTypeDynamoDbreadCapacityUtilization = "DynamoDBReadCapacityUtilization" // ScalingMetricTypeDynamoDbwriteCapacityUtilization is a ScalingMetricType enum value ScalingMetricTypeDynamoDbwriteCapacityUtilization = "DynamoDBWriteCapacityUtilization" // ScalingMetricTypeEcsserviceAverageCpuutilization is a ScalingMetricType enum value ScalingMetricTypeEcsserviceAverageCpuutilization = "ECSServiceAverageCPUUtilization" // ScalingMetricTypeEcsserviceAverageMemoryUtilization is a ScalingMetricType enum value ScalingMetricTypeEcsserviceAverageMemoryUtilization = "ECSServiceAverageMemoryUtilization" // ScalingMetricTypeAlbrequestCountPerTarget is a ScalingMetricType enum value ScalingMetricTypeAlbrequestCountPerTarget = "ALBRequestCountPerTarget" // ScalingMetricTypeRdsreaderAverageCpuutilization is a ScalingMetricType enum value ScalingMetricTypeRdsreaderAverageCpuutilization = "RDSReaderAverageCPUUtilization" // ScalingMetricTypeRdsreaderAverageDatabaseConnections is a ScalingMetricType enum value ScalingMetricTypeRdsreaderAverageDatabaseConnections = "RDSReaderAverageDatabaseConnections" // ScalingMetricTypeEc2spotFleetRequestAverageCpuutilization is a ScalingMetricType enum value ScalingMetricTypeEc2spotFleetRequestAverageCpuutilization = "EC2SpotFleetRequestAverageCPUUtilization" // ScalingMetricTypeEc2spotFleetRequestAverageNetworkIn is a ScalingMetricType enum value ScalingMetricTypeEc2spotFleetRequestAverageNetworkIn = "EC2SpotFleetRequestAverageNetworkIn" // ScalingMetricTypeEc2spotFleetRequestAverageNetworkOut is a ScalingMetricType enum value ScalingMetricTypeEc2spotFleetRequestAverageNetworkOut = "EC2SpotFleetRequestAverageNetworkOut" )
const ( // ScalingPlanStatusCodeActive is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeActive = "Active" // ScalingPlanStatusCodeActiveWithProblems is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeActiveWithProblems = "ActiveWithProblems" // ScalingPlanStatusCodeCreationInProgress is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeCreationInProgress = "CreationInProgress" // ScalingPlanStatusCodeCreationFailed is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeCreationFailed = "CreationFailed" // ScalingPlanStatusCodeDeletionInProgress is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeDeletionInProgress = "DeletionInProgress" // ScalingPlanStatusCodeDeletionFailed is a ScalingPlanStatusCode enum value ScalingPlanStatusCodeDeletionFailed = "DeletionFailed" )
const ( // ScalingStatusCodeInactive is a ScalingStatusCode enum value ScalingStatusCodeInactive = "Inactive" // ScalingStatusCodePartiallyActive is a ScalingStatusCode enum value ScalingStatusCodePartiallyActive = "PartiallyActive" // ScalingStatusCodeActive is a ScalingStatusCode enum value ScalingStatusCodeActive = "Active" )
const ( // ServiceNamespaceAutoscaling is a ServiceNamespace enum value ServiceNamespaceAutoscaling = "autoscaling" // ServiceNamespaceEcs is a ServiceNamespace enum value ServiceNamespaceEcs = "ecs" // ServiceNamespaceEc2 is a ServiceNamespace enum value ServiceNamespaceEc2 = "ec2" // ServiceNamespaceRds is a ServiceNamespace enum value ServiceNamespaceRds = "rds" // ServiceNamespaceDynamodb is a ServiceNamespace enum value ServiceNamespaceDynamodb = "dynamodb" )
const ( // ErrCodeConcurrentUpdateException for service response error code // "ConcurrentUpdateException". ErrCodeConcurrentUpdateException = "ConcurrentUpdateException" // ErrCodeInternalServiceException for service response error code // "InternalServiceException". ErrCodeInternalServiceException = "InternalServiceException" // ErrCodeInvalidNextTokenException for service response error code // "InvalidNextTokenException". ErrCodeInvalidNextTokenException = "InvalidNextTokenException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeObjectNotFoundException for service response error code // "ObjectNotFoundException". ErrCodeObjectNotFoundException = "ObjectNotFoundException" // ErrCodeValidationException for service response error code // "ValidationException". ErrCodeValidationException = "ValidationException" )
const ( ServiceName = "autoscaling" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
const (
// PolicyTypeTargetTrackingScaling is a PolicyType enum value
PolicyTypeTargetTrackingScaling = "TargetTrackingScaling"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationSource ¶
type ApplicationSource struct { CloudFormationStackARN *string `type:"string"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/ApplicationSource
func (ApplicationSource) GoString ¶
func (s ApplicationSource) GoString() string
GoString returns the string representation
func (*ApplicationSource) SetCloudFormationStackARN ¶
func (s *ApplicationSource) SetCloudFormationStackARN(v string) *ApplicationSource
SetCloudFormationStackARN sets the CloudFormationStackARN field's value.
func (ApplicationSource) String ¶
func (s ApplicationSource) String() string
String returns the string representation
type AutoScalingPlans ¶
AutoScalingPlans provides the API operation methods for making requests to AWS Auto Scaling Plans. See this package's package overview docs for details on the service.
AutoScalingPlans methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *AutoScalingPlans
New creates a new instance of the AutoScalingPlans client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
// Create a AutoScalingPlans client from just a session. svc := autoscalingplans.New(mySession) // Create a AutoScalingPlans client with additional configuration svc := autoscalingplans.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*AutoScalingPlans) CreateScalingPlan ¶
func (c *AutoScalingPlans) CreateScalingPlan(input *CreateScalingPlanInput) (*CreateScalingPlanOutput, error)
CreateScalingPlan API operation for AWS Auto Scaling Plans.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Auto Scaling Plans's API operation CreateScalingPlan for usage and error information.
Returned Error Codes:
ErrCodeValidationException "ValidationException"
ErrCodeLimitExceededException "LimitExceededException"
ErrCodeConcurrentUpdateException "ConcurrentUpdateException"
ErrCodeInternalServiceException "InternalServiceException"
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan
func (*AutoScalingPlans) CreateScalingPlanRequest ¶
func (c *AutoScalingPlans) CreateScalingPlanRequest(input *CreateScalingPlanInput) (req *request.Request, output *CreateScalingPlanOutput)
CreateScalingPlanRequest generates a "aws/request.Request" representing the client's request for the CreateScalingPlan operation. The "output" return value will be populated with the request's response once the request complets successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateScalingPlan for more information on using the CreateScalingPlan API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateScalingPlanRequest method. req, resp := client.CreateScalingPlanRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan
func (*AutoScalingPlans) CreateScalingPlanWithContext ¶
func (c *AutoScalingPlans) CreateScalingPlanWithContext(ctx aws.Context, input *CreateScalingPlanInput, opts ...request.Option) (*CreateScalingPlanOutput, error)
CreateScalingPlanWithContext is the same as CreateScalingPlan with the addition of the ability to pass a context and additional request options.
See CreateScalingPlan for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*AutoScalingPlans) DeleteScalingPlan ¶
func (c *AutoScalingPlans) DeleteScalingPlan(input *DeleteScalingPlanInput) (*DeleteScalingPlanOutput, error)
DeleteScalingPlan API operation for AWS Auto Scaling Plans.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Auto Scaling Plans's API operation DeleteScalingPlan for usage and error information.
Returned Error Codes:
ErrCodeValidationException "ValidationException"
ErrCodeObjectNotFoundException "ObjectNotFoundException"
ErrCodeConcurrentUpdateException "ConcurrentUpdateException"
ErrCodeInternalServiceException "InternalServiceException"
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan
func (*AutoScalingPlans) DeleteScalingPlanRequest ¶
func (c *AutoScalingPlans) DeleteScalingPlanRequest(input *DeleteScalingPlanInput) (req *request.Request, output *DeleteScalingPlanOutput)
DeleteScalingPlanRequest generates a "aws/request.Request" representing the client's request for the DeleteScalingPlan operation. The "output" return value will be populated with the request's response once the request complets successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteScalingPlan for more information on using the DeleteScalingPlan API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteScalingPlanRequest method. req, resp := client.DeleteScalingPlanRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan
func (*AutoScalingPlans) DeleteScalingPlanWithContext ¶
func (c *AutoScalingPlans) DeleteScalingPlanWithContext(ctx aws.Context, input *DeleteScalingPlanInput, opts ...request.Option) (*DeleteScalingPlanOutput, error)
DeleteScalingPlanWithContext is the same as DeleteScalingPlan with the addition of the ability to pass a context and additional request options.
See DeleteScalingPlan for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*AutoScalingPlans) DescribeScalingPlanResources ¶
func (c *AutoScalingPlans) DescribeScalingPlanResources(input *DescribeScalingPlanResourcesInput) (*DescribeScalingPlanResourcesOutput, error)
DescribeScalingPlanResources API operation for AWS Auto Scaling Plans.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Auto Scaling Plans's API operation DescribeScalingPlanResources for usage and error information.
Returned Error Codes:
ErrCodeValidationException "ValidationException"
ErrCodeInvalidNextTokenException "InvalidNextTokenException"
ErrCodeConcurrentUpdateException "ConcurrentUpdateException"
ErrCodeInternalServiceException "InternalServiceException"
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources
func (*AutoScalingPlans) DescribeScalingPlanResourcesRequest ¶
func (c *AutoScalingPlans) DescribeScalingPlanResourcesRequest(input *DescribeScalingPlanResourcesInput) (req *request.Request, output *DescribeScalingPlanResourcesOutput)
DescribeScalingPlanResourcesRequest generates a "aws/request.Request" representing the client's request for the DescribeScalingPlanResources operation. The "output" return value will be populated with the request's response once the request complets successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeScalingPlanResources for more information on using the DescribeScalingPlanResources API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeScalingPlanResourcesRequest method. req, resp := client.DescribeScalingPlanResourcesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources
func (*AutoScalingPlans) DescribeScalingPlanResourcesWithContext ¶
func (c *AutoScalingPlans) DescribeScalingPlanResourcesWithContext(ctx aws.Context, input *DescribeScalingPlanResourcesInput, opts ...request.Option) (*DescribeScalingPlanResourcesOutput, error)
DescribeScalingPlanResourcesWithContext is the same as DescribeScalingPlanResources with the addition of the ability to pass a context and additional request options.
See DescribeScalingPlanResources for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*AutoScalingPlans) DescribeScalingPlans ¶
func (c *AutoScalingPlans) DescribeScalingPlans(input *DescribeScalingPlansInput) (*DescribeScalingPlansOutput, error)
DescribeScalingPlans API operation for AWS Auto Scaling Plans.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS Auto Scaling Plans's API operation DescribeScalingPlans for usage and error information.
Returned Error Codes:
ErrCodeValidationException "ValidationException"
ErrCodeInvalidNextTokenException "InvalidNextTokenException"
ErrCodeConcurrentUpdateException "ConcurrentUpdateException"
ErrCodeInternalServiceException "InternalServiceException"
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans
func (*AutoScalingPlans) DescribeScalingPlansRequest ¶
func (c *AutoScalingPlans) DescribeScalingPlansRequest(input *DescribeScalingPlansInput) (req *request.Request, output *DescribeScalingPlansOutput)
DescribeScalingPlansRequest generates a "aws/request.Request" representing the client's request for the DescribeScalingPlans operation. The "output" return value will be populated with the request's response once the request complets successfuly.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeScalingPlans for more information on using the DescribeScalingPlans API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeScalingPlansRequest method. req, resp := client.DescribeScalingPlansRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans
func (*AutoScalingPlans) DescribeScalingPlansWithContext ¶
func (c *AutoScalingPlans) DescribeScalingPlansWithContext(ctx aws.Context, input *DescribeScalingPlansInput, opts ...request.Option) (*DescribeScalingPlansOutput, error)
DescribeScalingPlansWithContext is the same as DescribeScalingPlans with the addition of the ability to pass a context and additional request options.
See DescribeScalingPlans for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type CreateScalingPlanInput ¶
type CreateScalingPlanInput struct { // ApplicationSource is a required field ApplicationSource *ApplicationSource `type:"structure" required:"true"` // ScalingInstructions is a required field ScalingInstructions []*ScalingInstruction `type:"list" required:"true"` // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlanRequest
func (CreateScalingPlanInput) GoString ¶
func (s CreateScalingPlanInput) GoString() string
GoString returns the string representation
func (*CreateScalingPlanInput) SetApplicationSource ¶
func (s *CreateScalingPlanInput) SetApplicationSource(v *ApplicationSource) *CreateScalingPlanInput
SetApplicationSource sets the ApplicationSource field's value.
func (*CreateScalingPlanInput) SetScalingInstructions ¶
func (s *CreateScalingPlanInput) SetScalingInstructions(v []*ScalingInstruction) *CreateScalingPlanInput
SetScalingInstructions sets the ScalingInstructions field's value.
func (*CreateScalingPlanInput) SetScalingPlanName ¶
func (s *CreateScalingPlanInput) SetScalingPlanName(v string) *CreateScalingPlanInput
SetScalingPlanName sets the ScalingPlanName field's value.
func (CreateScalingPlanInput) String ¶
func (s CreateScalingPlanInput) String() string
String returns the string representation
func (*CreateScalingPlanInput) Validate ¶
func (s *CreateScalingPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateScalingPlanOutput ¶
type CreateScalingPlanOutput struct { // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlanResponse
func (CreateScalingPlanOutput) GoString ¶
func (s CreateScalingPlanOutput) GoString() string
GoString returns the string representation
func (*CreateScalingPlanOutput) SetScalingPlanVersion ¶
func (s *CreateScalingPlanOutput) SetScalingPlanVersion(v int64) *CreateScalingPlanOutput
SetScalingPlanVersion sets the ScalingPlanVersion field's value.
func (CreateScalingPlanOutput) String ¶
func (s CreateScalingPlanOutput) String() string
String returns the string representation
type CustomizedScalingMetricSpecification ¶
type CustomizedScalingMetricSpecification struct { Dimensions []*MetricDimension `type:"list"` // MetricName is a required field MetricName *string `type:"string" required:"true"` // Namespace is a required field Namespace *string `type:"string" required:"true"` // Statistic is a required field Statistic *string `type:"string" required:"true" enum:"MetricStatistic"` Unit *string `type:"string"` // contains filtered or unexported fields }
func (CustomizedScalingMetricSpecification) GoString ¶
func (s CustomizedScalingMetricSpecification) GoString() string
GoString returns the string representation
func (*CustomizedScalingMetricSpecification) SetDimensions ¶
func (s *CustomizedScalingMetricSpecification) SetDimensions(v []*MetricDimension) *CustomizedScalingMetricSpecification
SetDimensions sets the Dimensions field's value.
func (*CustomizedScalingMetricSpecification) SetMetricName ¶
func (s *CustomizedScalingMetricSpecification) SetMetricName(v string) *CustomizedScalingMetricSpecification
SetMetricName sets the MetricName field's value.
func (*CustomizedScalingMetricSpecification) SetNamespace ¶
func (s *CustomizedScalingMetricSpecification) SetNamespace(v string) *CustomizedScalingMetricSpecification
SetNamespace sets the Namespace field's value.
func (*CustomizedScalingMetricSpecification) SetStatistic ¶
func (s *CustomizedScalingMetricSpecification) SetStatistic(v string) *CustomizedScalingMetricSpecification
SetStatistic sets the Statistic field's value.
func (*CustomizedScalingMetricSpecification) SetUnit ¶
func (s *CustomizedScalingMetricSpecification) SetUnit(v string) *CustomizedScalingMetricSpecification
SetUnit sets the Unit field's value.
func (CustomizedScalingMetricSpecification) String ¶
func (s CustomizedScalingMetricSpecification) String() string
String returns the string representation
func (*CustomizedScalingMetricSpecification) Validate ¶
func (s *CustomizedScalingMetricSpecification) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteScalingPlanInput ¶
type DeleteScalingPlanInput struct { // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlanRequest
func (DeleteScalingPlanInput) GoString ¶
func (s DeleteScalingPlanInput) GoString() string
GoString returns the string representation
func (*DeleteScalingPlanInput) SetScalingPlanName ¶
func (s *DeleteScalingPlanInput) SetScalingPlanName(v string) *DeleteScalingPlanInput
SetScalingPlanName sets the ScalingPlanName field's value.
func (*DeleteScalingPlanInput) SetScalingPlanVersion ¶
func (s *DeleteScalingPlanInput) SetScalingPlanVersion(v int64) *DeleteScalingPlanInput
SetScalingPlanVersion sets the ScalingPlanVersion field's value.
func (DeleteScalingPlanInput) String ¶
func (s DeleteScalingPlanInput) String() string
String returns the string representation
func (*DeleteScalingPlanInput) Validate ¶
func (s *DeleteScalingPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteScalingPlanOutput ¶
type DeleteScalingPlanOutput struct {
// contains filtered or unexported fields
}
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlanResponse
func (DeleteScalingPlanOutput) GoString ¶
func (s DeleteScalingPlanOutput) GoString() string
GoString returns the string representation
func (DeleteScalingPlanOutput) String ¶
func (s DeleteScalingPlanOutput) String() string
String returns the string representation
type DescribeScalingPlanResourcesInput ¶
type DescribeScalingPlanResourcesInput struct { MaxResults *int64 `type:"integer"` NextToken *string `type:"string"` // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` // contains filtered or unexported fields }
func (DescribeScalingPlanResourcesInput) GoString ¶
func (s DescribeScalingPlanResourcesInput) GoString() string
GoString returns the string representation
func (*DescribeScalingPlanResourcesInput) SetMaxResults ¶
func (s *DescribeScalingPlanResourcesInput) SetMaxResults(v int64) *DescribeScalingPlanResourcesInput
SetMaxResults sets the MaxResults field's value.
func (*DescribeScalingPlanResourcesInput) SetNextToken ¶
func (s *DescribeScalingPlanResourcesInput) SetNextToken(v string) *DescribeScalingPlanResourcesInput
SetNextToken sets the NextToken field's value.
func (*DescribeScalingPlanResourcesInput) SetScalingPlanName ¶
func (s *DescribeScalingPlanResourcesInput) SetScalingPlanName(v string) *DescribeScalingPlanResourcesInput
SetScalingPlanName sets the ScalingPlanName field's value.
func (*DescribeScalingPlanResourcesInput) SetScalingPlanVersion ¶
func (s *DescribeScalingPlanResourcesInput) SetScalingPlanVersion(v int64) *DescribeScalingPlanResourcesInput
SetScalingPlanVersion sets the ScalingPlanVersion field's value.
func (DescribeScalingPlanResourcesInput) String ¶
func (s DescribeScalingPlanResourcesInput) String() string
String returns the string representation
func (*DescribeScalingPlanResourcesInput) Validate ¶
func (s *DescribeScalingPlanResourcesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeScalingPlanResourcesOutput ¶
type DescribeScalingPlanResourcesOutput struct { NextToken *string `type:"string"` ScalingPlanResources []*ScalingPlanResource `type:"list"` // contains filtered or unexported fields }
func (DescribeScalingPlanResourcesOutput) GoString ¶
func (s DescribeScalingPlanResourcesOutput) GoString() string
GoString returns the string representation
func (*DescribeScalingPlanResourcesOutput) SetNextToken ¶
func (s *DescribeScalingPlanResourcesOutput) SetNextToken(v string) *DescribeScalingPlanResourcesOutput
SetNextToken sets the NextToken field's value.
func (*DescribeScalingPlanResourcesOutput) SetScalingPlanResources ¶
func (s *DescribeScalingPlanResourcesOutput) SetScalingPlanResources(v []*ScalingPlanResource) *DescribeScalingPlanResourcesOutput
SetScalingPlanResources sets the ScalingPlanResources field's value.
func (DescribeScalingPlanResourcesOutput) String ¶
func (s DescribeScalingPlanResourcesOutput) String() string
String returns the string representation
type DescribeScalingPlansInput ¶
type DescribeScalingPlansInput struct { ApplicationSources []*ApplicationSource `type:"list"` MaxResults *int64 `type:"integer"` NextToken *string `type:"string"` ScalingPlanNames []*string `type:"list"` ScalingPlanVersion *int64 `type:"long"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlansRequest
func (DescribeScalingPlansInput) GoString ¶
func (s DescribeScalingPlansInput) GoString() string
GoString returns the string representation
func (*DescribeScalingPlansInput) SetApplicationSources ¶
func (s *DescribeScalingPlansInput) SetApplicationSources(v []*ApplicationSource) *DescribeScalingPlansInput
SetApplicationSources sets the ApplicationSources field's value.
func (*DescribeScalingPlansInput) SetMaxResults ¶
func (s *DescribeScalingPlansInput) SetMaxResults(v int64) *DescribeScalingPlansInput
SetMaxResults sets the MaxResults field's value.
func (*DescribeScalingPlansInput) SetNextToken ¶
func (s *DescribeScalingPlansInput) SetNextToken(v string) *DescribeScalingPlansInput
SetNextToken sets the NextToken field's value.
func (*DescribeScalingPlansInput) SetScalingPlanNames ¶
func (s *DescribeScalingPlansInput) SetScalingPlanNames(v []*string) *DescribeScalingPlansInput
SetScalingPlanNames sets the ScalingPlanNames field's value.
func (*DescribeScalingPlansInput) SetScalingPlanVersion ¶
func (s *DescribeScalingPlansInput) SetScalingPlanVersion(v int64) *DescribeScalingPlansInput
SetScalingPlanVersion sets the ScalingPlanVersion field's value.
func (DescribeScalingPlansInput) String ¶
func (s DescribeScalingPlansInput) String() string
String returns the string representation
type DescribeScalingPlansOutput ¶
type DescribeScalingPlansOutput struct { NextToken *string `type:"string"` ScalingPlans []*ScalingPlan `type:"list"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlansResponse
func (DescribeScalingPlansOutput) GoString ¶
func (s DescribeScalingPlansOutput) GoString() string
GoString returns the string representation
func (*DescribeScalingPlansOutput) SetNextToken ¶
func (s *DescribeScalingPlansOutput) SetNextToken(v string) *DescribeScalingPlansOutput
SetNextToken sets the NextToken field's value.
func (*DescribeScalingPlansOutput) SetScalingPlans ¶
func (s *DescribeScalingPlansOutput) SetScalingPlans(v []*ScalingPlan) *DescribeScalingPlansOutput
SetScalingPlans sets the ScalingPlans field's value.
func (DescribeScalingPlansOutput) String ¶
func (s DescribeScalingPlansOutput) String() string
String returns the string representation
type MetricDimension ¶
type MetricDimension struct { // Name is a required field Name *string `type:"string" required:"true"` // Value is a required field Value *string `type:"string" required:"true"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/MetricDimension
func (MetricDimension) GoString ¶
func (s MetricDimension) GoString() string
GoString returns the string representation
func (*MetricDimension) SetName ¶
func (s *MetricDimension) SetName(v string) *MetricDimension
SetName sets the Name field's value.
func (*MetricDimension) SetValue ¶
func (s *MetricDimension) SetValue(v string) *MetricDimension
SetValue sets the Value field's value.
func (MetricDimension) String ¶
func (s MetricDimension) String() string
String returns the string representation
func (*MetricDimension) Validate ¶
func (s *MetricDimension) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PredefinedScalingMetricSpecification ¶
type PredefinedScalingMetricSpecification struct { // PredefinedScalingMetricType is a required field PredefinedScalingMetricType *string `type:"string" required:"true" enum:"ScalingMetricType"` ResourceLabel *string `min:"1" type:"string"` // contains filtered or unexported fields }
func (PredefinedScalingMetricSpecification) GoString ¶
func (s PredefinedScalingMetricSpecification) GoString() string
GoString returns the string representation
func (*PredefinedScalingMetricSpecification) SetPredefinedScalingMetricType ¶
func (s *PredefinedScalingMetricSpecification) SetPredefinedScalingMetricType(v string) *PredefinedScalingMetricSpecification
SetPredefinedScalingMetricType sets the PredefinedScalingMetricType field's value.
func (*PredefinedScalingMetricSpecification) SetResourceLabel ¶
func (s *PredefinedScalingMetricSpecification) SetResourceLabel(v string) *PredefinedScalingMetricSpecification
SetResourceLabel sets the ResourceLabel field's value.
func (PredefinedScalingMetricSpecification) String ¶
func (s PredefinedScalingMetricSpecification) String() string
String returns the string representation
func (*PredefinedScalingMetricSpecification) Validate ¶
func (s *PredefinedScalingMetricSpecification) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ScalingInstruction ¶
type ScalingInstruction struct { // MaxCapacity is a required field MaxCapacity *int64 `type:"integer" required:"true"` // MinCapacity is a required field MinCapacity *int64 `type:"integer" required:"true"` // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` // ServiceNamespace is a required field ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` // TargetTrackingConfigurations is a required field TargetTrackingConfigurations []*TargetTrackingConfiguration `type:"list" required:"true"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/ScalingInstruction
func (ScalingInstruction) GoString ¶
func (s ScalingInstruction) GoString() string
GoString returns the string representation
func (*ScalingInstruction) SetMaxCapacity ¶
func (s *ScalingInstruction) SetMaxCapacity(v int64) *ScalingInstruction
SetMaxCapacity sets the MaxCapacity field's value.
func (*ScalingInstruction) SetMinCapacity ¶
func (s *ScalingInstruction) SetMinCapacity(v int64) *ScalingInstruction
SetMinCapacity sets the MinCapacity field's value.
func (*ScalingInstruction) SetResourceId ¶
func (s *ScalingInstruction) SetResourceId(v string) *ScalingInstruction
SetResourceId sets the ResourceId field's value.
func (*ScalingInstruction) SetScalableDimension ¶
func (s *ScalingInstruction) SetScalableDimension(v string) *ScalingInstruction
SetScalableDimension sets the ScalableDimension field's value.
func (*ScalingInstruction) SetServiceNamespace ¶
func (s *ScalingInstruction) SetServiceNamespace(v string) *ScalingInstruction
SetServiceNamespace sets the ServiceNamespace field's value.
func (*ScalingInstruction) SetTargetTrackingConfigurations ¶
func (s *ScalingInstruction) SetTargetTrackingConfigurations(v []*TargetTrackingConfiguration) *ScalingInstruction
SetTargetTrackingConfigurations sets the TargetTrackingConfigurations field's value.
func (ScalingInstruction) String ¶
func (s ScalingInstruction) String() string
String returns the string representation
func (*ScalingInstruction) Validate ¶
func (s *ScalingInstruction) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ScalingPlan ¶
type ScalingPlan struct { // ApplicationSource is a required field ApplicationSource *ApplicationSource `type:"structure" required:"true"` CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` // ScalingInstructions is a required field ScalingInstructions []*ScalingInstruction `type:"list" required:"true"` // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` // StatusCode is a required field StatusCode *string `type:"string" required:"true" enum:"ScalingPlanStatusCode"` StatusMessage *string `type:"string"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/ScalingPlan
func (ScalingPlan) GoString ¶
func (s ScalingPlan) GoString() string
GoString returns the string representation
func (*ScalingPlan) SetApplicationSource ¶
func (s *ScalingPlan) SetApplicationSource(v *ApplicationSource) *ScalingPlan
SetApplicationSource sets the ApplicationSource field's value.
func (*ScalingPlan) SetCreationTime ¶
func (s *ScalingPlan) SetCreationTime(v time.Time) *ScalingPlan
SetCreationTime sets the CreationTime field's value.
func (*ScalingPlan) SetScalingInstructions ¶
func (s *ScalingPlan) SetScalingInstructions(v []*ScalingInstruction) *ScalingPlan
SetScalingInstructions sets the ScalingInstructions field's value.
func (*ScalingPlan) SetScalingPlanName ¶
func (s *ScalingPlan) SetScalingPlanName(v string) *ScalingPlan
SetScalingPlanName sets the ScalingPlanName field's value.
func (*ScalingPlan) SetScalingPlanVersion ¶
func (s *ScalingPlan) SetScalingPlanVersion(v int64) *ScalingPlan
SetScalingPlanVersion sets the ScalingPlanVersion field's value.
func (*ScalingPlan) SetStatusCode ¶
func (s *ScalingPlan) SetStatusCode(v string) *ScalingPlan
SetStatusCode sets the StatusCode field's value.
func (*ScalingPlan) SetStatusMessage ¶
func (s *ScalingPlan) SetStatusMessage(v string) *ScalingPlan
SetStatusMessage sets the StatusMessage field's value.
func (ScalingPlan) String ¶
func (s ScalingPlan) String() string
String returns the string representation
type ScalingPlanResource ¶
type ScalingPlanResource struct { // ResourceId is a required field ResourceId *string `min:"1" type:"string" required:"true"` // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` ScalingPolicies []*ScalingPolicy `type:"list"` // ScalingStatusCode is a required field ScalingStatusCode *string `type:"string" required:"true" enum:"ScalingStatusCode"` ScalingStatusMessage *string `type:"string"` // ServiceNamespace is a required field ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/ScalingPlanResource
func (ScalingPlanResource) GoString ¶
func (s ScalingPlanResource) GoString() string
GoString returns the string representation
func (*ScalingPlanResource) SetResourceId ¶
func (s *ScalingPlanResource) SetResourceId(v string) *ScalingPlanResource
SetResourceId sets the ResourceId field's value.
func (*ScalingPlanResource) SetScalableDimension ¶
func (s *ScalingPlanResource) SetScalableDimension(v string) *ScalingPlanResource
SetScalableDimension sets the ScalableDimension field's value.
func (*ScalingPlanResource) SetScalingPlanName ¶
func (s *ScalingPlanResource) SetScalingPlanName(v string) *ScalingPlanResource
SetScalingPlanName sets the ScalingPlanName field's value.
func (*ScalingPlanResource) SetScalingPlanVersion ¶
func (s *ScalingPlanResource) SetScalingPlanVersion(v int64) *ScalingPlanResource
SetScalingPlanVersion sets the ScalingPlanVersion field's value.
func (*ScalingPlanResource) SetScalingPolicies ¶
func (s *ScalingPlanResource) SetScalingPolicies(v []*ScalingPolicy) *ScalingPlanResource
SetScalingPolicies sets the ScalingPolicies field's value.
func (*ScalingPlanResource) SetScalingStatusCode ¶
func (s *ScalingPlanResource) SetScalingStatusCode(v string) *ScalingPlanResource
SetScalingStatusCode sets the ScalingStatusCode field's value.
func (*ScalingPlanResource) SetScalingStatusMessage ¶
func (s *ScalingPlanResource) SetScalingStatusMessage(v string) *ScalingPlanResource
SetScalingStatusMessage sets the ScalingStatusMessage field's value.
func (*ScalingPlanResource) SetServiceNamespace ¶
func (s *ScalingPlanResource) SetServiceNamespace(v string) *ScalingPlanResource
SetServiceNamespace sets the ServiceNamespace field's value.
func (ScalingPlanResource) String ¶
func (s ScalingPlanResource) String() string
String returns the string representation
type ScalingPolicy ¶
type ScalingPolicy struct { // PolicyName is a required field PolicyName *string `min:"1" type:"string" required:"true"` // PolicyType is a required field PolicyType *string `type:"string" required:"true" enum:"PolicyType"` TargetTrackingConfiguration *TargetTrackingConfiguration `type:"structure"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/ScalingPolicy
func (ScalingPolicy) GoString ¶
func (s ScalingPolicy) GoString() string
GoString returns the string representation
func (*ScalingPolicy) SetPolicyName ¶
func (s *ScalingPolicy) SetPolicyName(v string) *ScalingPolicy
SetPolicyName sets the PolicyName field's value.
func (*ScalingPolicy) SetPolicyType ¶
func (s *ScalingPolicy) SetPolicyType(v string) *ScalingPolicy
SetPolicyType sets the PolicyType field's value.
func (*ScalingPolicy) SetTargetTrackingConfiguration ¶
func (s *ScalingPolicy) SetTargetTrackingConfiguration(v *TargetTrackingConfiguration) *ScalingPolicy
SetTargetTrackingConfiguration sets the TargetTrackingConfiguration field's value.
func (ScalingPolicy) String ¶
func (s ScalingPolicy) String() string
String returns the string representation
type TargetTrackingConfiguration ¶
type TargetTrackingConfiguration struct { CustomizedScalingMetricSpecification *CustomizedScalingMetricSpecification `type:"structure"` DisableScaleIn *bool `type:"boolean"` EstimatedInstanceWarmup *int64 `type:"integer"` PredefinedScalingMetricSpecification *PredefinedScalingMetricSpecification `type:"structure"` ScaleInCooldown *int64 `type:"integer"` ScaleOutCooldown *int64 `type:"integer"` // TargetValue is a required field TargetValue *float64 `type:"double" required:"true"` // contains filtered or unexported fields }
See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/TargetTrackingConfiguration
func (TargetTrackingConfiguration) GoString ¶
func (s TargetTrackingConfiguration) GoString() string
GoString returns the string representation
func (*TargetTrackingConfiguration) SetCustomizedScalingMetricSpecification ¶
func (s *TargetTrackingConfiguration) SetCustomizedScalingMetricSpecification(v *CustomizedScalingMetricSpecification) *TargetTrackingConfiguration
SetCustomizedScalingMetricSpecification sets the CustomizedScalingMetricSpecification field's value.
func (*TargetTrackingConfiguration) SetDisableScaleIn ¶
func (s *TargetTrackingConfiguration) SetDisableScaleIn(v bool) *TargetTrackingConfiguration
SetDisableScaleIn sets the DisableScaleIn field's value.
func (*TargetTrackingConfiguration) SetEstimatedInstanceWarmup ¶
func (s *TargetTrackingConfiguration) SetEstimatedInstanceWarmup(v int64) *TargetTrackingConfiguration
SetEstimatedInstanceWarmup sets the EstimatedInstanceWarmup field's value.
func (*TargetTrackingConfiguration) SetPredefinedScalingMetricSpecification ¶
func (s *TargetTrackingConfiguration) SetPredefinedScalingMetricSpecification(v *PredefinedScalingMetricSpecification) *TargetTrackingConfiguration
SetPredefinedScalingMetricSpecification sets the PredefinedScalingMetricSpecification field's value.
func (*TargetTrackingConfiguration) SetScaleInCooldown ¶
func (s *TargetTrackingConfiguration) SetScaleInCooldown(v int64) *TargetTrackingConfiguration
SetScaleInCooldown sets the ScaleInCooldown field's value.
func (*TargetTrackingConfiguration) SetScaleOutCooldown ¶
func (s *TargetTrackingConfiguration) SetScaleOutCooldown(v int64) *TargetTrackingConfiguration
SetScaleOutCooldown sets the ScaleOutCooldown field's value.
func (*TargetTrackingConfiguration) SetTargetValue ¶
func (s *TargetTrackingConfiguration) SetTargetValue(v float64) *TargetTrackingConfiguration
SetTargetValue sets the TargetValue field's value.
func (TargetTrackingConfiguration) String ¶
func (s TargetTrackingConfiguration) String() string
String returns the string representation
func (*TargetTrackingConfiguration) Validate ¶
func (s *TargetTrackingConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
Directories ¶
Path | Synopsis |
---|---|
Package autoscalingplansiface provides an interface to enable mocking the AWS Auto Scaling Plans service client for testing your code.
|
Package autoscalingplansiface provides an interface to enable mocking the AWS Auto Scaling Plans service client for testing your code. |