aws-sdk-ec2 1.152.0 → 1.153.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: 291b056c3963898df9ae240f729574e7fc7538e44489147b41959424c8346a5a
4
- data.tar.gz: 5555b2b10549cf1f90a70e12cf5a7a794a878ce3e831c53bc15d0bba40b48346
3
+ metadata.gz: a1411134fd9db98c472f07e3af15c1395e7e2da5214c693ec69383dea41d347d
4
+ data.tar.gz: d56c9e4231705fcf626e28617263ebcce12d400b0960c4917807d4751f55826d
5
5
  SHA512:
6
- metadata.gz: 459862c2f67231baaa0bdb4a9cbb985626a2f535af224372c7f68ddf595e21bbed11ea2f763f04d6863a254151354eb65dac4afa4e92f248e32befe57980457f
7
- data.tar.gz: df9b271ccc0213ccd0e94cfa1cef8b002b9476175a350c328afbce687e163cbb4c6bba0d76ac0cc6a214f6a22a5a58dde0bd246232308481a46d3e4f579d0175
6
+ metadata.gz: fb3e0a160a83eec28205bb97fce64b71ca3f116bfef591d8324e0a602e7ff5a45c57fb4f79bfcb76322a07826a6c69261b2e22b9aa65c532902aff6f1f6416fc
7
+ data.tar.gz: d282f9e35092f286b6f3c58892bf2f2ba25a9a9945698156124db8c0ad0d384b2ea493cbd187d89f9502948fd3efa26e8151c22c2b0711903e4afe4649310186
@@ -69,6 +69,6 @@ require_relative 'aws-sdk-ec2/customizations'
69
69
  # @service
70
70
  module Aws::EC2
71
71
 
72
- GEM_VERSION = '1.152.0'
72
+ GEM_VERSION = '1.153.0'
73
73
 
74
74
  end
@@ -5154,12 +5154,16 @@ module Aws::EC2
5154
5154
  # If you have the required permissions, the error response is
5155
5155
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
5156
5156
  #
5157
+ # @option params [Array<Types::TagSpecification>] :tag_specifications
5158
+ # The tags to apply to the new key pair.
5159
+ #
5157
5160
  # @return [Types::KeyPair] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5158
5161
  #
5159
5162
  # * {Types::KeyPair#key_fingerprint #key_fingerprint} => String
5160
5163
  # * {Types::KeyPair#key_material #key_material} => String
5161
5164
  # * {Types::KeyPair#key_name #key_name} => String
5162
5165
  # * {Types::KeyPair#key_pair_id #key_pair_id} => String
5166
+ # * {Types::KeyPair#tags #tags} => Array&lt;Types::Tag&gt;
5163
5167
  #
5164
5168
  #
5165
5169
  # @example Example: To create a key pair
@@ -5175,6 +5179,17 @@ module Aws::EC2
5175
5179
  # resp = client.create_key_pair({
5176
5180
  # key_name: "String", # required
5177
5181
  # dry_run: false,
5182
+ # tag_specifications: [
5183
+ # {
5184
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
5185
+ # tags: [
5186
+ # {
5187
+ # key: "String",
5188
+ # value: "String",
5189
+ # },
5190
+ # ],
5191
+ # },
5192
+ # ],
5178
5193
  # })
5179
5194
  #
5180
5195
  # @example Response structure
@@ -5183,6 +5198,9 @@ module Aws::EC2
5183
5198
  # resp.key_material #=> String
5184
5199
  # resp.key_name #=> String
5185
5200
  # resp.key_pair_id #=> String
5201
+ # resp.tags #=> Array
5202
+ # resp.tags[0].key #=> String
5203
+ # resp.tags[0].value #=> String
5186
5204
  #
5187
5205
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPair AWS API Documentation
5188
5206
  #
@@ -6529,7 +6547,12 @@ module Aws::EC2
6529
6547
  # The number of partitions. Valid only when **Strategy** is set to
6530
6548
  # `partition`.
6531
6549
  #
6532
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
6550
+ # @option params [Array<Types::TagSpecification>] :tag_specifications
6551
+ # The tags to apply to the new placement group.
6552
+ #
6553
+ # @return [Types::CreatePlacementGroupResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6554
+ #
6555
+ # * {Types::CreatePlacementGroupResult#placement_group #placement_group} => Types::PlacementGroup
6533
6556
  #
6534
6557
  #
6535
6558
  # @example Example: To create a placement group
@@ -6552,8 +6575,30 @@ module Aws::EC2
6552
6575
  # group_name: "String",
6553
6576
  # strategy: "cluster", # accepts cluster, spread, partition
6554
6577
  # partition_count: 1,
6578
+ # tag_specifications: [
6579
+ # {
6580
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
6581
+ # tags: [
6582
+ # {
6583
+ # key: "String",
6584
+ # value: "String",
6585
+ # },
6586
+ # ],
6587
+ # },
6588
+ # ],
6555
6589
  # })
6556
6590
  #
