aws-sdk-ec2 1.315.0 → 1.316.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: b55a0254465e7c429d128c11e4f1ca76343c5132148a43ad1992ae32e40b6124
4
- data.tar.gz: cabea989bd3361b06d107ea9a29b899cac3d43d23d3434bf9a6c30eea9092e0f
3
+ metadata.gz: e071e5d23243838c2cee1d3defc0ef9353b0d4ce362c1c2e15b56493df4a9dd6
4
+ data.tar.gz: 7cc529a0871d402c09da50105be03c99a32850051b11c7800c3d6999a12d5060
5
5
  SHA512:
6
- metadata.gz: 83fc1ba3ec0bfe45b536b520d5e717a3fc9094a5627d92329cb313f7e104743b8169a04d251474c34dde6388566ade97112e7035cd2ab88cbe0ed11f984b5733
7
- data.tar.gz: 6c8db5c1325953a1cbb7d89f5566e70053e0349f2c4e2c285710dbed475a562f78d7238a93f9521b704088654f257b2ffb50b654fa453f8bb8568fbf84d8c7f7
6
+ metadata.gz: fe862d8935d8f205ca1a61b813fc677a521d92a1608374c67ae8daac9ee7d8bd3e84dcd6a0588d2bcf87b954271d1636d46f5f8e90a0587b7bde2ebcb464495b
7
+ data.tar.gz: 4dcc6454819701e0849cdd7e1ead32f8bda4d9ac86cd2d9a71dd8132c128182c85cf59e6f6b8b595c8612b11ec6f4b343961518f7ac47bc124590d7c1b70cd3c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.316.0 (2022-05-24)
5
+ ------------------
6
+
7
+ * Feature - Stop Protection feature enables customers to protect their instances from accidental stop actions.
8
+
4
9
  1.315.0 (2022-05-12)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.315.0
1
+ 1.316.0
@@ -7072,7 +7072,7 @@ module Aws::EC2
7072
7072
  # A launch template contains the parameters to launch an instance. When
7073
7073
  # you launch an instance using RunInstances, you can specify a launch
7074
7074
  # template instead of providing the launch parameters in the request.
7075
- # For more information, see [Launching an instance from a launch
7075
+ # For more information, see [Launch an instance from a launch
7076
7076
  # template][1] in the *Amazon Elastic Compute Cloud User Guide*.
7077
7077
  #
7078
7078
  # If you want to clone an existing launch template as the basis for
@@ -7095,7 +7095,7 @@ module Aws::EC2
7095
7095
  # @option params [String] :client_token
7096
7096
  # Unique, case-sensitive identifier you provide to ensure the
7097
7097
  # idempotency of the request. For more information, see [Ensuring
7098
- # Idempotency][1].
7098
+ # idempotency][1].
7099
7099
  #
7100
7100
  # Constraint: Maximum 128 ASCII characters.
7101
7101
  #
@@ -7378,6 +7378,7 @@ module Aws::EC2
7378
7378
  # maintenance_options: {
7379
7379
  # auto_recovery: "default", # accepts default, disabled
7380
7380
  # },
7381
+ # disable_api_stop: false,
7381
7382
  # },
7382
7383
  # tag_specifications: [
7383
7384
  # {
@@ -7424,8 +7425,13 @@ module Aws::EC2
7424
7425
  # created. You cannot specify, change, or replace the numbering of
7425
7426
  # launch template versions.
7426
7427
  #
7427
- # For more information, see [Managing launch template versions][1]in the
7428
- # *Amazon Elastic Compute Cloud User Guide*.
7428
+ # Launch templates are immutable; after you create a launch template,
7429
+ # you can't modify it. Instead, you can create a new version of the
7430
+ # launch template that includes any changes you require.
7431
+ #
7432
+ # For more information, see [Modify a launch template (manage launch
7433
+ # template versions)][1]in the *Amazon Elastic Compute Cloud User
7434
+ # Guide*.
7429
7435
  #
7430
7436
  #
7431
7437
  #
@@ -7440,7 +7446,7 @@ module Aws::EC2
7440
7446
  # @option params [String] :client_token
7441
7447
  # Unique, case-sensitive identifier you provide to ensure the
7442
7448
  # idempotency of the request. For more information, see [Ensuring
7443
- # Idempotency][1].
7449
+ # idempotency][1].
7444
7450
  #
