lib/aws-sdk-ec2/resource.rb in aws-sdk-ec2-1.239.0 vs lib/aws-sdk-ec2/resource.rb in aws-sdk-ec2-1.240.0
- old
+ new
@@ -738,10 +738,11 @@
# value: "String",
# },
# ],
# },
# ],
+ # client_token: "String",
# })
# @param [Hash] options ({})
# @option options [String] :description
# A description for the network interface.
# @option options [Boolean] :dry_run
@@ -794,9 +795,17 @@
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html
# @option options [required, String] :subnet_id
# The ID of the subnet to associate with the network interface.
# @option options [Array<Types::TagSpecification>] :tag_specifications
# The tags to apply to the new network interface.
+ # @option options [String] :client_token
+ # Unique, case-sensitive identifier that you provide to ensure the
+ # idempotency of the request. For more information, see [Ensuring
+ # Idempotency][1].
+ #
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
# @return [NetworkInterface]
def create_network_interface(options = {})
resp = @client.create_network_interface(options)
NetworkInterface.new(
id: resp.data.network_interface.network_interface_id,