aws-sdk-ec2 1.399.0 → 1.400.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
  SHA256:
3
- metadata.gz: 1a7b52147cc1c38ae22dd42765ab564cba7fbe6aa0cb47ff2ffc1a874250dccf
4
- data.tar.gz: eaee461e1afaf7178928ce2774af24e9fda7b060e1754d04d197873f05a405e8
3
+ metadata.gz: b18b05d0930c0e962b79e96a771ffc2ddbae7bde70314cefb88af289b12950ed
4
+ data.tar.gz: 6ae702d8148ad574c08616390024cbc0983c29a4484acafbec6d7e9aab96b759
5
5
  SHA512:
6
- metadata.gz: 25f60ff8dde776ccc451baa5bc17c39713ee7b3619618b49cd4621670fcc6d988e9261781d532f64420f5910912e95cc7c72499319db233de21977cd7a91c611
7
- data.tar.gz: 6d841d40ecfb7abb985627e05962def6be027a64eb15725b9b2b7bbca4601f2d5c941c822857904841de7582fd57ecf65c4074faba050f306a17b2f8f0559e2b
6
+ metadata.gz: c9051dcc2722dd1a076a5d6ce5a9bb0637e84c51f1da0546afcc5a5cb1ffee6427e3468cc5ca3548bcd2e10e06156c90b306d15153131586c962dd9eadb32ea3
7
+ data.tar.gz: '08d04bda2fbe008324272c59e45ab9c52771963e18038497a3717ab8a1c2db5f312788748790e1c6dbf0544eebeee160de4f20d878f48c00a372d549cb2bd74d'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.400.0 (2023-08-21)
5
+ ------------------
6
+
7
+ * Feature - The DeleteKeyPair API has been updated to return the keyPairId when an existing key pair is deleted.
8
+
4
9
  1.399.0 (2023-08-17)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.399.0
1
+ 1.400.0
@@ -15975,7 +15975,10 @@ module Aws::EC2
15975
15975
  # If you have the required permissions, the error response is
15976
15976
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
15977
15977
  #
15978
- # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
15978
+ # @return [Types::DeleteKeyPairResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
15979
+ #
15980
+ # * {Types::DeleteKeyPairResult#return #return} => Boolean
15981
+ # * {Types::DeleteKeyPairResult#key_pair_id #key_pair_id} => String
15979
15982
  #
15980
15983
  #
15981
15984
  # @example Example: To delete a key pair
@@ -15994,6 +15997,11 @@ module Aws::EC2
15994
15997
  # dry_run: false,
15995
15998
  # })
15996
15999
  #
16000
+ # @example Response structure
16001
+ #
16002
+ # resp.return #=> Boolean
16003
+ # resp.key_pair_id #=> String
16004
+ #
15997
16005
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPair AWS API Documentation
15998
16006
  #
15999
16007
  # @overload delete_key_pair(params = {})
@@ -56731,7 +56739,7 @@ module Aws::EC2
56731
56739
  params: params,
56732
56740
  config: config)
56733
56741
  context[:gem_name] = 'aws-sdk-ec2'
56734
- context[:gem_version] = '1.399.0'
56742
+ context[:gem_version] = '1.400.0'
56735
56743
  Seahorse::Client::Request.new(handlers, context)
56736
56744
  end
56737
56745
 
@@ -620,6 +620,7 @@ module Aws::EC2
620
620
  DeleteIpamScopeRequest = Shapes::StructureShape.new(name: 'DeleteIpamScopeRequest')
621
621
  DeleteIpamScopeResult = Shapes::StructureShape.new(name: 'DeleteIpamScopeResult')
622
622
  DeleteKeyPairRequest = Shapes::StructureShape.new(name: 'DeleteKeyPairRequest')
623
+ DeleteKeyPairResult = Shapes::StructureShape.new(name: 'DeleteKeyPairResult')
623
624
  DeleteLaunchTemplateRequest = Shapes::StructureShape.new(name: 'DeleteLaunchTemplateRequest')