7445
7451
  # Constraint: Maximum 128 ASCII characters.
7446
7452
  #
@@ -7733,6 +7739,7 @@ module Aws::EC2
7733
7739
  # maintenance_options: {
7734
7740
  # auto_recovery: "default", # accepts default, disabled
7735
7741
  # },
7742
+ # disable_api_stop: false,
7736
7743
  # },
7737
7744
  # })
7738
7745
  #
@@ -7879,6 +7886,7 @@ module Aws::EC2
7879
7886
  # resp.launch_template_version.launch_template_data.private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
7880
7887
  # resp.launch_template_version.launch_template_data.private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
7881
7888
  # resp.launch_template_version.launch_template_data.maintenance_options.auto_recovery #=> String, one of "default", "disabled"
7889
+ # resp.launch_template_version.launch_template_data.disable_api_stop #=> Boolean
7882
7890
  # resp.warning.errors #=> Array
7883
7891
  # resp.warning.errors[0].code #=> String
7884
7892
  # resp.warning.errors[0].message #=> String
@@ -20718,6 +20726,7 @@ module Aws::EC2
20718
20726
  # * {Types::InstanceAttribute#source_dest_check #source_dest_check} => Types::AttributeBooleanValue
20719
20727
  # * {Types::InstanceAttribute#sriov_net_support #sriov_net_support} => Types::AttributeValue
20720
20728
  # * {Types::InstanceAttribute#user_data #user_data} => Types::AttributeValue
20729
+ # * {Types::InstanceAttribute#disable_api_stop #disable_api_stop} => Types::AttributeBooleanValue
20721
20730
  #
20722
20731
  #
20723
20732
  # @example Example: To describe the instance type
@@ -20791,7 +20800,7 @@ module Aws::EC2
20791
20800
  # @example Request syntax with placeholder values
20792
20801
  #
20793
20802
  # resp = client.describe_instance_attribute({
20794
- # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions
20803
+ # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions, disableApiStop
20795
20804
  # dry_run: false,
20796
20805
  # instance_id: "InstanceId", # required
20797
20806
  # })
@@ -20823,6 +20832,7 @@ module Aws::EC2
20823
20832
  # resp.source_dest_check.value #=> Boolean
20824
20833
  # resp.sriov_net_support #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
20825
20834
  # resp.user_data #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
20835
+ # resp.disable_api_stop.value #=> Boolean
20826
20836
  #
20827
20837
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceAttribute AWS API Documentation
20828
20838
  #
@@ -23117,6 +23127,7 @@ module Aws::EC2
23117
23127
  # resp.launch_template_versions[0].launch_template_data.private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
23118
23128
  # resp.launch_template_versions[0].launch_template_data.private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
23119
23129
  # resp.launch_template_versions[0].launch_template_data.maintenance_options.auto_recovery #=> String, one of "default", "disabled"
23130
+ # resp.launch_template_versions[0].launch_template_data.disable_api_stop #=> Boolean
23120
23131
  # resp.next_token #=> String
23121
23132
  #
23122
23133
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions AWS API Documentation
@@ -35919,6 +35930,7 @@ module Aws::EC2
35919
35930
  # resp.launch_template_data.private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
35920
35931
  # resp.launch_template_data.private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
35921
35932
  # resp.launch_template_data.maintenance_options.auto_recovery #=> String, one of "default", "disabled"
35933
+ # resp.launch_template_data.disable_api_stop #=> Boolean
35922
35934
  #
35923
35935
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData AWS API Documentation
35924
35936
  #
@@ -39393,6 +39405,16 @@ module Aws::EC2
39393
39405
  # `userData`, `disableApiTermination`, or
39394
39406
  # `instanceInitiatedShutdownBehavior` attribute.
39395
39407
  #
39408
+ # @option params [Types::AttributeBooleanValue] :disable_api_stop
39409
+ # Indicates whether an instance is enabled for stop protection. For more
39410
+ # information, see [Stop Protection][1].
39411
+ #
39412
+ #
39413
+ #
39414
+ #
39415
+ #
39416
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
39417
+ #
39396
39418
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
39397
39419
  #
39398
39420
  #
@@ -39432,7 +39454,7 @@ module Aws::EC2
39432
39454
  # source_dest_check: {
39433
39455
  # value: false,
39434
39456
  # },
