aws-sdk-ec2 1.304.0 → 1.305.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: 9a951c1658ef7910387e10baaacc762e1fb12c34244a70e967f1cad4eed0a835
4
- data.tar.gz: feac1bdfca6e5573d736fb4a3d935925610e5cdece01fca9a4c47c5181dce557
3
+ metadata.gz: 3de3f7b49711429fd3f7d9cb5eead94dcd93c36601c04457bf560b170fa2fe77
4
+ data.tar.gz: 6f648fb43fcb6f193a5b084a27f9f3b6fa91ba874938ce81b5f692b39587e6c0
5
5
  SHA512:
6
- metadata.gz: 701bf365700ac7dd9ceaf16f551c65fb55d71127701697f3d6bb7455caca58a64131465fdff98cb5cdb4436ecd957660f7b7f3a77f1cc427fdfb5f8516852451
7
- data.tar.gz: d4afcc11f16f3d64c4e65c4ac264f493b572b3cff64cf5bc16666bb0d50e411916897ff4ed4ba02121e3591a206841eca338c5966a5c97db5a20f690d321e314
6
+ metadata.gz: 414ca5bb2c28896d55391aa21f95eab843a2f2b9ac2c8745b23195f85e4df9aba7d015f72267d6f809079b26cc4eb851c5e5bacb988a39b8e64fb02d600b3a46
7
+ data.tar.gz: 0ec4c960464e51a4a38e88f918b2a713eb6c45f730ef226aa6a1067fc98e330f004321814384a33f9bfd194f4bbc0c712de1caaf9d52ca9d2f9b495ec3f87ba8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.305.0 (2022-03-30)
5
+ ------------------
6
+
7
+ * Feature - This release simplifies the auto-recovery configuration process enabling customers to set the recovery behavior to disabled or default
8
+
4
9
  1.304.0 (2022-03-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.304.0
1
+ 1.305.0
@@ -7357,6 +7357,9 @@ module Aws::EC2
7357
7357
  # enable_resource_name_dns_a_record: false,
7358
7358
  # enable_resource_name_dns_aaaa_record: false,
7359
7359
  # },
7360
+ # maintenance_options: {
7361
+ # auto_recovery: "default", # accepts default, disabled
7362
+ # },
7360
7363
  # },
7361
7364
  # tag_specifications: [
7362
7365
  # {
@@ -7709,6 +7712,9 @@ module Aws::EC2
7709
7712
  # enable_resource_name_dns_a_record: false,
7710
7713
  # enable_resource_name_dns_aaaa_record: false,
7711
7714
  # },
7715
+ # maintenance_options: {
7716
+ # auto_recovery: "default", # accepts default, disabled
7717
+ # },
7712
7718
  # },
7713
7719
  # })
7714
7720
  #
@@ -7854,6 +7860,7 @@ module Aws::EC2
7854
7860
  # resp.launch_template_version.launch_template_data.private_dns_name_options.hostname_type #=> String, one of "ip-name", "resource-name"
7855
7861
  # resp.launch_template_version.launch_template_data.private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
7856
7862
  # resp.launch_template_version.launch_template_data.private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
7863
+ # resp.launch_template_version.launch_template_data.maintenance_options.auto_recovery #=> String, one of "default", "disabled"
7857
7864
  # resp.warning.errors #=> Array
7858
7865
  # resp.warning.errors[0].code #=> String
7859
7866
  # resp.warning.errors[0].message #=> String
@@ -22186,6 +22193,7 @@ module Aws::EC2
22186
22193
  # resp.reservations[0].instances[0].private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
22187
22194
  # resp.reservations[0].instances[0].private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
22188
22195
  # resp.reservations[0].instances[0].ipv_6_address #=> String
22196
+ # resp.reservations[0].instances[0].maintenance_options.auto_recovery #=> String, one of "disabled", "default"
22189
22197
  # resp.reservations[0].owner_id #=> String
22190
22198
  # resp.reservations[0].requester_id #=> String
22191
22199
  # resp.reservations[0].reservation_id #=> String
@@ -23077,6 +23085,7 @@ module Aws::EC2
23077
23085
  # resp.launch_template_versions[0].launch_template_data.private_dns_name_options.hostname_type #=> String, one of "ip-name", "resource-name"
23078
23086
  # resp.launch_template_versions[0].launch_template_data.private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
23079
23087
  # resp.launch_template_versions[0].launch_template_data.private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
23088
+ # resp.launch_template_versions[0].launch_template_data.maintenance_options.auto_recovery #=> String, one of "default", "disabled"
23080
23089
  # resp.next_token #=> String
23081
23090
  #
23082
23091
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplateVersions AWS API Documentation
@@ -35806,6 +35815,7 @@ module Aws::EC2
35806
35815
  # resp.launch_template_data.private_dns_name_options.hostname_type #=> String, one of "ip-name", "resource-name"
35807
35816
  # resp.launch_template_data.private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
35808
35817
  # resp.launch_template_data.private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
35818
+ # resp.launch_template_data.maintenance_options.auto_recovery #=> String, one of "default", "disabled"
35809
35819
  #
35810
35820
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetLaunchTemplateData AWS API Documentation
35811
35821
  #
@@ -39638,6 +39648,56 @@ module Aws::EC2
39638
39648
  req.send_request(options)
39639
39649
  end
39640
39650
 
39651
+ # Modifies the recovery behavior of your instance to disable simplified
39652
+ # automatic recovery or set the recovery behavior to default. The
39653
+ # default configuration will not enable simplified automatic recovery
39654
+ # for an unsupported instance type. For more information, see
39655
+ # [Simplified automatic recovery][1].
39656
+ #
39657
+ #
39658
+ #
39659
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html#instance-configuration-recovery
39660
+ #
39661
+ # @option params [required, String] :instance_id
39662
+ # The ID of the instance.
39663
+ #
39664
+ # @option params [String] :auto_recovery
39665
+ # Disables the automatic recovery behavior of your instance or sets it
39666
+ # to default.
39667
+ #
39668
+ # @option params [Boolean] :dry_run
39669
+ # Checks whether you have the required permissions for the action,
39670
+ # without actually making the request, and provides an error response.
39671
+ # If you have the required permissions, the error response is
39672
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
39673
+ #
39674
+ # @return [Types::ModifyInstanceMaintenanceOptionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
39675
+ #
39676
+ # * {Types::ModifyInstanceMaintenanceOptionsResult#instance_id #instance_id} => String
39677
+ # * {Types::ModifyInstanceMaintenanceOptionsResult#auto_recovery #auto_recovery} => String
39678
+ #
39679
+ # @example Request syntax with placeholder values
39680
+ #
39681
+ # resp = client.modify_instance_maintenance_options({
39682
+ # instance_id: "InstanceId", # required
39683
+ # auto_recovery: "disabled", # accepts disabled, default
39684
+ # dry_run: false,
39685
+ # })
39686
+ #
39687
+ # @example Response structure
39688
+ #
39689
+ # resp.instance_id #=> String
39690
+ # resp.auto_recovery #=> String, one of "disabled", "default"
39691
+ #
39692
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMaintenanceOptions AWS API Documentation
39693
+ #
39694
+ # @overload modify_instance_maintenance_options(params = {})
39695
+ # @param [Hash] params ({})
39696
+ def modify_instance_maintenance_options(params = {}, options = {})
39697
+ req = build_request(:modify_instance_maintenance_options, params)
39698
+ req.send_request(options)
39699
+ end
39700
+
39641
39701
  # Modify the instance metadata parameters on a running or stopped
39642
39702
  # instance. When you modify the parameters on a stopped instance, they
39643
39703
  # are applied when the instance is started. When you modify the
@@ -45973,8 +46033,7 @@ module Aws::EC2
45973
46033
  # The attribute to reset.
45974
46034
  #
45975
46035
  # You can only reset the following attributes: `kernel` \| `ramdisk` \|
45976
- # `sourceDestCheck`. To change an instance attribute, use
45977
- # ModifyInstanceAttribute.
46036
+ # `sourceDestCheck`.
45978
46037
  #
45979
46038
  # @option params [Boolean] :dry_run
45980
46039
  # Checks whether you have the required permissions for the action,
@@ -47171,6 +47230,9 @@ module Aws::EC2
47171
47230
  # The options for the instance hostname. The default values are
47172
47231
  # inherited from the subnet.
47173
47232
  #
47233
+ # @option params [Types::InstanceMaintenanceOptionsRequest] :maintenance_options
47234
+ # The maintenance and recovery options for the instance.
47235
+ #
47174
47236
  # @return [Types::Reservation] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
47175
47237
  #
47176
47238
  # * {Types::Reservation#groups #groups} => Array<Types::GroupIdentifier>
@@ -47396,6 +47458,9 @@ module Aws::EC2
47396
47458
  # enable_resource_name_dns_a_record: false,
47397
47459
  # enable_resource_name_dns_aaaa_record: false,
47398
47460
  # },
47461
+ # maintenance_options: {
47462
+ # auto_recovery: "disabled", # accepts disabled, default
47463
+ # },
47399
47464
  # })
47400
47465
  #
47401
47466
  # @example Response structure
@@ -47538,6 +47603,7 @@ module Aws::EC2
47538
47603
  # resp.instances[0].private_dns_name_options.enable_resource_name_dns_a_record #=> Boolean
47539
47604
  # resp.instances[0].private_dns_name_options.enable_resource_name_dns_aaaa_record #=> Boolean
47540
47605
  # resp.instances[0].ipv_6_address #=> String
47606
+ # resp.instances[0].maintenance_options.auto_recovery #=> String, one of "disabled", "default"
47541
47607
  # resp.owner_id #=> String
47542
47608
  # resp.requester_id #=> String
47543
47609
  # resp.reservation_id #=> String
@@ -49450,7 +49516,7 @@ module Aws::EC2
49450
49516
  params: params,
49451
49517
  config: config)
