Class: Aws::EC2::Types::CreateNatGatewayRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass CreateNatGatewayRequest data as a hash:

{
  allocation_id: "String", # required
  client_token: "String",
  subnet_id: "String", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#allocation_idString

The allocation ID of an Elastic IP address to associate with the NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.

Returns:

  • (String)


5643
5644
5645
5646
5647
5648
# File 'lib/aws-sdk-ec2/types.rb', line 5643

class CreateNatGatewayRequest < Struct.new(
  :allocation_id,
  :client_token,
  :subnet_id)
  include Aws::Structure
end

#client_tokenString

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see [How to Ensure Idempotency].

Constraint: Maximum 64 ASCII characters.

[1]: docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html

Returns:

  • (String)


5643
5644
5645
5646
5647
5648
# File 'lib/aws-sdk-ec2/types.rb', line 5643

class CreateNatGatewayRequest < Struct.new(
  :allocation_id,
  :client_token,
  :subnet_id)
  include Aws::Structure
end

#subnet_idString

The subnet in which to create the NAT gateway.

Returns:

  • (String)


5643
5644
5645
5646
5647
5648
# File 'lib/aws-sdk-ec2/types.rb', line 5643

class CreateNatGatewayRequest < Struct.new(
  :allocation_id,
  :client_token,
  :subnet_id)
  include Aws::Structure
end