39435
- # attribute: "instanceType", # accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions
39457
+ # attribute: "instanceType", # accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions, disableApiStop
39436
39458
  # block_device_mappings: [
39437
39459
  # {
39438
39460
  # device_name: "String",
@@ -39465,6 +39487,9 @@ module Aws::EC2
39465
39487
  # value: "data",
39466
39488
  # },
39467
39489
  # value: "String",
39490
+ # disable_api_stop: {
39491
+ # value: false,
39492
+ # },
39468
39493
  # })
39469
39494
  #
39470
39495
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttribute AWS API Documentation
@@ -40353,7 +40378,7 @@ module Aws::EC2
40353
40378
  # @option params [String] :client_token
40354
40379
  # Unique, case-sensitive identifier you provide to ensure the
40355
40380
  # idempotency of the request. For more information, see [Ensuring
40356
- # Idempotency][1].
40381
+ # idempotency][1].
40357
40382
  #
40358
40383
  # Constraint: Maximum 128 ASCII characters.
40359
40384
  #
@@ -46210,7 +46235,7 @@ module Aws::EC2
46210
46235
  # @example Request syntax with placeholder values
46211
46236
  #
46212
46237
  # resp = client.reset_instance_attribute({
46213
- # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions
46238
+ # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions, disableApiStop
46214
46239
  # dry_run: false,
46215
46240
  # instance_id: "InstanceId", # required
46216
46241
  # })
@@ -47380,6 +47405,14 @@ module Aws::EC2
47380
47405
  # @option params [Types::InstanceMaintenanceOptionsRequest] :maintenance_options
47381
47406
  # The maintenance and recovery options for the instance.
47382
47407
  #
47408
+ # @option params [Boolean] :disable_api_stop
47409
+ # Indicates whether an instance is enabled for stop protection. For more
47410
+ # information, see [Stop Protection][1].
47411
+ #
47412
+ #
47413
+ #
47414
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
47415
+ #
47383
47416
  # @return [Types::Reservation] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
47384
47417
  #
47385
47418
  # * {Types::Reservation#groups #groups} => Array&lt;Types::GroupIdentifier&gt;
@@ -47608,6 +47641,7 @@ module Aws::EC2
47608
47641
  # maintenance_options: {
47609
47642
  # auto_recovery: "disabled", # accepts disabled, default
47610
47643
  # },
47644
+ # disable_api_stop: false,
47611
47645
  # })
47612
47646
  #
47613
47647
  # @example Response structure
@@ -49661,7 +49695,7 @@ module Aws::EC2
49661
49695
  params: params,
49662
49696
  config: config)
49663
49697
  context[:gem_name] = 'aws-sdk-ec2'
49664
- context[:gem_version] = '1.315.0'
49698
+ context[:gem_version] = '1.316.0'
49665
49699
  Seahorse::Client::Request.new(handlers, context)
49666
49700
  end
49667
49701
 
@@ -8376,6 +8376,7 @@ module Aws::EC2
8376
8376
  InstanceAttribute.add_member(:source_dest_check, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "sourceDestCheck"))
8377
8377
  InstanceAttribute.add_member(:sriov_net_support, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "sriovNetSupport"))
8378
8378
  InstanceAttribute.add_member(:user_data, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "userData"))
8379
+ InstanceAttribute.add_member(:disable_api_stop, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "disableApiStop"))
8379
8380
  InstanceAttribute.struct_class = Types::InstanceAttribute
8380
8381
 
8381
8382
  InstanceBlockDeviceMapping.add_member(:device_name, Shapes::ShapeRef.new(shape: String, location_name: "deviceName"))
@@ -9655,6 +9656,7 @@ module Aws::EC2
9655
9656
  ModifyInstanceAttributeRequest.add_member(:sriov_net_support, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "sriovNetSupport"))
9656
9657
  ModifyInstanceAttributeRequest.add_member(:user_data, Shapes::ShapeRef.new(shape: BlobAttributeValue, location_name: "userData"))
9657
9658
  ModifyInstanceAttributeRequest.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
9659
+ ModifyInstanceAttributeRequest.add_member(:disable_api_stop, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "DisableApiStop"))
9658
9660
  ModifyInstanceAttributeRequest.struct_class = Types::ModifyInstanceAttributeRequest
9659
9661
 
9660
9662
  ModifyInstanceCapacityReservationAttributesRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
