aws-sdk-ec2 1.546.0 → 1.548.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.
@@ -4101,6 +4101,7 @@ module Aws::EC2
4101
4101
  AssociateRouteServerResult.struct_class = Types::AssociateRouteServerResult
4102
4102
 
4103
4103
  AssociateRouteTableRequest.add_member(:gateway_id, Shapes::ShapeRef.new(shape: RouteGatewayId, location_name: "GatewayId"))
4104
+ AssociateRouteTableRequest.add_member(:public_ipv_4_pool, Shapes::ShapeRef.new(shape: Ipv4PoolEc2Id, location_name: "PublicIpv4Pool"))
4104
4105
  AssociateRouteTableRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
4105
4106
  AssociateRouteTableRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "subnetId"))
4106
4107
  AssociateRouteTableRequest.add_member(:route_table_id, Shapes::ShapeRef.new(shape: RouteTableId, required: true, location_name: "routeTableId"))
@@ -5235,9 +5236,10 @@ module Aws::EC2
5235
5236
  CreateCustomerGatewayResult.add_member(:customer_gateway, Shapes::ShapeRef.new(shape: CustomerGateway, location_name: "customerGateway"))
5236
5237
  CreateCustomerGatewayResult.struct_class = Types::CreateCustomerGatewayResult
5237
5238
 
5238
- CreateDefaultSubnetRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZoneName, required: true, location_name: "AvailabilityZone"))
5239
+ CreateDefaultSubnetRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZoneName, location_name: "AvailabilityZone"))
5239
5240
  CreateDefaultSubnetRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
5240
5241
  CreateDefaultSubnetRequest.add_member(:ipv_6_native, Shapes::ShapeRef.new(shape: Boolean, location_name: "Ipv6Native"))
5242
+ CreateDefaultSubnetRequest.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "AvailabilityZoneId"))
5241
5243
  CreateDefaultSubnetRequest.struct_class = Types::CreateDefaultSubnetRequest
5242
5244
 
5243
5245
  CreateDefaultSubnetResult.add_member(:subnet, Shapes::ShapeRef.new(shape: Subnet, location_name: "subnet"))
@@ -6197,7 +6199,8 @@ module Aws::EC2
6197
6199
  CreateVolumePermissionModifications.add_member(:remove, Shapes::ShapeRef.new(shape: CreateVolumePermissionList, location_name: "Remove"))
6198
6200
  CreateVolumePermissionModifications.struct_class = Types::CreateVolumePermissionModifications
6199
6201
 
6200
- CreateVolumeRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZoneName, required: true, location_name: "AvailabilityZone"))
6202
+ CreateVolumeRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZoneName, location_name: "AvailabilityZone"))
6203
+ CreateVolumeRequest.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "AvailabilityZoneId"))
6201
6204
  CreateVolumeRequest.add_member(:encrypted, Shapes::ShapeRef.new(shape: Boolean, location_name: "encrypted"))
6202
6205
  CreateVolumeRequest.add_member(:iops, Shapes::ShapeRef.new(shape: Integer, location_name: "Iops"))
6203
6206
  CreateVolumeRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
@@ -8425,6 +8428,7 @@ module Aws::EC2
8425
8428
  DescribeSpotInstanceRequestsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
8426
8429
  DescribeSpotInstanceRequestsResult.struct_class = Types::DescribeSpotInstanceRequestsResult
8427
8430
 
8431
+ DescribeSpotPriceHistoryRequest.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "AvailabilityZoneId"))
8428
8432
  DescribeSpotPriceHistoryRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
8429
8433
  DescribeSpotPriceHistoryRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "startTime"))
8430
8434
  DescribeSpotPriceHistoryRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "endTime"))
@@ -11073,6 +11077,7 @@ module Aws::EC2
11073
11077
  ImportInstanceTaskDetails.struct_class = Types::ImportInstanceTaskDetails
11074
11078
 
11075
11079
  ImportInstanceVolumeDetailItem.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
11080
+ ImportInstanceVolumeDetailItem.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZoneId"))
11076
11081
  ImportInstanceVolumeDetailItem.add_member(:bytes_converted, Shapes::ShapeRef.new(shape: Long, location_name: "bytesConverted"))
