aws-sdk-ec2 1.116.0 → 1.117.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f961fa1cf8a24f9b4d87a9866f8d52090a087bb
4
- data.tar.gz: '0522391d4e8be6ca5fb6f3971373306492171e3f'
3
+ metadata.gz: 02bc204933dfb702bafef150d316358eefd9087a
4
+ data.tar.gz: 81e9efd39850a5426b6716dd2f5626b40f8b3976
5
5
  SHA512:
6
- metadata.gz: 85384d395233e22ad6b9127b7cf70ebfaae31105f1992f08c155c3f32ba29e9994d6b0e4fd9c1c67f5968b8364fc5eb32c0da4603a2817d989a75ef5f9de94da
7
- data.tar.gz: ad5e9576e63e98ddd5eceab4a91b0bb3631377bb2506f658fe77f74559d7b6f1e00b29641a47437c7202e0aceeddf57de507439c1ccb92299eebc7290ba2d430
6
+ metadata.gz: 302089d8317080adce2febca8e88011436029b0d61e75ab15adddb87d33b0dc6da81fda96323c0474b6235cc51bbd7bcf7b1e5c499c725143a067825c44bafe4
7
+ data.tar.gz: 6c821cbca84b63e3e6b1d93a5090752f3759825d9424576b98ebc1f8e445e89258b814ba4fca57871f19adf7ddad04831b0f1842e81f28057b7a83416463fb94
@@ -65,6 +65,6 @@ require_relative 'aws-sdk-ec2/customizations'
65
65
  # @service
66
66
  module Aws::EC2
67
67
 
68
- GEM_VERSION = '1.116.0'
68
+ GEM_VERSION = '1.117.0'
69
69
 
70
70
  end
@@ -3667,12 +3667,10 @@ module Aws::EC2
3667
3667
  # For more information, see [AWS Site-to-Site VPN][1] in the *AWS
3668
3668
  # Site-to-Site VPN User Guide*.
3669
3669
  #
3670
- # You cannot create more than one customer gateway with the same VPN
3671
- # type, IP address, and BGP ASN parameter values. If you run an
3672
- # identical request more than one time, the first request creates the
3673
- # customer gateway, and subsequent requests return information about the
3674
- # existing customer gateway. The subsequent requests do not create new
3675
- # customer gateway resources.
3670
+ # To create more than one customer gateway with the same VPN type, IP
3671
+ # address, and BGP ASN, specify a unique device name for each customer
3672
+ # gateway. Identical requests return information about the existing
3673
+ # customer gateway and do not create new customer gateways.
3676
3674
  #
3677
3675
  #
3678
3676
  #
@@ -3694,6 +3692,11 @@ module Aws::EC2
3694
3692
  # The type of VPN connection that this customer gateway supports
3695
3693
  # (`ipsec.1`).
3696
3694
  #
3695
+ # @option params [String] :device_name
3696
+ # A name for the customer gateway device.
3697
+ #
3698
+ # Length Constraints: Up to 255 characters.
3699
+ #
3697
3700
  # @option params [Boolean] :dry_run
3698
3701
  # Checks whether you have the required permissions for the action,
3699
3702
  # without actually making the request, and provides an error response.
@@ -3733,6 +3736,7 @@ module Aws::EC2
3733
3736
  # public_ip: "String",
3734
3737
  # certificate_arn: "String",
3735
3738
  # type: "ipsec.1", # required, accepts ipsec.1
3739
+ # device_name: "String",
3736
3740
  # dry_run: false,
3737
3741
  # })
3738
3742
  #
@@ -3744,6 +3748,7 @@ module Aws::EC2
3744
3748
  # resp.customer_gateway.certificate_arn #=> String
3745
3749
  # resp.customer_gateway.state #=> String
3746
3750
  # resp.customer_gateway.type #=> String
3751
+ # resp.customer_gateway.device_name #=> String
3747
3752
  # resp.customer_gateway.tags #=> Array
3748
3753
  # resp.customer_gateway.tags[0].key #=> String
3749
3754
  # resp.customer_gateway.tags[0].value #=> String
@@ -12137,6 +12142,7 @@ module Aws::EC2
12137
12142
  # resp.customer_gateways[0].certificate_arn #=> String
12138
12143
  # resp.customer_gateways[0].state #=> String
12139
12144
  # resp.customer_gateways[0].type #=> String
12145
+ # resp.customer_gateways[0].device_name #=> String
12140
12146
  # resp.customer_gateways[0].tags #=> Array
12141
12147
  # resp.customer_gateways[0].tags[0].key #=> String
12142
12148
  # resp.customer_gateways[0].tags[0].value #=> String
@@ -14557,9 +14563,8 @@ module Aws::EC2
14557
14563
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
14558
14564
  #
14559
14565
  # * `iam-instance-profile.arn` - The instance profile associated with
14560
- # the instance. Specified as an ARN.
14561
- #
14562
- # * `image-id` - The ID of the image used to launch the instance.
14566
+ # the instance. Specified as an ARN. `image-id` - The ID of the image
14567
+ # used to launch the instance.
14563
14568
  #
14564
14569
  # * `instance-id` - The ID of the instance.
14565
14570
  #
@@ -14596,6 +14601,15 @@ module Aws::EC2
14596
14601
  #
14597
14602
  # * `launch-time` - The time when the instance was launched.
14598
14603
  #
14604
+ # * `metadata-http-tokens` - The metadata request authorization state
14605
+ # (`optional` \| `required`)
14606
+ #
14607
+ # * `metadata-http-put-response-hop-limit` - The http metadata request
14608
+ # put response hop limit (integer, possible values `1` to `64`)
14609
+ #
14610
+ # * `metadata-http-endpoint` - Enable or disable metadata access on http
14611
+ # endpoint (`enabled` \| `disabled`)
14612
+ #
14599
14613
  # * `monitoring-state` - Indicates whether detailed monitoring is
14600
14614
  # enabled (`disabled` \| `enabled`).
14601
14615
  #
@@ -14991,6 +15005,10 @@ module Aws::EC2
14991
15005
  # resp.reservations[0].instances[0].hibernation_options.configured #=> Boolean
