aws-sdk-ec2 1.239.0 → 1.240.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: 35aa8bb112b599a88dbc46b677816fc0e1f156e908fa4f9db85aa984f69afc19
4
- data.tar.gz: b1f9807219a6e2d8fc3b4e95361fadf2372e88366da2ab45c6d5cc54fd5398d8
3
+ metadata.gz: 13d00c8dce8b24cf4f9902ba7961f4e17cb7262173edda8fe687a5eb360213cc
4
+ data.tar.gz: 88ad3a0d37fb4a6996853cb3bdd9b9a9ef21d101d5bdf19df13729eddf67d8dd
5
5
  SHA512:
6
- metadata.gz: 0c9e1f013ab818c9ec4cd1d11f33114fb2cb8a51c08df59f546baa67f704983f80381b1214fccda100a2c15831cf166a85886c82c75bdd5e8583575725c32a95
7
- data.tar.gz: '07228e948216c2764e28cd9609f96977d1266b4ad6f565b05e25015763b9a19d2cc831bca932eef3bb2e2fd304583cf699e372b45dd2c0d400024e7f1c3c8135'
6
+ metadata.gz: f3831a78b525905f063a2a0334d127a21705793b774f40d2678d3a4fbbd7546061672cacf75e8d465e7a7863807104c71421fa81aaf6a5434ee923a1d41e07a6
7
+ data.tar.gz: 59729c046e0cd5ff579b621bde6118e4fe31ef3ed6bad4cd38d14e16040b95caa828e2068e0d04f2c8c23e4667e5859f7d250880c7e9315ce98f3c588b45dfd6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.240.0 (2021-06-01)
5
+ ------------------
6
+
7
+ * Feature - Added idempotency to CreateNetworkInterface using the ClientToken parameter.
8
+
4
9
  1.239.0 (2021-05-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.239.0
1
+ 1.240.0
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.239.0'
75
+ GEM_VERSION = '1.240.0'
76
76
 
77
77
  end
@@ -7063,9 +7063,22 @@ module Aws::EC2
7063
7063
  # @option params [Array<Types::TagSpecification>] :tag_specifications
7064
7064
  # The tags to apply to the new network interface.
7065
7065
  #
7066
+ # @option params [String] :client_token
7067
+ # Unique, case-sensitive identifier that you provide to ensure the
7068
+ # idempotency of the request. For more information, see [Ensuring
7069
+ # Idempotency][1].
7070
+ #
7071
+ # **A suitable default value is auto-generated.** You should normally
7072
+ # not need to pass this option.**
7073
+ #
7074
+ #
7075
+ #
7076
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
7077
+ #
7066
7078
  # @return [Types::CreateNetworkInterfaceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7067
7079
  #
7068
7080
  # * {Types::CreateNetworkInterfaceResult#network_interface #network_interface} => Types::NetworkInterface
7081
+ # * {Types::CreateNetworkInterfaceResult#client_token #client_token} => String
7069
7082
  #
7070
7083
  #
7071
7084
  # @example Example: To create a network interface
@@ -7145,6 +7158,7 @@ module Aws::EC2
7145
7158
  # ],
7146
7159
  # },
7147
7160
  # ],
7161
+ # client_token: "String",
7148
7162
  # })
7149
7163
  #
7150
7164
  # @example Response structure
@@ -7198,6 +7212,7 @@ module Aws::EC2
7198
7212
  # resp.network_interface.tag_set[0].key #=> String
7199
7213
  # resp.network_interface.tag_set[0].value #=> String
7200
7214
  # resp.network_interface.vpc_id #=> String
7215
+ # resp.client_token #=> String
7201
7216
  #
7202
7217
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface AWS API Documentation
7203
7218
  #
@@ -41881,7 +41896,7 @@ module Aws::EC2
41881
41896
  params: params,
41882
41897
  config: config)
41883
41898
  context[:gem_name] = 'aws-sdk-ec2'
41884
- context[:gem_version] = '1.239.0'
41899
+ context[:gem_version] = '1.240.0'
41885
41900
  Seahorse::Client::Request.new(handlers, context)
41886
41901
  end
41887
41902
 
@@ -3529,9 +3529,11 @@ module Aws::EC2
3529
3529
  CreateNetworkInterfaceRequest.add_member(:interface_type, Shapes::ShapeRef.new(shape: NetworkInterfaceCreationType, location_name: "InterfaceType"))
3530
3530
  CreateNetworkInterfaceRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "subnetId"))
3531
3531
  CreateNetworkInterfaceRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
3532
+ CreateNetworkInterfaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
3532
3533
  CreateNetworkInterfaceRequest.struct_class = Types::CreateNetworkInterfaceRequest