6591
+ # @example Response structure
6592
+ #
6593
+ # resp.placement_group.group_name #=> String
6594
+ # resp.placement_group.state #=> String, one of "pending", "available", "deleting", "deleted"
6595
+ # resp.placement_group.strategy #=> String, one of "cluster", "spread", "partition"
6596
+ # resp.placement_group.partition_count #=> Integer
6597
+ # resp.placement_group.group_id #=> String
6598
+ # resp.placement_group.tags #=> Array
6599
+ # resp.placement_group.tags[0].key #=> String
6600
+ # resp.placement_group.tags[0].value #=> String
6601
+ #
6557
6602
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroup AWS API Documentation
6558
6603
  #
6559
6604
  # @overload create_placement_group(params = {})
@@ -9910,9 +9955,12 @@ module Aws::EC2
9910
9955
  # Deletes the specified key pair, by removing the public key from Amazon
9911
9956
  # EC2.
9912
9957
  #
9913
- # @option params [required, String] :key_name
9958
+ # @option params [String] :key_name
9914
9959
  # The name of the key pair.
9915
9960
  #
9961
+ # @option params [String] :key_pair_id
9962
+ # The ID of the key pair.
9963
+ #
9916
9964
  # @option params [Boolean] :dry_run
9917
9965
  # Checks whether you have the required permissions for the action,
9918
9966
  # without actually making the request, and provides an error response.
@@ -9933,7 +9981,8 @@ module Aws::EC2
9933
9981
  # @example Request syntax with placeholder values
9934
9982
  #
9935
9983
  # resp = client.delete_key_pair({
9936
- # key_name: "KeyPairName", # required
9984
+ # key_name: "KeyPairName",
9985
+ # key_pair_id: "KeyPairId",
9937
9986
  # dry_run: false,
9938
9987
  # })
9939
9988
  #
@@ -11721,13 +11770,6 @@ module Aws::EC2
11721
11770
  # from being included in scheduled event notifications for resources in
11722
11771
  # the Region.
11723
11772
  #
11724
- # For more information, see [Customizing Scheduled Event
11725
- # Notifications][1].
11726
- #
11727
- #
11728
- #
11729
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html#customizing_scheduled_event_notifications
11730
- #
11731
11773
  # @option params [Boolean] :dry_run
11732
11774
  # Checks whether you have the required permissions for the action,
11733
11775
  # without actually making the request, and provides an error response.
@@ -14827,7 +14869,7 @@ module Aws::EC2
14827
14869
  # * `instance-id` - The ID of the instance.
14828
14870
  #
14829
14871
  # * `state` - The state of the association (`associating` \|
14830
- # `associated` \| `disassociating` \| `disassociated`).
14872
+ # `associated` \| `disassociating`).
14831
14873
  #
14832
14874
  # @option params [Integer] :max_results
14833
14875
  # The maximum number of results to return in a single call. To retrieve
@@ -17055,10 +17097,22 @@ module Aws::EC2
17055
17097
  # @option params [Array<Types::Filter>] :filters
17056
17098
  # The filters.
17057
17099
  #
17100
+ # * `key-pair-id` - The ID of the key pair.
17101
+ #
17058
17102
  # * `fingerprint` - The fingerprint of the key pair.
17059
17103
  #
17060
17104
  # * `key-name` - The name of the key pair.
17061
17105
  #
17106
+ # * `tag-key` - The key of a tag assigned to the resource. Use this
17107
+ # filter to find all resources assigned a tag with a specific key,
17108
+ # regardless of the tag value.
17109
+ #
17110
+ # * `tag`\:&lt;key&gt; - The key/value combination of a tag assigned to
17111
+ # the resource. Use the tag key in the filter name and the tag value
17112
+ # as the filter value. For example, to find all resources that have a
17113
+ # tag with the key `Owner` and the value `TeamA`, specify `tag:Owner`
17114
+ # for the filter name and `TeamA` for the filter value.
17115
+ #
17062
17116
  # @option params [Array<String>] :key_names
17063
17117
  # The key pair names.
17064
17118
  #
@@ -18818,6 +18872,16 @@ module Aws::EC2
18818
18872
  # * `strategy` - The strategy of the placement group (`cluster` \|
18819
18873
  # `spread` \| `partition`).
18820
18874
  #
18875
+ # * `tag`\:&lt;key&gt; - The key/value combination of a tag assigned to
18876
+ # the resource. Use the tag key in the filter name and the tag value
18877
+ # as the filter value. For example, to find all resources that have a
18878
+ # tag with the key `Owner` and the value `TeamA`, specify `tag:Owner`
18879
+ # for the filter name and `TeamA` for the filter value.
18880
+ #
18881
+ # * `tag-key` - The key of a tag assigned to the resource. Use this
18882
+ # filter to find all resources that have a tag with a specific key,
18883
+ # regardless of the tag value.
18884
+ #
18821
18885
  # @option params [Boolean] :dry_run
