DATASOURCE::VPC::NatIpCidrs is used to query the CIDR blocks of a NAT gateway.
Syntax
{
"Type": "DATASOURCE::VPC::NatIpCidrs",
"Properties": {
"NatIpCidr": String,
"NatGatewayId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
NatIpCidr | String | No | Yes | The CIDR block of the NAT gateway. | None. |
NatGatewayId | String | Yes | Yes | The ID of the Virtual Private Cloud (VPC) NAT gateway. | None. |
Return values
Fn::GetAtt
- NatIpCidrIds: the IDs of the CIDR blocks of the NAT gateway.
- NatIpCidrs: details of the CIDR blocks of the NAT gateway.
Property | Type | Description | Constraint |
---|---|---|---|
NatIpCidrIds | List | The IDs of the CIDR blocks of the NAT gateway. | None. |
NatIpCidrs | List | Details of the CIDR blocks of the NAT gateway. | None. |
Status | String | The state of the CIDR block of the NAT gateway. | The value Available is returned for this property. |
NatIpCidr | String | The CIDR block of the NAT gateway. | None. |
NatGatewayId | String | The ID of the VPC NAT gateway. | None. |
NatIpCidrId | String | The ID of the CIDR block of the NAT gateway. | None. |
NatIpCidrDescription | String | The description of the CIDR block of the NAT gateway. | None. |
CreateTime | String | The time when the CIDR block of the NAT gateway was created. | None. |
IsDefault | Boolean | Indicates whether the CIDR block is the default CIDR block of the NAT gateway. | Valid values:
|
DryRun | Boolean | Specifies whether to only precheck the request. | Default value: false. Valid values:
|
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::VPC::NatIpCidrs", "Properties": { "NatIpCidr": "172.16.0.0/24", "NatGatewayId": "ngw-gw8v16wgvtq26vh59****" } } }, "Outputs": { "NatIpCidrIds": { "Description": "The list of nat ip cidr IDs.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "NatIpCidrIds" ] } }, "NatIpCidrs": { "Description": "The list of nat ip cidrs.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "NatIpCidrs" ] } } } }