AWSEC2NatGateway

Objective-C

@interface AWSEC2NatGateway

Swift

class AWSEC2NatGateway

Describes a NAT gateway.

  • Indicates whether the NAT gateway supports public or private connectivity.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2ConnectivityType connectivityType;

    Swift

    var connectivityType: AWSEC2ConnectivityType { get set }
  • The date and time the NAT gateway was created.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *_Nullable createTime;

    Swift

    var createTime: Date? { get set }
  • The date and time the NAT gateway was deleted, if applicable.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSDate *_Nullable deleteTime;

    Swift

    var deleteTime: Date? { get set }
  • If the NAT gateway could not be created, specifies the error code for the failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable failureCode;

    Swift

    var failureCode: String? { get set }
  • If the NAT gateway could not be created, specifies the error message for the failure, that corresponds to the error code.

    • For InsufficientFreeAddressesInSubnet: “Subnet has insufficient free addresses to create this NAT gateway”

    • For Gateway.NotAttached: “Network vpc-xxxxxxxx has no Internet gateway attached”

    • For InvalidAllocationID.NotFound: “Elastic IP address eipalloc-xxxxxxxx could not be associated with this NAT gateway”

    • For Resource.AlreadyAssociated: “Elastic IP address eipalloc-xxxxxxxx is already associated”

    • For InternalError: “Network interface eni-xxxxxxxx, created and used internally by this NAT gateway is in an invalid state. Please try again.”

    • For InvalidSubnetID.NotFound: “The specified subnet subnet-xxxxxxxx does not exist or could not be found.”

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable failureMessage;

    Swift

    var failureMessage: String? { get set }
  • Information about the IP addresses and network interface associated with the NAT gateway.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2NatGatewayAddress *> *_Nullable natGatewayAddresses;

    Swift

    var natGatewayAddresses: [AWSEC2NatGatewayAddress]? { get set }
  • The ID of the NAT gateway.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable natGatewayId;

    Swift

    var natGatewayId: String? { get set }
  • Reserved. If you need to sustain traffic greater than the documented limits, contact Amazon Web Services Support.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2ProvisionedBandwidth *_Nullable provisionedBandwidth;

    Swift

    var provisionedBandwidth: AWSEC2ProvisionedBandwidth? { get set }
  • The state of the NAT gateway.

    • pending: The NAT gateway is being created and is not ready to process traffic.

    • failed: The NAT gateway could not be created. Check the failureCode and failureMessage fields for the reason.

    • available: The NAT gateway is able to process traffic. This status remains until you delete the NAT gateway, and does not indicate the health of the NAT gateway.

    • deleting: The NAT gateway is in the process of being terminated and may still be processing traffic.

    • deleted: The NAT gateway has been terminated and is no longer processing traffic.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2NatGatewayState state;

    Swift

    var state: AWSEC2NatGatewayState { get set }
  • The ID of the subnet in which the NAT gateway is located.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable subnetId;

    Swift

    var subnetId: String? { get set }
  • The tags for the NAT gateway.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2Tag *> *_Nullable tags;

    Swift

    var tags: [AWSEC2Tag]? { get set }
  • The ID of the VPC in which the NAT gateway is located.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable vpcId;

    Swift

    var vpcId: String? { get set }