Skip to content

Commit 9af1f83

Browse files
AWS SDK for RubyNobody
authored andcommitted
Updated service API models for release.
1 parent d9bc630 commit 9af1f83

File tree

13 files changed

+2364
-134
lines changed

13 files changed

+2364
-134
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Unreleased Changes
22
------------------
33

4+
* Feature - Aws::AutoScaling - Updated the documentation for Auto Scaling.
5+
6+
* Feature - Aws::CodeGuruProfiler - Updated the API, and documentation for Amazon CodeGuru Profiler.
7+
8+
* Feature - Aws::CodeStarconnections - Updated the API, and documentation for AWS CodeStar connections.
9+
10+
* Feature - Aws::EC2 - Updated the API, and documentation for Amazon Elastic Compute Cloud.
11+
412
2.11.537 (2020-06-26)
513
------------------
614

aws-sdk-core/apis/autoscaling/2011-01-01/docs-2.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"DisableMetricsCollection": "<p>Disables group metrics for the specified Auto Scaling group.</p>",
4545
"EnableMetricsCollection": "<p>Enables group metrics for the specified Auto Scaling group. For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-monitoring.html\">Monitoring Your Auto Scaling Groups and Instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>",
4646
"EnterStandby": "<p>Moves the specified instances into the standby state.</p> <p>If you choose to decrement the desired capacity of the Auto Scaling group, the instances can enter standby as long as the desired capacity of the Auto Scaling group after the instances are placed into standby is equal to or greater than the minimum capacity of the group.</p> <p>If you choose not to decrement the desired capacity of the Auto Scaling group, the Auto Scaling group launches new instances to replace the instances on standby.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html\">Temporarily Removing Instances from Your Auto Scaling Group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>",
47-
"ExecutePolicy": "<p>Executes the specified policy.</p>",
47+
"ExecutePolicy": "<p>Executes the specified policy. This can be useful for testing the design of your scaling policy.</p>",
4848
"ExitStandby": "<p>Moves the specified instances out of the standby state.</p> <p>After you put the instances back in service, the desired capacity is incremented.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html\">Temporarily Removing Instances from Your Auto Scaling Group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>",
4949
"PutLifecycleHook": "<p>Creates or updates a lifecycle hook for the specified Auto Scaling group.</p> <p>A lifecycle hook tells Amazon EC2 Auto Scaling to perform an action on an instance when the instance launches (before it is put into service) or as the instance terminates (before it is fully terminated).</p> <p>This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:</p> <ol> <li> <p>(Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Amazon EC2 Auto Scaling launches or terminates instances.</p> </li> <li> <p>(Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling to publish lifecycle notifications to the target.</p> </li> <li> <p> <b>Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.</b> </p> </li> <li> <p>If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state using the <a>RecordLifecycleActionHeartbeat</a> API call.</p> </li> <li> <p>If you finish before the timeout period ends, complete the lifecycle action using the <a>CompleteLifecycleAction</a> API call.</p> </li> </ol> <p>For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html\">Amazon EC2 Auto Scaling Lifecycle Hooks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p> <p>If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto Scaling group, the call fails.</p> <p>You can view the lifecycle hooks for an Auto Scaling group using the <a>DescribeLifecycleHooks</a> API call. If you are no longer using a lifecycle hook, you can delete it by calling the <a>DeleteLifecycleHook</a> API.</p>",
5050
"PutNotificationConfiguration": "<p>Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to the specified topic can have messages delivered to an endpoint such as a web server or an email address.</p> <p>This configuration overwrites any existing configuration.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html\">Getting Amazon SNS Notifications When Your Auto Scaling Group Scales</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>",
@@ -309,7 +309,7 @@
309309
"BlockDeviceEbsVolumeSize": {
310310
"base": null,
311311
"refs": {
312-
"Ebs$VolumeSize": "<p>The volume size, in Gibibytes (GiB).</p> <p>This can be a number from 1-1,024 for <code>standard</code>, 4-16,384 for <code>io1</code>, 1-16,384 for <code>gp2</code>, and 500-16,384 for <code>st1</code> and <code>sc1</code>. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.</p> <p>Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.</p> <note> <p>At least one of <code>VolumeSize</code> or <code>SnapshotId</code> is required.</p> </note>"
312+
"Ebs$VolumeSize": "<p>The volume size, in Gibibytes (GiB).</p> <p>This can be a number from 1-1,024 for <code>standard</code>, 4-16,384 for <code>io1</code>, 1-16,384 for <code>gp2</code>, and 500-16,384 for <code>st1</code> and <code>sc1</code>. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size.</p> <p>Default: If you create a volume from a snapshot and you don't specify a volume size, the default is the snapshot size.</p> <p>You must specify either a <code>VolumeSize</code> or a <code>SnapshotId</code>. If you specify both <code>SnapshotId</code> and <code>VolumeSize</code>, the volume size must be equal or greater than the size of the snapshot.</p>"
313313
}
314314
},
315315
"BlockDeviceEbsVolumeType": {
@@ -688,7 +688,7 @@
688688
"HonorCooldown": {
689689
"base": null,
690690
"refs": {
691-
"ExecutePolicyType$HonorCooldown": "<p>Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before executing the policy.</p> <p>This parameter is not supported if the policy type is <code>StepScaling</code> or <code>TargetTrackingScaling</code>.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html\">Scaling Cooldowns for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>",
691+
"ExecutePolicyType$HonorCooldown": "<p>Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before executing the policy.</p> <p>Valid only if the policy type is <code>SimpleScaling</code>. For more information, see <a href=\"https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html\">Scaling Cooldowns for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>",
692692
"SetDesiredCapacityType$HonorCooldown": "<p>Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete before initiating a scaling activity to set your Auto Scaling group to its new capacity. By default, Amazon EC2 Auto Scaling does not honor the cooldown period during manual scaling activities.</p>"
693693
}
694694
},
@@ -1762,7 +1762,7 @@
17621762
"CreateLaunchConfigurationType$KernelId": "<p>The ID of the kernel associated with the AMI.</p>",
17631763
"CreateLaunchConfigurationType$RamdiskId": "<p>The ID of the RAM disk to select.</p>",
17641764
"DescribeInstanceRefreshesType$AutoScalingGroupName": "<p>The name of the Auto Scaling group.</p>",
1765-
"Ebs$SnapshotId": "<p>The snapshot ID of the volume to use.</p> <p> <code>SnapshotId</code> is optional if you specify a volume size. If you specify both <code>SnapshotId</code> and <code>VolumeSize</code>, the volume size must be equal or greater than the size of the snapshot.</p>",
1765+
"Ebs$SnapshotId": "<p>The snapshot ID of the volume to use.</p> <p>You must specify either a <code>VolumeSize</code> or a <code>SnapshotId</code>.</p>",
17661766
"EnableMetricsCollectionQuery$Granularity": "<p>The granularity to associate with the metrics to collect. The only valid value is <code>1Minute</code>.</p>",
17671767
"EnabledMetric$Metric": "<p>One of the following metrics:</p> <ul> <li> <p> <code>GroupMinSize</code> </p> </li> <li> <p> <code>GroupMaxSize</code> </p> </li> <li> <p> <code>GroupDesiredCapacity</code> </p> </li> <li> <p> <code>GroupInServiceInstances</code> </p> </li> <li> <p> <code>GroupPendingInstances</code> </p> </li> <li> <p> <code>GroupStandbyInstances</code> </p> </li> <li> <p> <code>GroupTerminatingInstances</code> </p> </li> <li> <p> <code>GroupTotalInstances</code> </p> </li> <li> <p> <code>GroupInServiceCapacity</code> </p> </li> <li> <p> <code>GroupPendingCapacity</code> </p> </li> <li> <p> <code>GroupStandbyCapacity</code> </p> </li> <li> <p> <code>GroupTerminatingCapacity</code> </p> </li> <li> <p> <code>GroupTotalCapacity</code> </p> </li> </ul>",
17681768
"EnabledMetric$Granularity": "<p>The granularity of the metric. The only valid value is <code>1Minute</code>.</p>",

aws-sdk-core/apis/autoscaling/2011-01-01/examples-1.json

Lines changed: 129 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,25 @@
5858
"title": "To attach a load balancer to an Auto Scaling group"
5959
}
6060
],
61+
"CancelInstanceRefresh": [
62+
{
63+
"input": {
64+
"AutoScalingGroupName": "my-auto-scaling-group"
65+
},
66+
"output": {
67+
"InstanceRefreshId": "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b"
68+
},
69+
"comments": {
70+
"input": {
71+
},
72+
"output": {
73+
}
74+
},
75+
"description": "This example cancels an instance refresh operation in progress.",
76+
"id": "to-cancel-an-instance-refresh-1592960979817",
77+
"title": "To cancel an instance refresh"
78+
}
79+
],
6180
"CompleteLifecycleAction": [
6281
{
6382
"input": {
@@ -81,10 +100,14 @@
81100
{
82101
"input": {
83102
"AutoScalingGroupName": "my-auto-scaling-group",
84-
"LaunchConfigurationName": "my-launch-config",
103+
"LaunchTemplate": {
104+
"LaunchTemplateId": "lt-0a20c965061f64abc",
105+
"Version": "$Latest"
106+
},
107+
"MaxInstanceLifetime": 2592000,
85108
"MaxSize": 3,
86109
"MinSize": 1,
87-
"VPCZoneIdentifier": "subnet-4176792c"
110+
"VPCZoneIdentifier": "subnet-057fa0918fEXAMPLE"
88111
},
89112
"comments": {
90113
"input": {
@@ -99,50 +122,50 @@
99122
{
100123
"input": {
101124
"AutoScalingGroupName": "my-auto-scaling-group",
102-
"AvailabilityZones": [
103-
"us-west-2c"
104-
],
105125
"HealthCheckGracePeriod": 120,
106126
"HealthCheckType": "ELB",
107127
"LaunchConfigurationName": "my-launch-config",
108-
"LoadBalancerNames": [
109-
"my-load-balancer"
110-
],
111128
"MaxSize": 3,
112-
"MinSize": 1
129+
"MinSize": 1,
130+
"TargetGroupARNs": [
131+
"arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
132+
],
133+
"VPCZoneIdentifier": "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE"
113134
},
114135
"comments": {
115136
"input": {
116137
},
117138
"output": {
118139
}
119140
},
120-
"description": "This example creates an Auto Scaling group and attaches the specified Classic Load Balancer.",
141+
"description": "This example creates an Auto Scaling group and attaches the specified target group.",
121142
"id": "autoscaling-create-auto-scaling-group-2",
122-
"title": "To create an Auto Scaling group with an attached load balancer"
143+
"title": "To create an Auto Scaling group with an attached target group"
123144
},
124145
{
125146
"input": {
126147
"AutoScalingGroupName": "my-auto-scaling-group",
148+
"AvailabilityZones": [
149+
"us-west-2c"
150+
],
127151
"HealthCheckGracePeriod": 120,
128152
"HealthCheckType": "ELB",
129153
"LaunchConfigurationName": "my-launch-config",
130-
"MaxSize": 3,
131-
"MinSize": 1,
132-
"TargetGroupARNs": [
133-
"arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
154+
"LoadBalancerNames": [
155+
"my-load-balancer"
134156
],
135-
"VPCZoneIdentifier": "subnet-4176792c, subnet-65ea5f08"
157+
"MaxSize": 3,
158+
"MinSize": 1
136159
},
137160
"comments": {
138161
"input": {
139162
},
140163
"output": {
141164
}
142165
},
143-
"description": "This example creates an Auto Scaling group and attaches the specified target group.",
166+
"description": "This example creates an Auto Scaling group and attaches the specified Classic Load Balancer.",
144167
"id": "autoscaling-create-auto-scaling-group-3",
145-
"title": "To create an Auto Scaling group with an attached target group"
168+
"title": "To create an Auto Scaling group with an attached load balancer"
146169
}
147170
],
148171
"CreateLaunchConfiguration": [
@@ -283,7 +306,7 @@
283306
{
284307
"input": {
285308
"AutoScalingGroupName": "my-auto-scaling-group",
286-
"PolicyName": "ScaleIn"
309+
"PolicyName": "my-step-scale-out-policy"
287310
},
288311
"comments": {
289312
"input": {
@@ -378,7 +401,7 @@
378401
},
379402
"description": "This example describes the available adjustment types.",
380403
"id": "autoscaling-describe-adjustment-types-1",
381-
"title": "To describe the Auto Scaling adjustment types"
404+
"title": "To describe the Amazon EC2 Auto Scaling adjustment types"
382405
}
383406
],
384407
"DescribeAutoScalingGroups": [
@@ -498,6 +521,43 @@
498521
"title": "To describe the Auto Scaling notification types"
499522
}
500523
],
524+
"DescribeInstanceRefreshes": [
525+
{
526+
"input": {
527+
"AutoScalingGroupName": "my-auto-scaling-group"
528+
},
529+
"output": {
530+
"InstanceRefreshes": [
531+
{
532+
"AutoScalingGroupName": "my-auto-scaling-group",
533+
"InstanceRefreshId": "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b",
534+
"InstancesToUpdate": 5,
535+
"PercentageComplete": 0,
536+
"StartTime": "2020-06-02T18:11:27Z",
537+
"Status": "InProgress"
538+
},
539+
{
540+
"AutoScalingGroupName": "my-auto-scaling-group",
541+
"EndTime": "2020-06-02T16:53:37Z",
542+
"InstanceRefreshId": "dd7728d0-5bc4-4575-96a3-1b2c52bf8bb1",
543+
"InstancesToUpdate": 0,
544+
"PercentageComplete": 100,
545+
"StartTime": "2020-06-02T16:43:19Z",
546+
"Status": "Successful"
547+
}
548+
]
549+
},
550+
"comments": {
551+
"input": {
552+
},
553+
"output": {
554+
}
555+
},
556+
"description": "This example describes the instance refreshes for the specified Auto Scaling group.",
557+
"id": "to-list-instance-refreshes-1592959593746",
558+
"title": "To list instance refreshes"
559+
}
560+
],
501561
"DescribeLaunchConfigurations": [
502562
{
503563
"input": {
@@ -752,7 +812,7 @@
752812
},
753813
"description": "This example describes the policies for the specified Auto Scaling group.",
754814
"id": "autoscaling-describe-policies-1",
755-
"title": "To describe Auto Scaling policies"
815+
"title": "To describe scaling policies"
756816
}
757817
],
758818
"DescribeScalingActivities": [
@@ -1067,18 +1127,19 @@
10671127
{
10681128
"input": {
10691129
"AutoScalingGroupName": "my-auto-scaling-group",
1070-
"HonorCooldown": true,
1071-
"PolicyName": "ScaleIn"
1130+
"BreachThreshold": 50.0,
1131+
"MetricValue": 59.0,
1132+
"PolicyName": "my-step-scale-out-policy"
10721133
},
10731134
"comments": {
10741135
"input": {
10751136
},
10761137
"output": {
10771138
}
10781139
},
1079-
"description": "This example executes the specified Auto Scaling policy for the specified Auto Scaling group.",
1140+
"description": "This example executes the specified policy.",
10801141
"id": "autoscaling-execute-policy-1",
1081-
"title": "To execute an Auto Scaling policy"
1142+
"title": "To execute a scaling policy"
10821143
}
10831144
],
10841145
"ExitStandby": [
@@ -1157,13 +1218,29 @@
11571218
"PutScalingPolicy": [
11581219
{
11591220
"input": {
1160-
"AdjustmentType": "ChangeInCapacity",
11611221
"AutoScalingGroupName": "my-auto-scaling-group",
1162-
"PolicyName": "ScaleIn",
1163-
"ScalingAdjustment": -1
1222+
"PolicyName": "alb1000-target-tracking-scaling-policy",
1223+
"PolicyType": "TargetTrackingScaling",
1224+
"TargetTrackingConfiguration": {
1225+
"PredefinedMetricSpecification": {
1226+
"PredefinedMetricType": "ALBRequestCountPerTarget",
1227+
"ResourceLabel": "app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d"
1228+
},
1229+
"TargetValue": 1000.0
1230+
}
11641231
},
11651232
"output": {
1166-
"PolicyARN": "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:2233f3d7-6290-403b-b632-93c553560106:autoScalingGroupName/my-auto-scaling-group:policyName/ScaleIn"
1233+
"Alarms": [
1234+
{
1235+
"AlarmARN": "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmHigh-fc0e4183-23ac-497e-9992-691c9980c38e",
1236+
"AlarmName": "TargetTracking-my-asg-AlarmHigh-fc0e4183-23ac-497e-9992-691c9980c38e"
1237+
},
1238+
{
1239+
"AlarmARN": "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmLow-61a39305-ed0c-47af-bd9e-471a352ee1a2",
1240+
"AlarmName": "TargetTracking-my-asg-AlarmLow-61a39305-ed0c-47af-bd9e-471a352ee1a2"
1241+
}
1242+
],
1243+
"PolicyARN": "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:228f02c2-c665-4bfd-aaac-8b04080bea3c:autoScalingGroupName/my-auto-scaling-group:policyName/alb1000-target-tracking-scaling-policy"
11671244
},
11681245
"comments": {
11691246
"input": {
@@ -1308,6 +1385,29 @@
13081385
"title": "To disable instance protection for an instance"
13091386
}
13101387
],
1388+
"StartInstanceRefresh": [
1389+
{
1390+
"input": {
1391+
"AutoScalingGroupName": "my-auto-scaling-group",
1392+
"Preferences": {
1393+
"InstanceWarmup": 400,
1394+
"MinHealthyPercentage": 50
1395+
}
1396+
},
1397+
"output": {
1398+
"InstanceRefreshId": "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b"
1399+
},
1400+
"comments": {
1401+
"input": {
1402+
},
1403+
"output": {
1404+
}
1405+
},
1406+
"description": "This example starts an instance refresh for the specified Auto Scaling group.",
1407+
"id": "to-start-an-instance-refresh-1592957271522",
1408+
"title": "To start an instance refresh"
1409+
}
1410+
],
13111411
"SuspendProcesses": [
13121412
{
13131413
"input": {

0 commit comments

Comments
 (0)