Queries the CIDR blocks of a NAT gateway.
Syntax
{
"Type": "DATASOURCE::VPC::NatIpCidrs",
"Properties": {
"NatIpCidr": String,
"NatGatewayId": String,
"RefreshOptions": 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. |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
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 |
Whether the CIDR block is the default CIDR block of the NAT gateway. |
Valid values:
|
|
DryRun |
Boolean |
Whether only a dry run is performed. |
Valid values:
|
Examples
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{
"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"
]
}
}
}
}