18822
18886
  # Checks whether you have the required permissions for the action,
18823
18887
  # without actually making the request, and provides an error response.
@@ -22160,13 +22224,14 @@ module Aws::EC2
22160
22224
  #
22161
22225
  # * `resource-type` - The resource type (`customer-gateway` \|
22162
22226
  # `dedicated-host` \| `dhcp-options` \| `elastic-ip` \| `fleet` \|
22163
- # `fpga-image` \| `image` \| `instance` \| `host-reservation` \|
22164
- # `internet-gateway` \| `launch-template` \| `natgateway` \|
22165
- # `network-acl` \| `network-interface` \| `placement-group` \|
22166
- # `reserved-instances` \| `route-table` \| `security-group` \|
22167
- # `snapshot` \| `spot-instances-request` \| `subnet` \| `volume` \|
22168
- # `vpc` \| `vpc-endpoint` \| `vpc-endpoint-service` \|
22169
- # `vpc-peering-connection` \| `vpn-connection` \| `vpn-gateway`).
22227
+ # `fpga-image` \| `host-reservation` \| `image` \| `instance` \|
22228
+ # `internet-gateway` \| `key-pair` \| `launch-template` \|
22229
+ # `natgateway` \| `network-acl` \| `network-interface` \|
22230
+ # `placement-group` \| `reserved-instances` \| `route-table` \|
22231
+ # `security-group` \| `snapshot` \| `spot-instances-request` \|
22232
+ # `subnet` \| `volume` \| `vpc` \| `vpc-endpoint` \|
22233
+ # `vpc-endpoint-service` \| `vpc-peering-connection` \|
22234
+ # `vpn-connection` \| `vpn-gateway`).
22170
22235
  #
22171
22236
  # * `tag`\:&lt;key&gt; - The key/value combination of the tag. For
22172
22237
  # example, specify "tag:Owner" for the filter name and "TeamA" for
@@ -28032,10 +28097,15 @@ module Aws::EC2
28032
28097
  # The public key. For API calls, the text must be base64-encoded. For
28033
28098
  # command line tools, base64 encoding is performed for you.
28034
28099
  #
28100
+ # @option params [Array<Types::TagSpecification>] :tag_specifications
28101
+ # The tags to apply to the imported key pair.
28102
+ #
28035
28103
  # @return [Types::ImportKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
28036
28104
  #
28037
28105
  # * {Types::ImportKeyPairResult#key_fingerprint #key_fingerprint} => String
28038
28106
  # * {Types::ImportKeyPairResult#key_name #key_name} => String
28107
+ # * {Types::ImportKeyPairResult#key_pair_id #key_pair_id} => String
28108
+ # * {Types::ImportKeyPairResult#tags #tags} => Array&lt;Types::Tag&gt;
28039
28109
  #
28040
28110
  # @example Request syntax with placeholder values
28041
28111
  #
@@ -28043,12 +28113,27 @@ module Aws::EC2
28043
28113
  # dry_run: false,
28044
28114
  # key_name: "String", # required
28045
28115
  # public_key_material: "data", # required
28116
+ # tag_specifications: [
28117
+ # {
28118
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
28119
+ # tags: [
28120
+ # {
28121
+ # key: "String",
28122
+ # value: "String",
28123
+ # },
28124
+ # ],
28125
+ # },
28126
+ # ],
28046
28127
  # })
28047
28128
  #
28048
28129
  # @example Response structure
28049
28130
  #
28050
28131
  # resp.key_fingerprint #=> String
28051
28132
  # resp.key_name #=> String
28133
+ # resp.key_pair_id #=> String
28134
+ # resp.tags #=> Array
28135
+ # resp.tags[0].key #=> String
28136
+ # resp.tags[0].value #=> String
28052
28137
  #
28053
28138
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPair AWS API Documentation
28054
28139
  #
@@ -32334,15 +32419,10 @@ module Aws::EC2
32334
32419
  end
32335
32420
 
32336
32421
  # Registers a set of tag keys to include in scheduled event
32337
- # notifications for your resources. For more information, see
32338
- # [Customizing Scheduled Event Notifications][1].
32422
+ # notifications for your resources.
32339
32423
  #
32340
32424
  # To remove tags, use .
32341
32425
  #
32342
- #
32343
- #
32344
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html#customizing_scheduled_event_notifications
32345
- #
32346
32426
  # @option params [Boolean] :dry_run
32347
32427
  # Checks whether you have the required permissions for the action,
32348
32428
  # without actually making the request, and provides an error response.
@@ -36745,7 +36825,7 @@ module Aws::EC2
36745
36825
  params: params,
36746
36826
  config: config)
36747
36827
  context[:gem_name] = 'aws-sdk-ec2'
36748
- context[:gem_version] = '1.152.0'
36828
+ context[:gem_version] = '1.153.0'
36749
36829
  Seahorse::Client::Request.new(handlers, context)
36750
36830
  end
36751
36831
 