49452
49518
  context[:gem_name] = 'aws-sdk-ec2'
49453
- context[:gem_version] = '1.304.0'
49519
+ context[:gem_version] = '1.305.0'
49454
49520
  Seahorse::Client::Request.new(handlers, context)
49455
49521
  end
49456
49522
 
@@ -1390,6 +1390,7 @@ module Aws::EC2
1390
1390
  Instance = Shapes::StructureShape.new(name: 'Instance')
1391
1391
  InstanceAttribute = Shapes::StructureShape.new(name: 'InstanceAttribute')
1392
1392
  InstanceAttributeName = Shapes::StringShape.new(name: 'InstanceAttributeName')
1393
+ InstanceAutoRecoveryState = Shapes::StringShape.new(name: 'InstanceAutoRecoveryState')
1393
1394
  InstanceBlockDeviceMapping = Shapes::StructureShape.new(name: 'InstanceBlockDeviceMapping')
1394
1395
  InstanceBlockDeviceMappingList = Shapes::ListShape.new(name: 'InstanceBlockDeviceMappingList')
1395
1396
  InstanceBlockDeviceMappingSpecification = Shapes::StructureShape.new(name: 'InstanceBlockDeviceMappingSpecification')
@@ -1438,6 +1439,8 @@ module Aws::EC2
1438
1439
  InstanceLifecycle = Shapes::StringShape.new(name: 'InstanceLifecycle')