14992
15006
  # resp.reservations[0].instances[0].licenses #=> Array
14993
15007
  # resp.reservations[0].instances[0].licenses[0].license_configuration_arn #=> String
15008
+ # resp.reservations[0].instances[0].metadata_options.state #=> String, one of "pending", "applied"
15009
+ # resp.reservations[0].instances[0].metadata_options.http_tokens #=> String, one of "optional", "required"
15010
+ # resp.reservations[0].instances[0].metadata_options.http_put_response_hop_limit #=> Integer
15011
+ # resp.reservations[0].instances[0].metadata_options.http_endpoint #=> String, one of "disabled", "enabled"
14994
15012
  # resp.reservations[0].owner_id #=> String
14995
15013
  # resp.reservations[0].requester_id #=> String
14996
15014
  # resp.reservations[0].reservation_id #=> String
@@ -22058,6 +22076,9 @@ module Aws::EC2
22058
22076
  # * `vpn-gateway-id` - The ID of a virtual private gateway associated
22059
22077
  # with the VPN connection.
22060
22078
  #
22079
+ # * `transit-gateway-id` - The ID of a transit gateway associated with
22080
+ # the VPN connection.
22081
+ #
22061
22082
  # @option params [Array<String>] :vpn_connection_ids
22062
22083
  # One or more VPN connection IDs.
22063
22084
  #
@@ -26166,6 +26187,95 @@ module Aws::EC2
26166
26187
  req.send_request(options)
26167
26188
  end
26168
26189
 
26190
+ # Modify the instance metadata parameters on a running or stopped
26191
+ # instance. When you modify the parameters on a stopped instance, they
26192
+ # are applied when the instance is started. When you modify the
26193
+ # parameters on a running instance, the API responds with a state of
26194
+ # “pending”. After the parameter modifications are successfully applied
26195
+ # to the instance, the state of the modifications changes from “pending”
26196
+ # to “applied” in subsequent describe-instances API calls. For more
26197
+ # information, see [Instance Metadata and User Data][1].
26198
+ #
26199
+ #
26200
+ #
26201
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
26202
+ #
26203
+ # @option params [required, String] :instance_id
26204
+ # The ID of the instance.
26205
+ #
26206
+ # @option params [String] :http_tokens
26207
+ # The state of token usage for your instance metadata requests. If the
26208
+ # parameter is not specified in the request, the default state is
26209
+ # `optional`.
26210
+ #
26211
+ # If the state is `optional`, you can choose to retrieve instance
26212
+ # metadata with or without a signed token header on your request. If you
26213
+ # retrieve the IAM role credentials without a token, the version 1.0
26214
+ # role credentials are returned. If you retrieve the IAM role
26215
+ # credentials using a valid signed token, the version 2.0 role
26216
+ # credentials are returned.
26217
+ #
26218
+ # If the state is `required`, you must send a signed token header with
26219
+ # any instance metadata retrieval requests. In this state, retrieving
26220
+ # the IAM role credential always returns the version 2.0 credentials;
26221
+ # the version 1.0 credentials are not available.
26222
+ #
26223
+ # @option params [Integer] :http_put_response_hop_limit
26224
+ # The desired HTTP PUT response hop limit for instance metadata
26225
+ # requests. The larger the number, the further instance metadata
26226
+ # requests can travel. If no parameter is specified, the existing state
26227
+ # is maintained.
26228
+ #
26229
+ # Possible values: Integers from 1 to 64
26230
+ #
26231
+ # @option params [String] :http_endpoint
26232
+ # This parameter enables or disables the HTTP metadata endpoint on your
26233
+ # instances. If the parameter is not specified, the existing state is
26234
+ # maintained.
26235
+ #
26236
+ # <note markdown="1"> If you specify a value of `disabled`, you will not be able to access
26237
+ # your instance metadata.
26238
+ #
26239
+ # </note>
26240
+ #
26241
+ # @option params [Boolean] :dry_run
26242
+ # Checks whether you have the required permissions for the action,
26243
+ # without actually making the request, and provides an error response.
26244
+ # If you have the required permissions, the error response is
26245
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
26246
+ #
26247
+ # @return [Types::ModifyInstanceMetadataOptionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
26248
+ #
26249
+ # * {Types::ModifyInstanceMetadataOptionsResult#instance_id #instance_id} => String
26250
+ # * {Types::ModifyInstanceMetadataOptionsResult#instance_metadata_options #instance_metadata_options} => Types::InstanceMetadataOptionsResponse
26251
+ #
26252
+ # @example Request syntax with placeholder values
26253
+ #
26254
+ # resp = client.modify_instance_metadata_options({
26255
+ # instance_id: "String", # required
26256
+ # http_tokens: "optional", # accepts optional, required
26257
+ # http_put_response_hop_limit: 1,
26258
+ # http_endpoint: "disabled", # accepts disabled, enabled
26259
+ # dry_run: false,
26260
+ # })
26261
+ #
26262
+ # @example Response structure
26263
+ #
26264
+ # resp.instance_id #=> String
26265
+ # resp.instance_metadata_options.state #=> String, one of "pending", "applied"
26266
+ # resp.instance_metadata_options.http_tokens #=> String, one of "optional", "required"
26267
+ # resp.instance_metadata_options.http_put_response_hop_limit #=> Integer
26268
+ # resp.instance_metadata_options.http_endpoint #=> String, one of "disabled", "enabled"
26269
+ #
26270
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMetadataOptions AWS API Documentation
26271
+ #
26272
+ # @overload modify_instance_metadata_options(params = {})
26273
+ # @param [Hash] params ({})
26274
+ def modify_instance_metadata_options(params = {}, options = {})
26275
+ req = build_request(:modify_instance_metadata_options, params)
26276
+ req.send_request(options)
26277
+ end
26278
+
26169
26279
  # Modifies the placement attributes for a specified instance. You can do
26170
26280
  # the following:
26171
26281
  #
@@ -31282,6 +31392,14 @@ module Aws::EC2
31282
31392
  # @option params [Array<Types::LicenseConfigurationRequest>] :license_specifications
