aws-sdk-autoscaling 1.97.0 → 1.99.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbd4f4b1201f4bf39bace51344f38ce9408b899208ddf5ebf24230fbe7af7a70
4
- data.tar.gz: 9b3a681c2d7c16caec73b76cd94deed526e25c369677132c26d1d9e60a5c742a
3
+ metadata.gz: 0f30b1ae7587025c8d1413e3d4a363d171fd06d3c629c484186aecc6ccc92401
4
+ data.tar.gz: 1e4f1648a4797113c935b6cef4747e6a08ac8104d1bb611dc3fb8f7f5226102d
5
5
  SHA512:
6
- metadata.gz: 3487bc1d51db224443712f65a6832e3758271a0df0fb94f9fcd81cedcec8505cfa8d6fbdde06801abc287d4f5e22a4390dddd8285587b84c09d2e284eff219c4
7
- data.tar.gz: 5b24c20d586f67f0fc4b4fb250f6dfe98974426fa513f6280ab3e44b7c79ef7e0c46e9c8b8b4f01f656ba32cc1ca7047f60198e4fa893be0bdb3e8bee8f8f947
6
+ metadata.gz: 13f933dcf1b37109bede3edbc51fcc5c471724835dfeba470160298b64dd519a8c779ca9e171a59adf191e1903925604d053b9f3b7b4cc0dbdbc9339e2f6403d
7
+ data.tar.gz: 469c8e1ad7cefef46704dfc5f2591a99a89137f1338d5da337b1bb68c2d6951cbf9e5aa16c6ec80c9d0430dae6476e1b72b58fdb61060aa102223bfbc4c53c74
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.99.0 (2023-10-12)
5
+ ------------------
6
+
7
+ * Feature - Update the NotificationMetadata field to only allow visible ascii characters. Add paginators to DescribeInstanceRefreshes, DescribeLoadBalancers, and DescribeLoadBalancerTargetGroups
8
+
9
+ 1.98.0 (2023-09-27)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.97.0 (2023-08-03)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.97.0
1
+ 1.99.0
@@ -1576,34 +1576,27 @@ module Aws::AutoScaling
1576
1576
 
1577
1577
  # @example Request syntax with placeholder values
1578
1578
  #
1579
- # load_balancers = auto_scaling_group.load_balancers({
1580
- # next_token: "XmlString",
1581
- # max_records: 1,
1582
- # })
1579
+ # auto_scaling_group.load_balancers()
1583
1580
  # @param [Hash] options ({})
1584
- # @option options [String] :next_token
1585
- # The token for the next set of items to return. (You received this
1586
- # token from a previous call.)
1587
- # @option options [Integer] :max_records
1588
- # The maximum number of items to return with this call. The default
1589
- # value is `100` and the maximum value is `100`.
1590
1581
  # @return [LoadBalancer::Collection]
1591
1582
  def load_balancers(options = {})
1592
1583
  batches = Enumerator.new do |y|
1593
- batch = []
1594
1584
  options = options.merge(auto_scaling_group_name: @name)
1595
1585
  resp = Aws::Plugins::UserAgent.feature('resource') do
1596
1586
  @client.describe_load_balancers(options)
1597
1587
  end
1598
- resp.data.load_balancers.each do |l|
1599
- batch << LoadBalancer.new(
1600
- group_name: @name,
1601
- name: l.load_balancer_name,
1602
- data: l,
1603
- client: @client
1604
- )
1588
+ resp.each_page do |page|
1589
+ batch = []
1590
+ page.data.load_balancers.each do |l|
1591
+ batch << LoadBalancer.new(
1592
+ group_name: @name,
1593
+ name: l.load_balancer_name,
1594
+ data: l,
1595
+ client: @client
1596
+ )
1597
+ end
1598
+ y.yield(batch)
1605
1599
  end
1606
- y.yield(batch)
1607
1600
  end
1608
1601
  LoadBalancer::Collection.new(batches)
1609
1602
  end
@@ -1229,6 +1229,128 @@ module Aws::AutoScaling
1229
1229
  #
1230
1230
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1231
1231
  #