@@ -287,6 +287,7 @@ module Aws::EC2
287
287
  CreateNetworkInterfaceRequest = Shapes::StructureShape.new(name: 'CreateNetworkInterfaceRequest')
288
288
  CreateNetworkInterfaceResult = Shapes::StructureShape.new(name: 'CreateNetworkInterfaceResult')
289
289
  CreatePlacementGroupRequest = Shapes::StructureShape.new(name: 'CreatePlacementGroupRequest')
290
+ CreatePlacementGroupResult = Shapes::StructureShape.new(name: 'CreatePlacementGroupResult')
290
291
  CreateReservedInstancesListingRequest = Shapes::StructureShape.new(name: 'CreateReservedInstancesListingRequest')
291
292
  CreateReservedInstancesListingResult = Shapes::StructureShape.new(name: 'CreateReservedInstancesListingResult')
292
293
  CreateRouteRequest = Shapes::StructureShape.new(name: 'CreateRouteRequest')
@@ -2971,6 +2972,7 @@ module Aws::EC2
2971
2972
 
2972
2973
  CreateKeyPairRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "KeyName"))
2973
2974
  CreateKeyPairRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
2975
+ CreateKeyPairRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
2974
2976
  CreateKeyPairRequest.struct_class = Types::CreateKeyPairRequest
2975
2977
 
2976
2978
  CreateLaunchTemplateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
@@ -3072,8 +3074,12 @@ module Aws::EC2
3072
3074
  CreatePlacementGroupRequest.add_member(:group_name, Shapes::ShapeRef.new(shape: String, location_name: "groupName"))
3073
3075
  CreatePlacementGroupRequest.add_member(:strategy, Shapes::ShapeRef.new(shape: PlacementStrategy, location_name: "strategy"))
3074
3076
  CreatePlacementGroupRequest.add_member(:partition_count, Shapes::ShapeRef.new(shape: Integer, location_name: "PartitionCount"))
3077
+ CreatePlacementGroupRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
3075
3078
  CreatePlacementGroupRequest.struct_class = Types::CreatePlacementGroupRequest
3076
3079
 
3080
+ CreatePlacementGroupResult.add_member(:placement_group, Shapes::ShapeRef.new(shape: PlacementGroup, location_name: "placementGroup"))
3081
+ CreatePlacementGroupResult.struct_class = Types::CreatePlacementGroupResult
3082
+
3077
3083
  CreateReservedInstancesListingRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, required: true, location_name: "clientToken"))
3078
3084
  CreateReservedInstancesListingRequest.add_member(:instance_count, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "instanceCount"))
3079
3085
  CreateReservedInstancesListingRequest.add_member(:price_schedules, Shapes::ShapeRef.new(shape: PriceScheduleSpecificationList, required: true, location_name: "priceSchedules"))
@@ -3479,7 +3485,8 @@ module Aws::EC2
3479
3485
  DeleteInternetGatewayRequest.add_member(:internet_gateway_id, Shapes::ShapeRef.new(shape: InternetGatewayId, required: true, location_name: "internetGatewayId"))
3480
3486
  DeleteInternetGatewayRequest.struct_class = Types::DeleteInternetGatewayRequest
3481
3487
 
3482
- DeleteKeyPairRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: KeyPairName, required: true, location_name: "KeyName"))
3488
+ DeleteKeyPairRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: KeyPairName, location_name: "KeyName"))
3489
+ DeleteKeyPairRequest.add_member(:key_pair_id, Shapes::ShapeRef.new(shape: KeyPairId, location_name: "KeyPairId"))
3483
3490
  DeleteKeyPairRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
3484
3491
  DeleteKeyPairRequest.struct_class = Types::DeleteKeyPairRequest
3485
3492
 
@@ -6090,10 +6097,13 @@ module Aws::EC2
6090
6097
  ImportKeyPairRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
6091
6098
  ImportKeyPairRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "keyName"))
6092
6099
  ImportKeyPairRequest.add_member(:public_key_material, Shapes::ShapeRef.new(shape: Blob, required: true, location_name: "publicKeyMaterial"))
6100
+ ImportKeyPairRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
6093
6101
  ImportKeyPairRequest.struct_class = Types::ImportKeyPairRequest
6094
6102
 
6095
6103
  ImportKeyPairResult.add_member(:key_fingerprint, Shapes::ShapeRef.new(shape: String, location_name: "keyFingerprint"))
6096
6104
  ImportKeyPairResult.add_member(:key_name, Shapes::ShapeRef.new(shape: String, location_name: "keyName"))
6105
+ ImportKeyPairResult.add_member(:key_pair_id, Shapes::ShapeRef.new(shape: String, location_name: "keyPairId"))
6106
+ ImportKeyPairResult.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
6097
6107
  ImportKeyPairResult.struct_class = Types::ImportKeyPairResult
6098
6108
 
6099
6109
  ImportSnapshotRequest.add_member(:client_data, Shapes::ShapeRef.new(shape: ClientData, location_name: "ClientData"))