31283
31393
  # The license configurations.
31284
31394
  #
31395
+ # @option params [Types::InstanceMetadataOptionsRequest] :metadata_options
31396
+ # The metadata options for the instance. For more information, see
31397
+ # [Instance Metadata and User Data][1].
31398
+ #
31399
+ #
31400
+ #
31401
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
31402
+ #
31285
31403
  # @return [Types::Reservation] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
31286
31404
  #
31287
31405
  # * {Types::Reservation#groups #groups} => Array&lt;Types::GroupIdentifier&gt;
@@ -31473,6 +31591,11 @@ module Aws::EC2
31473
31591
  # license_configuration_arn: "String",
31474
31592
  # },
31475
31593
  # ],
31594
+ # metadata_options: {
31595
+ # http_tokens: "optional", # accepts optional, required
31596
+ # http_put_response_hop_limit: 1,
31597
+ # http_endpoint: "disabled", # accepts disabled, enabled
31598
+ # },
31476
31599
  # })
31477
31600
  #
31478
31601
  # @example Response structure
@@ -31588,6 +31711,10 @@ module Aws::EC2
31588
31711
  # resp.instances[0].hibernation_options.configured #=> Boolean
31589
31712
  # resp.instances[0].licenses #=> Array
31590
31713
  # resp.instances[0].licenses[0].license_configuration_arn #=> String
31714
+ # resp.instances[0].metadata_options.state #=> String, one of "pending", "applied"
31715
+ # resp.instances[0].metadata_options.http_tokens #=> String, one of "optional", "required"
31716
+ # resp.instances[0].metadata_options.http_put_response_hop_limit #=> Integer
31717
+ # resp.instances[0].metadata_options.http_endpoint #=> String, one of "disabled", "enabled"
31591
31718
  # resp.owner_id #=> String
31592
31719
  # resp.requester_id #=> String
31593
31720
  # resp.reservation_id #=> String
@@ -32745,7 +32872,7 @@ module Aws::EC2
32745
32872
  params: params,
32746
32873
  config: config)
32747
32874
  context[:gem_name] = 'aws-sdk-ec2'
32748
- context[:gem_version] = '1.116.0'
32875
+ context[:gem_version] = '1.117.0'
32749
32876
  Seahorse::Client::Request.new(handlers, context)
32750
32877
  end
32751
32878
 
@@ -839,6 +839,7 @@ module Aws::EC2
839
839
  HostReservationIdSet = Shapes::ListShape.new(name: 'HostReservationIdSet')
840
840
  HostReservationSet = Shapes::ListShape.new(name: 'HostReservationSet')
841
841
  HostTenancy = Shapes::StringShape.new(name: 'HostTenancy')
842
+ HttpTokensState = Shapes::StringShape.new(name: 'HttpTokensState')
842
843
  HypervisorType = Shapes::StringShape.new(name: 'HypervisorType')
843
844
  IKEVersionsList = Shapes::ListShape.new(name: 'IKEVersionsList')
844
845
  IKEVersionsListValue = Shapes::StructureShape.new(name: 'IKEVersionsListValue')
@@ -916,6 +917,10 @@ module Aws::EC2
916
917
  InstanceList = Shapes::ListShape.new(name: 'InstanceList')
917
918
  InstanceMarketOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMarketOptionsRequest')
918
919
  InstanceMatchCriteria = Shapes::StringShape.new(name: 'InstanceMatchCriteria')
920
+ InstanceMetadataEndpointState = Shapes::StringShape.new(name: 'InstanceMetadataEndpointState')
921
+ InstanceMetadataOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMetadataOptionsRequest')
922
+ InstanceMetadataOptionsResponse = Shapes::StructureShape.new(name: 'InstanceMetadataOptionsResponse')
923
+ InstanceMetadataOptionsState = Shapes::StringShape.new(name: 'InstanceMetadataOptionsState')
919
924
  InstanceMonitoring = Shapes::StructureShape.new(name: 'InstanceMonitoring')
920
925
  InstanceMonitoringList = Shapes::ListShape.new(name: 'InstanceMonitoringList')
921
926
  InstanceNetworkInterface = Shapes::StructureShape.new(name: 'InstanceNetworkInterface')
@@ -1063,6 +1068,8 @@ module Aws::EC2
1063
1068
  ModifyInstanceCreditSpecificationResult = Shapes::StructureShape.new(name: 'ModifyInstanceCreditSpecificationResult')
1064
1069
  ModifyInstanceEventStartTimeRequest = Shapes::StructureShape.new(name: 'ModifyInstanceEventStartTimeRequest')
1065
1070
  ModifyInstanceEventStartTimeResult = Shapes::StructureShape.new(name: 'ModifyInstanceEventStartTimeResult')
1071
+ ModifyInstanceMetadataOptionsRequest = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataOptionsRequest')
1072
+ ModifyInstanceMetadataOptionsResult = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataOptionsResult')
1066
1073
  ModifyInstancePlacementRequest = Shapes::StructureShape.new(name: 'ModifyInstancePlacementRequest')
1067
1074
  ModifyInstancePlacementResult = Shapes::StructureShape.new(name: 'ModifyInstancePlacementResult')
1068
1075
  ModifyLaunchTemplateRequest = Shapes::StructureShape.new(name: 'ModifyLaunchTemplateRequest')
@@ -2426,6 +2433,7 @@ module Aws::EC2
2426
2433
  CreateCustomerGatewayRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape: String, location_name: "IpAddress"))
2427
2434
  CreateCustomerGatewayRequest.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: String, location_name: "CertificateArn"))
2428
2435
  CreateCustomerGatewayRequest.add_member(:type, Shapes::ShapeRef.new(shape: GatewayType, required: true, location_name: "Type"))
2436
+ CreateCustomerGatewayRequest.add_member(:device_name, Shapes::ShapeRef.new(shape: String, location_name: "DeviceName"))
2429
2437
  CreateCustomerGatewayRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
2430
2438
  CreateCustomerGatewayRequest.struct_class = Types::CreateCustomerGatewayRequest
2431
2439
 
