You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/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)


3814
3815
3816
3817
3818
3819
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 3814

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.

Returns:

  • (String)


3814
3815
3816
3817
3818
3819
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 3814

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)


3814
3815
3816
3817
3818
3819
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 3814

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