1439
1440
  InstanceLifecycleType = Shapes::StringShape.new(name: 'InstanceLifecycleType')
1440
1441
  InstanceList = Shapes::ListShape.new(name: 'InstanceList')
1442
+ InstanceMaintenanceOptions = Shapes::StructureShape.new(name: 'InstanceMaintenanceOptions')
1443
+ InstanceMaintenanceOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMaintenanceOptionsRequest')
1441
1444
  InstanceMarketOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMarketOptionsRequest')
1442
1445
  InstanceMatchCriteria = Shapes::StringShape.new(name: 'InstanceMatchCriteria')
1443
1446
  InstanceMetadataEndpointState = Shapes::StringShape.new(name: 'InstanceMetadataEndpointState')
@@ -1595,6 +1598,7 @@ module Aws::EC2
1595
1598
  LaunchSpecsList = Shapes::ListShape.new(name: 'LaunchSpecsList')
1596
1599
  LaunchTemplate = Shapes::StructureShape.new(name: 'LaunchTemplate')
1597
1600
  LaunchTemplateAndOverridesResponse = Shapes::StructureShape.new(name: 'LaunchTemplateAndOverridesResponse')
1601
+ LaunchTemplateAutoRecoveryState = Shapes::StringShape.new(name: 'LaunchTemplateAutoRecoveryState')
1598
1602
  LaunchTemplateBlockDeviceMapping = Shapes::StructureShape.new(name: 'LaunchTemplateBlockDeviceMapping')
1599
1603
  LaunchTemplateBlockDeviceMappingList = Shapes::ListShape.new(name: 'LaunchTemplateBlockDeviceMappingList')
1600
1604
  LaunchTemplateBlockDeviceMappingRequest = Shapes::StructureShape.new(name: 'LaunchTemplateBlockDeviceMappingRequest')
@@ -1622,6 +1626,8 @@ module Aws::EC2
1622
1626
  LaunchTemplateIamInstanceProfileSpecificationRequest = Shapes::StructureShape.new(name: 'LaunchTemplateIamInstanceProfileSpecificationRequest')
1623
1627
  LaunchTemplateId = Shapes::StringShape.new(name: 'LaunchTemplateId')
1624
1628
  LaunchTemplateIdStringList = Shapes::ListShape.new(name: 'LaunchTemplateIdStringList')
1629
+ LaunchTemplateInstanceMaintenanceOptions = Shapes::StructureShape.new(name: 'LaunchTemplateInstanceMaintenanceOptions')
1630
+ LaunchTemplateInstanceMaintenanceOptionsRequest = Shapes::StructureShape.new(name: 'LaunchTemplateInstanceMaintenanceOptionsRequest')
1625
1631
  LaunchTemplateInstanceMarketOptions = Shapes::StructureShape.new(name: 'LaunchTemplateInstanceMarketOptions')
1626
1632
  LaunchTemplateInstanceMarketOptionsRequest = Shapes::StructureShape.new(name: 'LaunchTemplateInstanceMarketOptionsRequest')
1627
1633
  LaunchTemplateInstanceMetadataEndpointState = Shapes::StringShape.new(name: 'LaunchTemplateInstanceMetadataEndpointState')
@@ -1765,6 +1771,8 @@ module Aws::EC2
1765
1771
  ModifyInstanceEventStartTimeResult = Shapes::StructureShape.new(name: 'ModifyInstanceEventStartTimeResult')
1766
1772
  ModifyInstanceEventWindowRequest = Shapes::StructureShape.new(name: 'ModifyInstanceEventWindowRequest')
1767
1773
  ModifyInstanceEventWindowResult = Shapes::StructureShape.new(name: 'ModifyInstanceEventWindowResult')
1774
+ ModifyInstanceMaintenanceOptionsRequest = Shapes::StructureShape.new(name: 'ModifyInstanceMaintenanceOptionsRequest')
1775
+ ModifyInstanceMaintenanceOptionsResult = Shapes::StructureShape.new(name: 'ModifyInstanceMaintenanceOptionsResult')
1768
1776
  ModifyInstanceMetadataOptionsRequest = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataOptionsRequest')
1769
1777
  ModifyInstanceMetadataOptionsResult = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataOptionsResult')