11077
11082
  ImportInstanceVolumeDetailItem.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
11078
11083
  ImportInstanceVolumeDetailItem.add_member(:image, Shapes::ShapeRef.new(shape: DiskImageDescription, location_name: "image"))
@@ -11124,8 +11129,9 @@ module Aws::EC2
11124
11129
 
11125
11130
  ImportTaskIdList.member = Shapes::ShapeRef.new(shape: ImportImageTaskId, location_name: "ImportTaskId")
11126
11131
 
11132
+ ImportVolumeRequest.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "AvailabilityZoneId"))
11127
11133
  ImportVolumeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
11128
- ImportVolumeRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, required: true, location_name: "availabilityZone"))
11134
+ ImportVolumeRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
11129
11135
  ImportVolumeRequest.add_member(:image, Shapes::ShapeRef.new(shape: DiskImageDetail, required: true, location_name: "image"))
11130
11136
  ImportVolumeRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
11131
11137
  ImportVolumeRequest.add_member(:volume, Shapes::ShapeRef.new(shape: VolumeDetail, required: true, location_name: "volume"))
@@ -11135,6 +11141,7 @@ module Aws::EC2
11135
11141
  ImportVolumeResult.struct_class = Types::ImportVolumeResult
11136
11142
 
11137
11143
  ImportVolumeTaskDetails.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
11144
+ ImportVolumeTaskDetails.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZoneId"))
11138
11145
  ImportVolumeTaskDetails.add_member(:bytes_converted, Shapes::ShapeRef.new(shape: Long, location_name: "bytesConverted"))
11139
11146
  ImportVolumeTaskDetails.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
11140
11147
  ImportVolumeTaskDetails.add_member(:image, Shapes::ShapeRef.new(shape: DiskImageDescription, location_name: "image"))
@@ -11593,6 +11600,7 @@ module Aws::EC2
11593
11600
  InstanceStateChangeList.member = Shapes::ShapeRef.new(shape: InstanceStateChange, location_name: "item")
11594
11601
 
11595
11602
  InstanceStatus.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
11603
+ InstanceStatus.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "availabilityZoneId"))
11596
11604
  InstanceStatus.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: String, location_name: "outpostArn"))
11597
11605
  InstanceStatus.add_member(:operator, Shapes::ShapeRef.new(shape: OperatorResponse, location_name: "operator"))
11598
11606
  InstanceStatus.add_member(:events, Shapes::ShapeRef.new(shape: InstanceStatusEventList, location_name: "eventsSet"))
@@ -12370,6 +12378,7 @@ module Aws::EC2
12370
12378
  LaunchTemplateOverridesList.member = Shapes::ShapeRef.new(shape: LaunchTemplateOverrides, location_name: "item")
12371
12379
 
12372
12380
  LaunchTemplatePlacement.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
12381
+ LaunchTemplatePlacement.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "availabilityZoneId"))
12373
12382
  LaunchTemplatePlacement.add_member(:affinity, Shapes::ShapeRef.new(shape: String, location_name: "affinity"))
12374
12383
  LaunchTemplatePlacement.add_member(:group_name, Shapes::ShapeRef.new(shape: String, location_name: "groupName"))
12375
12384
  LaunchTemplatePlacement.add_member(:host_id, Shapes::ShapeRef.new(shape: String, location_name: "hostId"))
@@ -12381,6 +12390,7 @@ module Aws::EC2
12381
12390
  LaunchTemplatePlacement.struct_class = Types::LaunchTemplatePlacement
12382
12391
 
12383
12392
  LaunchTemplatePlacementRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "AvailabilityZone"))
12393
+ LaunchTemplatePlacementRequest.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "AvailabilityZoneId"))
12384
12394
  LaunchTemplatePlacementRequest.add_member(:affinity, Shapes::ShapeRef.new(shape: String, location_name: "Affinity"))
12385
12395
  LaunchTemplatePlacementRequest.add_member(:group_name, Shapes::ShapeRef.new(shape: PlacementGroupName, location_name: "GroupName"))
12386
12396
  LaunchTemplatePlacementRequest.add_member(:host_id, Shapes::ShapeRef.new(shape: DedicatedHostId, location_name: "HostId"))