@@ -11102,6 +11104,7 @@ module Aws::EC2
11102
11104
  RequestLaunchTemplateData.add_member(:instance_requirements, Shapes::ShapeRef.new(shape: InstanceRequirementsRequest, location_name: "InstanceRequirements"))
11103
11105
  RequestLaunchTemplateData.add_member(:private_dns_name_options, Shapes::ShapeRef.new(shape: LaunchTemplatePrivateDnsNameOptionsRequest, location_name: "PrivateDnsNameOptions"))
11104
11106
  RequestLaunchTemplateData.add_member(:maintenance_options, Shapes::ShapeRef.new(shape: LaunchTemplateInstanceMaintenanceOptionsRequest, location_name: "MaintenanceOptions"))
11107
+ RequestLaunchTemplateData.add_member(:disable_api_stop, Shapes::ShapeRef.new(shape: Boolean, location_name: "DisableApiStop"))
11105
11108
  RequestLaunchTemplateData.struct_class = Types::RequestLaunchTemplateData
11106
11109
 
11107
11110
  RequestSpotFleetRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
@@ -11374,6 +11377,7 @@ module Aws::EC2
11374
11377
  ResponseLaunchTemplateData.add_member(:instance_requirements, Shapes::ShapeRef.new(shape: InstanceRequirements, location_name: "instanceRequirements"))
11375
11378
  ResponseLaunchTemplateData.add_member(:private_dns_name_options, Shapes::ShapeRef.new(shape: LaunchTemplatePrivateDnsNameOptions, location_name: "privateDnsNameOptions"))
11376
11379
  ResponseLaunchTemplateData.add_member(:maintenance_options, Shapes::ShapeRef.new(shape: LaunchTemplateInstanceMaintenanceOptions, location_name: "maintenanceOptions"))
11380
+ ResponseLaunchTemplateData.add_member(:disable_api_stop, Shapes::ShapeRef.new(shape: Boolean, location_name: "disableApiStop"))
11377
11381
  ResponseLaunchTemplateData.struct_class = Types::ResponseLaunchTemplateData
11378
11382
 
11379
11383
  RestorableByStringList.member = Shapes::ShapeRef.new(shape: String)
@@ -11564,6 +11568,7 @@ module Aws::EC2
11564
11568
  RunInstancesRequest.add_member(:enclave_options, Shapes::ShapeRef.new(shape: EnclaveOptionsRequest, location_name: "EnclaveOptions"))
11565
11569
  RunInstancesRequest.add_member(:private_dns_name_options, Shapes::ShapeRef.new(shape: PrivateDnsNameOptionsRequest, location_name: "PrivateDnsNameOptions"))
11566
11570
  RunInstancesRequest.add_member(:maintenance_options, Shapes::ShapeRef.new(shape: InstanceMaintenanceOptionsRequest, location_name: "MaintenanceOptions"))
11571
+ RunInstancesRequest.add_member(:disable_api_stop, Shapes::ShapeRef.new(shape: Boolean, location_name: "DisableApiStop"))
11567
11572
  RunInstancesRequest.struct_class = Types::RunInstancesRequest
11568
11573
 
11569
11574
  RunScheduledInstancesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
@@ -884,7 +884,7 @@ module Aws::EC2
884
884
  # @example Request syntax with placeholder values
885
885
  #
886
886
  # instance.describe_attribute({
887
- # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions
887
+ # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions, disableApiStop
888
888
  # dry_run: false,
889
889
  # })
890
890
  # @param [Hash] options ({})
@@ -965,7 +965,7 @@ module Aws::EC2
965
965
  # source_dest_check: {
966
966
  # value: false,
967
967
  # },
968
- # attribute: "instanceType", # accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions
968
+ # attribute: "instanceType", # accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions, disableApiStop
969
969
  # block_device_mappings: [
970
970
  # {
971
971
  # device_name: "String",
@@ -997,6 +997,9 @@ module Aws::EC2
997
997
  # value: "data",
998
998
  # },
999
999
  # value: "String",
1000
+ # disable_api_stop: {
1001
+ # value: false,
1002
+ # },
1000
1003
  # })
1001
1004
  # @param [Hash] options ({})
1002
1005
  # @option options [Types::AttributeBooleanValue] :source_dest_check
@@ -1094,6 +1097,15 @@ module Aws::EC2
1094
1097
  # A new value for the attribute. Use only with the `kernel`, `ramdisk`,