1770
1778
  ModifyInstancePlacementRequest = Shapes::StructureShape.new(name: 'ModifyInstancePlacementRequest')
@@ -8311,6 +8319,7 @@ module Aws::EC2
8311
8319
  Instance.add_member(:usage_operation_update_time, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "usageOperationUpdateTime"))
8312
8320
  Instance.add_member(:private_dns_name_options, Shapes::ShapeRef.new(shape: PrivateDnsNameOptionsResponse, location_name: "privateDnsNameOptions"))
8313
8321
  Instance.add_member(:ipv_6_address, Shapes::ShapeRef.new(shape: String, location_name: "ipv6Address"))
8322
+ Instance.add_member(:maintenance_options, Shapes::ShapeRef.new(shape: InstanceMaintenanceOptions, location_name: "maintenanceOptions"))
8314
8323
  Instance.struct_class = Types::Instance
8315
8324
 
8316
8325
  InstanceAttribute.add_member(:groups, Shapes::ShapeRef.new(shape: GroupIdentifierList, location_name: "groupSet"))
@@ -8456,6 +8465,12 @@ module Aws::EC2
8456
8465
 
8457
8466
  InstanceList.member = Shapes::ShapeRef.new(shape: Instance, location_name: "item")
8458
8467
 
8468
+ InstanceMaintenanceOptions.add_member(:auto_recovery, Shapes::ShapeRef.new(shape: InstanceAutoRecoveryState, location_name: "autoRecovery"))
8469
+ InstanceMaintenanceOptions.struct_class = Types::InstanceMaintenanceOptions
8470
+
8471
+ InstanceMaintenanceOptionsRequest.add_member(:auto_recovery, Shapes::ShapeRef.new(shape: InstanceAutoRecoveryState, location_name: "AutoRecovery"))
8472
+ InstanceMaintenanceOptionsRequest.struct_class = Types::InstanceMaintenanceOptionsRequest
8473
+
8459
8474
  InstanceMarketOptionsRequest.add_member(:market_type, Shapes::ShapeRef.new(shape: MarketType, location_name: "MarketType"))
8460
8475
  InstanceMarketOptionsRequest.add_member(:spot_options, Shapes::ShapeRef.new(shape: SpotMarketOptions, location_name: "SpotOptions"))
8461
8476
  InstanceMarketOptionsRequest.struct_class = Types::InstanceMarketOptionsRequest
@@ -9099,6 +9114,12 @@ module Aws::EC2
9099
9114
 
9100
9115
  LaunchTemplateIdStringList.member = Shapes::ShapeRef.new(shape: LaunchTemplateId, location_name: "item")
9101
9116
 
9117
+ LaunchTemplateInstanceMaintenanceOptions.add_member(:auto_recovery, Shapes::ShapeRef.new(shape: LaunchTemplateAutoRecoveryState, location_name: "autoRecovery"))
9118
+ LaunchTemplateInstanceMaintenanceOptions.struct_class = Types::LaunchTemplateInstanceMaintenanceOptions
9119
+
9120
+ LaunchTemplateInstanceMaintenanceOptionsRequest.add_member(:auto_recovery, Shapes::ShapeRef.new(shape: LaunchTemplateAutoRecoveryState, location_name: "AutoRecovery"))
9121
+ LaunchTemplateInstanceMaintenanceOptionsRequest.struct_class = Types::LaunchTemplateInstanceMaintenanceOptionsRequest
9122
+
9102
9123
  LaunchTemplateInstanceMarketOptions.add_member(:market_type, Shapes::ShapeRef.new(shape: MarketType, location_name: "marketType"))
9103
9124
  LaunchTemplateInstanceMarketOptions.add_member(:spot_options, Shapes::ShapeRef.new(shape: LaunchTemplateSpotMarketOptions, location_name: "spotOptions"))
9104
9125
  LaunchTemplateInstanceMarketOptions.struct_class = Types::LaunchTemplateInstanceMarketOptions
@@ -9632,6 +9653,15 @@ module Aws::EC2
9632
9653
  ModifyInstanceEventWindowResult.add_member(:instance_event_window, Shapes::ShapeRef.new(shape: InstanceEventWindow, location_name: "instanceEventWindow"))
9633
9654
  ModifyInstanceEventWindowResult.struct_class = Types::ModifyInstanceEventWindowResult
9634
9655
 
9656
+ ModifyInstanceMaintenanceOptionsRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
9657
+ ModifyInstanceMaintenanceOptionsRequest.add_member(:auto_recovery, Shapes::ShapeRef.new(shape: InstanceAutoRecoveryState, location_name: "AutoRecovery"))
9658
+ ModifyInstanceMaintenanceOptionsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
9659
+ ModifyInstanceMaintenanceOptionsRequest.struct_class = Types::ModifyInstanceMaintenanceOptionsRequest
9660
+
9661
+ ModifyInstanceMaintenanceOptionsResult.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "instanceId"))
9662
+ ModifyInstanceMaintenanceOptionsResult.add_member(:auto_recovery, Shapes::ShapeRef.new(shape: InstanceAutoRecoveryState, location_name: "autoRecovery"))
9663
+ ModifyInstanceMaintenanceOptionsResult.struct_class = Types::ModifyInstanceMaintenanceOptionsResult
9664
+
9635
9665
  ModifyInstanceMetadataOptionsRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