624
625
  DeleteLaunchTemplateResult = Shapes::StructureShape.new(name: 'DeleteLaunchTemplateResult')
625
626
  DeleteLaunchTemplateVersionsRequest = Shapes::StructureShape.new(name: 'DeleteLaunchTemplateVersionsRequest')
@@ -5509,6 +5510,10 @@ module Aws::EC2
5509
5510
  DeleteKeyPairRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
5510
5511
  DeleteKeyPairRequest.struct_class = Types::DeleteKeyPairRequest
5511
5512
 
5513
+ DeleteKeyPairResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
5514
+ DeleteKeyPairResult.add_member(:key_pair_id, Shapes::ShapeRef.new(shape: String, location_name: "keyPairId"))
5515
+ DeleteKeyPairResult.struct_class = Types::DeleteKeyPairResult
5516
+
5512
5517
  DeleteLaunchTemplateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
5513
5518
  DeleteLaunchTemplateRequest.add_member(:launch_template_id, Shapes::ShapeRef.new(shape: LaunchTemplateId, location_name: "LaunchTemplateId"))
5514
5519
  DeleteLaunchTemplateRequest.add_member(:launch_template_name, Shapes::ShapeRef.new(shape: LaunchTemplateName, location_name: "LaunchTemplateName"))
@@ -16255,7 +16260,7 @@ module Aws::EC2
16255
16260
  o.http_method = "POST"
16256
16261
  o.http_request_uri = "/"
16257
16262
  o.input = Shapes::ShapeRef.new(shape: DeleteKeyPairRequest)
16258
- o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
16263
+ o.output = Shapes::ShapeRef.new(shape: DeleteKeyPairResult)
16259
16264
  end)
16260
16265
 
16261
16266
  api.add_operation(:delete_launch_template, Seahorse::Model::Operation.new.tap do |o|
@@ -209,7 +209,7 @@ module Aws::EC2
209
209
  # without actually making the request, and provides an error response.
210
210
  # If you have the required permissions, the error response is
211
211
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
212
- # @return [EmptyStructure]
212
+ # @return [Types::DeleteKeyPairResult]
213
213
  def delete(options = {})
214
214
  options = options.merge(key_name: @name)
215
215
  resp = Aws::Plugins::UserAgent.feature('resource') do
@@ -254,7 +254,7 @@ module Aws::EC2
254
254
  # without actually making the request, and provides an error response.
255
255
  # If you have the required permissions, the error response is
256
256
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
257
- # @return [EmptyStructure]
257
+ # @return [Types::DeleteKeyPairResult]
258
258
  def delete(options = {})
259
259
  options = options.merge(key_name: @name)
260
260
  resp = Aws::Plugins::UserAgent.feature('resource') do
@@ -13508,6 +13508,23 @@ module Aws::EC2
13508
13508
  include Aws::Structure
13509
13509
  end
13510
13510
 
13511
+ # @!attribute [rw] return
13512
+ # Is `true` if the request succeeds, and an error otherwise.
13513
+ # @return [Boolean]
13514
+ #
13515
+ # @!attribute [rw] key_pair_id
13516
+ # The ID of the key pair.
13517
+ # @return [String]
13518
+ #
13519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteKeyPairResult AWS API Documentation
13520
+ #
13521
+ class DeleteKeyPairResult < Struct.new(
13522
+ :return,
13523
+ :key_pair_id)
13524
+ SENSITIVE = []
13525
+ include Aws::Structure
13526
+ end
13527
+
13511
13528
  # @!attribute [rw] dry_run
13512
13529
  # Checks whether you have the required permissions for the action,
13513
13530
  # without actually making the request, and provides an error response.
data/lib/aws-sdk-ec2.rb CHANGED
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.399.0'
79
+ GEM_VERSION = '1.400.0'
80
80
 
81
81
  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.399.0
4
+ version: 1.400.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: 2023-08-17 00:00:00.000000000 Z
11
+ date: 2023-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4