1095
1098
  # `userData`, `disableApiTermination`, or
1096
1099
  # `instanceInitiatedShutdownBehavior` attribute.
1100
+ # @option options [Types::AttributeBooleanValue] :disable_api_stop
1101
+ # Indicates whether an instance is enabled for stop protection. For more
1102
+ # information, see [Stop Protection][1].
1103
+ #
1104
+ #
1105
+ #
1106
+ #
1107
+ #
1108
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
1097
1109
  # @return [EmptyStructure]
1098
1110
  def modify_attribute(options = {})
1099
1111
  options = options.merge(instance_id: @id)
@@ -1216,7 +1228,7 @@ module Aws::EC2
1216
1228
  # @example Request syntax with placeholder values
1217
1229
  #
1218
1230
  # instance.reset_attribute({
1219
- # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions
1231
+ # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions, disableApiStop
1220
1232
  # dry_run: false,
1221
1233
  # })
1222
1234
  # @param [Hash] options ({})
@@ -256,6 +256,7 @@ module Aws::EC2
256
256
  # maintenance_options: {
257
257
  # auto_recovery: "disabled", # accepts disabled, default
258
258
  # },
259
+ # disable_api_stop: false,
259
260
  # })
260
261
  # @param [Hash] options ({})
261
262
  # @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
@@ -566,6 +567,13 @@ module Aws::EC2
566
567
  # inherited from the subnet.
567
568
  # @option options [Types::InstanceMaintenanceOptionsRequest] :maintenance_options
568
569
  # The maintenance and recovery options for the instance.
570
+ # @option options [Boolean] :disable_api_stop
571
+ # Indicates whether an instance is enabled for stop protection. For more
572
+ # information, see [Stop Protection][1].
573
+ #
574
+ #
575
+ #
576
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
569
577
  # @return [Instance::Collection]
570
578
  def create_instances(options = {})
571
579
  batch = []
@@ -480,6 +480,7 @@ module Aws::EC2
480
480
  # maintenance_options: {
481
481
  # auto_recovery: "disabled", # accepts disabled, default
482
482
  # },
483
+ # disable_api_stop: false,
483
484
  # })
484
485
  # @param [Hash] options ({})
485
486
  # @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
@@ -785,6 +786,13 @@ module Aws::EC2
785
786
  # inherited from the subnet.
786
787
  # @option options [Types::InstanceMaintenanceOptionsRequest] :maintenance_options
787
788
  # The maintenance and recovery options for the instance.
789
+ # @option options [Boolean] :disable_api_stop
790
+ # Indicates whether an instance is enabled for stop protection. For more
791
+ # information, see [Stop Protection][1].
792
+ #
793
+ #
794
+ #
795
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
788
796
  # @return [Instance::Collection]
789
797
  def create_instances(options = {})
790
798
  batch = []
@@ -9262,6 +9262,7 @@ module Aws::EC2
9262
9262
  # maintenance_options: {
9263
9263
  # auto_recovery: "default", # accepts default, disabled
9264
9264
  # },
9265
+ # disable_api_stop: false,
9265
9266
  # },
9266
9267
  # tag_specifications: [
9267
9268
  # {
@@ -9286,7 +9287,7 @@ module Aws::EC2
9286
9287
  # @!attribute [rw] client_token
9287
9288
  # Unique, case-sensitive identifier you provide to ensure the
9288
9289
  # idempotency of the request. For more information, see [Ensuring
9289
- # Idempotency][1].
9290
+ # idempotency][1].
9290
9291
  #
9291
9292
  # Constraint: Maximum 128 ASCII characters.
9292
9293
  #
@@ -9558,6 +9559,7 @@ module Aws::EC2
9558
9559
  # maintenance_options: {
9559
9560
  # auto_recovery: "default", # accepts default, disabled
9560
9561
  # },
9562
+ # disable_api_stop: false,
9561
9563
  # },
9562
9564
  # }
9563
9565
  #
@@ -9571,7 +9573,7 @@ module Aws::EC2
9571
9573
  # @!attribute [rw] client_token
9572
9574
  # Unique, case-sensitive identifier you provide to ensure the
9573
9575
  # idempotency of the request. For more information, see [Ensuring
9574
- # Idempotency][1].
9576
+ # idempotency][1].
9575
9577
  #
9576
9578
  # Constraint: Maximum 128 ASCII characters.
9577
9579
  #