@@ -6525,6 +6535,7 @@ module Aws::EC2
6525
6535
  KeyPair.add_member(:key_material, Shapes::ShapeRef.new(shape: SensitiveUserData, location_name: "keyMaterial"))
6526
6536
  KeyPair.add_member(:key_name, Shapes::ShapeRef.new(shape: String, location_name: "keyName"))
6527
6537
  KeyPair.add_member(:key_pair_id, Shapes::ShapeRef.new(shape: String, location_name: "keyPairId"))
6538
+ KeyPair.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
6528
6539
  KeyPair.struct_class = Types::KeyPair
6529
6540
 
6530
6541
  KeyPairIdStringList.member = Shapes::ShapeRef.new(shape: KeyPairId, location_name: "KeyPairId")
@@ -10306,7 +10317,7 @@ module Aws::EC2
10306
10317
  o.http_method = "POST"
10307
10318
  o.http_request_uri = "/"
10308
10319
  o.input = Shapes::ShapeRef.new(shape: CreatePlacementGroupRequest)
10309
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
10320
+ o.output = Shapes::ShapeRef.new(shape: CreatePlacementGroupResult)
10310
10321
  end)
10311
10322
 
10312
10323
  api.add_operation(:create_reserved_instances_listing, Seahorse::Model::Operation.new.tap do |o|
@@ -51,6 +51,12 @@ module Aws::EC2
51
51
  data[:key_pair_id]
52
52
  end
53
53
 
54
+ # Any tags applied to the key pair.
55
+ # @return [Array<Types::Tag>]
56
+ def tags
57
+ data[:tags]
58
+ end
59
+
54
60
  # @!endgroup
55
61
 
56
62
  # @return [Client]
@@ -183,9 +189,12 @@ module Aws::EC2
183
189
  # @example Request syntax with placeholder values
184
190
  #
185
191
  # key_pair.delete({
192
+ # key_pair_id: "KeyPairId",
186
193
  # dry_run: false,
187
194
  # })
188
195
  # @param [Hash] options ({})
196
+ # @option options [String] :key_pair_id
197
+ # The ID of the key pair.
189
198
  # @option options [Boolean] :dry_run
190
199
  # Checks whether you have the required permissions for the action,
191
200
  # without actually making the request, and provides an error response.
@@ -191,9 +191,12 @@ module Aws::EC2
191
191
  # @example Request syntax with placeholder values
192
192
  #
193
193
  # key_pair_info.delete({
194
+ # key_pair_id: "KeyPairId",
194
195
  # dry_run: false,
195
196
  # })
196
197
  # @param [Hash] options ({})
198
+ # @option options [String] :key_pair_id
199
+ # The ID of the key pair.
197
200
  # @option options [Boolean] :dry_run
198
201
  # Checks whether you have the required permissions for the action,
199
202
  # without actually making the request, and provides an error response.
@@ -532,6 +532,17 @@ module Aws::EC2
532
532
  # keypair = ec2.create_key_pair({
533
533
  # key_name: "String", # required
534
534
  # dry_run: false,
535
+ # tag_specifications: [
536
+ # {
537
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
538
+ # tags: [
539
+ # {
540
+ # key: "String",
541
+ # value: "String",
542
+ # },
543
+ # ],
544
+ # },
545
+ # ],
535
546
  # })
536
547
  # @param [Hash] options ({})
537
548
  # @option options [required, String] :key_name
@@ -543,6 +554,8 @@ module Aws::EC2
543
554
  # without actually making the request, and provides an error response.
544
555
  # If you have the required permissions, the error response is
545
556
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
557
+ # @option options [Array<Types::TagSpecification>] :tag_specifications
558
+ # The tags to apply to the new key pair.
546
559
  # @return [KeyPair]
547
560
  def create_key_pair(options = {})
548
561
  resp = @client.create_key_pair(options)
@@ -723,6 +736,17 @@ module Aws::EC2
723
736
  # group_name: "String",
724
737
  # strategy: "cluster", # accepts cluster, spread, partition
725
738
  # partition_count: 1,
739
+ # tag_specifications: [
740
+ # {
741
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
742
+ # tags: [
743
+ # {
744
+ # key: "String",
745
+ # value: "String",
746
+ # },
747
+ # ],
748
+ # },
749
+ # ],
726
750
  # })
727
751
  # @param [Hash] options ({})
728
752
  # @option options [Boolean] :dry_run
@@ -740,6 +764,8 @@ module Aws::EC2
740
764
  # @option options [Integer] :partition_count
741
765
  # The number of partitions. Valid only when **Strategy** is set to
742
766
  # `partition`.
767
+ # @option options [Array<Types::TagSpecification>] :tag_specifications
768
+ # The tags to apply to the new placement group.
743
769
  # @return [PlacementGroup]
744
770
  def create_placement_group(options = {})
745
771
  resp = @client.create_placement_group(options)
@@ -1238,6 +1264,17 @@ module Aws::EC2
1238
1264
  # dry_run: false,
1239
1265
  # key_name: "String", # required
1240
1266
  # public_key_material: "data", # required
1267
+ # tag_specifications: [
1268
+ # {
1269
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
1270
+ # tags: [
1271
+ # {
1272
+ # key: "String",
1273
+ # value: "String",
1274
+ # },
1275
+ # ],
1276
+ # },
1277
+ # ],
1241
1278
  # })
1242
1279
  # @param [Hash] options ({})
1243
1280
  # @option options [Boolean] :dry_run
@@ -1250,6 +1287,8 @@ module Aws::EC2
1250
1287
  # @option options [required, String, IO] :public_key_material
1251
1288
  # The public key. For API calls, the text must be base64-encoded. For
1252
1289
  # command line tools, base64 encoding is performed for you.
1290
+ # @option options [Array<Types::TagSpecification>] :tag_specifications
1291
+ # The tags to apply to the imported key pair.
1253
1292
  # @return [KeyPairInfo]
1254
1293
  def import_key_pair(options = {})
1255
1294
  resp = @client.import_key_pair(options)
@@ -2088,9 +2127,21 @@ module Aws::EC2
2088
2127
  # @option options [Array<Types::Filter>] :filters
2089
2128
  # The filters.
2090
2129
  #
2130
+ # * `key-pair-id` - The ID of the key pair.
2131
+ #
2091
2132
  # * `fingerprint` - The fingerprint of the key pair.
2092
2133
  #
2093
2134
  # * `key-name` - The name of the key pair.
2135
+ #
2136
+ # * `tag-key` - The key of a tag assigned to the resource. Use this
2137
+ # filter to find all resources assigned a tag with a specific key,
2138
+ # regardless of the tag value.
2139
+ #
2140
+ # * `tag`\:&lt;key&gt; - The key/value combination of a tag assigned to
2141
+ # the resource. Use the tag key in the filter name and the tag value
2142
+ # as the filter value. For example, to find all resources that have a
2143
+ # tag with the key `Owner` and the value `TeamA`, specify `tag:Owner`
2144
+ # for the filter name and `TeamA` for the filter value.
2094
2145
  # @option options [Array<String>] :key_names
2095
2146
  # The key pair names.
2096
2147
  #
@@ -2486,6 +2537,16 @@ module Aws::EC2
2486
2537
  #
2487
2538
  # * `strategy` - The strategy of the placement group (`cluster` \|
2488
2539
  # `spread` \| `partition`).
2540
+ #
2541
+ # * `tag`\:&lt;key&gt; - The key/value combination of a tag assigned to
2542
+ # the resource. Use the tag key in the filter name and the tag value
2543
+ # as the filter value. For example, to find all resources that have a
2544
+ # tag with the key `Owner` and the value `TeamA`, specify `tag:Owner`
2545
+ # for the filter name and `TeamA` for the filter value.
2546
+ #
2547
+ # * `tag-key` - The key of a tag assigned to the resource. Use this
2548
+ # filter to find all resources that have a tag with a specific key,
2549
+ # regardless of the tag value.
2489
2550
  # @option options [Boolean] :dry_run
2490
2551
  # Checks whether you have the required permissions for the action,
2491
2552
  # without actually making the request, and provides an error response.
@@ -5885,6 +5885,17 @@ module Aws::EC2
5885
5885
  # {
5886
5886
  # key_name: "String", # required
5887
5887
  # dry_run: false,
5888
+ # tag_specifications: [
5889
+ # {
5890
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
5891
+ # tags: [
5892
+ # {
5893
+ # key: "String",
5894
+ # value: "String",
5895
+ # },
5896
+ # ],
5897
+ # },
5898
+ # ],
5888
5899
  # }
5889
5900
  #
5890
5901
  # @!attribute [rw] key_name
@@ -5900,11 +5911,16 @@ module Aws::EC2
5900
5911
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
5901
5912
  # @return [Boolean]
5902
5913
  #
5914
+ # @!attribute [rw] tag_specifications
5915
+ # The tags to apply to the new key pair.
5916
+ # @return [Array<Types::TagSpecification>]
5917
+ #
5903
5918
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateKeyPairRequest AWS API Documentation
5904
5919
  #
5905
5920
  class CreateKeyPairRequest < Struct.new(
5906
5921
  :key_name,
5907
- :dry_run)
5922
+ :dry_run,
5923
+ :tag_specifications)
5908
5924
  include Aws::Structure