9636
9666
  ModifyInstanceMetadataOptionsRequest.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokensState, location_name: "HttpTokens"))
9637
9667
  ModifyInstanceMetadataOptionsRequest.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: Integer, location_name: "HttpPutResponseHopLimit"))
@@ -11025,6 +11055,7 @@ module Aws::EC2
11025
11055
  RequestLaunchTemplateData.add_member(:enclave_options, Shapes::ShapeRef.new(shape: LaunchTemplateEnclaveOptionsRequest, location_name: "EnclaveOptions"))
11026
11056
  RequestLaunchTemplateData.add_member(:instance_requirements, Shapes::ShapeRef.new(shape: InstanceRequirementsRequest, location_name: "InstanceRequirements"))
11027
11057
  RequestLaunchTemplateData.add_member(:private_dns_name_options, Shapes::ShapeRef.new(shape: LaunchTemplatePrivateDnsNameOptionsRequest, location_name: "PrivateDnsNameOptions"))
11058
+ RequestLaunchTemplateData.add_member(:maintenance_options, Shapes::ShapeRef.new(shape: LaunchTemplateInstanceMaintenanceOptionsRequest, location_name: "MaintenanceOptions"))
11028
11059
  RequestLaunchTemplateData.struct_class = Types::RequestLaunchTemplateData
11029
11060
 
11030
11061
  RequestSpotFleetRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
@@ -11296,6 +11327,7 @@ module Aws::EC2
11296
11327
  ResponseLaunchTemplateData.add_member(:enclave_options, Shapes::ShapeRef.new(shape: LaunchTemplateEnclaveOptions, location_name: "enclaveOptions"))
11297
11328
  ResponseLaunchTemplateData.add_member(:instance_requirements, Shapes::ShapeRef.new(shape: InstanceRequirements, location_name: "instanceRequirements"))
11298
11329
  ResponseLaunchTemplateData.add_member(:private_dns_name_options, Shapes::ShapeRef.new(shape: LaunchTemplatePrivateDnsNameOptions, location_name: "privateDnsNameOptions"))
11330
+ ResponseLaunchTemplateData.add_member(:maintenance_options, Shapes::ShapeRef.new(shape: LaunchTemplateInstanceMaintenanceOptions, location_name: "maintenanceOptions"))
11299
11331
  ResponseLaunchTemplateData.struct_class = Types::ResponseLaunchTemplateData
11300
11332
 
11301
11333
  RestorableByStringList.member = Shapes::ShapeRef.new(shape: String)
@@ -11485,6 +11517,7 @@ module Aws::EC2
11485
11517
  RunInstancesRequest.add_member(:metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptionsRequest, location_name: "MetadataOptions"))
11486
11518
  RunInstancesRequest.add_member(:enclave_options, Shapes::ShapeRef.new(shape: EnclaveOptionsRequest, location_name: "EnclaveOptions"))
11487
11519
  RunInstancesRequest.add_member(:private_dns_name_options, Shapes::ShapeRef.new(shape: PrivateDnsNameOptionsRequest, location_name: "PrivateDnsNameOptions"))
11520
+ RunInstancesRequest.add_member(:maintenance_options, Shapes::ShapeRef.new(shape: InstanceMaintenanceOptionsRequest, location_name: "MaintenanceOptions"))
11488
11521
  RunInstancesRequest.struct_class = Types::RunInstancesRequest
11489
11522
 
11490
11523
  RunScheduledInstancesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
@@ -17247,6 +17280,14 @@ module Aws::EC2
17247
17280
  o.output = Shapes::ShapeRef.new(shape: ModifyInstanceEventWindowResult)
17248
17281
  end)
17249
17282
 