1232
+ #
1233
+ # @example Example: To create an Auto Scaling group
1234
+ #
1235
+ # # This example creates an Auto Scaling group.
1236
+ #
1237
+ # resp = client.create_auto_scaling_group({
1238
+ # auto_scaling_group_name: "my-auto-scaling-group",
1239
+ # default_instance_warmup: 120,
1240
+ # launch_template: {
1241
+ # launch_template_name: "my-template-for-auto-scaling",
1242
+ # version: "$Default",
1243
+ # },
1244
+ # max_instance_lifetime: 2592000,
1245
+ # max_size: 3,
1246
+ # min_size: 1,
1247
+ # vpc_zone_identifier: "subnet-057fa0918fEXAMPLE",
1248
+ # })
1249
+ #
1250
+ # @example Example: To create an Auto Scaling group with an attached target group
1251
+ #
1252
+ # # This example creates an Auto Scaling group and attaches the specified target group.
1253
+ #
1254
+ # resp = client.create_auto_scaling_group({
1255
+ # auto_scaling_group_name: "my-auto-scaling-group",
1256
+ # health_check_grace_period: 300,
1257
+ # health_check_type: "ELB",
1258
+ # launch_template: {
1259
+ # launch_template_name: "my-template-for-auto-scaling",
1260
+ # version: "$Default",
1261
+ # },
1262
+ # max_size: 3,
1263
+ # min_size: 1,
1264
+ # target_group_arns: [
1265
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1266
+ # ],
1267
+ # vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
1268
+ # })
1269
+ #
1270
+ # @example Example: To create an Auto Scaling group with a mixed instances policy
1271
+ #
1272
+ # # This example creates an Auto Scaling group with a mixed instances policy. It specifies the c5.large, c5a.large, and
1273
+ # # c6g.large instance types and defines a different launch template for the c6g.large instance type.
1274
+ #
1275
+ # resp = client.create_auto_scaling_group({
1276
+ # auto_scaling_group_name: "my-asg",
1277
+ # desired_capacity: 3,
1278
+ # max_size: 5,
1279
+ # min_size: 1,
1280
+ # mixed_instances_policy: {
1281
+ # instances_distribution: {
1282
+ # on_demand_base_capacity: 1,
1283
+ # on_demand_percentage_above_base_capacity: 50,
1284
+ # spot_allocation_strategy: "price-capacity-optimized",
1285
+ # },
1286
+ # launch_template: {
1287
+ # launch_template_specification: {
1288
+ # launch_template_name: "my-launch-template-for-x86",
1289
+ # version: "$Default",
1290
+ # },
1291
+ # overrides: [
1292
+ # {
1293
+ # instance_type: "c6g.large",
1294
+ # launch_template_specification: {
1295
+ # launch_template_name: "my-launch-template-for-arm",
1296
+ # version: "$Default",
1297
+ # },
1298
+ # },
1299
+ # {
1300
+ # instance_type: "c5.large",
1301
+ # },
1302
+ # {
1303
+ # instance_type: "c5a.large",
1304
+ # },
1305
+ # ],
1306
+ # },
1307
+ # },
1308
+ # vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
1309
+ # })
1310
+ #
1311
+ # @example Example: To create an Auto Scaling group using attribute-based instance type selection
1312
+ #
1313
+ # # This example creates an Auto Scaling group using attribute-based instance type selection. It requires the instance types
1314
+ # # to have a minimum of four vCPUs and a maximum of eight vCPUs, a minimum of 16,384 MiB of memory, and an Intel
1315
+ # # manufactured CPU.
1316
+ #
1317
+ # resp = client.create_auto_scaling_group({
1318
+ # auto_scaling_group_name: "my-asg",
1319
+ # desired_capacity: 4,
1320
+ # desired_capacity_type: "units",
1321
+ # max_size: 100,
1322
+ # min_size: 0,
1323
+ # mixed_instances_policy: {
1324
+ # instances_distribution: {
1325
+ # on_demand_percentage_above_base_capacity: 50,
1326
+ # spot_allocation_strategy: "price-capacity-optimized",
1327
+ # },
1328
+ # launch_template: {
1329
+ # launch_template_specification: {
1330
+ # launch_template_name: "my-template-for-auto-scaling",
1331
+ # version: "$Default",
1332
+ # },
1333
+ # overrides: [
1334
+ # {
1335
+ # instance_requirements: {
1336
+ # cpu_manufacturers: [
1337
+ # "intel",
1338
+ # ],
1339
+ # memory_mi_b: {
1340
+ # min: 16384,
1341
+ # },
1342
+ # v_cpu_count: {
1343
+ # max: 8,
1344
+ # min: 4,
1345
+ # },
1346
+ # },
1347
+ # },
1348
+ # ],
1349
+ # },
1350
+ # },
1351
+ # vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
1352
+ # })
1353
+ #
1232
1354
  # @example Request syntax with placeholder values