5909
5925
  end
5910
5926
 
@@ -6844,6 +6860,17 @@ module Aws::EC2
6844
6860
  # group_name: "String",
6845
6861
  # strategy: "cluster", # accepts cluster, spread, partition
6846
6862
  # partition_count: 1,
6863
+ # tag_specifications: [
6864
+ # {
6865
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
6866
+ # tags: [
6867
+ # {
6868
+ # key: "String",
6869
+ # value: "String",
6870
+ # },
6871
+ # ],
6872
+ # },
6873
+ # ],
6847
6874
  # }
6848
6875
  #
6849
6876
  # @!attribute [rw] dry_run
@@ -6869,13 +6896,29 @@ module Aws::EC2
6869
6896
  # `partition`.
6870
6897
  # @return [Integer]
6871
6898
  #
6899
+ # @!attribute [rw] tag_specifications
6900
+ # The tags to apply to the new placement group.
6901
+ # @return [Array<Types::TagSpecification>]
6902
+ #
6872
6903
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroupRequest AWS API Documentation
6873
6904
  #
6874
6905
  class CreatePlacementGroupRequest < Struct.new(
6875
6906
  :dry_run,
6876
6907
  :group_name,
6877
6908
  :strategy,
6878
- :partition_count)
6909
+ :partition_count,
6910
+ :tag_specifications)
6911
+ include Aws::Structure
6912
+ end
6913
+
6914
+ # @!attribute [rw] placement_group
6915
+ # Describes a placement group.
6916
+ # @return [Types::PlacementGroup]
6917
+ #
6918
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreatePlacementGroupResult AWS API Documentation
6919
+ #
6920
+ class CreatePlacementGroupResult < Struct.new(
6921
+ :placement_group)
6879
6922
  include Aws::Structure