17283
+ api.add_operation(:modify_instance_maintenance_options, Seahorse::Model::Operation.new.tap do |o|
17284
+ o.name = "ModifyInstanceMaintenanceOptions"
17285
+ o.http_method = "POST"
17286
+ o.http_request_uri = "/"
17287
+ o.input = Shapes::ShapeRef.new(shape: ModifyInstanceMaintenanceOptionsRequest)
17288
+ o.output = Shapes::ShapeRef.new(shape: ModifyInstanceMaintenanceOptionsResult)
17289
+ end)
17290
+
17250
17291
  api.add_operation(:modify_instance_metadata_options, Seahorse::Model::Operation.new.tap do |o|
17251
17292
  o.name = "ModifyInstanceMetadataOptions"
17252
17293
  o.http_method = "POST"
@@ -389,6 +389,13 @@ module Aws::EC2
389
389
  data[:ipv_6_address]
390
390
  end
391
391
 
392
+ # Provides information on the recovery and maintenance options of your
393
+ # instance.
394
+ # @return [Types::InstanceMaintenanceOptions]
395
+ def maintenance_options
396
+ data[:maintenance_options]
397
+ end
398
+
392
399
  # @!endgroup
393
400
 
394
401
  # @return [Client]
@@ -1199,8 +1206,7 @@ module Aws::EC2
1199
1206
  # The attribute to reset.
1200
1207
  #
1201
1208
  # You can only reset the following attributes: `kernel` \| `ramdisk` \|
1202
- # `sourceDestCheck`. To change an instance attribute, use
1203
- # ModifyInstanceAttribute.
1209
+ # `sourceDestCheck`.
1204
1210
  # @option options [Boolean] :dry_run
1205
1211
  # Checks whether you have the required permissions for the action,
1206
1212
  # without actually making the request, and provides an error response.
@@ -253,6 +253,9 @@ module Aws::EC2
253
253
  # enable_resource_name_dns_a_record: false,
254
254
  # enable_resource_name_dns_aaaa_record: false,
255
255
  # },
256
+ # maintenance_options: {
257
+ # auto_recovery: "disabled", # accepts disabled, default
258
+ # },
256
259
  # })
257
260
  # @param [Hash] options ({})
258
261
  # @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
@@ -561,6 +564,8 @@ module Aws::EC2
561
564
  # @option options [Types::PrivateDnsNameOptionsRequest] :private_dns_name_options
562
565
  # The options for the instance hostname. The default values are
563
566
  # inherited from the subnet.
567
+ # @option options [Types::InstanceMaintenanceOptionsRequest] :maintenance_options
568
+ # The maintenance and recovery options for the instance.
564
569
  # @return [Instance::Collection]
565
570
  def create_instances(options = {})
566
571
  batch = []
@@ -477,6 +477,9 @@ module Aws::EC2
477
477
  # enable_resource_name_dns_a_record: false,
478
478
  # enable_resource_name_dns_aaaa_record: false,
479
479
  # },
480
+ # maintenance_options: {
481
+ # auto_recovery: "disabled", # accepts disabled, default
482
+ # },
480
483
  # })
481
484
  # @param [Hash] options ({})
482
485
  # @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
@@ -780,6 +783,8 @@ module Aws::EC2
780
783
  # @option options [Types::PrivateDnsNameOptionsRequest] :private_dns_name_options
781
784
  # The options for the instance hostname. The default values are
782
785
  # inherited from the subnet.
786
+ # @option options [Types::InstanceMaintenanceOptionsRequest] :maintenance_options
787
+ # The maintenance and recovery options for the instance.
783
788
  # @return [Instance::Collection]
784
789
  def create_instances(options = {})
785
790
  batch = []
@@ -9238,6 +9238,9 @@ module Aws::EC2
9238
9238
  # enable_resource_name_dns_a_record: false,
9239
9239
  # enable_resource_name_dns_aaaa_record: false,
9240
9240
  # },
9241
+ # maintenance_options: {
9242
+ # auto_recovery: "default", # accepts default, disabled
9243
+ # },
9241
9244
  # },
9242
9245
  # tag_specifications: [
9243
9246
  # {
@@ -9531,6 +9534,9 @@ module Aws::EC2
9531
9534
  # enable_resource_name_dns_a_record: false,
9532
9535
  # enable_resource_name_dns_aaaa_record: false,
9533
9536
  # },
9537
+ # maintenance_options: {
9538
+ # auto_recovery: "default", # accepts default, disabled
9539
+ # },
9534
9540
  # },
9535
9541
  # }
9536
9542
  #
@@ -39476,6 +39482,11 @@ module Aws::EC2
39476
39482
  # The IPv6 address assigned to the instance.
39477
39483
  # @return [String]
39478
39484
  #
39485
+ # @!attribute [rw] maintenance_options
39486
+ # Provides information on the recovery and maintenance options of your
39487
+ # instance.
39488
+ # @return [Types::InstanceMaintenanceOptions]
39489
+ #
39479
39490
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Instance AWS API Documentation
39480
39491
  #
39481
39492
  class Instance < Struct.new(
@@ -39532,7 +39543,8 @@ module Aws::EC2
39532
39543
  :usage_operation,
39533
39544
  :usage_operation_update_time,
39534
39545
  :private_dns_name_options,
39535
- :ipv_6_address)
39546
+ :ipv_6_address,
39547
+ :maintenance_options)
39536
39548
  SENSITIVE = []
39537
39549
  include Aws::Structure
39538
39550
  end
@@ -40152,6 +40164,48 @@ module Aws::EC2
40152
40164
  include Aws::Structure
40153
40165
  end
40154
40166
 
40167
+ # The maintenance options for the instance.
40168
+ #
40169
+ # @!attribute [rw] auto_recovery
40170
+ # Provides information on the current automatic recovery behavior of
40171
+ # your instance.
40172
+ # @return [String]
40173
+ #
40174
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMaintenanceOptions AWS API Documentation
40175
+ #
40176
+ class InstanceMaintenanceOptions < Struct.new(
40177
+ :auto_recovery)
40178
+ SENSITIVE = []
40179
+ include Aws::Structure
40180
+ end
40181
+
40182
+ # The maintenance options for the instance.
40183
+ #
40184
+ # @note When making an API call, you may pass InstanceMaintenanceOptionsRequest
40185
+ # data as a hash:
40186
+ #
40187
+ # {
40188
+ # auto_recovery: "disabled", # accepts disabled, default
40189
+ # }
40190
+ #
40191
+ # @!attribute [rw] auto_recovery
40192
+ # Disables the automatic recovery behavior of your instance or sets it
40193
+ # to default. For more information, see [Simplified automatic
40194
+ # recovery][1].
40195
+ #
40196
+ #
40197
+ #
40198
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html#instance-configuration-recovery
40199
+ # @return [String]
40200
+ #
40201
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMaintenanceOptionsRequest AWS API Documentation
40202
+ #
40203
+ class InstanceMaintenanceOptionsRequest < Struct.new(
40204
+ :auto_recovery)
40205
+ SENSITIVE = []
40206
+ include Aws::Structure
40207
+ end
40208
+
40155
40209
  # Describes the market (purchasing) option for the instances.
