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

Resource Orchestration Service:ALIYUN::VPC::CustomerGateway

最終更新日:Jan 16, 2025

ALIYUN::VPC::CustomerGateway は、カスタマーゲートウェイを作成するために使用されます。

構文

{
  "Type": "ALIYUN::VPC::CustomerGateway",
  "Properties": {
    "IpAddress": String,
    "Description": String,
    "Name": String,
    "Asn": Integer
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

IpAddress

String

はい

いいえ

カスタマーゲートウェイの IP アドレス。

なし。

Description

String

いいえ

はい

カスタマーゲートウェイの説明。

説明は 2 ~ 256 文字である必要があります。文字で始まり、http:// または https:// で始めることはできません。

Name

String

いいえ

はい

カスタマーゲートウェイの名前。

名前は 2 ~ 128 文字で、英字、数字、ピリオド (.)、アンダースコア (_)、ハイフン (-) を使用できます。文字で始まり、http:// または https:// で始めることはできません。

Asn

Integer

いいえ

いいえ

データセンター内のゲートウェイデバイスの自律システム番号 (ASN)。

Asn プロパティの値は 4 バイトの数値です。数値は 2 つのセグメントで入力し、最初の 16 ビットと後続の 16 ビットをピリオド (.) で区切ることができます。各セグメントの数値は 10 進形式で入力します。

たとえば、123.456 と入力すると、ASN は 8061384 になります。ASN は、次の式で計算されます。123 × 65536 + 456 = 8061384。

戻り値

Fn::GetAtt

CustomerGatewayId: カスタマーゲートウェイの ID。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  CustomerGateway:
    Type: ALIYUN::VPC::CustomerGateway
    Properties:
      IpAddress:
        Ref: IpAddress
      Description:
        Ref: Description
      Name:
        Ref: Name
Parameters:
  IpAddress:
    Type: String
    Description: ユーザーゲートウェイの IP アドレス。
  Description:
    MinLength: 2
    Type: String
    Description: ユーザーゲートウェイの説明。長さは 2 ~ 256 文字で、英字または中国語で始まる必要がありますが、http:// または https:// で始めることはできません。
    MaxLength: 256
  Name:
    MinLength: 2
    Type: String
    Description: ユーザーゲートウェイの名前。長さは 2 ~ 128 文字で、英字または中国語で始まる必要があります。数字、ピリオド (.)、アンダースコア (_)、ダッシュ (-) を含めることができます。ただし、http:// または https:// で始めることはできません。
    MaxLength: 128
Outputs:
  CustomerGatewayId:
    Description: ユーザーゲートウェイの ID。
    Value:
      Fn::GetAtt:
        - CustomerGateway
        - CustomerGatewayId

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "CustomerGateway": {
      "Type": "ALIYUN::VPC::CustomerGateway",
      "Properties": {
        "IpAddress": {
          "Ref": "IpAddress"
        },
        "Description": {
          "Ref": "Description"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Parameters": {
    "IpAddress": {
      "Type": "String",
      "Description": "ユーザーゲートウェイの IP アドレス。"  // The IP address of the user gateway.
    },
    "Description": {
      "MinLength": 2,
      "Type": "String",
      "Description": "ユーザーゲートウェイの説明。長さは 2 ~ 256 文字で、英字または中国語で始まる必要がありますが、http:// または https:// で始めることはできません。", // Description of the user gateway. The length is 2-256 characters and must start with a letter or Chinese, but cannot start with http:// or https://.
      "MaxLength": 256
    },
    "Name": {
      "MinLength": 2,
      "Type": "String",
      "Description": "ユーザーゲートウェイの名前。長さは 2 ~ 128 文字で、英字または中国語で始まる必要があります。数字、ピリオド (.)、アンダースコア (_)、ダッシュ (-) を含めることができます。ただし、http:// または https:// で始めることはできません。", // The name of the user gateway. The length is 2-128 characters and must start with a letter or Chinese. It can contain numbers, periods (.), underscores (_), and dashes (-). But it can't start with http:// or https://.
      "MaxLength": 128
    }
  },
  "Outputs": {
    "CustomerGatewayId": {
      "Description": "ユーザーゲートウェイの ID。", // The ID of the user gateway.
      "Value": {
        "Fn::GetAtt": [
          "CustomerGateway",
          "CustomerGatewayId"
        ]
      }
    }
  }
}