1233
1355
  #
1234
1356
  # resp = client.create_auto_scaling_group({
@@ -1338,7 +1460,7 @@ module Aws::AutoScaling
1338
1460
  # {
1339
1461
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
1340
1462
  # lifecycle_transition: "LifecycleTransition", # required
1341
- # notification_metadata: "XmlStringMaxLen1023",
1463
+ # notification_metadata: "AnyPrintableAsciiStringMaxLen4000",
1342
1464
  # heartbeat_timeout: 1,
1343
1465
  # default_result: "LifecycleActionResult",
1344
1466
  # notification_target_arn: "NotificationTargetResourceName",
@@ -2651,6 +2773,8 @@ module Aws::AutoScaling
2651
2773
  # * {Types::DescribeInstanceRefreshesAnswer#instance_refreshes #instance_refreshes} => Array&lt;Types::InstanceRefresh&gt;
2652
2774
  # * {Types::DescribeInstanceRefreshesAnswer#next_token #next_token} => String
2653
2775
  #
2776
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2777
+ #
2654
2778
  #
2655
2779
  # @example Example: To list instance refreshes
2656
2780
  #
@@ -3109,6 +3233,8 @@ module Aws::AutoScaling
3109
3233
  # * {Types::DescribeLoadBalancerTargetGroupsResponse#load_balancer_target_groups #load_balancer_target_groups} => Array&lt;Types::LoadBalancerTargetGroupState&gt;
3110
3234
  # * {Types::DescribeLoadBalancerTargetGroupsResponse#next_token #next_token} => String
3111
3235
  #
3236
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3237
+ #
3112
3238
  #
3113
3239
  # @example Example: To describe the target groups for an Auto Scaling group
3114
3240
  #
@@ -3213,6 +3339,8 @@ module Aws::AutoScaling
3213
3339
  # * {Types::DescribeLoadBalancersResponse#load_balancers #load_balancers} => Array&lt;Types::LoadBalancerState&gt;
3214
3340
  # * {Types::DescribeLoadBalancersResponse#next_token #next_token} => String
3215
3341
  #
3342
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3343
+ #
3216
3344
  #
3217
3345
  # @example Example: To describe the load balancers for an Auto Scaling group
3218
3346
  #
@@ -5122,7 +5250,7 @@ module Aws::AutoScaling
5122
5250
  # lifecycle_transition: "LifecycleTransition",
5123
5251
  # role_arn: "XmlStringMaxLen255",
5124
5252
  # notification_target_arn: "NotificationTargetResourceName",
5125
- # notification_metadata: "XmlStringMaxLen1023",
5253
+ # notification_metadata: "AnyPrintableAsciiStringMaxLen4000",
5126
5254
  # heartbeat_timeout: 1,
5127
5255
  # default_result: "LifecycleActionResult",
5128
5256
  # })
@@ -7007,7 +7135,7 @@ module Aws::AutoScaling
7007
7135
  params: params,
7008
7136
  config: config)
7009
7137
  context[:gem_name] = 'aws-sdk-autoscaling'
7010
- context[:gem_version] = '1.97.0'
7138
+ context[:gem_version] = '1.99.0'
7011
7139
  Seahorse::Client::Request.new(handlers, context)
