mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-16 12:08:04 +00:00
New upstream version 1.3.0
This commit is contained in:
+1317
-104
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+12
@@ -64,6 +64,10 @@ type ApplicationAutoScalingAPI interface {
|
||||
DeleteScalingPolicyWithContext(aws.Context, *applicationautoscaling.DeleteScalingPolicyInput, ...request.Option) (*applicationautoscaling.DeleteScalingPolicyOutput, error)
|
||||
DeleteScalingPolicyRequest(*applicationautoscaling.DeleteScalingPolicyInput) (*request.Request, *applicationautoscaling.DeleteScalingPolicyOutput)
|
||||
|
||||
DeleteScheduledAction(*applicationautoscaling.DeleteScheduledActionInput) (*applicationautoscaling.DeleteScheduledActionOutput, error)
|
||||
DeleteScheduledActionWithContext(aws.Context, *applicationautoscaling.DeleteScheduledActionInput, ...request.Option) (*applicationautoscaling.DeleteScheduledActionOutput, error)
|
||||
DeleteScheduledActionRequest(*applicationautoscaling.DeleteScheduledActionInput) (*request.Request, *applicationautoscaling.DeleteScheduledActionOutput)
|
||||
|
||||
DeregisterScalableTarget(*applicationautoscaling.DeregisterScalableTargetInput) (*applicationautoscaling.DeregisterScalableTargetOutput, error)
|
||||
DeregisterScalableTargetWithContext(aws.Context, *applicationautoscaling.DeregisterScalableTargetInput, ...request.Option) (*applicationautoscaling.DeregisterScalableTargetOutput, error)
|
||||
DeregisterScalableTargetRequest(*applicationautoscaling.DeregisterScalableTargetInput) (*request.Request, *applicationautoscaling.DeregisterScalableTargetOutput)
|
||||
@@ -89,10 +93,18 @@ type ApplicationAutoScalingAPI interface {
|
||||
DescribeScalingPoliciesPages(*applicationautoscaling.DescribeScalingPoliciesInput, func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool) error
|
||||
DescribeScalingPoliciesPagesWithContext(aws.Context, *applicationautoscaling.DescribeScalingPoliciesInput, func(*applicationautoscaling.DescribeScalingPoliciesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeScheduledActions(*applicationautoscaling.DescribeScheduledActionsInput) (*applicationautoscaling.DescribeScheduledActionsOutput, error)
|
||||
DescribeScheduledActionsWithContext(aws.Context, *applicationautoscaling.DescribeScheduledActionsInput, ...request.Option) (*applicationautoscaling.DescribeScheduledActionsOutput, error)
|
||||
DescribeScheduledActionsRequest(*applicationautoscaling.DescribeScheduledActionsInput) (*request.Request, *applicationautoscaling.DescribeScheduledActionsOutput)
|
||||
|
||||
PutScalingPolicy(*applicationautoscaling.PutScalingPolicyInput) (*applicationautoscaling.PutScalingPolicyOutput, error)
|
||||
PutScalingPolicyWithContext(aws.Context, *applicationautoscaling.PutScalingPolicyInput, ...request.Option) (*applicationautoscaling.PutScalingPolicyOutput, error)
|
||||
PutScalingPolicyRequest(*applicationautoscaling.PutScalingPolicyInput) (*request.Request, *applicationautoscaling.PutScalingPolicyOutput)
|
||||
|
||||
PutScheduledAction(*applicationautoscaling.PutScheduledActionInput) (*applicationautoscaling.PutScheduledActionOutput, error)
|
||||
PutScheduledActionWithContext(aws.Context, *applicationautoscaling.PutScheduledActionInput, ...request.Option) (*applicationautoscaling.PutScheduledActionOutput, error)
|
||||
PutScheduledActionRequest(*applicationautoscaling.PutScheduledActionInput) (*request.Request, *applicationautoscaling.PutScheduledActionOutput)
|
||||
|
||||
RegisterScalableTarget(*applicationautoscaling.RegisterScalableTargetInput) (*applicationautoscaling.RegisterScalableTargetOutput, error)
|
||||
RegisterScalableTargetWithContext(aws.Context, *applicationautoscaling.RegisterScalableTargetInput, ...request.Option) (*applicationautoscaling.RegisterScalableTargetOutput, error)
|
||||
RegisterScalableTargetRequest(*applicationautoscaling.RegisterScalableTargetInput) (*request.Request, *applicationautoscaling.RegisterScalableTargetOutput)
|
||||
|
||||
+17
-5
@@ -3,21 +3,23 @@
|
||||
// Package applicationautoscaling provides the client and types for making API
|
||||
// requests to Application Auto Scaling.
|
||||
//
|
||||
// With Application Auto Scaling, you can automatically scale your AWS resources.
|
||||
// The experience similar to that of Auto Scaling (https://aws.amazon.com/autoscaling/).
|
||||
// You can use Application Auto Scaling to accomplish the following tasks:
|
||||
// With Application Auto Scaling, you can configure automatic scaling for your
|
||||
// scalable AWS resources. You can use Application Auto Scaling to accomplish
|
||||
// the following tasks:
|
||||
//
|
||||
// * Define scaling policies to automatically scale your AWS resources
|
||||
//
|
||||
// * Scale your resources in response to CloudWatch alarms
|
||||
//
|
||||
// * Schedule one-time or recurring scaling actions
|
||||
//
|
||||
// * View the history of your scaling events
|
||||
//
|
||||
// Application Auto Scaling can scale the following AWS resources:
|
||||
//
|
||||
// * Amazon ECS services. For more information, see Service Auto Scaling
|
||||
// (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-auto-scaling.html)
|
||||
// in the Amazon EC2 Container Service Developer Guide.
|
||||
// in the Amazon Elastic Container Service Developer Guide.
|
||||
//
|
||||
// * Amazon EC2 Spot fleets. For more information, see Automatic Scaling
|
||||
// for Spot Fleet (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-auto-scaling.html)
|
||||
@@ -36,6 +38,16 @@
|
||||
// Automatically with DynamoDB Auto Scaling (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/AutoScaling.html)
|
||||
// in the Amazon DynamoDB Developer Guide.
|
||||
//
|
||||
// * Amazon Aurora Replicas. For more information, see Using Amazon Aurora
|
||||
// Auto Scaling with Aurora Replicas (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Integrating.AutoScaling.html).
|
||||
//
|
||||
// * Amazon SageMaker endpoints. For more information, see Automatically
|
||||
// Scaling Amazon SageMaker Models (http://docs.aws.amazon.com/sagemaker/latest/dg/endpoint-auto-scaling.html).
|
||||
//
|
||||
// To configure automatic scaling for multiple resources across multiple services,
|
||||
// use AWS Auto Scaling to create a scaling plan for your application. For more
|
||||
// information, see AWS Auto Scaling (http://aws.amazon.com/autoscaling).
|
||||
//
|
||||
// For a list of supported regions, see AWS Regions and Endpoints: Application
|
||||
// Auto Scaling (http://docs.aws.amazon.com/general/latest/gr/rande.html#as-app_region)
|
||||
// in the AWS General Reference.
|
||||
@@ -47,7 +59,7 @@
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Application Auto Scaling with the SDK use the New function to create
|
||||
// To contact Application Auto Scaling 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.
|
||||
//
|
||||
|
||||
+8
-10
@@ -19,7 +19,7 @@ const (
|
||||
// with a scaling policy due to a client error, for example, if the role ARN
|
||||
// specified for a scalable target does not have permission to call the CloudWatch
|
||||
// DescribeAlarms (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html)
|
||||
// API operation on behalf of your account.
|
||||
// on your behalf.
|
||||
ErrCodeFailedResourceAccessException = "FailedResourceAccessException"
|
||||
|
||||
// ErrCodeInternalServiceException for service response error code
|
||||
@@ -37,20 +37,18 @@ const (
|
||||
// ErrCodeLimitExceededException for service response error code
|
||||
// "LimitExceededException".
|
||||
//
|
||||
// Your account exceeded a limit. This exception is thrown when a per-account
|
||||
// resource limit is exceeded. For more information, see Application Auto Scaling
|
||||
// Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_as-app).
|
||||
// A per-account resource limit is exceeded. For more information, see Application
|
||||
// Auto Scaling Limits (http://docs.aws.amazon.com/ApplicationAutoScaling/latest/userguide/application-auto-scaling-limits.html).
|
||||
ErrCodeLimitExceededException = "LimitExceededException"
|
||||
|
||||
// ErrCodeObjectNotFoundException for service response error code
|
||||
// "ObjectNotFoundException".
|
||||
//
|
||||
// The specified object could not be found. For any Put or Register API operation,
|
||||
// which depends on the existence of a scalable target, this exception is thrown
|
||||
// if the scalable target with the specified service namespace, resource ID,
|
||||
// and scalable dimension does not exist. For any Delete or Deregister API operation,
|
||||
// this exception is thrown if the resource that is to be deleted or deregistered
|
||||
// cannot be found.
|
||||
// The specified object could not be found. For any operation that depends on
|
||||
// the existence of a scalable target, this exception is thrown if the scalable
|
||||
// target with the specified service namespace, resource ID, and scalable dimension
|
||||
// does not exist. For any operation that deletes or deregisters a resource,
|
||||
// this exception is thrown if the resource cannot be found.
|
||||
ErrCodeObjectNotFoundException = "ObjectNotFoundException"
|
||||
|
||||
// ErrCodeValidationException for service response error code
|
||||
|
||||
+3
-3
@@ -45,14 +45,14 @@ const (
|
||||
// svc := applicationautoscaling.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ApplicationAutoScaling {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = "application-autoscaling"
|
||||
}
|
||||
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *ApplicationAutoScaling {
|
||||
if len(signingName) == 0 {
|
||||
signingName = "application-autoscaling"
|
||||
}
|
||||
svc := &ApplicationAutoScaling{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
|
||||
Reference in New Issue
Block a user