@@ -14172,6 +14182,7 @@ module Aws::EC2
14172
14182
  Phase2IntegrityAlgorithmsRequestListValue.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
14173
14183
  Phase2IntegrityAlgorithmsRequestListValue.struct_class = Types::Phase2IntegrityAlgorithmsRequestListValue
14174
14184
 
14185
+ Placement.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: AvailabilityZoneId, location_name: "availabilityZoneId"))
14175
14186
  Placement.add_member(:affinity, Shapes::ShapeRef.new(shape: String, location_name: "affinity"))
14176
14187
  Placement.add_member(:group_name, Shapes::ShapeRef.new(shape: PlacementGroupName, location_name: "groupName"))
14177
14188
  Placement.add_member(:partition_number, Shapes::ShapeRef.new(shape: Integer, location_name: "partitionNumber"))
@@ -15348,6 +15359,7 @@ module Aws::EC2
15348
15359
  RouteTableAssociation.add_member(:route_table_id, Shapes::ShapeRef.new(shape: String, location_name: "routeTableId"))
15349
15360
  RouteTableAssociation.add_member(:subnet_id, Shapes::ShapeRef.new(shape: String, location_name: "subnetId"))
15350
15361
  RouteTableAssociation.add_member(:gateway_id, Shapes::ShapeRef.new(shape: String, location_name: "gatewayId"))
15362
+ RouteTableAssociation.add_member(:public_ipv_4_pool, Shapes::ShapeRef.new(shape: String, location_name: "publicIpv4Pool"))
15351
15363
  RouteTableAssociation.add_member(:association_state, Shapes::ShapeRef.new(shape: RouteTableAssociationState, location_name: "associationState"))
15352
15364
  RouteTableAssociation.struct_class = Types::RouteTableAssociation
15353
15365
 
@@ -15709,6 +15721,7 @@ module Aws::EC2
15709
15721
  ServiceConfiguration.add_member(:service_id, Shapes::ShapeRef.new(shape: String, location_name: "serviceId"))
15710
15722
  ServiceConfiguration.add_member(:service_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceName"))
15711
15723
  ServiceConfiguration.add_member(:service_state, Shapes::ShapeRef.new(shape: ServiceState, location_name: "serviceState"))
15724
+ ServiceConfiguration.add_member(:availability_zone_ids, Shapes::ShapeRef.new(shape: ValueStringList, location_name: "availabilityZoneIdSet"))
15712
15725
  ServiceConfiguration.add_member(:availability_zones, Shapes::ShapeRef.new(shape: ValueStringList, location_name: "availabilityZoneSet"))
15713
15726
  ServiceConfiguration.add_member(:acceptance_required, Shapes::ShapeRef.new(shape: Boolean, location_name: "acceptanceRequired"))
15714
15727
  ServiceConfiguration.add_member(:manages_vpc_endpoints, Shapes::ShapeRef.new(shape: Boolean, location_name: "managesVpcEndpoints"))
@@ -15730,6 +15743,7 @@ module Aws::EC2
15730
15743
  ServiceDetail.add_member(:service_id, Shapes::ShapeRef.new(shape: String, location_name: "serviceId"))
15731
15744
  ServiceDetail.add_member(:service_type, Shapes::ShapeRef.new(shape: ServiceTypeDetailSet, location_name: "serviceType"))
15732
15745
  ServiceDetail.add_member(:service_region, Shapes::ShapeRef.new(shape: String, location_name: "serviceRegion"))
15746
+ ServiceDetail.add_member(:availability_zone_ids, Shapes::ShapeRef.new(shape: ValueStringList, location_name: "availabilityZoneIdSet"))
15733
15747
  ServiceDetail.add_member(:availability_zones, Shapes::ShapeRef.new(shape: ValueStringList, location_name: "availabilityZoneSet"))
15734
15748
  ServiceDetail.add_member(:owner, Shapes::ShapeRef.new(shape: String, location_name: "owner"))
15735
15749
  ServiceDetail.add_member(:base_endpoint_dns_names, Shapes::ShapeRef.new(shape: ValueStringList, location_name: "baseEndpointDnsNameSet"))
@@ -15969,6 +15983,7 @@ module Aws::EC2
15969
15983
  SpotInstanceRequest.add_member(:launch_group, Shapes::ShapeRef.new(shape: String, location_name: "launchGroup"))
15970
15984
  SpotInstanceRequest.add_member(:launch_specification, Shapes::ShapeRef.new(shape: LaunchSpecification, location_name: "launchSpecification"))
15971
15985
  SpotInstanceRequest.add_member(:launched_availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "launchedAvailabilityZone"))
15986
+ SpotInstanceRequest.add_member(:launched_availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "launchedAvailabilityZoneId"))
15972
15987
  SpotInstanceRequest.add_member(:product_description, Shapes::ShapeRef.new(shape: RIProductDescription, location_name: "productDescription"))
15973
15988
  SpotInstanceRequest.add_member(:spot_instance_request_id, Shapes::ShapeRef.new(shape: String, location_name: "spotInstanceRequestId"))
15974
15989
  SpotInstanceRequest.add_member(:spot_price, Shapes::ShapeRef.new(shape: String, location_name: "spotPrice"))
@@ -16037,6 +16052,7 @@ module Aws::EC2
16037
16052
  SpotPlacementScores.member = Shapes::ShapeRef.new(shape: SpotPlacementScore, location_name: "item")
16038
16053
 
16039
16054
  SpotPrice.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
16055
+ SpotPrice.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZoneId"))
16040
16056
  SpotPrice.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "instanceType"))
16041
16057
  SpotPrice.add_member(:product_description, Shapes::ShapeRef.new(shape: RIProductDescription, location_name: "productDescription"))
16042
16058
  SpotPrice.add_member(:spot_price, Shapes::ShapeRef.new(shape: String, location_name: "spotPrice"))
@@ -17213,6 +17229,7 @@ module Aws::EC2
17213
17229
 
17214
17230
  VirtualizationTypeSet.member = Shapes::ShapeRef.new(shape: VirtualizationType, location_name: "item")
17215
17231
 
17232
+ Volume.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZoneId"))
17216
17233
  Volume.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: String, location_name: "outpostArn"))
17217
17234
  Volume.add_member(:iops, Shapes::ShapeRef.new(shape: Integer, location_name: "iops"))
17218
17235
  Volume.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
@@ -1728,6 +1728,9 @@ module Aws::EC2
1728
1728
  # * `availability-zone` - The Availability Zone in which the volume was
1729
1729
  # created.
1730
1730
  #
1731
+ # * `availability-zone-id` - The ID of the Availability Zone in which
1732
+ # the volume was created.
1733
+ #
1731
1734
  # * `create-time` - The time stamp when the volume was created.
1732
1735
  #
1733
1736
  # * `encrypted` - Indicates whether the volume is encrypted (`true` \|
@@ -272,6 +272,9 @@ module Aws::EC2
272
272
  #
273
273
  # * `availability-zone` - The Availability Zone of the instance.
274
274
  #
275
+ # * `availability-zone-id` - The ID of the Availability Zone of the
276
+ # instance.
277
+ #
275
278
  # * `block-device-mapping.attach-time` - The attach time for an EBS
276
279
  # volume mapped to the instance, for example,
277
280
  # `2022-09-15T17:15:20.000Z`.
@@ -120,6 +120,7 @@ module Aws::EC2
120
120
  # enabled: false, # required
121
121
  # },
122
122
  # placement: {
123
+ # availability_zone_id: "AvailabilityZoneId",
123
124
  # affinity: "String",
124
125
  # group_name: "PlacementGroupName",
125
126
  # partition_number: 1,
@@ -1447,7 +1448,8 @@ module Aws::EC2
1447
1448
  # @example Request syntax with placeholder values
1448
1449
  #
1449
1450
  # volume = ec2.create_volume({
1450
- # availability_zone: "AvailabilityZoneName", # required
1451
+ # availability_zone: "AvailabilityZoneName",
1452
+ # availability_zone_id: "AvailabilityZoneId",
1451
1453
  # encrypted: false,
1452
1454
  # iops: 1,
1453
1455
  # kms_key_id: "KmsKeyId",
@@ -1476,9 +1478,18 @@ module Aws::EC2
1476
1478
  # dry_run: false,
1477
1479
  # })
1478
1480
  # @param [Hash] options ({})