7012
7140
  end
7013
7141
 
@@ -36,6 +36,7 @@ module Aws::AutoScaling
36
36
  AllowedInstanceType = Shapes::StringShape.new(name: 'AllowedInstanceType')
37
37
  AllowedInstanceTypes = Shapes::ListShape.new(name: 'AllowedInstanceTypes')
38
38
  AlreadyExistsFault = Shapes::StructureShape.new(name: 'AlreadyExistsFault')
39
+ AnyPrintableAsciiStringMaxLen4000 = Shapes::StringShape.new(name: 'AnyPrintableAsciiStringMaxLen4000')
39
40
  AsciiStringMaxLen255 = Shapes::StringShape.new(name: 'AsciiStringMaxLen255')
40
41
  AssociatePublicIpAddress = Shapes::BooleanShape.new(name: 'AssociatePublicIpAddress')
41
42
  AttachInstancesQuery = Shapes::StructureShape.new(name: 'AttachInstancesQuery')
@@ -1067,7 +1068,7 @@ module Aws::AutoScaling
1067
1068
  LifecycleHook.add_member(:lifecycle_transition, Shapes::ShapeRef.new(shape: LifecycleTransition, location_name: "LifecycleTransition"))
1068
1069
  LifecycleHook.add_member(:notification_target_arn, Shapes::ShapeRef.new(shape: NotificationTargetResourceName, location_name: "NotificationTargetARN"))
1069
1070
  LifecycleHook.add_member(:role_arn, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "RoleARN"))
1070
- LifecycleHook.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "NotificationMetadata"))
1071
+ LifecycleHook.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: AnyPrintableAsciiStringMaxLen4000, location_name: "NotificationMetadata"))
1071
1072
  LifecycleHook.add_member(:heartbeat_timeout, Shapes::ShapeRef.new(shape: HeartbeatTimeout, location_name: "HeartbeatTimeout"))
1072
1073
  LifecycleHook.add_member(:global_timeout, Shapes::ShapeRef.new(shape: GlobalTimeout, location_name: "GlobalTimeout"))
1073
1074
  LifecycleHook.add_member(:default_result, Shapes::ShapeRef.new(shape: LifecycleActionResult, location_name: "DefaultResult"))
@@ -1077,7 +1078,7 @@ module Aws::AutoScaling
1077
1078
 
1078
1079
  LifecycleHookSpecification.add_member(:lifecycle_hook_name, Shapes::ShapeRef.new(shape: AsciiStringMaxLen255, required: true, location_name: "LifecycleHookName"))
1079
1080
  LifecycleHookSpecification.add_member(:lifecycle_transition, Shapes::ShapeRef.new(shape: LifecycleTransition, required: true, location_name: "LifecycleTransition"))
1080
- LifecycleHookSpecification.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "NotificationMetadata"))
1081
+ LifecycleHookSpecification.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: AnyPrintableAsciiStringMaxLen4000, location_name: "NotificationMetadata"))
1081
1082
  LifecycleHookSpecification.add_member(:heartbeat_timeout, Shapes::ShapeRef.new(shape: HeartbeatTimeout, location_name: "HeartbeatTimeout"))
1082
1083
  LifecycleHookSpecification.add_member(:default_result, Shapes::ShapeRef.new(shape: LifecycleActionResult, location_name: "DefaultResult"))
1083
1084
  LifecycleHookSpecification.add_member(:notification_target_arn, Shapes::ShapeRef.new(shape: NotificationTargetResourceName, location_name: "NotificationTargetARN"))
@@ -1256,7 +1257,7 @@ module Aws::AutoScaling
1256
1257
  PutLifecycleHookType.add_member(:lifecycle_transition, Shapes::ShapeRef.new(shape: LifecycleTransition, location_name: "LifecycleTransition"))
1257
1258
  PutLifecycleHookType.add_member(:role_arn, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "RoleARN"))
1258
1259
  PutLifecycleHookType.add_member(:notification_target_arn, Shapes::ShapeRef.new(shape: NotificationTargetResourceName, location_name: "NotificationTargetARN"))
