すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::VPC::NatIp

最終更新日:Jan 16, 2025

ALIYUN::VPC::NatIp は、NAT IP アドレスを作成するために使用されます。

構文

{
  "Type": "ALIYUN::VPC::NatIp",
  "Properties": {
    "NatIp": String,
    "NatIpCidr": String,
    "NatIpCidrId": String,
    "NatIpDescription": String,
    "NatIpName": String,
    "NatGatewayId": String
  }
}

プロパティ

プロパティタイプ必須編集可能説明制約
NatIpStringいいえいいえNAT IP アドレス。IP アドレスを指定しない場合、システムは指定された CIDR ブロックからランダムな IP アドレスを選択します。
NatIpCidrStringはいいいえNAT IP アドレスが属する CIDR ブロック。なし。
NatIpCidrIdStringいいえいいえNAT IP アドレスが属する CIDR ブロックの ID。なし。
NatIpDescriptionStringはいはいNAT IP アドレスの説明。説明は 2 ~ 256 文字の長さで、文字で始まる必要があります。http:// または https:// で始めることはできません。
NatIpNameStringはいはいNAT IP アドレスの名前。名前は 2 ~ 128 文字の長さで、文字、数字、ピリオド (.)、アンダースコア (_)、ハイフン (-) を使用できます。名前は文字で始まり、http:// または https:// で始めることはできません。
NatGatewayIdStringはいいいえ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"
            ]
          }
        }
      }
    }
  • YAML 形式

    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 アドレスの説明。 # The description of the NAT IP address.
          説明は 2 ~ 256 文字の長さでなければなりません。文字で始まり、 # The description must be 2 to 256 characters in length. It must start with a letter
          http:// または https:// で始めることはできません。 # but cannot start with http:// or https://.
        MinLength: 2
        MaxLength: 256
      NatIpName:
        Type: String
        Description: |-
          NAT IP アドレスの名前。 # The name of the NAT IP address.
          名前は 2 ~ 128 文字の長さで、文字、数字、ピリオド # The name must be 2 to 128 characters in length, and can contain letters, digits, periods
          (.)、アンダースコア (_)、ハイフン (-) を使用できます。文字で始まり、 # (.), underscores (_), and hyphens (-). It must start with a letter. It cannot start
          http:// または https:// で始めることはできません。 # with 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
          # the 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