@@ -2933,6 +2941,7 @@ module Aws::EC2
2933
2941
  CustomerGateway.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: String, location_name: "certificateArn"))
2934
2942
  CustomerGateway.add_member(:state, Shapes::ShapeRef.new(shape: String, location_name: "state"))
2935
2943
  CustomerGateway.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "type"))
2944
+ CustomerGateway.add_member(:device_name, Shapes::ShapeRef.new(shape: String, location_name: "deviceName"))
2936
2945
  CustomerGateway.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
2937
2946
  CustomerGateway.struct_class = Types::CustomerGateway
2938
2947
 
@@ -5285,6 +5294,7 @@ module Aws::EC2
5285
5294
  Instance.add_member(:capacity_reservation_specification, Shapes::ShapeRef.new(shape: CapacityReservationSpecificationResponse, location_name: "capacityReservationSpecification"))
5286
5295
  Instance.add_member(:hibernation_options, Shapes::ShapeRef.new(shape: HibernationOptions, location_name: "hibernationOptions"))
5287
5296
  Instance.add_member(:licenses, Shapes::ShapeRef.new(shape: LicenseList, location_name: "licenseSet"))
5297
+ Instance.add_member(:metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptionsResponse, location_name: "metadataOptions"))
5288
5298
  Instance.struct_class = Types::Instance
5289
5299
 
5290
5300
  InstanceAttribute.add_member(:groups, Shapes::ShapeRef.new(shape: GroupIdentifierList, location_name: "groupSet"))
@@ -5367,6 +5377,17 @@ module Aws::EC2
5367
5377
  InstanceMarketOptionsRequest.add_member(:spot_options, Shapes::ShapeRef.new(shape: SpotMarketOptions, location_name: "SpotOptions"))
5368
5378
  InstanceMarketOptionsRequest.struct_class = Types::InstanceMarketOptionsRequest
5369
5379
 
5380
+ InstanceMetadataOptionsRequest.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokensState, location_name: "HttpTokens"))
5381
+ InstanceMetadataOptionsRequest.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: Integer, location_name: "HttpPutResponseHopLimit"))
5382
+ InstanceMetadataOptionsRequest.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: InstanceMetadataEndpointState, location_name: "HttpEndpoint"))
5383
+ InstanceMetadataOptionsRequest.struct_class = Types::InstanceMetadataOptionsRequest
5384
+
5385
+ InstanceMetadataOptionsResponse.add_member(:state, Shapes::ShapeRef.new(shape: InstanceMetadataOptionsState, location_name: "state"))
5386
+ InstanceMetadataOptionsResponse.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokensState, location_name: "httpTokens"))
5387
+ InstanceMetadataOptionsResponse.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: Integer, location_name: "httpPutResponseHopLimit"))
5388
+ InstanceMetadataOptionsResponse.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: InstanceMetadataEndpointState, location_name: "httpEndpoint"))
5389
+ InstanceMetadataOptionsResponse.struct_class = Types::InstanceMetadataOptionsResponse
5390
+
5370
5391
  InstanceMonitoring.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "instanceId"))
5371
5392
  InstanceMonitoring.add_member(:monitoring, Shapes::ShapeRef.new(shape: Monitoring, location_name: "monitoring"))
5372
5393
  InstanceMonitoring.struct_class = Types::InstanceMonitoring
@@ -5953,6 +5974,17 @@ module Aws::EC2
5953
5974
  ModifyInstanceEventStartTimeResult.add_member(:event, Shapes::ShapeRef.new(shape: InstanceStatusEvent, location_name: "event"))
5954
5975
  ModifyInstanceEventStartTimeResult.struct_class = Types::ModifyInstanceEventStartTimeResult
5955
5976
 
5977
+ ModifyInstanceMetadataOptionsRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "InstanceId"))
5978
+ ModifyInstanceMetadataOptionsRequest.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokensState, location_name: "HttpTokens"))
5979
+ ModifyInstanceMetadataOptionsRequest.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: Integer, location_name: "HttpPutResponseHopLimit"))
5980
+ ModifyInstanceMetadataOptionsRequest.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: InstanceMetadataEndpointState, location_name: "HttpEndpoint"))
5981
+ ModifyInstanceMetadataOptionsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
5982
+ ModifyInstanceMetadataOptionsRequest.struct_class = Types::ModifyInstanceMetadataOptionsRequest
5983
+
5984
+ ModifyInstanceMetadataOptionsResult.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "instanceId"))
5985
+ ModifyInstanceMetadataOptionsResult.add_member(:instance_metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptionsResponse, location_name: "instanceMetadataOptions"))
5986
+ ModifyInstanceMetadataOptionsResult.struct_class = Types::ModifyInstanceMetadataOptionsResult
5987
+
5956
5988
  ModifyInstancePlacementRequest.add_member(:affinity, Shapes::ShapeRef.new(shape: Affinity, location_name: "affinity"))
5957
5989
  ModifyInstancePlacementRequest.add_member(:group_name, Shapes::ShapeRef.new(shape: PlacementGroupName, location_name: "GroupName"))
5958
5990
  ModifyInstancePlacementRequest.add_member(:host_id, Shapes::ShapeRef.new(shape: HostId, location_name: "hostId"))
@@ -7150,6 +7182,7 @@ module Aws::EC2
7150
7182
  RunInstancesRequest.add_member(:capacity_reservation_specification, Shapes::ShapeRef.new(shape: CapacityReservationSpecification, location_name: "CapacityReservationSpecification"))
7151
7183
  RunInstancesRequest.add_member(:hibernation_options, Shapes::ShapeRef.new(shape: HibernationOptionsRequest, location_name: "HibernationOptions"))
7152
7184
  RunInstancesRequest.add_member(:license_specifications, Shapes::ShapeRef.new(shape: LicenseSpecificationListRequest, location_name: "LicenseSpecification"))
7185
+ RunInstancesRequest.add_member(:metadata_options, Shapes::ShapeRef.new(shape: InstanceMetadataOptionsRequest, location_name: "MetadataOptions"))
7153
7186
  RunInstancesRequest.struct_class = Types::RunInstancesRequest
7154
7187
 