@@ -20713,7 +20715,7 @@ module Aws::EC2
20713
20715
  # data as a hash:
20714
20716
  #
20715
20717
  # {
20716
- # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions
20718
+ # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions, disableApiStop
20717
20719
  # dry_run: false,
20718
20720
  # instance_id: "InstanceId", # required
20719
20721
  # }
@@ -39840,6 +39842,11 @@ module Aws::EC2
39840
39842
  # The user data.
39841
39843
  # @return [Types::AttributeValue]
39842
39844
  #
39845
+ # @!attribute [rw] disable_api_stop
39846
+ # To enable the instance for Amazon Web Services Stop Protection, set
39847
+ # this parameter to `true`; otherwise, set it to `false`.
39848
+ # @return [Types::AttributeBooleanValue]
39849
+ #
39843
39850
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceAttribute AWS API Documentation
39844
39851
  #
39845
39852
  class InstanceAttribute < Struct.new(
@@ -39858,7 +39865,8 @@ module Aws::EC2
39858
39865
  :root_device_name,
39859
39866
  :source_dest_check,
39860
39867
  :sriov_net_support,
39861
- :user_data)
39868
+ :user_data,
39869
+ :disable_api_stop)
39862
39870
  SENSITIVE = []
39863
39871
  include Aws::Structure
39864
39872
  end
@@ -44443,9 +44451,9 @@ module Aws::EC2
44443
44451
  end
44444
44452
 
44445
44453
  # Indicates whether the instance is enabled for Amazon Web Services
44446
- # Nitro Enclaves. For more information, see [ What is Amazon Web
44447
- # Services Nitro Enclaves?][1] in the *Amazon Web Services Nitro
44448
- # Enclaves User Guide*.
44454
+ # Nitro Enclaves. For more information, see [What is Amazon Web Services
44455
+ # Nitro Enclaves?][1] in the *Amazon Web Services Nitro Enclaves User
44456
+ # Guide*.
44449
44457
  #
44450
44458
  #
44451
44459
  #
@@ -44492,7 +44500,7 @@ module Aws::EC2
44492
44500
  #
44493
44501
  #
44494
44502
  #
44495
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites
44503
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html
44496
44504
  #
44497
44505
  # @note When making an API call, you may pass LaunchTemplateHibernationOptionsRequest
44498
44506
  # data as a hash:
@@ -47651,7 +47659,7 @@ module Aws::EC2
47651
47659
  # source_dest_check: {
47652
47660
  # value: false,
47653
47661
  # },
47654
- # attribute: "instanceType", # accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions
47662
+ # attribute: "instanceType", # accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions, disableApiStop
47655
47663
  # block_device_mappings: [
47656
47664
  # {
47657
47665
  # device_name: "String",
@@ -47684,6 +47692,9 @@ module Aws::EC2
47684
47692
  # value: "data",
47685
47693
  # },
47686
47694
  # value: "String",
47695
+ # disable_api_stop: {
47696
+ # value: false,
47697
+ # },
47687
47698
  # }
47688
47699
  #
47689
47700
  # @!attribute [rw] source_dest_check
@@ -47817,6 +47828,17 @@ module Aws::EC2
47817
47828
  # `instanceInitiatedShutdownBehavior` attribute.
47818
47829
  # @return [String]
47819
47830
  #
47831
+ # @!attribute [rw] disable_api_stop
47832
+ # Indicates whether an instance is enabled for stop protection. For
47833
+ # more information, see [Stop Protection][1].
47834
+ #
47835
+ #
47836
+ #
47837
+ #
47838
+ #
47839
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
47840
+ # @return [Types::AttributeBooleanValue]
47841
+ #
47820
47842
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceAttributeRequest AWS API Documentation
47821
47843
  #
47822
47844
  class ModifyInstanceAttributeRequest < Struct.new(
@@ -47835,7 +47857,8 @@ module Aws::EC2
47835
47857
  :ramdisk,
47836
47858
  :sriov_net_support,
47837
47859
  :user_data,
47838
- :value)
47860
+ :value,
47861
+ :disable_api_stop)
47839
47862
  SENSITIVE = []
47840
47863
  include Aws::Structure
47841
47864
  end
@@ -48677,7 +48700,7 @@ module Aws::EC2
48677
48700
  # @!attribute [rw] client_token
48678
48701
  # Unique, case-sensitive identifier you provide to ensure the