1259
- PutLifecycleHookType.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "NotificationMetadata"))
1260
+ PutLifecycleHookType.add_member(:notification_metadata, Shapes::ShapeRef.new(shape: AnyPrintableAsciiStringMaxLen4000, location_name: "NotificationMetadata"))
1260
1261
  PutLifecycleHookType.add_member(:heartbeat_timeout, Shapes::ShapeRef.new(shape: HeartbeatTimeout, location_name: "HeartbeatTimeout"))
1261
1262
  PutLifecycleHookType.add_member(:default_result, Shapes::ShapeRef.new(shape: LifecycleActionResult, location_name: "DefaultResult"))
1262
1263
  PutLifecycleHookType.struct_class = Types::PutLifecycleHookType
@@ -1828,6 +1829,12 @@ module Aws::AutoScaling
1828
1829
  o.output = Shapes::ShapeRef.new(shape: DescribeInstanceRefreshesAnswer)
1829
1830
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1830
1831
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1832
+ o[:pager] = Aws::Pager.new(
1833
+ limit_key: "max_records",
1834
+ tokens: {
1835
+ "next_token" => "next_token"
1836
+ }
1837
+ )
1831
1838
  end)
1832
1839
 
1833
1840
  api.add_operation(:describe_launch_configurations, Seahorse::Model::Operation.new.tap do |o|
@@ -1872,6 +1879,12 @@ module Aws::AutoScaling
1872
1879
  o.output = Shapes::ShapeRef.new(shape: DescribeLoadBalancerTargetGroupsResponse)
1873
1880
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1874
1881
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1882
+ o[:pager] = Aws::Pager.new(
1883
+ limit_key: "max_records",
1884
+ tokens: {
1885
+ "next_token" => "next_token"
1886
+ }
1887
+ )
1875
1888
  end)
1876
1889
 
1877
1890
  api.add_operation(:describe_load_balancers, Seahorse::Model::Operation.new.tap do |o|
@@ -1882,6 +1895,12 @@ module Aws::AutoScaling
1882
1895
  o.output = Shapes::ShapeRef.new(shape: DescribeLoadBalancersResponse)
1883
1896
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1884
1897
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
1898
+ o[:pager] = Aws::Pager.new(
1899
+ limit_key: "max_records",
1900
+ tokens: {
1901
+ "next_token" => "next_token"
1902
+ }
1903
+ )
1885
1904
  end)
1886
1905
 
1887
1906
  api.add_operation(:describe_metric_collection_types, Seahorse::Model::Operation.new.tap do |o|
@@ -294,7 +294,7 @@ module Aws::AutoScaling
294
294
  # lifecycle_transition: "LifecycleTransition",
295
295
  # role_arn: "XmlStringMaxLen255",
296
296
  # notification_target_arn: "NotificationTargetResourceName",
297
- # notification_metadata: "XmlStringMaxLen1023",
297
+ # notification_metadata: "AnyPrintableAsciiStringMaxLen4000",
298
298
  # heartbeat_timeout: 1,
299
299
  # default_result: "LifecycleActionResult",
300
300
  # })
@@ -144,7 +144,7 @@ module Aws::AutoScaling
144
144
  # {
145
145
  # lifecycle_hook_name: "AsciiStringMaxLen255", # required
146
146
  # lifecycle_transition: "LifecycleTransition", # required
147
- # notification_metadata: "XmlStringMaxLen1023",
147
+ # notification_metadata: "AnyPrintableAsciiStringMaxLen4000",
148
148
  # heartbeat_timeout: 1,
149
149
  # default_result: "LifecycleActionResult",
150
150
  # notification_target_arn: "NotificationTargetResourceName",
@@ -63,6 +63,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
63
63
  # @!group service
64
64
  module Aws::AutoScaling
65
65
 
66
- GEM_VERSION = '1.97.0'
66
+ GEM_VERSION = '1.99.0'
67
67
 
68
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-autoscaling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.97.0
4
+ version: 1.99.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-03 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.177.0
22
+ version: 3.184.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.177.0
32
+ version: 3.184.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement