aws-sdk-ec2 1.560.0 → 1.625.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.
@@ -13,22 +13,22 @@ module Aws::EC2
13
13
  # @!attribute region
14
14
  # The AWS region used to dispatch the request.
15
15
  #
16
- # @return [String]
16
+ # @return [string]
17
17
  #
18
18
  # @!attribute use_dual_stack
19
19
  # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
20
  #
21
- # @return [Boolean]
21
+ # @return [boolean]
22
22
  #
23
23
  # @!attribute use_fips
24
24
  # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
25
  #
26
- # @return [Boolean]
26
+ # @return [boolean]
27
27
  #
28
28
  # @!attribute endpoint
29
29
  # Override the endpoint used to send this request
30
30
  #
31
- # @return [String]
31
+ # @return [string]
32
32
  #
33
33
  EndpointParameters = Struct.new(
34
34
  :region,
@@ -264,6 +264,12 @@ module Aws::EC2
264
264
  data[:free_tier_eligible]
265
265
  end
266
266
 
267
+ # The watermarks attached to the AMI.
268
+ # @return [Array<Types::ImageWatermark>]
269
+ def image_watermarks
270
+ data[:image_watermarks]
271
+ end
272
+
267
273
  # The location of the AMI.
268
274
  # @return [String]
269
275
  def image_location
@@ -330,6 +330,12 @@ module Aws::EC2
330
330
  data[:operator]
331
331
  end
332
332
 
333
+ # The secondary interfaces for the instance.
334
+ # @return [Array<Types::InstanceSecondaryInterface>]
335
+ def secondary_interfaces
336
+ data[:secondary_interfaces]
337
+ end
338
+
333
339
  # The ID of the AMI used to launch the instance.
334
340
  # @return [String]
335
341
  def image_id
@@ -733,6 +739,7 @@ module Aws::EC2
733
739
  # instance.attach_volume({
734
740
  # device: "String", # required
735
741
  # volume_id: "VolumeId", # required
742
+ # ebs_card_index: 1,
736
743
  # dry_run: false,
737
744
  # })
738
745
  # @param [Hash] options ({})
@@ -741,6 +748,9 @@ module Aws::EC2
741
748
  # @option options [required, String] :volume_id
742
749
  # The ID of the EBS volume. The volume and instance must be within the
743
750
  # same Availability Zone.
751
+ # @option options [Integer] :ebs_card_index
752
+ # The index of the EBS card. Some instance types support multiple EBS
753
+ # cards. The default EBS card index is 0.
744
754
  # @option options [Boolean] :dry_run
745
755
  # Checks whether you have the required permissions for the action,
746
756
  # without actually making the request, and provides an error response.
@@ -785,7 +795,7 @@ module Aws::EC2
785
795
  # image = instance.create_image({
786
796
  # tag_specifications: [
787
797
  # {
788
- # resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, declarative-policies-report, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, image-usage-report, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, outpost-lag, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, service-link-virtual-interface, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, route-server, route-server-endpoint, route-server-peer, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, verified-access-endpoint-target, ipam-external-resource-verification-token, capacity-block, mac-modification-task
798
+ # resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, declarative-policies-report, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, image-usage-report, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, outpost-lag, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, service-link-virtual-interface, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-metering-policy, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, vpc-encryption-control, route-server, route-server-endpoint, route-server-peer, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, verified-access-endpoint-target, ipam-external-resource-verification-token, capacity-block, mac-modification-task, ipam-prefix-list-resolver, ipam-policy, ipam-prefix-list-resolver-target, secondary-interface, secondary-network, secondary-subnet, capacity-manager-data-export, vpn-concentrator, ipam-pool-allocation, capacity-reservation-cancellation-quote
789
799
  # tags: [
790
800
  # {
791
801
  # key: "String",
@@ -796,8 +806,8 @@ module Aws::EC2
796
806
  # ],
797
807
  # snapshot_location: "regional", # accepts regional, local
798
808
  # dry_run: false,
799
- # name: "String", # required
800
- # description: "String",
809
+ # name: "ImageNameRequest", # required
810
+ # description: "ImageDescriptionRequest",
801
811
  # no_reboot: false,
802
812
  # block_device_mappings: [
803
813
  # {
@@ -814,6 +824,7 @@ module Aws::EC2
814
824
  # encrypted: false,
815
825
  # volume_initialization_rate: 1,
816
826
  # availability_zone_id: "String",
827
+ # ebs_card_index: 1,
817
828
  # },
818
829
  # no_device: "String",
819
830
  # device_name: "String",
@@ -1089,12 +1100,15 @@ module Aws::EC2
1089
1100
  # source_dest_check: {
1090
1101
  # value: false,
1091
1102
  # },
1103
+ # enclave_options: {
1104
+ # enabled: false,
1105
+ # },
1092
1106
  # disable_api_stop: {
1093
1107
  # value: false,
1094
1108
  # },
1095
1109
  # dry_run: false,
1096
1110
  # attribute: "instanceType", # accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions, disableApiStop
1097
- # value: "String",
1111
+ # value: "ModifyInstanceAttributeValue",
1098
1112
  # block_device_mappings: [
1099
1113
  # {
1100
1114
  # device_name: "String",
@@ -1133,6 +1147,14 @@ module Aws::EC2
1133
1147
  # enabled; otherwise, they are disabled. The default value is `true`.
1134
1148
  # You must disable source/destination checks if the instance runs
1135
1149
  # services such as network address translation, routing, or firewalls.
1150
+ # @option options [Types::EnclaveOptionsRequest] :enclave_options
1151
+ # Enables or disables the instance for Amazon Web Services Nitro
1152
+ # Enclaves. For more information, see the [Amazon Web Services Nitro
1153
+ # Enclaves User Guide][1].
1154
+ #
1155
+ #
1156
+ #
1157
+ # [1]: https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html
1136
1158
  # @option options [Types::AttributeBooleanValue] :disable_api_stop
1137
1159
  # Indicates whether an instance is enabled for stop protection. For more
1138
1160
  # information, see [Enable stop protection for your instance][1].
@@ -1214,7 +1236,7 @@ module Aws::EC2
1214
1236
  #
1215
1237
  #
1216
1238
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html
1217
- # @option options [Types::BlobAttributeValue] :user_data
1239
+ # @option options [Types::SecureBlobAttributeValue] :user_data
1218
1240
  # Changes the instance's user data to the specified value. User data
1219
1241
  # must be base64-encoded. Depending on the tool or SDK that you're
1220
1242
  # using, the base64-encoding might be performed for you. For more
@@ -1690,6 +1712,7 @@ module Aws::EC2
1690
1712
  #
1691
1713
  # volumes = instance.volumes({
1692
1714
  # volume_ids: ["VolumeId"],
1715
+ # include_managed_resources: false,
1693
1716
  # dry_run: false,
1694
1717
  # filters: [
1695
1718
  # {
@@ -1702,6 +1725,11 @@ module Aws::EC2
1702
1725
  # @option options [Array<String>] :volume_ids
1703
1726
  # The volume IDs. If not specified, then all volumes are included in the
1704
1727
  # response.
1728
+ # @option options [Boolean] :include_managed_resources
1729
+ # Indicates whether to include managed resources in the output. If this
1730
+ # parameter is set to `true`, the output includes resources that are
1731
+ # managed by Amazon Web Services services, even if managed resource
1732
+ # visibility is set to hidden.
1705
1733
  # @option options [Boolean] :dry_run
1706
1734
  # Checks whether you have the required permissions for the action,
1707
1735
  # without actually making the request, and provides an error response.
@@ -148,6 +148,78 @@ module Aws::EC2
148
148
  data[:connectivity_type]
149
149
  end
150
150
 
151
+ # Indicates whether this is a zonal (single-AZ) or regional (multi-AZ)
152
+ # NAT gateway.
153
+ #
154
+ # A zonal NAT gateway is a NAT Gateway that provides redundancy and
155
+ # scalability within a single availability zone. A regional NAT gateway
156
+ # is a single NAT Gateway that works across multiple availability zones
157
+ # (AZs) in your VPC, providing redundancy, scalability and availability
158
+ # across all the AZs in a Region.
159
+ #
160
+ # For more information, see [Regional NAT gateways for automatic
161
+ # multi-AZ expansion][1] in the *Amazon VPC User Guide*.
162
+ #
163
+ #
164
+ #
165
+ # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateways-regional.html
166
+ # @return [String]
167
+ def availability_mode
168
+ data[:availability_mode]
169
+ end
170
+
171
+ # For regional NAT gateways only: Indicates whether Amazon Web Services
172
+ # automatically allocates additional Elastic IP addresses (EIPs) in an
173
+ # AZ when the NAT gateway needs more ports due to increased concurrent
174
+ # connections to a single destination from that AZ.
175
+ #
176
+ # For more information, see [Regional NAT gateways for automatic
177
+ # multi-AZ expansion][1] in the *Amazon VPC User Guide*.
178
+ #
179
+ #
180
+ #
181
+ # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateways-regional.html
182
+ # @return [String]
183
+ def auto_scaling_ips
184
+ data[:auto_scaling_ips]
185
+ end
186
+
187
+ # For regional NAT gateways only: Indicates whether Amazon Web Services
188
+ # automatically manages AZ coverage. When enabled, the NAT gateway
189
+ # associates EIPs in all AZs where your VPC has subnets to handle
190
+ # outbound NAT traffic, expands to new AZs when you create subnets
191
+ # there, and retracts from AZs where you've removed all subnets. When
192
+ # disabled, you must manually manage which AZs the NAT gateway supports
193
+ # and their corresponding EIPs.
194
+ #
195
+ # A regional NAT gateway is a single NAT Gateway that works across
196
+ # multiple availability zones (AZs) in your VPC, providing redundancy,
197
+ # scalability and availability across all the AZs in a Region.
198
+ #
199
+ # For more information, see [Regional NAT gateways for automatic
200
+ # multi-AZ expansion][1] in the *Amazon VPC User Guide*.
201
+ #
202
+ #
203
+ #
204
+ # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateways-regional.html
205
+ # @return [String]
206
+ def auto_provision_zones
207
+ data[:auto_provision_zones]
208
+ end
209
+
210
+ # The proxy appliances attached to the NAT Gateway for filtering and
211
+ # inspecting traffic to prevent data exfiltration.
212
+ # @return [Array<Types::NatGatewayAttachedAppliance>]
213
+ def attached_appliances
214
+ data[:attached_appliances]
215
+ end
216
+
217
+ # For regional NAT gateways only, this is the ID of the NAT gateway.
218
+ # @return [String]
219
+ def route_table_id
220
+ data[:route_table_id]
221
+ end
222
+
151
223
  # @!endgroup
152
224
 
153
225
  # @return [Client]
@@ -240,6 +240,12 @@ module Aws::EC2
240
240
  data[:associated_subnets]
241
241
  end
242
242
 
243
+ # The ID of the Availability Zone.
244
+ # @return [String]
245
+ def availability_zone_id
246
+ data[:availability_zone_id]
247
+ end
248
+
243
249
  # @!endgroup
244
250
 
245
251
  # @return [Client]
@@ -79,6 +79,18 @@ module Aws::EC2
79
79
  data[:spread_level]
80
80
  end
81
81
 
82
+ # Reserved for future use.
83
+ # @return [String]
84
+ def linked_group_id
85
+ data[:linked_group_id]
86
+ end
87
+
88
+ # The service provider that manages the Placement Group.
89
+ # @return [Types::OperatorResponse]
90
+ def operator
91
+ data[:operator]
92
+ end
93
+
82
94
  # @!endgroup
83
95
 
84
96
  # @return [Client]
@@ -243,6 +255,7 @@ module Aws::EC2
243
255
  #
244
256
  # instances = placement_group.instances({
245
257
  # instance_ids: ["InstanceId"],
258
+ # include_managed_resources: false,
246
259
  # dry_run: false,
247
260
  # filters: [
248
261
  # {
@@ -256,6 +269,11 @@ module Aws::EC2
256
269
  # The instance IDs.
257
270
  #
258
271
  # Default: Describes all your instances.
272
+ # @option options [Boolean] :include_managed_resources
273
+ # Indicates whether to include managed resources in the output. If this
274
+ # parameter is set to `true`, the output includes resources that are
275
+ # managed by Amazon Web Services services, even if managed resource
276
+ # visibility is set to hidden.
259
277
  # @option options [Boolean] :dry_run
260
278
  # Checks whether you have the required permissions for the operation,
261
279
  # without actually making the request, and provides an error response.