aws-sdk-ec2 1.450.0 → 1.452.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +186 -58
- data/lib/aws-sdk-ec2/client_api.rb +40 -0
- data/lib/aws-sdk-ec2/endpoints.rb +28 -0
- data/lib/aws-sdk-ec2/image.rb +23 -1
- data/lib/aws-sdk-ec2/network_interface.rb +6 -1
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-ec2/resource.rb +3 -4
- data/lib/aws-sdk-ec2/subnet.rb +3 -4
- data/lib/aws-sdk-ec2/types.rb +170 -63
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +29 -3
- data/sig/image.rbs +7 -1
- data/sig/network_interface.rbs +3 -2
- data/sig/types.rbs +30 -2
- metadata +2 -2
@@ -5374,6 +5374,20 @@ module Aws::EC2
|
|
5374
5374
|
end
|
5375
5375
|
end
|
5376
5376
|
|
5377
|
+
class DisableImageDeregistrationProtection
|
5378
|
+
def self.build(context)
|
5379
|
+
unless context.config.regional_endpoint
|
5380
|
+
endpoint = context.config.endpoint.to_s
|
5381
|
+
end
|
5382
|
+
Aws::EC2::EndpointParameters.new(
|
5383
|
+
region: context.config.region,
|
5384
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
5385
|
+
use_fips: context.config.use_fips_endpoint,
|
5386
|
+
endpoint: endpoint,
|
5387
|
+
)
|
5388
|
+
end
|
5389
|
+
end
|
5390
|
+
|
5377
5391
|
class DisableIpamOrganizationAdminAccount
|
5378
5392
|
def self.build(context)
|
5379
5393
|
unless context.config.regional_endpoint
|
@@ -5794,6 +5808,20 @@ module Aws::EC2
|
|
5794
5808
|
end
|
5795
5809
|
end
|
5796
5810
|
|
5811
|
+
class EnableImageDeregistrationProtection
|
5812
|
+
def self.build(context)
|
5813
|
+
unless context.config.regional_endpoint
|
5814
|
+
endpoint = context.config.endpoint.to_s
|
5815
|
+
end
|
5816
|
+
Aws::EC2::EndpointParameters.new(
|
5817
|
+
region: context.config.region,
|
5818
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
5819
|
+
use_fips: context.config.use_fips_endpoint,
|
5820
|
+
endpoint: endpoint,
|
5821
|
+
)
|
5822
|
+
end
|
5823
|
+
end
|
5824
|
+
|
5797
5825
|
class EnableIpamOrganizationAdminAccount
|
5798
5826
|
def self.build(context)
|
5799
5827
|
unless context.config.regional_endpoint
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -272,6 +272,28 @@ module Aws::EC2
|
|
272
272
|
data[:source_instance_id]
|
273
273
|
end
|
274
274
|
|
275
|
+
# Indicates whether deregistration protection is enabled for the AMI.
|
276
|
+
# @return [String]
|
277
|
+
def deregistration_protection
|
278
|
+
data[:deregistration_protection]
|
279
|
+
end
|
280
|
+
|
281
|
+
# The date and time, in [ISO 8601 date-time format][1], when the AMI was
|
282
|
+
# last used to launch an EC2 instance. When the AMI is used to launch an
|
283
|
+
# instance, there is a 24-hour delay before that usage is reported.
|
284
|
+
#
|
285
|
+
# <note markdown="1"> `lastLaunchedTime` data is available starting April 2017.
|
286
|
+
#
|
287
|
+
# </note>
|
288
|
+
#
|
289
|
+
#
|
290
|
+
#
|
291
|
+
# [1]: http://www.iso.org/iso/iso8601
|
292
|
+
# @return [String]
|
293
|
+
def last_launched_time
|
294
|
+
data[:last_launched_time]
|
295
|
+
end
|
296
|
+
|
275
297
|
# @!endgroup
|
276
298
|
|
277
299
|
# @return [Client]
|
@@ -553,7 +575,7 @@ module Aws::EC2
|
|
553
575
|
# @example Request syntax with placeholder values
|
554
576
|
#
|
555
577
|
# image.describe_attribute({
|
556
|
-
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport
|
578
|
+
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport, deregistrationProtection
|
557
579
|
# dry_run: false,
|
558
580
|
# })
|
559
581
|
# @param [Hash] options ({})
|
@@ -529,7 +529,7 @@ module Aws::EC2
|
|
529
529
|
# @example Request syntax with placeholder values
|
530
530
|
#
|
531
531
|
# network_interface.describe_attribute({
|
532
|
-
# attribute: "description", # accepts description, groupSet, sourceDestCheck, attachment
|
532
|
+
# attribute: "description", # accepts description, groupSet, sourceDestCheck, attachment, associatePublicIpAddress
|
533
533
|
# dry_run: false,
|
534
534
|
# })
|
535
535
|
# @param [Hash] options ({})
|
@@ -617,6 +617,7 @@ module Aws::EC2
|
|
617
617
|
# udp_stream_timeout: 1,
|
618
618
|
# udp_timeout: 1,
|
619
619
|
# },
|
620
|
+
# associate_public_ip_address: false,
|
620
621
|
# })
|
621
622
|
# @param [Hash] options ({})
|
622
623
|
# @option options [Types::NetworkInterfaceAttachmentChanges] :attachment
|
@@ -663,6 +664,10 @@ module Aws::EC2
|
|
663
664
|
# the primary IPv6 address.
|
664
665
|
# @option options [Types::ConnectionTrackingSpecificationRequest] :connection_tracking_specification
|
665
666
|
# A connection tracking specification.
|
667
|
+
# @option options [Boolean] :associate_public_ip_address
|
668
|
+
# Indicates whether to assign a public IPv4 address to a network
|
669
|
+
# interface. This option can be enabled for any network interface but
|
670
|
+
# will only apply to the primary network interface (eth0).
|
666
671
|
# @return [EmptyStructure]
|
667
672
|
def modify_attribute(options = {})
|
668
673
|
options = options.merge(network_interface_id: @id)
|
@@ -824,6 +824,8 @@ module Aws::EC2
|
|
824
824
|
Aws::EC2::Endpoints::DisableImageBlockPublicAccess.build(context)
|
825
825
|
when :disable_image_deprecation
|
826
826
|
Aws::EC2::Endpoints::DisableImageDeprecation.build(context)
|
827
|
+
when :disable_image_deregistration_protection
|
828
|
+
Aws::EC2::Endpoints::DisableImageDeregistrationProtection.build(context)
|
827
829
|
when :disable_ipam_organization_admin_account
|
828
830
|
Aws::EC2::Endpoints::DisableIpamOrganizationAdminAccount.build(context)
|
829
831
|
when :disable_serial_console_access
|
@@ -884,6 +886,8 @@ module Aws::EC2
|
|
884
886
|
Aws::EC2::Endpoints::EnableImageBlockPublicAccess.build(context)
|
885
887
|
when :enable_image_deprecation
|
886
888
|
Aws::EC2::Endpoints::EnableImageDeprecation.build(context)
|
889
|
+
when :enable_image_deregistration_protection
|
890
|
+
Aws::EC2::Endpoints::EnableImageDeregistrationProtection.build(context)
|
887
891
|
when :enable_ipam_organization_admin_account
|
888
892
|
Aws::EC2::Endpoints::EnableIpamOrganizationAdminAccount.build(context)
|
889
893
|
when :enable_reachability_analyzer_organization_sharing
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -517,10 +517,9 @@ module Aws::EC2
|
|
517
517
|
#
|
518
518
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
|
519
519
|
# @option options [Types::LaunchTemplateSpecification] :launch_template
|
520
|
-
# The launch template
|
521
|
-
#
|
522
|
-
# launch template.
|
523
|
-
# template, but not both.
|
520
|
+
# The launch template. Any additional parameters that you specify for
|
521
|
+
# the new instance overwrite the corresponding parameters included in
|
522
|
+
# the launch template.
|
524
523
|
# @option options [Types::InstanceMarketOptionsRequest] :instance_market_options
|
525
524
|
# The market (purchasing) option for the instances.
|
526
525
|
#
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -747,10 +747,9 @@ module Aws::EC2
|
|
747
747
|
#
|
748
748
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
|
749
749
|
# @option options [Types::LaunchTemplateSpecification] :launch_template
|
750
|
-
# The launch template
|
751
|
-
#
|
752
|
-
# launch template.
|
753
|
-
# template, but not both.
|
750
|
+
# The launch template. Any additional parameters that you specify for
|
751
|
+
# the new instance overwrite the corresponding parameters included in
|
752
|
+
# the launch template.
|
754
753
|
# @option options [Types::InstanceMarketOptionsRequest] :instance_market_options
|
755
754
|
# The market (purchasing) option for the instances.
|
756
755
|
#
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -2676,14 +2676,13 @@ module Aws::EC2
|
|
2676
2676
|
# @return [String]
|
2677
2677
|
#
|
2678
2678
|
# @!attribute [rw] certificate_s3_object_key
|
2679
|
-
# The key of the Amazon S3 object
|
2680
|
-
#
|
2681
|
-
#
|
2679
|
+
# The key of the Amazon S3 object where the certificate, certificate
|
2680
|
+
# chain, and encrypted private key bundle are stored. The object key
|
2681
|
+
# is formatted as follows: `role_arn`/`certificate_arn`.
|
2682
2682
|
# @return [String]
|
2683
2683
|
#
|
2684
2684
|
# @!attribute [rw] encryption_kms_key_id
|
2685
|
-
# The ID of the KMS
|
2686
|
-
# private key.
|
2685
|
+
# The ID of the KMS key used to encrypt the private key.
|
2687
2686
|
# @return [String]
|
2688
2687
|
#
|
2689
2688
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociatedRole AWS API Documentation
|
@@ -8935,12 +8934,10 @@ module Aws::EC2
|
|
8935
8934
|
# The tags to apply to the launch template on creation. To tag the
|
8936
8935
|
# launch template, the resource type must be `launch-template`.
|
8937
8936
|
#
|
8938
|
-
#
|
8937
|
+
# To specify the tags for the resources that are created when an
|
8939
8938
|
# instance is launched, you must use the `TagSpecifications` parameter
|
8940
8939
|
# in the [launch template data][1] structure.
|
8941
8940
|
#
|
8942
|
-
# </note>
|
8943
|
-
#
|
8944
8941
|
#
|
8945
8942
|
#
|
8946
8943
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestLaunchTemplateData.html
|
@@ -9000,24 +8997,29 @@ module Aws::EC2
|
|
9000
8997
|
# @!attribute [rw] launch_template_id
|
9001
8998
|
# The ID of the launch template.
|
9002
8999
|
#
|
9003
|
-
# You must specify either the
|
9004
|
-
#
|
9000
|
+
# You must specify either the launch template ID or the launch
|
9001
|
+
# template name, but not both.
|
9005
9002
|
# @return [String]
|
9006
9003
|
#
|
9007
9004
|
# @!attribute [rw] launch_template_name
|
9008
9005
|
# The name of the launch template.
|
9009
9006
|
#
|
9010
|
-
# You must specify the
|
9011
|
-
# but not both.
|
9007
|
+
# You must specify either the launch template ID or the launch
|
9008
|
+
# template name, but not both.
|
9012
9009
|
# @return [String]
|
9013
9010
|
#
|
9014
9011
|
# @!attribute [rw] source_version
|
9015
|
-
# The version
|
9016
|
-
#
|
9017
|
-
#
|
9018
|
-
#
|
9019
|
-
#
|
9020
|
-
#
|
9012
|
+
# The version of the launch template on which to base the new version.
|
9013
|
+
# Snapshots applied to the block device mapping are ignored when
|
9014
|
+
# creating a new version unless they are explicitly included.
|
9015
|
+
#
|
9016
|
+
# If you specify this parameter, the new version inherits the launch
|
9017
|
+
# parameters from the source version. If you specify additional launch
|
9018
|
+
# parameters for the new version, they overwrite any corresponding
|
9019
|
+
# launch parameters inherited from the source version.
|
9020
|
+
#
|
9021
|
+
# If you omit this parameter, the new version contains only the launch
|
9022
|
+
# parameters that you specify for the new version.
|
9021
9023
|
# @return [String]
|
9022
9024
|
#
|
9023
9025
|
# @!attribute [rw] version_description
|
@@ -14127,15 +14129,15 @@ module Aws::EC2
|
|
14127
14129
|
# @!attribute [rw] launch_template_id
|
14128
14130
|
# The ID of the launch template.
|
14129
14131
|
#
|
14130
|
-
# You must specify either the
|
14131
|
-
#
|
14132
|
+
# You must specify either the launch template ID or the launch
|
14133
|
+
# template name, but not both.
|
14132
14134
|
# @return [String]
|
14133
14135
|
#
|
14134
14136
|
# @!attribute [rw] launch_template_name
|
14135
14137
|
# The name of the launch template.
|
14136
14138
|
#
|
14137
|
-
# You must specify either the
|
14138
|
-
#
|
14139
|
+
# You must specify either the launch template ID or the launch
|
14140
|
+
# template name, but not both.
|
14139
14141
|
# @return [String]
|
14140
14142
|
#
|
14141
14143
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteLaunchTemplateRequest AWS API Documentation
|
@@ -14170,15 +14172,15 @@ module Aws::EC2
|
|
14170
14172
|
# @!attribute [rw] launch_template_id
|
14171
14173
|
# The ID of the launch template.
|
14172
14174
|
#
|
14173
|
-
# You must specify either the
|
14174
|
-
#
|
14175
|
+
# You must specify either the launch template ID or the launch
|
14176
|
+
# template name, but not both.
|
14175
14177
|
# @return [String]
|
14176
14178
|
#
|
14177
14179
|
# @!attribute [rw] launch_template_name
|
14178
14180
|
# The name of the launch template.
|
14179
14181
|
#
|
14180
|
-
# You must specify either the
|
14181
|
-
#
|
14182
|
+
# You must specify either the launch template ID or the launch
|
14183
|
+
# template name, but not both.
|
14182
14184
|
# @return [String]
|
14183
14185
|
#
|
14184
14186
|
# @!attribute [rw] versions
|
@@ -21395,8 +21397,8 @@ module Aws::EC2
|
|
21395
21397
|
# The ID of the launch template.
|
21396
21398
|
#
|
21397
21399
|
# To describe one or more versions of a specified launch template, you
|
21398
|
-
# must specify either the
|
21399
|
-
#
|
21400
|
+
# must specify either the launch template ID or the launch template
|
21401
|
+
# name, but not both.
|
21400
21402
|
#
|
21401
21403
|
# To describe all the latest or default launch template versions in
|
21402
21404
|
# your account, you must omit this parameter.
|
@@ -21406,8 +21408,8 @@ module Aws::EC2
|
|
21406
21408
|
# The name of the launch template.
|
21407
21409
|
#
|
21408
21410
|
# To describe one or more versions of a specified launch template, you
|
21409
|
-
# must specify either the
|
21410
|
-
#
|
21411
|
+
# must specify either the launch template name or the launch template
|
21412
|
+
# ID, but not both.
|
21411
21413
|
#
|
21412
21414
|
# To describe all the latest or default launch template versions in
|
21413
21415
|
# your account, you must omit this parameter.
|
@@ -22816,6 +22818,12 @@ module Aws::EC2
|
|
22816
22818
|
# Indicates whether source/destination checking is enabled.
|
22817
22819
|
# @return [Types::AttributeBooleanValue]
|
22818
22820
|
#
|
22821
|
+
# @!attribute [rw] associate_public_ip_address
|
22822
|
+
# Indicates whether to assign a public IPv4 address to a network
|
22823
|
+
# interface. This option can be enabled for any network interface but
|
22824
|
+
# will only apply to the primary network interface (eth0).
|
22825
|
+
# @return [Boolean]
|
22826
|
+
#
|
22819
22827
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkInterfaceAttributeResult AWS API Documentation
|
22820
22828
|
#
|
22821
22829
|
class DescribeNetworkInterfaceAttributeResult < Struct.new(
|
@@ -22823,7 +22831,8 @@ module Aws::EC2
|
|
22823
22831
|
:description,
|
22824
22832
|
:groups,
|
22825
22833
|
:network_interface_id,
|
22826
|
-
:source_dest_check
|
22834
|
+
:source_dest_check,
|
22835
|
+
:associate_public_ip_address)
|
22827
22836
|
SENSITIVE = []
|
22828
22837
|
include Aws::Structure
|
22829
22838
|
end
|
@@ -23065,7 +23074,7 @@ module Aws::EC2
|
|
23065
23074
|
end
|
23066
23075
|
|
23067
23076
|
# @!attribute [rw] network_interfaces
|
23068
|
-
# Information about
|
23077
|
+
# Information about the network interfaces.
|
23069
23078
|
# @return [Array<Types::NetworkInterface>]
|
23070
23079
|
#
|
23071
23080
|
# @!attribute [rw] next_token
|
@@ -25481,16 +25490,8 @@ module Aws::EC2
|
|
25481
25490
|
#
|
25482
25491
|
# * `resource-id` - The ID of the resource.
|
25483
25492
|
#
|
25484
|
-
# * `resource-type` - The resource type
|
25485
|
-
#
|
25486
|
-
# `fpga-image` \| `host-reservation` \| `image` \| `instance` \|
|
25487
|
-
# `internet-gateway` \| `key-pair` \| `launch-template` \|
|
25488
|
-
# `natgateway` \| `network-acl` \| `network-interface` \|
|
25489
|
-
# `placement-group` \| `reserved-instances` \| `route-table` \|
|
25490
|
-
# `security-group` \| `snapshot` \| `spot-instances-request` \|
|
25491
|
-
# `subnet` \| `volume` \| `vpc` \| `vpc-endpoint` \|
|
25492
|
-
# `vpc-endpoint-service` \| `vpc-peering-connection` \|
|
25493
|
-
# `vpn-connection` \| `vpn-gateway`).
|
25493
|
+
# * `resource-type` - The resource type. For a list of possible
|
25494
|
+
# values, see [TagSpecification][1].
|
25494
25495
|
#
|
25495
25496
|
# * `tag`:<key> - The key/value combination of the tag. For
|
25496
25497
|
# example, specify "tag:Owner" for the filter name and "TeamA"
|
@@ -25498,6 +25499,10 @@ module Aws::EC2
|
|
25498
25499
|
# "Owner=TeamA".
|
25499
25500
|
#
|
25500
25501
|
# * `value` - The tag value.
|
25502
|
+
#
|
25503
|
+
#
|
25504
|
+
#
|
25505
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TagSpecification.html
|
25501
25506
|
# @return [Array<Types::Filter>]
|
25502
25507
|
#
|
25503
25508
|
# @!attribute [rw] max_results
|
@@ -28938,6 +28943,39 @@ module Aws::EC2
|
|
28938
28943
|
include Aws::Structure
|
28939
28944
|
end
|
28940
28945
|
|
28946
|
+
# @!attribute [rw] image_id
|
28947
|
+
# The ID of the AMI.
|
28948
|
+
# @return [String]
|
28949
|
+
#
|
28950
|
+
# @!attribute [rw] dry_run
|
28951
|
+
# Checks whether you have the required permissions for the action,
|
28952
|
+
# without actually making the request, and provides an error response.
|
28953
|
+
# If you have the required permissions, the error response is
|
28954
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
28955
|
+
# @return [Boolean]
|
28956
|
+
#
|
28957
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageDeregistrationProtectionRequest AWS API Documentation
|
28958
|
+
#
|
28959
|
+
class DisableImageDeregistrationProtectionRequest < Struct.new(
|
28960
|
+
:image_id,
|
28961
|
+
:dry_run)
|
28962
|
+
SENSITIVE = []
|
28963
|
+
include Aws::Structure
|
28964
|
+
end
|
28965
|
+
|
28966
|
+
# @!attribute [rw] return
|
28967
|
+
# Returns `true` if the request succeeds; otherwise, it returns an
|
28968
|
+
# error.
|
28969
|
+
# @return [String]
|
28970
|
+
#
|
28971
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageDeregistrationProtectionResult AWS API Documentation
|
28972
|
+
#
|
28973
|
+
class DisableImageDeregistrationProtectionResult < Struct.new(
|
28974
|
+
:return)
|
28975
|
+
SENSITIVE = []
|
28976
|
+
include Aws::Structure
|
28977
|
+
end
|
28978
|
+
|
28941
28979
|
# @!attribute [rw] image_id
|
28942
28980
|
# The ID of the AMI.
|
28943
28981
|
# @return [String]
|
@@ -31215,6 +31253,45 @@ module Aws::EC2
|
|
31215
31253
|
include Aws::Structure
|
31216
31254
|
end
|
31217
31255
|
|
31256
|
+
# @!attribute [rw] image_id
|
31257
|
+
# The ID of the AMI.
|
31258
|
+
# @return [String]
|
31259
|
+
#
|
31260
|
+
# @!attribute [rw] with_cooldown
|
31261
|
+
# If `true`, enforces deregistration protection for 24 hours after
|
31262
|
+
# deregistration protection is disabled.
|
31263
|
+
# @return [Boolean]
|
31264
|
+
#
|
31265
|
+
# @!attribute [rw] dry_run
|
31266
|
+
# Checks whether you have the required permissions for the action,
|
31267
|
+
# without actually making the request, and provides an error response.
|
31268
|
+
# If you have the required permissions, the error response is
|
31269
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
31270
|
+
# @return [Boolean]
|
31271
|
+
#
|
31272
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageDeregistrationProtectionRequest AWS API Documentation
|
31273
|
+
#
|
31274
|
+
class EnableImageDeregistrationProtectionRequest < Struct.new(
|
31275
|
+
:image_id,
|
31276
|
+
:with_cooldown,
|
31277
|
+
:dry_run)
|
31278
|
+
SENSITIVE = []
|
31279
|
+
include Aws::Structure
|
31280
|
+
end
|
31281
|
+
|
31282
|
+
# @!attribute [rw] return
|
31283
|
+
# Returns `true` if the request succeeds; otherwise, it returns an
|
31284
|
+
# error.
|
31285
|
+
# @return [String]
|
31286
|
+
#
|
31287
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageDeregistrationProtectionResult AWS API Documentation
|
31288
|
+
#
|
31289
|
+
class EnableImageDeregistrationProtectionResult < Struct.new(
|
31290
|
+
:return)
|
31291
|
+
SENSITIVE = []
|
31292
|
+
include Aws::Structure
|
31293
|
+
end
|
31294
|
+
|
31218
31295
|
# @!attribute [rw] image_id
|
31219
31296
|
# The ID of the AMI.
|
31220
31297
|
# @return [String]
|
@@ -37320,6 +37397,25 @@ module Aws::EC2
|
|
37320
37397
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html
|
37321
37398
|
# @return [String]
|
37322
37399
|
#
|
37400
|
+
# @!attribute [rw] deregistration_protection
|
37401
|
+
# Indicates whether deregistration protection is enabled for the AMI.
|
37402
|
+
# @return [String]
|
37403
|
+
#
|
37404
|
+
# @!attribute [rw] last_launched_time
|
37405
|
+
# The date and time, in [ISO 8601 date-time format][1], when the AMI
|
37406
|
+
# was last used to launch an EC2 instance. When the AMI is used to
|
37407
|
+
# launch an instance, there is a 24-hour delay before that usage is
|
37408
|
+
# reported.
|
37409
|
+
#
|
37410
|
+
# <note markdown="1"> `lastLaunchedTime` data is available starting April 2017.
|
37411
|
+
#
|
37412
|
+
# </note>
|
37413
|
+
#
|
37414
|
+
#
|
37415
|
+
#
|
37416
|
+
# [1]: http://www.iso.org/iso/iso8601
|
37417
|
+
# @return [String]
|
37418
|
+
#
|
37323
37419
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Image AWS API Documentation
|
37324
37420
|
#
|
37325
37421
|
class Image < Struct.new(
|
@@ -37353,7 +37449,9 @@ module Aws::EC2
|
|
37353
37449
|
:tpm_support,
|
37354
37450
|
:deprecation_time,
|
37355
37451
|
:imds_support,
|
37356
|
-
:source_instance_id
|
37452
|
+
:source_instance_id,
|
37453
|
+
:deregistration_protection,
|
37454
|
+
:last_launched_time)
|
37357
37455
|
SENSITIVE = []
|
37358
37456
|
include Aws::Structure
|
37359
37457
|
end
|
@@ -37445,6 +37543,10 @@ module Aws::EC2
|
|
37445
37543
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
|
37446
37544
|
# @return [Types::AttributeValue]
|
37447
37545
|
#
|
37546
|
+
# @!attribute [rw] deregistration_protection
|
37547
|
+
# Indicates whether deregistration protection is enabled for the AMI.
|
37548
|
+
# @return [Types::AttributeValue]
|
37549
|
+
#
|
37448
37550
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageAttribute AWS API Documentation
|
37449
37551
|
#
|
37450
37552
|
class ImageAttribute < Struct.new(
|
@@ -37460,7 +37562,8 @@ module Aws::EC2
|
|
37460
37562
|
:tpm_support,
|
37461
37563
|
:uefi_data,
|
37462
37564
|
:last_launched_time,
|
37463
|
-
:imds_support
|
37565
|
+
:imds_support,
|
37566
|
+
:deregistration_protection)
|
37464
37567
|
SENSITIVE = []
|
37465
37568
|
include Aws::Structure
|
37466
37569
|
end
|
@@ -45250,31 +45353,29 @@ module Aws::EC2
|
|
45250
45353
|
include Aws::Structure
|
45251
45354
|
end
|
45252
45355
|
|
45253
|
-
#
|
45254
|
-
# template ID or launch template name in the request, but not both.
|
45356
|
+
# Describes the launch template to use.
|
45255
45357
|
#
|
45256
45358
|
# @!attribute [rw] launch_template_id
|
45257
45359
|
# The ID of the launch template.
|
45258
45360
|
#
|
45259
|
-
# You must specify the
|
45260
|
-
# but not both.
|
45361
|
+
# You must specify either the launch template ID or the launch
|
45362
|
+
# template name, but not both.
|
45261
45363
|
# @return [String]
|
45262
45364
|
#
|
45263
45365
|
# @!attribute [rw] launch_template_name
|
45264
45366
|
# The name of the launch template.
|
45265
45367
|
#
|
45266
|
-
# You must specify the
|
45267
|
-
# but not both.
|
45368
|
+
# You must specify either the launch template ID or the launch
|
45369
|
+
# template name, but not both.
|
45268
45370
|
# @return [String]
|
45269
45371
|
#
|
45270
45372
|
# @!attribute [rw] version
|
45271
45373
|
# The launch template version number, `$Latest`, or `$Default`.
|
45272
45374
|
#
|
45273
|
-
#
|
45274
|
-
# launch template.
|
45375
|
+
# A value of `$Latest` uses the latest version of the launch template.
|
45275
45376
|
#
|
45276
|
-
#
|
45277
|
-
#
|
45377
|
+
# A value of `$Default` uses the default version of the launch
|
45378
|
+
# template.
|
45278
45379
|
#
|
45279
45380
|
# Default: The default version of the launch template.
|
45280
45381
|
# @return [String]
|
@@ -48493,15 +48594,15 @@ module Aws::EC2
|
|
48493
48594
|
# @!attribute [rw] launch_template_id
|
48494
48595
|
# The ID of the launch template.
|
48495
48596
|
#
|
48496
|
-
# You must specify either the
|
48497
|
-
#
|
48597
|
+
# You must specify either the launch template ID or the launch
|
48598
|
+
# template name, but not both.
|
48498
48599
|
# @return [String]
|
48499
48600
|
#
|
48500
48601
|
# @!attribute [rw] launch_template_name
|
48501
48602
|
# The name of the launch template.
|
48502
48603
|
#
|
48503
|
-
# You must specify either the
|
48504
|
-
#
|
48604
|
+
# You must specify either the launch template ID or the launch
|
48605
|
+
# template name, but not both.
|
48505
48606
|
# @return [String]
|
48506
48607
|
#
|
48507
48608
|
# @!attribute [rw] default_version
|
@@ -48719,6 +48820,12 @@ module Aws::EC2
|
|
48719
48820
|
# A connection tracking specification.
|
48720
48821
|
# @return [Types::ConnectionTrackingSpecificationRequest]
|
48721
48822
|
#
|
48823
|
+
# @!attribute [rw] associate_public_ip_address
|
48824
|
+
# Indicates whether to assign a public IPv4 address to a network
|
48825
|
+
# interface. This option can be enabled for any network interface but
|
48826
|
+
# will only apply to the primary network interface (eth0).
|
48827
|
+
# @return [Boolean]
|
48828
|
+
#
|
48722
48829
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttributeRequest AWS API Documentation
|
48723
48830
|
#
|
48724
48831
|
class ModifyNetworkInterfaceAttributeRequest < Struct.new(
|
@@ -48730,7 +48837,8 @@ module Aws::EC2
|
|
48730
48837
|
:source_dest_check,
|
48731
48838
|
:ena_srd_specification,
|
48732
48839
|
:enable_primary_ipv_6,
|
48733
|
-
:connection_tracking_specification
|
48840
|
+
:connection_tracking_specification,
|
48841
|
+
:associate_public_ip_address)
|
48734
48842
|
SENSITIVE = []
|
48735
48843
|
include Aws::Structure
|
48736
48844
|
end
|
@@ -59018,10 +59126,9 @@ module Aws::EC2
|
|
59018
59126
|
# @return [Array<Types::TagSpecification>]
|
59019
59127
|
#
|
59020
59128
|
# @!attribute [rw] launch_template
|
59021
|
-
# The launch template
|
59022
|
-
#
|
59023
|
-
# launch template.
|
59024
|
-
# template, but not both.
|
59129
|
+
# The launch template. Any additional parameters that you specify for
|
59130
|
+
# the new instance overwrite the corresponding parameters included in
|
59131
|
+
# the launch template.
|
59025
59132
|
# @return [Types::LaunchTemplateSpecification]
|
59026
59133
|
#
|
59027
59134
|
# @!attribute [rw] instance_market_options
|