7155
7188
  RunScheduledInstancesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
@@ -11088,6 +11121,14 @@ module Aws::EC2
11088
11121
  o.output = Shapes::ShapeRef.new(shape: ModifyInstanceEventStartTimeResult)
11089
11122
  end)
11090
11123
 
11124
+ api.add_operation(:modify_instance_metadata_options, Seahorse::Model::Operation.new.tap do |o|
11125
+ o.name = "ModifyInstanceMetadataOptions"
11126
+ o.http_method = "POST"
11127
+ o.http_request_uri = "/"
11128
+ o.input = Shapes::ShapeRef.new(shape: ModifyInstanceMetadataOptionsRequest)
11129
+ o.output = Shapes::ShapeRef.new(shape: ModifyInstanceMetadataOptionsResult)
11130
+ end)
11131
+
11091
11132
  api.add_operation(:modify_instance_placement, Seahorse::Model::Operation.new.tap do |o|
11092
11133
  o.name = "ModifyInstancePlacement"
11093
11134
  o.http_method = "POST"
@@ -319,6 +319,12 @@ module Aws::EC2
319
319
  data[:licenses]
320
320
  end
321
321
 
322
+ # The metadata options for the instance.
323
+ # @return [Types::InstanceMetadataOptionsResponse]
324
+ def metadata_options
325
+ data[:metadata_options]
326
+ end
327
+
322
328
  # @!endgroup
323
329
 
324
330
  # @return [Client]
@@ -262,9 +262,8 @@ module Aws::EC2
262
262
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
263
263
  #
264
264
  # * `iam-instance-profile.arn` - The instance profile associated with
265
- # the instance. Specified as an ARN.
266
- #
267
- # * `image-id` - The ID of the image used to launch the instance.
265
+ # the instance. Specified as an ARN. `image-id` - The ID of the image
266
+ # used to launch the instance.
268
267
  #
269
268
  # * `instance-id` - The ID of the instance.
270
269
  #
@@ -301,6 +300,15 @@ module Aws::EC2
301
300
  #
302
301
  # * `launch-time` - The time when the instance was launched.
303
302
  #
303
+ # * `metadata-http-tokens` - The metadata request authorization state
304
+ # (`optional` \| `required`)
305
+ #
306
+ # * `metadata-http-put-response-hop-limit` - The http metadata request
307
+ # put response hop limit (integer, possible values `1` to `64`)
308
+ #
309
+ # * `metadata-http-endpoint` - Enable or disable metadata access on http
310
+ # endpoint (`enabled` \| `disabled`)
311
+ #
304
312
  # * `monitoring-state` - Indicates whether detailed monitoring is
305
313
  # enabled (`disabled` \| `enabled`).
306
314
  #
@@ -192,6 +192,11 @@ module Aws::EC2
192
192
  # license_configuration_arn: "String",
193
193
  # },
194
194
  # ],
195
+ # metadata_options: {
196
+ # http_tokens: "optional", # accepts optional, required
197
+ # http_put_response_hop_limit: 1,
198
+ # http_endpoint: "disabled", # accepts disabled, enabled
199
+ # },
195
200
  # })
196
201
  # @param [Hash] options ({})
197
202
  # @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
@@ -463,6 +468,13 @@ module Aws::EC2
463
468
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
464
469
  # @option options [Array<Types::LicenseConfigurationRequest>] :license_specifications
465
470
  # The license configurations.
471
+ # @option options [Types::InstanceMetadataOptionsRequest] :metadata_options
472
+ # The metadata options for the instance. For more information, see
473
+ # [Instance Metadata and User Data][1].
474
+ #
475
+ #
476
+ #
477
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
466
478
  # @return [Instance::Collection]
467
479
  def create_instances(options = {})
468
480
  batch = []
@@ -1570,9 +1582,8 @@ module Aws::EC2
1570
1582
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
1571
1583
  #
1572
1584
  # * `iam-instance-profile.arn` - The instance profile associated with
1573
- # the instance. Specified as an ARN.
1574
- #
1575
- # * `image-id` - The ID of the image used to launch the instance.
1585
+ # the instance. Specified as an ARN. `image-id` - The ID of the image
1586
+ # used to launch the instance.
1576
1587
  #
1577
1588
  # * `instance-id` - The ID of the instance.
1578
1589
  #
@@ -1609,6 +1620,15 @@ module Aws::EC2
1609
1620
  #
1610
1621
  # * `launch-time` - The time when the instance was launched.
1611
1622
  #
1623
+ # * `metadata-http-tokens` - The metadata request authorization state
1624
+ # (`optional` \| `required`)
1625
+ #
1626
+ # * `metadata-http-put-response-hop-limit` - The http metadata request
1627
+ # put response hop limit (integer, possible values `1` to `64`)
1628
+ #
1629
+ # * `metadata-http-endpoint` - Enable or disable metadata access on http
1630
+ # endpoint (`enabled` \| `disabled`)
1631
+ #
1612
1632
  # * `monitoring-state` - Indicates whether detailed monitoring is
1613
1633
  # enabled (`disabled` \| `enabled`).
1614
1634
  #
@@ -387,6 +387,11 @@ module Aws::EC2
387
387
  # license_configuration_arn: "String",
388
388
  # },
389
389
  # ],
390
+ # metadata_options: {
391
+ # http_tokens: "optional", # accepts optional, required
392
+ # http_put_response_hop_limit: 1,
393
+ # http_endpoint: "disabled", # accepts disabled, enabled
394
+ # },
390
395
  # })
391
396
  # @param [Hash] options ({})
392
397
  # @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
@@ -653,6 +658,13 @@ module Aws::EC2
653
658
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
654
659
  # @option options [Array<Types::LicenseConfigurationRequest>] :license_specifications
655
660
  # The license configurations.
661
+ # @option options [Types::InstanceMetadataOptionsRequest] :metadata_options
662
+ # The metadata options for the instance. For more information, see
663
+ # [Instance Metadata and User Data][1].
664
+ #
665
+ #
666
+ #
667
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
656
668
  # @return [Instance::Collection]
657
669
  def create_instances(options = {})
658
670
  batch = []
@@ -869,9 +881,8 @@ module Aws::EC2
869
881
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
870
882
  #
871
883
  # * `iam-instance-profile.arn` - The instance profile associated with
872
- # the instance. Specified as an ARN.
873
- #
874
- # * `image-id` - The ID of the image used to launch the instance.
884
+ # the instance. Specified as an ARN. `image-id` - The ID of the image
885
+ # used to launch the instance.
875
886
  #
876
887
  # * `instance-id` - The ID of the instance.
877
888
  #
@@ -908,6 +919,15 @@ module Aws::EC2
908
919
  #
909
920
  # * `launch-time` - The time when the instance was launched.
910
921
  #
922
+ # * `metadata-http-tokens` - The metadata request authorization state
923
+ # (`optional` \| `required`)
924
+ #
925
+ # * `metadata-http-put-response-hop-limit` - The http metadata request
926
+ # put response hop limit (integer, possible values `1` to `64`)
927
+ #
928
+ # * `metadata-http-endpoint` - Enable or disable metadata access on http
929
+ # endpoint (`enabled` \| `disabled`)
930
+ #
911
931
  # * `monitoring-state` - Indicates whether detailed monitoring is
912
932
  # enabled (`disabled` \| `enabled`).
913
933
  #
@@ -4463,6 +4463,7 @@ module Aws::EC2
4463
4463
  # public_ip: "String",
4464
4464
  # certificate_arn: "String",
4465
4465
  # type: "ipsec.1", # required, accepts ipsec.1
4466
+ # device_name: "String",
4466
4467
  # dry_run: false,
4467
4468
  # }
4468
4469
  #
@@ -4486,6 +4487,12 @@ module Aws::EC2
4486
4487
  # (`ipsec.1`).
4487
4488
  # @return [String]
4488
4489
  #
4490
+ # @!attribute [rw] device_name
4491
+ # A name for the customer gateway device.
4492
+ #
4493
+ # Length Constraints: Up to 255 characters.
4494
+ # @return [String]
4495
+ #
4489
4496
  # @!attribute [rw] dry_run
4490
4497
  # Checks whether you have the required permissions for the action,
4491
4498
  # without actually making the request, and provides an error response.
@@ -4500,6 +4507,7 @@ module Aws::EC2
4500
4507
  :public_ip,
4501
4508
  :certificate_arn,
4502
4509
  :type,
4510
+ :device_name,
4503
4511
  :dry_run)