6880
6923
  end
6881
6924
 
@@ -9672,7 +9715,8 @@ module Aws::EC2
9672
9715
  # data as a hash:
9673
9716
  #
9674
9717
  # {
9675
- # key_name: "KeyPairName", # required
9718
+ # key_name: "KeyPairName",
9719
+ # key_pair_id: "KeyPairId",
9676
9720
  # dry_run: false,
9677
9721
  # }
9678
9722
  #
@@ -9680,6 +9724,10 @@ module Aws::EC2
9680
9724
  # The name of the key pair.
9681
9725
  # @return [String]
9682
9726
  #
9727
+ # @!attribute [rw] key_pair_id
9728
+ # The ID of the key pair.
9729
+ # @return [String]
9730
+ #
9683
9731
  # @!attribute [rw] dry_run
9684
9732
  # Checks whether you have the required permissions for the action,
9685
9733
  # without actually making the request, and provides an error response.
@@ -9691,6 +9739,7 @@ module Aws::EC2
9691
9739
  #
9692
9740
  class DeleteKeyPairRequest < Struct.new(
9693
9741
  :key_name,
9742
+ :key_pair_id,
9694
9743
  :dry_run)
9695
9744
  include Aws::Structure
9696
9745
  end
@@ -13946,7 +13995,7 @@ module Aws::EC2
13946
13995
  # * `instance-id` - The ID of the instance.
13947
13996
  #
13948
13997
  # * `state` - The state of the association (`associating` \|
13949
- # `associated` \| `disassociating` \| `disassociated`).
13998
+ # `associated` \| `disassociating`).
13950
13999
  # @return [Array<Types::Filter>]
13951
14000
  #
13952
14001
  # @!attribute [rw] max_results
@@ -15453,9 +15502,21 @@ module Aws::EC2
15453
15502
  # @!attribute [rw] filters
15454
15503
  # The filters.
15455
15504
  #
15505
+ # * `key-pair-id` - The ID of the key pair.
15506
+ #
15456
15507
  # * `fingerprint` - The fingerprint of the key pair.
15457
15508
  #
15458
15509
  # * `key-name` - The name of the key pair.
15510
+ #
15511
+ # * `tag-key` - The key of a tag assigned to the resource. Use this
15512
+ # filter to find all resources assigned a tag with a specific key,
15513
+ # regardless of the tag value.
15514
+ #
15515
+ # * `tag`\:&lt;key&gt; - The key/value combination of a tag assigned
15516
+ # to the resource. Use the tag key in the filter name and the tag
15517
+ # value as the filter value. For example, to find all resources that
15518
+ # have a tag with the key `Owner` and the value `TeamA`, specify
15519
+ # `tag:Owner` for the filter name and `TeamA` for the filter value.
15459
15520
  # @return [Array<Types::Filter>]
15460
15521
  #
15461
15522
  # @!attribute [rw] key_names
@@ -16759,6 +16820,16 @@ module Aws::EC2
16759
16820
  #
16760
16821
  # * `strategy` - The strategy of the placement group (`cluster` \|
16761
16822
  # `spread` \| `partition`).
16823
+ #
16824
+ # * `tag`\:&lt;key&gt; - The key/value combination of a tag assigned
16825
+ # to the resource. Use the tag key in the filter name and the tag
16826
+ # value as the filter value. For example, to find all resources that
16827
+ # have a tag with the key `Owner` and the value `TeamA`, specify
16828
+ # `tag:Owner` for the filter name and `TeamA` for the filter value.
16829
+ #
16830
+ # * `tag-key` - The key of a tag assigned to the resource. Use this
16831
+ # filter to find all resources that have a tag with a specific key,
16832
+ # regardless of the tag value.
16762
16833
  # @return [Array<Types::Filter>]
