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

Resource Orchestration Service:ALIYUN::OTS::VpcBinder

最終更新日:Jan 16, 2025

ALIYUN::OTS::VpcBinder は、Tablestore インスタンスを仮想プライベートクラウド(VPC)にバインドするために使用されます。

構文

{
  "Type": "ALIYUN::OTS::VpcBinder",
  "Properties": {
    "Vpcs": List,
    "InstanceName": String
  }
}            

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

Vpcs

List

はい

はい

VPC バインディング構成。

このプロパティの要素タイプは VpcInfo です。

InstanceName

String

はい

いいえ

Tablestore インスタンスの名前。

なし。

Vpcs 構文

"Vpcs":[
  {
    "VpcId":String,
    "InstanceVpcName":String,
    "VirtualSwitchId": String,
    "Network": String
  }
]           

Vpcs プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

VpcId

String

はい

いいえ

VPC ID。

VPC と Tablestore インスタンスは、同じアカウントに属し、同じリージョンに存在する必要があります。

InstanceVpcName

String

はい

いいえ

カスタム名。

この名前は、Tablestore インスタンス内で一意である必要があります。

VirtualSwitchId

String

はい

いいえ

vSwitch ID。

vSwitch は、指定された VPC に属している必要があります。

Network

String

はい

いいえ

Tablestore インスタンスのネットワークタイプ。

有効な値:

  • NORMAL(デフォルト):Tablestore インスタンスは、すべてのソースからのリクエストを許可します。

  • VPC:Tablestore インスタンスは、バインドされているすべての VPC からのリクエストのみを許可します。

  • VPC_CONSOLE:Tablestore インスタンスは、Tablestore コンソールおよびバインドされているすべての VPC からのリクエストのみを許可します。

戻り値

Fn::GetAtt

  • Domains:VPC 内の Tablestore インスタンスにアクセスするために使用されるドメイン名。

  • Endpoints:VPC 内の Tablestore インスタンスにアクセスするために使用されるプライベートエンドポイント。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Description: Tablestore、Tablestore インスタンス、および VPC バインディングのテスト
Parameters:
  InstanceName:
    Type: String
    Description: OTS インスタンス名
    Default: mytest
  InstanceVpcName:
    Type: String
    Description: インスタンス名
    Default: mytest
  VSwitchZoneId:
    Type: String
    AssociationProperty: ALIYUN::ECS::Instance::ZoneId
    Description: 既存のスイッチの可用性 ID
    Label: VSwitch ゾーン ID
  VpcId:
    Type: String
    Default: Null
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    Description: コンソール - 仮想プライベートクラウドから (vpc-xxx) で始まる ID を検索してください
    Label: 既存の VPC ID
  VSwitchId:
    Type: String
    Default: Null
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    Description: コンソール - 仮想プライベートクラウド - VSwitch から (vsw-xxx) で始まるビジネス VSwitch ID を検索してください
    Label: VSwitch ID
    AssociationPropertyMetadata:
      ZoneId: ${VSwitchZoneId}
      VpcId: ${VpcId}
Resources:
  VpcBinder:
    Type: ALIYUN::OTS::VpcBinder
    Properties:
      InstanceName:
        Ref: InstanceName
      Vpcs:
        - VpcId:
            Ref: VpcId
          InstanceVpcName:
            Ref: InstanceVpcName
          VirtualSwitchId:
            Ref: VSwitchZoneId  // VSwitchId should be used here instead of VSwitchZoneId. This is a bug in the original English document.
          Network: NORMAL
Outputs:
  Domains:
    Value:
      Fn::GetAtt:
        - VpcBinder
        - Domains
  Endpoints:
    Value:
      Fn::GetAtt:
        - VpcBinder
        - Endpoints

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Tablestore、Tablestore インスタンス、および VPC バインディングのテスト",
  "Parameters": {
    "InstanceName": {
      "Type": "String",
      "Description": "OTS インスタンス名",
      "Default": "mytest"
    },
    "InstanceVpcName": {
      "Type": "String",
      "Description": "インスタンス名",
      "Default": "mytest"
    },
    "VSwitchZoneId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::Instance::ZoneId",
      "Description": "既存のスイッチの可用性 ID",
      "Label": "VSwitch ゾーン ID"
    },
    "VpcId": {
      "Type": "String",
      "Default": null,
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "Description": "コンソール - 仮想プライベートクラウドから (vpc-xxx) で始まる ID を検索してください",
      "Label": "既存の VPC ID"
    },
    "VSwitchId": {
      "Type": "String",
      "Default": null,
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "Description": "コンソール - 仮想プライベートクラウド - VSwitch から (vsw-xxx) で始まるビジネス VSwitch ID を検索してください",
      "Label": "VSwitch ID",
      "AssociationPropertyMetadata": {
        "ZoneId": "${VSwitchZoneId}",
        "VpcId": "${VpcId}"
      }
    }
  },
  "Resources": {
    "VpcBinder": {
      "Type": "ALIYUN::OTS::VpcBinder",
      "Properties": {
        "InstanceName": {
          "Ref": "InstanceName"
        },
        "Vpcs": [
          {
            "VpcId": {
              "Ref": "VpcId"
            },
            "InstanceVpcName": {
              "Ref": "InstanceVpcName"
            },
            "VirtualSwitchId": {
              "Ref": "VSwitchZoneId"  // VSwitchId should be used here instead of VSwitchZoneId. This is a bug in the original English document.
            },
            "Network": "NORMAL"
          }
        ]
      }
    }
  },
  "Outputs": {
    "Domains": {
      "Value": {
        "Fn::GetAtt": [
          "VpcBinder",
          "Domains"
        ]
      }
    },
    "Endpoints": {
      "Value": {
        "Fn::GetAtt": [
          "VpcBinder",
          "Endpoints"
        ]
      }
    }
  }
}