40156
40210
  #
40157
40211
  # @note When making an API call, you may pass InstanceMarketOptionsRequest
@@ -44269,6 +44323,48 @@ module Aws::EC2
44269
44323
  include Aws::Structure
44270
44324
  end
44271
44325
 
44326
+ # The maintenance options of your instance.
44327
+ #
44328
+ # @!attribute [rw] auto_recovery
44329
+ # Disables the automatic recovery behavior of your instance or sets it
44330
+ # to default.
44331
+ # @return [String]
44332
+ #
44333
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceMaintenanceOptions AWS API Documentation
44334
+ #
44335
+ class LaunchTemplateInstanceMaintenanceOptions < Struct.new(
44336
+ :auto_recovery)
44337
+ SENSITIVE = []
44338
+ include Aws::Structure
44339
+ end
44340
+
44341
+ # The maintenance options of your instance.
44342
+ #
44343
+ # @note When making an API call, you may pass LaunchTemplateInstanceMaintenanceOptionsRequest
44344
+ # data as a hash:
44345
+ #
44346
+ # {
44347
+ # auto_recovery: "default", # accepts default, disabled
44348
+ # }
44349
+ #
44350
+ # @!attribute [rw] auto_recovery
44351
+ # Disables the automatic recovery behavior of your instance or sets it
44352
+ # to default. For more information, see [Simplified automatic
44353
+ # recovery][1].
44354
+ #
44355
+ #
44356
+ #
44357
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html#instance-configuration-recovery
44358
+ # @return [String]
44359
+ #
44360
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceMaintenanceOptionsRequest AWS API Documentation
44361
+ #
44362
+ class LaunchTemplateInstanceMaintenanceOptionsRequest < Struct.new(
44363
+ :auto_recovery)
44364
+ SENSITIVE = []
44365
+ include Aws::Structure
44366
+ end
44367
+
44272
44368
  # The market (purchasing) option for the instances.
44273
44369
  #
44274
44370
  # @!attribute [rw] market_type
@@ -46909,7 +47005,9 @@ module Aws::EC2
46909
47005
  end
46910
47006
 
46911
47007
  # @!attribute [rw] return
46912
- # Is `true` if the request succeeds, and an error otherwise.
47008
+ # If the request succeeds, the response returns `true`. If the request
47009
+ # fails, no response is returned, and instead an error message is
47010
+ # returned.
46913
47011
  # @return [Boolean]
46914
47012
  #
46915
47013
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyFleetResult AWS API Documentation
@@ -47763,6 +47861,59 @@ module Aws::EC2
47763
47861
  include Aws::Structure
47764
47862
  end
47765
47863
 
47864
+ # @note When making an API call, you may pass ModifyInstanceMaintenanceOptionsRequest
47865
+ # data as a hash:
47866
+ #
47867
+ # {
47868
+ # instance_id: "InstanceId", # required
47869
+ # auto_recovery: "disabled", # accepts disabled, default
47870
+ # dry_run: false,
47871
+ # }
47872
+ #
47873
+ # @!attribute [rw] instance_id
47874
+ # The ID of the instance.
47875
+ # @return [String]
47876
+ #
47877
+ # @!attribute [rw] auto_recovery
47878
+ # Disables the automatic recovery behavior of your instance or sets it
47879
+ # to default.
47880
+ # @return [String]
47881
+ #
47882
+ # @!attribute [rw] dry_run
47883
+ # Checks whether you have the required permissions for the action,
47884
+ # without actually making the request, and provides an error response.
47885
+ # If you have the required permissions, the error response is
47886
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
47887
+ # @return [Boolean]
47888
+ #
47889
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMaintenanceOptionsRequest AWS API Documentation
47890
+ #
47891
+ class ModifyInstanceMaintenanceOptionsRequest < Struct.new(
47892
+ :instance_id,
47893
+ :auto_recovery,
47894
+ :dry_run)
47895
+ SENSITIVE = []
47896
+ include Aws::Structure
47897
+ end
47898
+
47899
+ # @!attribute [rw] instance_id
47900
+ # The ID of the instance.
47901
+ # @return [String]
47902
+ #
47903
+ # @!attribute [rw] auto_recovery
47904
+ # Provides information on the current automatic recovery behavior of
47905
+ # your instance.
47906
+ # @return [String]
47907
+ #
47908
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMaintenanceOptionsResult AWS API Documentation
47909
+ #
47910
+ class ModifyInstanceMaintenanceOptionsResult < Struct.new(
47911
+ :instance_id,
47912
+ :auto_recovery)
47913
+ SENSITIVE = []
47914
+ include Aws::Structure
47915
+ end
47916
+
47766
47917
  # @note When making an API call, you may pass ModifyInstanceMetadataOptionsRequest