48679
48702
  # idempotency of the request. For more information, see [Ensuring
48680
- # Idempotency][1].
48703
+ # idempotency][1].
48681
48704
  #
48682
48705
  # Constraint: Maximum 128 ASCII characters.
48683
48706
  #
@@ -56331,13 +56354,14 @@ module Aws::EC2
56331
56354
  # maintenance_options: {
56332
56355
  # auto_recovery: "default", # accepts default, disabled
56333
56356
  # },
56357
+ # disable_api_stop: false,
56334
56358
  # }
56335
56359
  #
56336
56360
  # @!attribute [rw] kernel_id
56337
56361
  # The ID of the kernel.
56338
56362
  #
56339
56363
  # We recommend that you use PV-GRUB instead of kernels and RAM disks.
56340
- # For more information, see [User Provided Kernels][1] in the *Amazon
56364
+ # For more information, see [User provided kernels][1] in the *Amazon
56341
56365
  # Elastic Compute Cloud User Guide*.
56342
56366
  #
56343
56367
  #
@@ -56373,7 +56397,7 @@ module Aws::EC2
56373
56397
  # @return [String]
56374
56398
  #
56375
56399
  # @!attribute [rw] instance_type
56376
- # The instance type. For more information, see [Instance Types][1] in
56400
+ # The instance type. For more information, see [Instance types][1] in
56377
56401
  # the *Amazon Elastic Compute Cloud User Guide*.
56378
56402
  #
56379
56403
  # If you specify `InstanceTypes`, you can't specify
@@ -56410,7 +56434,7 @@ module Aws::EC2
56410
56434
  # The ID of the RAM disk.
56411
56435
  #
56412
56436
  # We recommend that you use PV-GRUB instead of kernels and RAM disks.
56413
- # For more information, see [User Provided Kernels][1] in the *Amazon
56437
+ # For more information, see [User provided kernels][1] in the *Amazon
56414
56438
  # Elastic Compute Cloud User Guide*.
56415
56439
  #
56416
56440
  #
@@ -56443,8 +56467,9 @@ module Aws::EC2
56443
56467
  # @!attribute [rw] user_data
56444
56468
  # The user data to make available to the instance. You must provide
56445
56469
  # base64-encoded text. User data is limited to 16 KB. For more
56446
- # information, see [Running Commands on Your Linux Instance at
56447
- # Launch][1] (Linux) or [Adding User Data][2] (Windows).
56470
+ # information, see [Run commands on your Linux instance at launch][1]
56471
+ # (Linux) or [Work with instance user data][2] (Windows) in the
56472
+ # *Amazon Elastic Compute Cloud User Guide*.
56448
56473
  #
56449
56474
  # If you are creating the launch template for use with Batch, the user
56450
56475
  # data must be provided in the [ MIME multi-part archive format][3].
@@ -56454,7 +56479,7 @@ module Aws::EC2
56454
56479
  #
56455
56480
  #
56456
56481
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
56457
- # [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data
56482
+ # [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/instancedata-add-user-data.html
56458
56483
  # [3]: https://cloudinit.readthedocs.io/en/latest/topics/format.html#mime-multi-part-archive
56459
56484
  # [4]: https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html
56460
56485
  # @return [String]
@@ -56534,7 +56559,7 @@ module Aws::EC2
56534
56559
  #
56535
56560
  #
56536
56561
  #
56537
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites
56562
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html
56538
56563
  # [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
56539
56564
  # @return [Types::LaunchTemplateHibernationOptionsRequest]
56540
56565
  #
@@ -56580,6 +56605,15 @@ module Aws::EC2
56580
56605
  # The maintenance options for the instance.
56581
56606
  # @return [Types::LaunchTemplateInstanceMaintenanceOptionsRequest]
56582
56607
  #
56608
+ # @!attribute [rw] disable_api_stop
56609
+ # Indicates whether to enable the instance for stop protection. For
56610
+ # more information, see [Stop Protection][1].
56611
+ #
56612
+ #
56613
+ #
56614
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
56615
+ # @return [Boolean]
56616
+ #
56583
56617
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestLaunchTemplateData AWS API Documentation
56584
56618
  #