16763
16834
  #
16764
16835
  # @!attribute [rw] dry_run
@@ -19086,13 +19157,14 @@ module Aws::EC2
19086
19157
  #
19087
19158
  # * `resource-type` - The resource type (`customer-gateway` \|
19088
19159
  # `dedicated-host` \| `dhcp-options` \| `elastic-ip` \| `fleet` \|
19089
- # `fpga-image` \| `image` \| `instance` \| `host-reservation` \|
19090
- # `internet-gateway` \| `launch-template` \| `natgateway` \|
19091
- # `network-acl` \| `network-interface` \| `placement-group` \|
19092
- # `reserved-instances` \| `route-table` \| `security-group` \|
19093
- # `snapshot` \| `spot-instances-request` \| `subnet` \| `volume` \|
19094
- # `vpc` \| `vpc-endpoint` \| `vpc-endpoint-service` \|
19095
- # `vpc-peering-connection` \| `vpn-connection` \| `vpn-gateway`).
19160
+ # `fpga-image` \| `host-reservation` \| `image` \| `instance` \|
19161
+ # `internet-gateway` \| `key-pair` \| `launch-template` \|
19162
+ # `natgateway` \| `network-acl` \| `network-interface` \|
19163
+ # `placement-group` \| `reserved-instances` \| `route-table` \|
19164
+ # `security-group` \| `snapshot` \| `spot-instances-request` \|
19165
+ # `subnet` \| `volume` \| `vpc` \| `vpc-endpoint` \|
19166
+ # `vpc-endpoint-service` \| `vpc-peering-connection` \|
19167
+ # `vpn-connection` \| `vpn-gateway`).
19096
19168
  #
19097
19169
  # * `tag`\:&lt;key&gt; - The key/value combination of the tag. For
19098
19170
  # example, specify "tag:Owner" for the filter name and "TeamA"
@@ -27384,6 +27456,17 @@ module Aws::EC2
27384
27456
  # dry_run: false,
27385
27457
  # key_name: "String", # required
27386
27458
  # public_key_material: "data", # required
27459
+ # tag_specifications: [
27460
+ # {
27461
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
27462
+ # tags: [
27463
+ # {
27464
+ # key: "String",
27465
+ # value: "String",
27466
+ # },
27467
+ # ],
27468
+ # },
27469
+ # ],
27387
27470
  # }
27388
27471
  #
27389
27472
  # @!attribute [rw] dry_run
@@ -27402,12 +27485,17 @@ module Aws::EC2
27402
27485
  # command line tools, base64 encoding is performed for you.
27403
27486
  # @return [String]
27404
27487
  #
27488
+ # @!attribute [rw] tag_specifications
27489
+ # The tags to apply to the imported key pair.
27490
+ # @return [Array<Types::TagSpecification>]
27491
+ #
27405
27492
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPairRequest AWS API Documentation
27406
27493
  #
27407
27494
  class ImportKeyPairRequest < Struct.new(
27408
27495
  :dry_run,
27409
27496
  :key_name,
27410
- :public_key_material)
27497
+ :public_key_material,
27498
+ :tag_specifications)
27411
27499
  include Aws::Structure
27412
27500
  end
27413
27501
 
@@ -27420,11 +27508,21 @@ module Aws::EC2
27420
27508
  # The key pair name you provided.
27421
27509
  # @return [String]
27422
27510
  #
27511
+ # @!attribute [rw] key_pair_id
27512
+ # The ID of the resulting key pair.
27513
+ # @return [String]
27514
+ #
27515
+ # @!attribute [rw] tags
27516
+ # The tags applied to the imported key pair.
27517
+ # @return [Array<Types::Tag>]
27518
+ #
27423
27519
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportKeyPairResult AWS API Documentation
27424
27520
  #
27425
27521
  class ImportKeyPairResult < Struct.new(
27426
27522
  :key_fingerprint,
27427
- :key_name)
27523
+ :key_name,
27524
+ :key_pair_id,
27525
+ :tags)
27428
27526
  include Aws::Structure
27429
27527
  end
27430
27528
 
@@ -29566,13 +29664,18 @@ module Aws::EC2
29566
29664
  # The ID of the key pair.
29567
29665
  # @return [String]
29568
29666
  #
29667
+ # @!attribute [rw] tags
29668
+ # Any tags applied to the key pair.
29669
+ # @return [Array<Types::Tag>]
29670
+ #
29569
29671
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/KeyPair AWS API Documentation
29570
29672
  #
29571
29673
  class KeyPair < Struct.new(
29572
29674
  :key_fingerprint,
29573
29675
  :key_material,
29574
29676
  :key_name,
29575
- :key_pair_id)
29677
+ :key_pair_id,
29678
+ :tags)
29576
29679
  include Aws::Structure
29577
29680
  end
29578
29681
 
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.152.0
4
+ version: 1.153.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: 2020-04-08 00:00:00.000000000 Z
11
+ date: 2020-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4