@aws-sdk/client-application-auto-scaling 3.288.0 → 3.290.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/commands/DeleteScalingPolicyCommand.d.ts +33 -0
- package/dist-types/commands/DeleteScheduledActionCommand.d.ts +19 -0
- package/dist-types/commands/DeregisterScalableTargetCommand.d.ts +32 -0
- package/dist-types/commands/DescribeScalableTargetsCommand.d.ts +46 -0
- package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +46 -0
- package/dist-types/commands/DescribeScalingPoliciesCommand.d.ts +64 -0
- package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +15 -0
- package/dist-types/commands/PutScalingPolicyCommand.d.ts +66 -0
- package/dist-types/commands/PutScheduledActionCommand.d.ts +22 -0
- package/dist-types/commands/RegisterScalableTargetCommand.d.ts +30 -0
- package/package.json +29 -29
|
@@ -34,6 +34,39 @@ export interface DeleteScalingPolicyCommandOutput extends DeleteScalingPolicyRes
|
|
|
34
34
|
* @see {@link DeleteScalingPolicyCommandOutput} for command's `response` shape.
|
|
35
35
|
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
36
36
|
*
|
|
37
|
+
* @throws {@link ConcurrentUpdateException} (server fault)
|
|
38
|
+
* <p>Concurrent updates caused an exception, for example, if you request an update to an
|
|
39
|
+
* Application Auto Scaling resource that already has a pending update.</p>
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
42
|
+
* <p>The service encountered an internal error.</p>
|
|
43
|
+
*
|
|
44
|
+
* @throws {@link ObjectNotFoundException} (client fault)
|
|
45
|
+
* <p>The specified object could not be found. For any operation that depends on the existence
|
|
46
|
+
* of a scalable target, this exception is thrown if the scalable target with the specified
|
|
47
|
+
* service namespace, resource ID, and scalable dimension does not exist. For any operation
|
|
48
|
+
* that deletes or deregisters a resource, this exception is thrown if the resource cannot be
|
|
49
|
+
* found.</p>
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link ValidationException} (client fault)
|
|
52
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
53
|
+
* API request.</p>
|
|
54
|
+
*
|
|
55
|
+
*
|
|
56
|
+
* @example To delete a scaling policy
|
|
57
|
+
* ```javascript
|
|
58
|
+
* // This example deletes a scaling policy for the Amazon ECS service called web-app, which is running in the default cluster.
|
|
59
|
+
* const input = {
|
|
60
|
+
* "PolicyName": "web-app-cpu-lt-25",
|
|
61
|
+
* "ResourceId": "service/default/web-app",
|
|
62
|
+
* "ScalableDimension": "ecs:service:DesiredCount",
|
|
63
|
+
* "ServiceNamespace": "ecs"
|
|
64
|
+
* };
|
|
65
|
+
* const command = new DeleteScalingPolicyCommand(input);
|
|
66
|
+
* await client.send(command);
|
|
67
|
+
* // example id: to-delete-a-scaling-policy-1470863892689
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
37
70
|
*/
|
|
38
71
|
export declare class DeleteScalingPolicyCommand extends $Command<DeleteScalingPolicyCommandInput, DeleteScalingPolicyCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
|
|
39
72
|
readonly input: DeleteScalingPolicyCommandInput;
|
|
@@ -30,6 +30,25 @@ export interface DeleteScheduledActionCommandOutput extends DeleteScheduledActio
|
|
|
30
30
|
* @see {@link DeleteScheduledActionCommandOutput} for command's `response` shape.
|
|
31
31
|
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
32
32
|
*
|
|
33
|
+
* @throws {@link ConcurrentUpdateException} (server fault)
|
|
34
|
+
* <p>Concurrent updates caused an exception, for example, if you request an update to an
|
|
35
|
+
* Application Auto Scaling resource that already has a pending update.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
38
|
+
* <p>The service encountered an internal error.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link ObjectNotFoundException} (client fault)
|
|
41
|
+
* <p>The specified object could not be found. For any operation that depends on the existence
|
|
42
|
+
* of a scalable target, this exception is thrown if the scalable target with the specified
|
|
43
|
+
* service namespace, resource ID, and scalable dimension does not exist. For any operation
|
|
44
|
+
* that deletes or deregisters a resource, this exception is thrown if the resource cannot be
|
|
45
|
+
* found.</p>
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link ValidationException} (client fault)
|
|
48
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
49
|
+
* API request.</p>
|
|
50
|
+
*
|
|
51
|
+
*
|
|
33
52
|
*/
|
|
34
53
|
export declare class DeleteScheduledActionCommand extends $Command<DeleteScheduledActionCommandInput, DeleteScheduledActionCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
|
|
35
54
|
readonly input: DeleteScheduledActionCommandInput;
|
|
@@ -34,6 +34,38 @@ export interface DeregisterScalableTargetCommandOutput extends DeregisterScalabl
|
|
|
34
34
|
* @see {@link DeregisterScalableTargetCommandOutput} for command's `response` shape.
|
|
35
35
|
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
36
36
|
*
|
|
37
|
+
* @throws {@link ConcurrentUpdateException} (server fault)
|
|
38
|
+
* <p>Concurrent updates caused an exception, for example, if you request an update to an
|
|
39
|
+
* Application Auto Scaling resource that already has a pending update.</p>
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
42
|
+
* <p>The service encountered an internal error.</p>
|
|
43
|
+
*
|
|
44
|
+
* @throws {@link ObjectNotFoundException} (client fault)
|
|
45
|
+
* <p>The specified object could not be found. For any operation that depends on the existence
|
|
46
|
+
* of a scalable target, this exception is thrown if the scalable target with the specified
|
|
47
|
+
* service namespace, resource ID, and scalable dimension does not exist. For any operation
|
|
48
|
+
* that deletes or deregisters a resource, this exception is thrown if the resource cannot be
|
|
49
|
+
* found.</p>
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link ValidationException} (client fault)
|
|
52
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
53
|
+
* API request.</p>
|
|
54
|
+
*
|
|
55
|
+
*
|
|
56
|
+
* @example To deregister a scalable target
|
|
57
|
+
* ```javascript
|
|
58
|
+
* // This example deregisters a scalable target for an Amazon ECS service called web-app that is running in the default cluster.
|
|
59
|
+
* const input = {
|
|
60
|
+
* "ResourceId": "service/default/web-app",
|
|
61
|
+
* "ScalableDimension": "ecs:service:DesiredCount",
|
|
62
|
+
* "ServiceNamespace": "ecs"
|
|
63
|
+
* };
|
|
64
|
+
* const command = new DeregisterScalableTargetCommand(input);
|
|
65
|
+
* await client.send(command);
|
|
66
|
+
* // example id: to-deregister-a-scalable-target-1470864164895
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
37
69
|
*/
|
|
38
70
|
export declare class DeregisterScalableTargetCommand extends $Command<DeregisterScalableTargetCommandInput, DeregisterScalableTargetCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
|
|
39
71
|
readonly input: DeregisterScalableTargetCommandInput;
|
|
@@ -31,6 +31,52 @@ export interface DescribeScalableTargetsCommandOutput extends DescribeScalableTa
|
|
|
31
31
|
* @see {@link DescribeScalableTargetsCommandOutput} for command's `response` shape.
|
|
32
32
|
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
33
33
|
*
|
|
34
|
+
* @throws {@link ConcurrentUpdateException} (server fault)
|
|
35
|
+
* <p>Concurrent updates caused an exception, for example, if you request an update to an
|
|
36
|
+
* Application Auto Scaling resource that already has a pending update.</p>
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
39
|
+
* <p>The service encountered an internal error.</p>
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link InvalidNextTokenException} (client fault)
|
|
42
|
+
* <p>The next token supplied was invalid.</p>
|
|
43
|
+
*
|
|
44
|
+
* @throws {@link ValidationException} (client fault)
|
|
45
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
46
|
+
* API request.</p>
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
* @example To describe scalable targets
|
|
50
|
+
* ```javascript
|
|
51
|
+
* // This example describes the scalable targets for the ECS service namespace.
|
|
52
|
+
* const input = {
|
|
53
|
+
* "ServiceNamespace": "ecs"
|
|
54
|
+
* };
|
|
55
|
+
* const command = new DescribeScalableTargetsCommand(input);
|
|
56
|
+
* const response = await client.send(command);
|
|
57
|
+
* /* response ==
|
|
58
|
+
* {
|
|
59
|
+
* "ScalableTargets": [
|
|
60
|
+
* {
|
|
61
|
+
* "CreationTime": "2019-05-06T11:21:46.199Z",
|
|
62
|
+
* "MaxCapacity": 10,
|
|
63
|
+
* "MinCapacity": 1,
|
|
64
|
+
* "ResourceId": "service/default/web-app",
|
|
65
|
+
* "RoleARN": "arn:aws:iam::012345678910:role/aws-service-role/ecs.application-autoscaling.amazonaws.com/AWSServiceRoleForApplicationAutoScaling_ECSService",
|
|
66
|
+
* "ScalableDimension": "ecs:service:DesiredCount",
|
|
67
|
+
* "ServiceNamespace": "ecs",
|
|
68
|
+
* "SuspendedState": {
|
|
69
|
+
* "DynamicScalingInSuspended": false,
|
|
70
|
+
* "DynamicScalingOutSuspended": false,
|
|
71
|
+
* "ScheduledScalingSuspended": false
|
|
72
|
+
* }
|
|
73
|
+
* }
|
|
74
|
+
* ]
|
|
75
|
+
* }
|
|
76
|
+
* *\/
|
|
77
|
+
* // example id: to-describe-scalable-targets-1470864286961
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
34
80
|
*/
|
|
35
81
|
export declare class DescribeScalableTargetsCommand extends $Command<DescribeScalableTargetsCommandInput, DescribeScalableTargetsCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
|
|
36
82
|
readonly input: DescribeScalableTargetsCommandInput;
|
|
@@ -33,6 +33,52 @@ export interface DescribeScalingActivitiesCommandOutput extends DescribeScalingA
|
|
|
33
33
|
* @see {@link DescribeScalingActivitiesCommandOutput} for command's `response` shape.
|
|
34
34
|
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
35
35
|
*
|
|
36
|
+
* @throws {@link ConcurrentUpdateException} (server fault)
|
|
37
|
+
* <p>Concurrent updates caused an exception, for example, if you request an update to an
|
|
38
|
+
* Application Auto Scaling resource that already has a pending update.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
41
|
+
* <p>The service encountered an internal error.</p>
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link InvalidNextTokenException} (client fault)
|
|
44
|
+
* <p>The next token supplied was invalid.</p>
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link ValidationException} (client fault)
|
|
47
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
48
|
+
* API request.</p>
|
|
49
|
+
*
|
|
50
|
+
*
|
|
51
|
+
* @example To describe scaling activities for a scalable target
|
|
52
|
+
* ```javascript
|
|
53
|
+
* // This example describes the scaling activities for an Amazon ECS service called web-app that is running in the default cluster.
|
|
54
|
+
* const input = {
|
|
55
|
+
* "ResourceId": "service/default/web-app",
|
|
56
|
+
* "ScalableDimension": "ecs:service:DesiredCount",
|
|
57
|
+
* "ServiceNamespace": "ecs"
|
|
58
|
+
* };
|
|
59
|
+
* const command = new DescribeScalingActivitiesCommand(input);
|
|
60
|
+
* const response = await client.send(command);
|
|
61
|
+
* /* response ==
|
|
62
|
+
* {
|
|
63
|
+
* "ScalingActivities": [
|
|
64
|
+
* {
|
|
65
|
+
* "ActivityId": "e6c5f7d1-dbbb-4a3f-89b2-51f33e766399",
|
|
66
|
+
* "Cause": "monitor alarm web-app-cpu-lt-25 in state ALARM triggered policy web-app-cpu-lt-25",
|
|
67
|
+
* "Description": "Setting desired count to 1.",
|
|
68
|
+
* "EndTime": "2019-05-06T16:04:32.111Z",
|
|
69
|
+
* "ResourceId": "service/default/web-app",
|
|
70
|
+
* "ScalableDimension": "ecs:service:DesiredCount",
|
|
71
|
+
* "ServiceNamespace": "ecs",
|
|
72
|
+
* "StartTime": "2019-05-06T16:03:58.171Z",
|
|
73
|
+
* "StatusCode": "Successful",
|
|
74
|
+
* "StatusMessage": "Successfully set desired count to 1. Change successfully fulfilled by ecs."
|
|
75
|
+
* }
|
|
76
|
+
* ]
|
|
77
|
+
* }
|
|
78
|
+
* *\/
|
|
79
|
+
* // example id: to-describe-scaling-activities-for-a-scalable-target-1470864398629
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
36
82
|
*/
|
|
37
83
|
export declare class DescribeScalingActivitiesCommand extends $Command<DescribeScalingActivitiesCommandInput, DescribeScalingActivitiesCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
|
|
38
84
|
readonly input: DescribeScalingActivitiesCommandInput;
|
|
@@ -32,6 +32,70 @@ export interface DescribeScalingPoliciesCommandOutput extends DescribeScalingPol
|
|
|
32
32
|
* @see {@link DescribeScalingPoliciesCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @throws {@link ConcurrentUpdateException} (server fault)
|
|
36
|
+
* <p>Concurrent updates caused an exception, for example, if you request an update to an
|
|
37
|
+
* Application Auto Scaling resource that already has a pending update.</p>
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link FailedResourceAccessException} (client fault)
|
|
40
|
+
* <p>Failed access to resources caused an exception. This exception is thrown when Application Auto Scaling
|
|
41
|
+
* is unable to retrieve the alarms associated with a scaling policy due to a client error,
|
|
42
|
+
* for example, if the role ARN specified for a scalable target does not have permission to
|
|
43
|
+
* call the CloudWatch <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> on your behalf.</p>
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
46
|
+
* <p>The service encountered an internal error.</p>
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link InvalidNextTokenException} (client fault)
|
|
49
|
+
* <p>The next token supplied was invalid.</p>
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link ValidationException} (client fault)
|
|
52
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
53
|
+
* API request.</p>
|
|
54
|
+
*
|
|
55
|
+
*
|
|
56
|
+
* @example To describe scaling policies
|
|
57
|
+
* ```javascript
|
|
58
|
+
* // This example describes the scaling policies for the ECS service namespace.
|
|
59
|
+
* const input = {
|
|
60
|
+
* "ServiceNamespace": "ecs"
|
|
61
|
+
* };
|
|
62
|
+
* const command = new DescribeScalingPoliciesCommand(input);
|
|
63
|
+
* const response = await client.send(command);
|
|
64
|
+
* /* response ==
|
|
65
|
+
* {
|
|
66
|
+
* "NextToken": "",
|
|
67
|
+
* "ScalingPolicies": [
|
|
68
|
+
* {
|
|
69
|
+
* "Alarms": [
|
|
70
|
+
* {
|
|
71
|
+
* "AlarmARN": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:web-app-cpu-gt-75",
|
|
72
|
+
* "AlarmName": "web-app-cpu-gt-75"
|
|
73
|
+
* }
|
|
74
|
+
* ],
|
|
75
|
+
* "CreationTime": "2019-05-06T12:11:39.230Z",
|
|
76
|
+
* "PolicyARN": "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/web-app-cpu-gt-75",
|
|
77
|
+
* "PolicyName": "web-app-cpu-gt-75",
|
|
78
|
+
* "PolicyType": "StepScaling",
|
|
79
|
+
* "ResourceId": "service/default/web-app",
|
|
80
|
+
* "ScalableDimension": "ecs:service:DesiredCount",
|
|
81
|
+
* "ServiceNamespace": "ecs",
|
|
82
|
+
* "StepScalingPolicyConfiguration": {
|
|
83
|
+
* "AdjustmentType": "PercentChangeInCapacity",
|
|
84
|
+
* "Cooldown": 60,
|
|
85
|
+
* "StepAdjustments": [
|
|
86
|
+
* {
|
|
87
|
+
* "MetricIntervalLowerBound": 0,
|
|
88
|
+
* "ScalingAdjustment": 200
|
|
89
|
+
* }
|
|
90
|
+
* ]
|
|
91
|
+
* }
|
|
92
|
+
* }
|
|
93
|
+
* ]
|
|
94
|
+
* }
|
|
95
|
+
* *\/
|
|
96
|
+
* // example id: to-describe-scaling-policies-1470864609734
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
35
99
|
*/
|
|
36
100
|
export declare class DescribeScalingPoliciesCommand extends $Command<DescribeScalingPoliciesCommandInput, DescribeScalingPoliciesCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
|
|
37
101
|
readonly input: DescribeScalingPoliciesCommandInput;
|
|
@@ -33,6 +33,21 @@ export interface DescribeScheduledActionsCommandOutput extends DescribeScheduled
|
|
|
33
33
|
* @see {@link DescribeScheduledActionsCommandOutput} for command's `response` shape.
|
|
34
34
|
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
35
35
|
*
|
|
36
|
+
* @throws {@link ConcurrentUpdateException} (server fault)
|
|
37
|
+
* <p>Concurrent updates caused an exception, for example, if you request an update to an
|
|
38
|
+
* Application Auto Scaling resource that already has a pending update.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
41
|
+
* <p>The service encountered an internal error.</p>
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link InvalidNextTokenException} (client fault)
|
|
44
|
+
* <p>The next token supplied was invalid.</p>
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link ValidationException} (client fault)
|
|
47
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
48
|
+
* API request.</p>
|
|
49
|
+
*
|
|
50
|
+
*
|
|
36
51
|
*/
|
|
37
52
|
export declare class DescribeScheduledActionsCommand extends $Command<DescribeScheduledActionsCommandInput, DescribeScheduledActionsCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
|
|
38
53
|
readonly input: DescribeScheduledActionsCommandInput;
|
|
@@ -53,6 +53,72 @@ export interface PutScalingPolicyCommandOutput extends PutScalingPolicyResponse,
|
|
|
53
53
|
* @see {@link PutScalingPolicyCommandOutput} for command's `response` shape.
|
|
54
54
|
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
55
55
|
*
|
|
56
|
+
* @throws {@link ConcurrentUpdateException} (server fault)
|
|
57
|
+
* <p>Concurrent updates caused an exception, for example, if you request an update to an
|
|
58
|
+
* Application Auto Scaling resource that already has a pending update.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link FailedResourceAccessException} (client fault)
|
|
61
|
+
* <p>Failed access to resources caused an exception. This exception is thrown when Application Auto Scaling
|
|
62
|
+
* is unable to retrieve the alarms associated with a scaling policy due to a client error,
|
|
63
|
+
* for example, if the role ARN specified for a scalable target does not have permission to
|
|
64
|
+
* call the CloudWatch <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> on your behalf.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
67
|
+
* <p>The service encountered an internal error.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
70
|
+
* <p>A per-account resource limit is exceeded. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html">Application Auto Scaling service quotas</a>.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ObjectNotFoundException} (client fault)
|
|
73
|
+
* <p>The specified object could not be found. For any operation that depends on the existence
|
|
74
|
+
* of a scalable target, this exception is thrown if the scalable target with the specified
|
|
75
|
+
* service namespace, resource ID, and scalable dimension does not exist. For any operation
|
|
76
|
+
* that deletes or deregisters a resource, this exception is thrown if the resource cannot be
|
|
77
|
+
* found.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
81
|
+
* API request.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @example To apply a target tracking scaling policy with a predefined metric specification
|
|
85
|
+
* ```javascript
|
|
86
|
+
* // The following example applies a target tracking scaling policy with a predefined metric specification to an Amazon ECS service called web-app in the default cluster. The policy keeps the average CPU utilization of the service at 75 percent, with scale-out and scale-in cooldown periods of 60 seconds.
|
|
87
|
+
* const input = {
|
|
88
|
+
* "PolicyName": "cpu75-target-tracking-scaling-policy",
|
|
89
|
+
* "PolicyType": "TargetTrackingScaling",
|
|
90
|
+
* "ResourceId": "service/default/web-app",
|
|
91
|
+
* "ScalableDimension": "ecs:service:DesiredCount",
|
|
92
|
+
* "ServiceNamespace": "ecs",
|
|
93
|
+
* "TargetTrackingScalingPolicyConfiguration": {
|
|
94
|
+
* "PredefinedMetricSpecification": {
|
|
95
|
+
* "PredefinedMetricType": "ECSServiceAverageCPUUtilization"
|
|
96
|
+
* },
|
|
97
|
+
* "ScaleInCooldown": 60,
|
|
98
|
+
* "ScaleOutCooldown": 60,
|
|
99
|
+
* "TargetValue": 75
|
|
100
|
+
* }
|
|
101
|
+
* };
|
|
102
|
+
* const command = new PutScalingPolicyCommand(input);
|
|
103
|
+
* const response = await client.send(command);
|
|
104
|
+
* /* response ==
|
|
105
|
+
* {
|
|
106
|
+
* "Alarms": [
|
|
107
|
+
* {
|
|
108
|
+
* "AlarmARN": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca",
|
|
109
|
+
* "AlarmName": "TargetTracking-service/default/web-app-AlarmHigh-d4f0770c-b46e-434a-a60f-3b36d653feca"
|
|
110
|
+
* },
|
|
111
|
+
* {
|
|
112
|
+
* "AlarmARN": "arn:aws:cloudwatch:us-west-2:012345678910:alarm:TargetTracking-service/default/web-app-AlarmLow-1b437334-d19b-4a63-a812-6c67aaf2910d",
|
|
113
|
+
* "AlarmName": "TargetTracking-service/default/web-app-AlarmLow-1b437334-d19b-4a63-a812-6c67aaf2910d"
|
|
114
|
+
* }
|
|
115
|
+
* ],
|
|
116
|
+
* "PolicyARN": "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/cpu75-target-tracking-scaling-policy"
|
|
117
|
+
* }
|
|
118
|
+
* *\/
|
|
119
|
+
* // example id: to-apply-a-target-tracking-scaling-policy-with-a-predefined-metric-specification-1569364247984
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
56
122
|
*/
|
|
57
123
|
export declare class PutScalingPolicyCommand extends $Command<PutScalingPolicyCommandInput, PutScalingPolicyCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
|
|
58
124
|
readonly input: PutScalingPolicyCommandInput;
|
|
@@ -43,6 +43,28 @@ export interface PutScheduledActionCommandOutput extends PutScheduledActionRespo
|
|
|
43
43
|
* @see {@link PutScheduledActionCommandOutput} for command's `response` shape.
|
|
44
44
|
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
45
45
|
*
|
|
46
|
+
* @throws {@link ConcurrentUpdateException} (server fault)
|
|
47
|
+
* <p>Concurrent updates caused an exception, for example, if you request an update to an
|
|
48
|
+
* Application Auto Scaling resource that already has a pending update.</p>
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
51
|
+
* <p>The service encountered an internal error.</p>
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
54
|
+
* <p>A per-account resource limit is exceeded. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html">Application Auto Scaling service quotas</a>.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ObjectNotFoundException} (client fault)
|
|
57
|
+
* <p>The specified object could not be found. For any operation that depends on the existence
|
|
58
|
+
* of a scalable target, this exception is thrown if the scalable target with the specified
|
|
59
|
+
* service namespace, resource ID, and scalable dimension does not exist. For any operation
|
|
60
|
+
* that deletes or deregisters a resource, this exception is thrown if the resource cannot be
|
|
61
|
+
* found.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
65
|
+
* API request.</p>
|
|
66
|
+
*
|
|
67
|
+
*
|
|
46
68
|
*/
|
|
47
69
|
export declare class PutScheduledActionCommand extends $Command<PutScheduledActionCommandInput, PutScheduledActionCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
|
|
48
70
|
readonly input: PutScheduledActionCommandInput;
|
|
@@ -53,6 +53,36 @@ export interface RegisterScalableTargetCommandOutput extends RegisterScalableTar
|
|
|
53
53
|
* @see {@link RegisterScalableTargetCommandOutput} for command's `response` shape.
|
|
54
54
|
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
55
55
|
*
|
|
56
|
+
* @throws {@link ConcurrentUpdateException} (server fault)
|
|
57
|
+
* <p>Concurrent updates caused an exception, for example, if you request an update to an
|
|
58
|
+
* Application Auto Scaling resource that already has a pending update.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
61
|
+
* <p>The service encountered an internal error.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
64
|
+
* <p>A per-account resource limit is exceeded. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-limits.html">Application Auto Scaling service quotas</a>.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ValidationException} (client fault)
|
|
67
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
68
|
+
* API request.</p>
|
|
69
|
+
*
|
|
70
|
+
*
|
|
71
|
+
* @example To register an ECS service as a scalable target
|
|
72
|
+
* ```javascript
|
|
73
|
+
* // This example registers a scalable target from an Amazon ECS service called web-app that is running on the default cluster, with a minimum desired count of 1 task and a maximum desired count of 10 tasks.
|
|
74
|
+
* const input = {
|
|
75
|
+
* "MaxCapacity": 10,
|
|
76
|
+
* "MinCapacity": 1,
|
|
77
|
+
* "ResourceId": "service/default/web-app",
|
|
78
|
+
* "ScalableDimension": "ecs:service:DesiredCount",
|
|
79
|
+
* "ServiceNamespace": "ecs"
|
|
80
|
+
* };
|
|
81
|
+
* const command = new RegisterScalableTargetCommand(input);
|
|
82
|
+
* await client.send(command);
|
|
83
|
+
* // example id: to-register-a-new-scalable-target-1470864910380
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
56
86
|
*/
|
|
57
87
|
export declare class RegisterScalableTargetCommand extends $Command<RegisterScalableTargetCommandInput, RegisterScalableTargetCommandOutput, ApplicationAutoScalingClientResolvedConfig> {
|
|
58
88
|
readonly input: RegisterScalableTargetCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-application-auto-scaling",
|
|
3
3
|
"description": "AWS SDK for JavaScript Application Auto Scaling Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.290.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,37 +20,37 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
-
"@aws-sdk/middleware-serde": "3.
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
37
|
-
"@aws-sdk/middleware-stack": "3.
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.290.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.290.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.290.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.290.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.290.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.290.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.290.0",
|
|
30
|
+
"@aws-sdk/middleware-endpoint": "3.290.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.290.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.290.0",
|
|
33
|
+
"@aws-sdk/middleware-recursion-detection": "3.290.0",
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.290.0",
|
|
35
|
+
"@aws-sdk/middleware-serde": "3.290.0",
|
|
36
|
+
"@aws-sdk/middleware-signing": "3.290.0",
|
|
37
|
+
"@aws-sdk/middleware-stack": "3.290.0",
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "3.290.0",
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.290.0",
|
|
40
|
+
"@aws-sdk/node-http-handler": "3.290.0",
|
|
41
|
+
"@aws-sdk/protocol-http": "3.290.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.290.0",
|
|
43
|
+
"@aws-sdk/types": "3.290.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.290.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.290.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.290.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.290.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.290.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.290.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.290.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|