47767
47918
  # data as a hash:
47768
47919
  #
@@ -48924,7 +49075,9 @@ module Aws::EC2
48924
49075
  # Contains the output of ModifySpotFleetRequest.
48925
49076
  #
48926
49077
  # @!attribute [rw] return
48927
- # Is `true` if the request succeeds, and an error otherwise.
49078
+ # If the request succeeds, the response returns `true`. If the request
49079
+ # fails, no response is returned, and instead an error message is
49080
+ # returned.
48928
49081
  # @return [Boolean]
48929
49082
  #
48930
49083
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifySpotFleetRequestResponse AWS API Documentation
@@ -55886,6 +56039,9 @@ module Aws::EC2
55886
56039
  # enable_resource_name_dns_a_record: false,
55887
56040
  # enable_resource_name_dns_aaaa_record: false,
55888
56041
  # },
56042
+ # maintenance_options: {
56043
+ # auto_recovery: "default", # accepts default, disabled
56044
+ # },
55889
56045
  # }
55890
56046
  #
55891
56047
  # @!attribute [rw] kernel_id
@@ -56131,6 +56287,10 @@ module Aws::EC2
56131
56287
  # inherited from the subnet.
56132
56288
  # @return [Types::LaunchTemplatePrivateDnsNameOptionsRequest]
56133
56289
  #
56290
+ # @!attribute [rw] maintenance_options
56291
+ # The maintenance options for the instance.
56292
+ # @return [Types::LaunchTemplateInstanceMaintenanceOptionsRequest]
56293
+ #
56134
56294
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RequestLaunchTemplateData AWS API Documentation
56135
56295
  #
56136
56296
  class RequestLaunchTemplateData < Struct.new(
@@ -56162,7 +56322,8 @@ module Aws::EC2
56162
56322
  :metadata_options,
56163
56323
  :enclave_options,
56164
56324
  :instance_requirements,
56165
- :private_dns_name_options)
56325
+ :private_dns_name_options,
56326
+ :maintenance_options)
56166
56327
  SENSITIVE = []
56167
56328
  include Aws::Structure
56168
56329
  end
@@ -57728,8 +57889,7 @@ module Aws::EC2
57728
57889
  # The attribute to reset.
57729
57890
  #
57730
57891
  # You can only reset the following attributes: `kernel` \| `ramdisk`
57731
- # \| `sourceDestCheck`. To change an instance attribute, use
57732
- # ModifyInstanceAttribute.
57892
+ # \| `sourceDestCheck`.
57733
57893
  # @return [String]
57734
57894
  #
57735
57895
  # @!attribute [rw] dry_run
@@ -58036,6 +58196,10 @@ module Aws::EC2
58036
58196
  # The options for the instance hostname.
58037
58197
  # @return [Types::LaunchTemplatePrivateDnsNameOptions]
58038
58198
  #
58199
+ # @!attribute [rw] maintenance_options
58200
+ # The maintenance options for your instance.
58201
+ # @return [Types::LaunchTemplateInstanceMaintenanceOptions]
58202
+ #
58039
58203
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ResponseLaunchTemplateData AWS API Documentation
58040
58204
  #
58041
58205
  class ResponseLaunchTemplateData < Struct.new(
@@ -58067,7 +58231,8 @@ module Aws::EC2
58067
58231
  :metadata_options,
58068
58232
  :enclave_options,
58069
58233
  :instance_requirements,
58070
- :private_dns_name_options)
58234
+ :private_dns_name_options,
58235
+ :maintenance_options)
58071
58236
  SENSITIVE = []
58072
58237
  include Aws::Structure
58073
58238
  end
@@ -59143,6 +59308,9 @@ module Aws::EC2
59143
59308
  # enable_resource_name_dns_a_record: false,
59144
59309
  # enable_resource_name_dns_aaaa_record: false,
59145
59310
  # },
59311
+ # maintenance_options: {
59312
+ # auto_recovery: "disabled", # accepts disabled, default
59313
+ # },
59146
59314
  # }
59147
59315
  #
59148
59316
  # @!attribute [rw] block_device_mappings
@@ -59534,6 +59702,10 @@ module Aws::EC2
59534
59702
  # inherited from the subnet.
59535
59703
  # @return [Types::PrivateDnsNameOptionsRequest]
59536
59704
  #
59705
+ # @!attribute [rw] maintenance_options
59706
+ # The maintenance and recovery options for the instance.
59707
+ # @return [Types::InstanceMaintenanceOptionsRequest]
59708
+ #
59537
59709
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstancesRequest AWS API Documentation
59538
59710
  #
59539
59711
  class RunInstancesRequest < Struct.new(
@@ -59574,7 +59746,8 @@ module Aws::EC2
59574
59746
  :license_specifications,
59575
59747
  :metadata_options,
59576
59748
  :enclave_options,
59577
- :private_dns_name_options)
59749
+ :private_dns_name_options,
59750
+ :maintenance_options)
59578
59751
  SENSITIVE = []
59579
59752
  include Aws::Structure
59580
59753
  end
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.304.0'
75
+ GEM_VERSION = '1.305.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.304.0
4
+ version: 1.305.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-03-25 00:00:00.000000000 Z
11
+ date: 2022-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4