1479
- # @option options [required, String] :availability_zone
1481
+ # @option options [String] :availability_zone
1480
1482
  # The ID of the Availability Zone in which to create the volume. For
1481
1483
  # example, `us-east-1a`.
1484
+ #
1485
+ # Either `AvailabilityZone` or `AvailabilityZoneId` must be specified,
1486
+ # but not both.
1487
+ # @option options [String] :availability_zone_id
1488
+ # The ID of the Availability Zone in which to create the volume. For
1489
+ # example, `use1-az1`.
1490
+ #
1491
+ # Either `AvailabilityZone` or `AvailabilityZoneId` must be specified,
1492
+ # but not both.
1482
1493
  # @option options [Boolean] :encrypted
1483
1494
  # Indicates whether the volume should be encrypted. The effect of
1484
1495
  # setting the encryption state to `true` depends on the volume origin
@@ -2522,6 +2533,9 @@ module Aws::EC2
2522
2533
  #
2523
2534
  # * `availability-zone` - The Availability Zone of the instance.
2524
2535
  #
2536
+ # * `availability-zone-id` - The ID of the Availability Zone of the
2537
+ # instance.
2538
+ #
2525
2539
  # * `block-device-mapping.attach-time` - The attach time for an EBS
2526
2540
  # volume mapped to the instance, for example,
2527
2541
  # `2022-09-15T17:15:20.000Z`.
@@ -4137,6 +4151,9 @@ module Aws::EC2
4137
4151
  # * `availability-zone` - The Availability Zone in which the volume was
4138
4152
  # created.
4139
4153
  #
4154
+ # * `availability-zone-id` - The ID of the Availability Zone in which
4155
+ # the volume was created.
4156
+ #
4140
4157
  # * `create-time` - The time stamp when the volume was created.
4141
4158
  #
4142
4159
  # * `encrypted` - Indicates whether the volume is encrypted (`true` \|
@@ -201,12 +201,16 @@ module Aws::EC2
201
201
  #
202
202
  # routetableassociation = route_table.associate_with_subnet({
203
203
  # gateway_id: "RouteGatewayId",
204
+ # public_ipv_4_pool: "Ipv4PoolEc2Id",
204
205
  # dry_run: false,
205
206
  # subnet_id: "SubnetId",
206
207
  # })
207
208
  # @param [Hash] options ({})
208
209
  # @option options [String] :gateway_id
209
210
  # The ID of the internet gateway or virtual private gateway.
211
+ # @option options [String] :public_ipv_4_pool
212
+ # The ID of a public IPv4 pool. A public IPv4 pool is a pool of IPv4
213
+ # addresses that you've brought to Amazon Web Services with BYOIP.
210
214
  # @option options [Boolean] :dry_run
211
215
  # Checks whether you have the required permissions for the action,
212
216
  # without actually making the request, and provides an error response.
@@ -60,6 +60,13 @@ module Aws::EC2
60
60
  data[:gateway_id]
61
61
  end
62
62
 
63
+ # The ID of a public IPv4 pool. A public IPv4 pool is a pool of IPv4
64
+ # addresses that you've brought to Amazon Web Services with BYOIP.
65
+ # @return [String]
66
+ def public_ipv_4_pool
67
+ data[:public_ipv_4_pool]
68
+ end
69
+
63
70
  # The state of the association.
64
71
  # @return [Types::RouteTableAssociationState]
65
72
  def association_state
@@ -382,6 +382,7 @@ module Aws::EC2
382
382
  # enabled: false, # required
383
383
  # },
384
384
  # placement: {
385
+ # availability_zone_id: "AvailabilityZoneId",
385
386
  # affinity: "String",
386
387
  # group_name: "PlacementGroupName",
387
388
  # partition_number: 1,
@@ -1207,6 +1208,9 @@ module Aws::EC2
1207
1208
  #
1208
1209
  # * `availability-zone` - The Availability Zone of the instance.
1209
1210
  #
1211
+ # * `availability-zone-id` - The ID of the Availability Zone of the
1212
+ # instance.
1213
+ #
1210
1214
  # * `block-device-mapping.attach-time` - The attach time for an EBS
1211
1215
  # volume mapped to the instance, for example,
1212
1216
  # `2022-09-15T17:15:20.000Z`.