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
}

Contains the parameters for CreateNatGateway.

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)


2951
2952
2953
2954
2955
2956
# File 'lib/aws-sdk-ec2/types.rb', line 2951

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

#client_tokenString

Unique, case-sensitive identifier 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)


2951
2952
2953
2954
2955
2956
# File 'lib/aws-sdk-ec2/types.rb', line 2951

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)


2951
2952
2953
2954
2955
2956
# File 'lib/aws-sdk-ec2/types.rb', line 2951

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