4504
4512
  include Aws::Structure
4505
4513
  end
@@ -8400,6 +8408,10 @@ module Aws::EC2
8400
8408
  # (`ipsec.1`).
8401
8409
  # @return [String]
8402
8410
  #
8411
+ # @!attribute [rw] device_name
8412
+ # The name of customer gateway device.
8413
+ # @return [String]
8414
+ #
8403
8415
  # @!attribute [rw] tags
8404
8416
  # Any tags assigned to the customer gateway.
8405
8417
  # @return [Array<Types::Tag>]
@@ -8413,6 +8425,7 @@ module Aws::EC2
8413
8425
  :certificate_arn,
8414
8426
  :state,
8415
8427
  :type,
8428
+ :device_name,
8416
8429
  :tags)
8417
8430
  include Aws::Structure
8418
8431
  end
@@ -13130,9 +13143,8 @@ module Aws::EC2
13130
13143
  # `xen`).
13131
13144
  #
13132
13145
  # * `iam-instance-profile.arn` - The instance profile associated with
13133
- # the instance. Specified as an ARN.
13134
- #
13135
- # * `image-id` - The ID of the image used to launch the instance.
13146
+ # the instance. Specified as an ARN. `image-id` - The ID of the
13147
+ # image used to launch the instance.
13136
13148
  #
13137
13149
  # * `instance-id` - The ID of the instance.
13138
13150
  #
@@ -13170,6 +13182,15 @@ module Aws::EC2
13170
13182
  #
13171
13183
  # * `launch-time` - The time when the instance was launched.
13172
13184
  #
13185
+ # * `metadata-http-tokens` - The metadata request authorization state
13186
+ # (`optional` \| `required`)
13187
+ #
13188
+ # * `metadata-http-put-response-hop-limit` - The http metadata request
13189
+ # put response hop limit (integer, possible values `1` to `64`)
13190
+ #
13191
+ # * `metadata-http-endpoint` - Enable or disable metadata access on
13192
+ # http endpoint (`enabled` \| `disabled`)
13193
+ #
13173
13194
  # * `monitoring-state` - Indicates whether detailed monitoring is
13174
13195
  # enabled (`disabled` \| `enabled`).
13175
13196
  #
@@ -18695,6 +18716,9 @@ module Aws::EC2
18695
18716
  #
18696
18717
  # * `vpn-gateway-id` - The ID of a virtual private gateway associated
18697
18718
  # with the VPN connection.
18719
+ #
18720
+ # * `transit-gateway-id` - The ID of a transit gateway associated with
18721
+ # the VPN connection.
18698
18722
  # @return [Array<Types::Filter>]
18699
18723
  #
18700
18724
  # @!attribute [rw] vpn_connection_ids
@@ -24273,6 +24297,10 @@ module Aws::EC2
24273
24297
  # The license configurations.
24274
24298
  # @return [Array<Types::LicenseConfiguration>]
24275
24299
  #
24300
+ # @!attribute [rw] metadata_options
24301
+ # The metadata options for the instance.
24302
+ # @return [Types::InstanceMetadataOptionsResponse]
24303
+ #
24276
24304
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Instance AWS API Documentation
24277
24305
  #
24278
24306
  class Instance < Struct.new(
@@ -24320,7 +24348,8 @@ module Aws::EC2
24320
24348
  :capacity_reservation_id,
24321
24349
  :capacity_reservation_specification,
24322
24350
  :hibernation_options,
24323
- :licenses)
24351
+ :licenses,
24352
+ :metadata_options)
24324
24353
  include Aws::Structure
24325
24354
  end
24326
24355
 
@@ -24656,6 +24685,126 @@ module Aws::EC2
24656
24685
  include Aws::Structure
