ALIYUN::VPC::NatIp は、NAT IP アドレスを作成するために使用されます。
構文
{
"Type": "ALIYUN::VPC::NatIp",
"Properties": {
"NatIp": String,
"NatIpCidr": String,
"NatIpCidrId": String,
"NatIpDescription": String,
"NatIpName": String,
"NatGatewayId": String
}
}プロパティ
| プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
| NatIp | String | いいえ | いいえ | NAT IP アドレス。 | IP アドレスを指定しない場合、システムは指定された CIDR ブロックからランダムな IP アドレスを選択します。 |
| NatIpCidr | String | はい | いいえ | NAT IP アドレスが属する CIDR ブロック。 | なし。 |
| NatIpCidrId | String | いいえ | いいえ | NAT IP アドレスが属する CIDR ブロックの ID。 | なし。 |
| NatIpDescription | String | はい | はい | NAT IP アドレスの説明。 | 説明は 2 ~ 256 文字の長さで、文字で始まる必要があります。http:// または https:// で始めることはできません。 |
| NatIpName | String | はい | はい | NAT IP アドレスの名前。 | 名前は 2 ~ 128 文字の長さで、文字、数字、ピリオド (.)、アンダースコア (_)、ハイフン (-) を使用できます。名前は文字で始まり、http:// または https:// で始めることはできません。 |
| NatGatewayId | String | はい | いいえ | NAT IP アドレスを作成する仮想プライベートクラウド (VPC) NAT ゲートウェイの ID。 | なし。 |
戻り値
Fn::GetAtt
NatIpId: 作成された NAT IP アドレスの ID。
NatIp: 作成された NAT IP アドレス。
例
JSON形式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "NatIpCidr": { "Type": "String", "Description": "NAT IP アドレスが属する CIDR ブロック。" // The CIDR block to which the NAT IP address belongs. }, "NatIpDescription": { "Type": "String", "Description": "NAT IP アドレスの説明。\n説明は 2 ~ 256 文字の長さでなければなりません。文字で始まり、\nhttp:// または https:// で始めることはできません。", // The description of the NAT IP address.\nThe description must be 2 to 256 characters in length. It must start with a letter\nbut cannot start with http:// or https://. "MinLength": 2, "MaxLength": 256 }, "NatIpName": { "Type": "String", "Description": "NAT IP アドレスの名前。\n名前は 2 ~ 128 文字の長さで、文字、数字、ピリオド\n(.)、アンダースコア (_)、ハイフン (-) を使用できます。文字で始まり、\nhttp:// または https:// で始めることはできません。", // The name of the NAT IP address.\nThe name must be 2 to 128 characters in length, and can contain letters, digits, periods\n(.), underscores (_), and hyphens (-). It must start with a letter. It cannot start\nwith http:// or https://. "MinLength": 2, "MaxLength": 128 }, "NatGatewayId": { "Type": "String", "Description": "NAT IP アドレスを作成する仮想プライベートクラウド (VPC) NAT ゲートウェイの ID。"// The ID of the Virtual Private Cloud (VPC) NAT gateway for which you want to create\nthe NAT IP address. } }, "Resources": { "VPCNatIp": { "Type": "ALIYUN::VPC::NatIp", "Properties": { "NatIpCidr": { "Ref": "NatIpCidr" }, "NatIpDescription": { "Ref": "NatIpDescription" }, "NatIpName": { "Ref": "NatIpName" }, "NatGatewayId": { "Ref": "NatGatewayId" } } } }, "Outputs": { "NatIpId": { "Description": "NAT IP アドレスの ID。", // The ID of the NAT IP address. "Value": { "Fn::GetAtt": [ "VPCNatIp", "NatIpId" ] } } } }