56585
56619
  class RequestLaunchTemplateData < Struct.new(
@@ -56612,7 +56646,8 @@ module Aws::EC2
56612
56646
  :enclave_options,
56613
56647
  :instance_requirements,
56614
56648
  :private_dns_name_options,
56615
- :maintenance_options)
56649
+ :maintenance_options,
56650
+ :disable_api_stop)
56616
56651
  SENSITIVE = []
56617
56652
  include Aws::Structure
56618
56653
  end
@@ -58169,7 +58204,7 @@ module Aws::EC2
58169
58204
  # data as a hash:
58170
58205
  #
58171
58206
  # {
58172
- # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions
58207
+ # attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport, enclaveOptions, disableApiStop
58173
58208
  # dry_run: false,
58174
58209
  # instance_id: "InstanceId", # required
58175
58210
  # }
@@ -58489,6 +58524,15 @@ module Aws::EC2
58489
58524
  # The maintenance options for your instance.
58490
58525
  # @return [Types::LaunchTemplateInstanceMaintenanceOptions]
58491
58526
  #
58527
+ # @!attribute [rw] disable_api_stop
58528
+ # Indicates whether the instance is enabled for stop protection. For
58529
+ # more information, see [Stop Protection][1].
58530
+ #
58531
+ #
58532
+ #
58533
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
58534
+ # @return [Boolean]
58535
+ #
58492
58536
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResponseLaunchTemplateData AWS API Documentation
58493
58537
  #
58494
58538
  class ResponseLaunchTemplateData < Struct.new(
@@ -58521,7 +58565,8 @@ module Aws::EC2
58521
58565
  :enclave_options,
58522
58566
  :instance_requirements,
58523
58567
  :private_dns_name_options,
58524
- :maintenance_options)
58568
+ :maintenance_options,
58569
+ :disable_api_stop)
58525
58570
  SENSITIVE = []
58526
58571
  include Aws::Structure
58527
58572
  end
@@ -59600,6 +59645,7 @@ module Aws::EC2
59600
59645
  # maintenance_options: {
59601
59646
  # auto_recovery: "disabled", # accepts disabled, default
59602
59647
  # },
59648
+ # disable_api_stop: false,
59603
59649
  # }
59604
59650
  #
59605
59651
  # @!attribute [rw] block_device_mappings
@@ -59995,6 +60041,15 @@ module Aws::EC2
59995
60041
  # The maintenance and recovery options for the instance.
59996
60042
  # @return [Types::InstanceMaintenanceOptionsRequest]
59997
60043
  #
60044
+ # @!attribute [rw] disable_api_stop
60045
+ # Indicates whether an instance is enabled for stop protection. For
60046
+ # more information, see [Stop Protection][1].
60047
+ #
60048
+ #
60049
+ #
60050
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
60051
+ # @return [Boolean]
60052
+ #
59998
60053
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstancesRequest AWS API Documentation
59999
60054
  #
60000
60055
  class RunInstancesRequest < Struct.new(
@@ -60036,7 +60091,8 @@ module Aws::EC2
60036
60091
  :metadata_options,
60037
60092
  :enclave_options,
60038
60093
  :private_dns_name_options,
60039
- :maintenance_options)
60094
+ :maintenance_options,
60095
+ :disable_api_stop)
60040
60096
  SENSITIVE = [:user_data]
60041
60097
  include Aws::Structure
60042
60098
  end
@@ -67879,21 +67935,21 @@ module Aws::EC2
67879
67935
  # @!attribute [rw] code
67880
67936
  # The error code that indicates why the parameter or parameter
67881
67937
  # combination is not valid. For more information about error codes,
67882
- # see [Error Codes][1].
67938
+ # see [Error codes][1].
67883
67939
  #
67884
67940
  #
67885
67941
  #
67886
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html
67942
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html
67887
67943
  # @return [String]
67888
67944
  #
67889
67945
  # @!attribute [rw] message
67890
67946
  # The error message that describes why the parameter or parameter
67891
67947
  # combination is not valid. For more information about error messages,
67892
- # see [Error Codes][1].
67948
+ # see [Error codes][1].
67893
67949
  #
67894
67950
  #
67895
67951
  #
67896
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html
67952
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html
67897
67953
  # @return [String]
67898
67954
  #
67899
67955
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ValidationError AWS API Documentation
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.315.0'
75
+ GEM_VERSION = '1.316.0'
76
76
 
77
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.315.0
4
+ version: 1.316.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: 2022-05-12 00:00:00.000000000 Z
11
+ date: 2022-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4