24657
24686
  end
24658
24687
 
24688
+ # The metadata options for the instance.
24689
+ #
24690
+ # @note When making an API call, you may pass InstanceMetadataOptionsRequest
24691
+ # data as a hash:
24692
+ #
24693
+ # {
24694
+ # http_tokens: "optional", # accepts optional, required
24695
+ # http_put_response_hop_limit: 1,
24696
+ # http_endpoint: "disabled", # accepts disabled, enabled
24697
+ # }
24698
+ #
24699
+ # @!attribute [rw] http_tokens
24700
+ # The state of token usage for your instance metadata requests. If the
24701
+ # parameter is not specified in the request, the default state is
24702
+ # `optional`.
24703
+ #
24704
+ # If the state is `optional`, you can choose to retrieve instance
24705
+ # metadata with or without a signed token header on your request. If
24706
+ # you retrieve the IAM role credentials without a token, the version
24707
+ # 1.0 role credentials are returned. If you retrieve the IAM role
24708
+ # credentials using a valid signed token, the version 2.0 role
24709
+ # credentials are returned.
24710
+ #
24711
+ # If the state is `required`, you must send a signed token header with
24712
+ # any instance metadata retrieval requests. In this state, retrieving
24713
+ # the IAM role credentials always returns the version 2.0 credentials;
24714
+ # the version 1.0 credentials are not available.
24715
+ # @return [String]
24716
+ #
24717
+ # @!attribute [rw] http_put_response_hop_limit
24718
+ # The desired HTTP PUT response hop limit for instance metadata
24719
+ # requests. The larger the number, the further instance metadata
24720
+ # requests can travel.
24721
+ #
24722
+ # Default: 1
24723
+ #
24724
+ # Possible values: Integers from 1 to 64
24725
+ # @return [Integer]
24726
+ #
24727
+ # @!attribute [rw] http_endpoint
24728
+ # This parameter enables or disables the HTTP metadata endpoint on
24729
+ # your instances. If the parameter is not specified, the default state
24730
+ # is `enabled`.
24731
+ #
24732
+ # <note markdown="1"> If you specify a value of `disabled`, you will not be able to access
24733
+ # your instance metadata.
24734
+ #
24735
+ # </note>
24736
+ # @return [String]
24737
+ #
24738
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMetadataOptionsRequest AWS API Documentation
24739
+ #
24740
+ class InstanceMetadataOptionsRequest < Struct.new(
24741
+ :http_tokens,
24742
+ :http_put_response_hop_limit,
24743
+ :http_endpoint)
24744
+ include Aws::Structure
24745
+ end
24746
+
24747
+ # The metadata options for the instance.
24748
+ #
24749
+ # @!attribute [rw] state
24750
+ # The state of the metadata option changes.
24751
+ #
24752
+ # `pending` - The metadata options are being updated and the instance
24753
+ # is not ready to process metadata traffic with the new selection.
24754
+ #
24755
+ # `applied` - The metadata options have been successfully applied on
24756
+ # the instance.
24757
+ # @return [String]
24758
+ #
24759
+ # @!attribute [rw] http_tokens
24760
+ # The state of token usage for your instance metadata requests. If the
24761
+ # parameter is not specified in the request, the default state is
24762
+ # `optional`.
24763
+ #
24764
+ # If the state is `optional`, you can choose to retrieve instance
24765
+ # metadata with or without a signed token header on your request. If
24766
+ # you retrieve the IAM role credentials without a token, the version
24767
+ # 1.0 role credentials are returned. If you retrieve the IAM role
24768
+ # credentials using a valid signed token, the version 2.0 role
24769
+ # credentials are returned.
24770
+ #
24771
+ # If the state is `required`, you must send a signed token header with
24772
+ # any instance metadata retrieval requests. In this state, retrieving
24773
+ # the IAM role credential always returns the version 2.0 credentials;
24774
+ # the version 1.0 credentials are not available.
24775
+ # @return [String]
24776
+ #
24777
+ # @!attribute [rw] http_put_response_hop_limit
24778
+ # The desired HTTP PUT response hop limit for instance metadata
24779
+ # requests. The larger the number, the further instance metadata
24780
+ # requests can travel.
24781
+ #
24782
+ # Default: 1
24783
+ #
24784
+ # Possible values: Integers from 1 to 64
24785
+ # @return [Integer]
24786
+ #
24787
+ # @!attribute [rw] http_endpoint
24788
+ # This parameter enables or disables the HTTP metadata endpoint on
24789
+ # your instances. If the parameter is not specified, the default state
24790
+ # is `enabled`.
24791
+ #
24792
+ # <note markdown="1"> If you specify a value of `disabled`, you will not be able to access
24793
+ # your instance metadata.
24794
+ #
24795
+ # </note>
24796
+ # @return [String]
24797
+ #
24798
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMetadataOptionsResponse AWS API Documentation
24799
+ #
24800
+ class InstanceMetadataOptionsResponse < Struct.new(
24801
+ :state,
24802
+ :http_tokens,
24803
+ :http_put_response_hop_limit,
24804
+ :http_endpoint)
24805
+ include Aws::Structure
24806
+ end
24807
+
24659
24808
  # Describes the monitoring of an instance.
24660
24809
  #
24661
24810
  # @!attribute [rw] instance_id
@@ -28049,6 +28198,93 @@ module Aws::EC2
28049
28198
  include Aws::Structure
28050
28199
  end
28051
28200
 