3533
3534
 
3534
3535
  CreateNetworkInterfaceResult.add_member(:network_interface, Shapes::ShapeRef.new(shape: NetworkInterface, location_name: "networkInterface"))
3536
+ CreateNetworkInterfaceResult.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
3535
3537
  CreateNetworkInterfaceResult.struct_class = Types::CreateNetworkInterfaceResult
3536
3538
 
3537
3539
  CreatePlacementGroupRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
@@ -740,6 +740,7 @@ module Aws::EC2
740
740
  # ],
741
741
  # },
742
742
  # ],
743
+ # client_token: "String",
743
744
  # })
744
745
  # @param [Hash] options ({})
745
746
  # @option options [String] :description
@@ -796,6 +797,14 @@ module Aws::EC2
796
797
  # The ID of the subnet to associate with the network interface.
797
798
  # @option options [Array<Types::TagSpecification>] :tag_specifications
798
799
  # The tags to apply to the new network interface.
800
+ # @option options [String] :client_token
801
+ # Unique, case-sensitive identifier that you provide to ensure the
802
+ # idempotency of the request. For more information, see [Ensuring
803
+ # Idempotency][1].
804
+ #
805
+ #
806
+ #
807
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
799
808
  # @return [NetworkInterface]
800
809
  def create_network_interface(options = {})
801
810
  resp = @client.create_network_interface(options)
@@ -766,6 +766,7 @@ module Aws::EC2
766
766
  # ],
767
767
  # },
768
768
  # ],
769
+ # client_token: "String",
769
770
  # })
770
771
  # @param [Hash] options ({})
771
772
  # @option options [String] :description
@@ -820,6 +821,14 @@ module Aws::EC2
820
821
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html
821
822
  # @option options [Array<Types::TagSpecification>] :tag_specifications
822
823
  # The tags to apply to the new network interface.
824
+ # @option options [String] :client_token
825
+ # Unique, case-sensitive identifier that you provide to ensure the
826
+ # idempotency of the request. For more information, see [Ensuring
827
+ # Idempotency][1].
828
+ #
829
+ #
830
+ #
831
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
823
832
  # @return [NetworkInterface]
824
833
  def create_network_interface(options = {})
825
834
  options = options.merge(subnet_id: @id)
@@ -8250,6 +8250,7 @@ module Aws::EC2
8250
8250
  # ],
8251
8251
  # },
8252
8252
  # ],
8253
+ # client_token: "String",
8253
8254
  # }
8254
8255
  #
8255
8256
  # @!attribute [rw] description
@@ -8329,6 +8330,19 @@ module Aws::EC2
8329
8330
  # The tags to apply to the new network interface.
8330
8331
  # @return [Array<Types::TagSpecification>]
8331
8332
  #
8333
+ # @!attribute [rw] client_token
8334
+ # Unique, case-sensitive identifier that you provide to ensure the
8335
+ # idempotency of the request. For more information, see [Ensuring
8336
+ # Idempotency][1].
8337
+ #
8338
+ # **A suitable default value is auto-generated.** You should normally
8339
+ # not need to pass this option.
8340
+ #
8341
+ #
8342
+ #
8343
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
8344
+ # @return [String]
8345
+ #
8332
8346
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceRequest AWS API Documentation
8333
8347
  #
8334
8348
  class CreateNetworkInterfaceRequest < Struct.new(
@@ -8342,7 +8356,8 @@ module Aws::EC2
8342
8356
  :secondary_private_ip_address_count,
8343
8357
  :interface_type,
8344
8358
  :subnet_id,
8345
- :tag_specifications)
8359
+ :tag_specifications,
8360
+ :client_token)
8346
8361
  SENSITIVE = []
8347
8362
  include Aws::Structure
8348
8363
  end
@@ -8353,10 +8368,16 @@ module Aws::EC2
8353
8368
  # Information about the network interface.
8354
8369
  # @return [Types::NetworkInterface]
8355
8370
  #
8371
+ # @!attribute [rw] client_token
8372
+ # The token to use to retrieve the next page of results. This value is
8373
+ # `null` when there are no more results to return.
8374
+ # @return [String]
8375
+ #
8356
8376
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceResult AWS API Documentation
8357
8377
  #
8358
8378
  class CreateNetworkInterfaceResult < Struct.new(
8359
- :network_interface)
8379
+ :network_interface,
8380
+ :client_token)
8360
8381
  SENSITIVE = []
8361
8382
  include Aws::Structure
8362
8383
  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.239.0
4
+ version: 1.240.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: 2021-05-27 00:00:00.000000000 Z
11
+ date: 2021-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4