28201
+ # @note When making an API call, you may pass ModifyInstanceMetadataOptionsRequest
28202
+ # data as a hash:
28203
+ #
28204
+ # {
28205
+ # instance_id: "String", # required
28206
+ # http_tokens: "optional", # accepts optional, required
28207
+ # http_put_response_hop_limit: 1,
28208
+ # http_endpoint: "disabled", # accepts disabled, enabled
28209
+ # dry_run: false,
28210
+ # }
28211
+ #
28212
+ # @!attribute [rw] instance_id
28213
+ # The ID of the instance.
28214
+ # @return [String]
28215
+ #
28216
+ # @!attribute [rw] http_tokens
28217
+ # The state of token usage for your instance metadata requests. If the
28218
+ # parameter is not specified in the request, the default state is
28219
+ # `optional`.
28220
+ #
28221
+ # If the state is `optional`, you can choose to retrieve instance
28222
+ # metadata with or without a signed token header on your request. If
28223
+ # you retrieve the IAM role credentials without a token, the version
28224
+ # 1.0 role credentials are returned. If you retrieve the IAM role
28225
+ # credentials using a valid signed token, the version 2.0 role
28226
+ # credentials are returned.
28227
+ #
28228
+ # If the state is `required`, you must send a signed token header with
28229
+ # any instance metadata retrieval requests. In this state, retrieving
28230
+ # the IAM role credential always returns the version 2.0 credentials;
28231
+ # the version 1.0 credentials are not available.
28232
+ # @return [String]
28233
+ #
28234
+ # @!attribute [rw] http_put_response_hop_limit
28235
+ # The desired HTTP PUT response hop limit for instance metadata
28236
+ # requests. The larger the number, the further instance metadata
28237
+ # requests can travel. If no parameter is specified, the existing
28238
+ # state is maintained.
28239
+ #
28240
+ # Possible values: Integers from 1 to 64
28241
+ # @return [Integer]
28242
+ #
28243
+ # @!attribute [rw] http_endpoint
28244
+ # This parameter enables or disables the HTTP metadata endpoint on
28245
+ # your instances. If the parameter is not specified, the existing
28246
+ # state is maintained.
28247
+ #
28248
+ # <note markdown="1"> If you specify a value of `disabled`, you will not be able to access
28249
+ # your instance metadata.
28250
+ #
28251
+ # </note>
28252
+ # @return [String]
28253
+ #
28254
+ # @!attribute [rw] dry_run
28255
+ # Checks whether you have the required permissions for the action,
28256
+ # without actually making the request, and provides an error response.
28257
+ # If you have the required permissions, the error response is
28258
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
28259
+ # @return [Boolean]
28260
+ #
28261
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMetadataOptionsRequest AWS API Documentation
28262
+ #
28263
+ class ModifyInstanceMetadataOptionsRequest < Struct.new(
28264
+ :instance_id,
28265
+ :http_tokens,
28266
+ :http_put_response_hop_limit,
28267
+ :http_endpoint,
28268
+ :dry_run)
28269
+ include Aws::Structure
28270
+ end
28271
+
28272
+ # @!attribute [rw] instance_id
28273
+ # The ID of the instance.
28274
+ # @return [String]
28275
+ #
28276
+ # @!attribute [rw] instance_metadata_options
28277
+ # The metadata options for the instance.
28278
+ # @return [Types::InstanceMetadataOptionsResponse]
28279
+ #
28280
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMetadataOptionsResult AWS API Documentation
28281
+ #
28282
+ class ModifyInstanceMetadataOptionsResult < Struct.new(
28283
+ :instance_id,
28284
+ :instance_metadata_options)
28285
+ include Aws::Structure
28286
+ end
28287
+
28052
28288
  # @note When making an API call, you may pass ModifyInstancePlacementRequest
28053
28289
  # data as a hash:
28054
28290
  #
@@ -35094,6 +35330,11 @@ module Aws::EC2
35094
35330
  # license_configuration_arn: "String",
35095
35331
  # },
35096
35332
  # ],
35333
+ # metadata_options: {
35334
+ # http_tokens: "optional", # accepts optional, required
35335
+ # http_put_response_hop_limit: 1,
35336
+ # http_endpoint: "disabled", # accepts disabled, enabled
35337
+ # },
35097
35338
  # }
35098
35339
  #
35099
35340
  # @!attribute [rw] block_device_mappings
@@ -35437,6 +35678,15 @@ module Aws::EC2
35437
35678
  # The license configurations.
35438
35679
  # @return [Array<Types::LicenseConfigurationRequest>]
35439
35680
  #
35681
+ # @!attribute [rw] metadata_options
35682
+ # The metadata options for the instance. For more information, see
35683
+ # [Instance Metadata and User Data][1].
35684
+ #
35685
+ #
35686
+ #
35687
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
35688
+ # @return [Types::InstanceMetadataOptionsRequest]
35689
+ #
35440
35690
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstancesRequest AWS API Documentation
35441
35691
  #
35442
35692
  class RunInstancesRequest < Struct.new(
@@ -35474,7 +35724,8 @@ module Aws::EC2
35474
35724
  :cpu_options,
35475
35725
  :capacity_reservation_specification,
35476
35726
  :hibernation_options,
35477
- :license_specifications)
35727
+ :license_specifications,
35728
+ :metadata_options)
35478
35729
  include Aws::Structure
35479
35730
  end
35480
35731
 
@@ -846,9 +846,8 @@ module Aws::EC2
846
846
  # * `hypervisor` - The hypervisor type of the instance (`ovm` \| `xen`).
847
847
  #
848
848
  # * `iam-instance-profile.arn` - The instance profile associated with
849
- # the instance. Specified as an ARN.
850
- #
851
- # * `image-id` - The ID of the image used to launch the instance.
849
+ # the instance. Specified as an ARN. `image-id` - The ID of the image
850
+ # used to launch the instance.
852
851
  #
853
852
  # * `instance-id` - The ID of the instance.
854
853
  #
@@ -885,6 +884,15 @@ module Aws::EC2
885
884
  #
886
885
  # * `launch-time` - The time when the instance was launched.
887
886
  #
887
+ # * `metadata-http-tokens` - The metadata request authorization state
888
+ # (`optional` \| `required`)
889
+ #
890
+ # * `metadata-http-put-response-hop-limit` - The http metadata request
891
+ # put response hop limit (integer, possible values `1` to `64`)
892
+ #
893
+ # * `metadata-http-endpoint` - Enable or disable metadata access on http
894
+ # endpoint (`enabled` \| `disabled`)
895
+ #
888
896
  # * `monitoring-state` - Indicates whether detailed monitoring is
889
897
  # enabled (`disabled` \| `enabled`).
890
898
  #
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.116.0
4
+ version: 1.117.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: 2019-11-15 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4