文档

ALIYUN::CR::InstanceVpcEndpointLinkedVpc

更新时间:

ALIYUN::CR::InstanceVpcEndpointLinkedVpc类型用于实例添加可访问实例的VPC实例。

语法

{
  "Type": "ALIYUN::CR::InstanceVpcEndpointLinkedVpc",
  "Properties": {
    "EnableCreateDNSRecordInPvzt": Boolean,
    "VpcId": String,
    "InstanceId": String,
    "ModuleName": String,
    "VswitchId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

EnableCreateDNSRecordInPvzt

Boolean

是否自动创建Privatezone记录。

取值:

  • true:自动创建Privatezone记录。

  • false:不自动创建Privatezone记录。

说明

如果您开启了自动创建Privatezone记录,后续添加VPC实例时都会自动创建Privatezone记录。

VpcId

String

专有网络ID。

InstanceId

String

实例ID。

ModuleName

String

设置访问的模块。

取值:

  • Registry:访问镜像仓库。

  • Chart:访问Helm Chart。

VswitchId

String

虚拟交换机ID。

返回值

Fn::GetAtt

  • VpcId:专有网络ID。

  • InstanceId:实例ID。

  • VswitchId:虚拟交换机ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ZoneId:
        Description:
          en: ECS VSwitch Zone ID.
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::ZoneId
      VpcId:
        Description:
          en: The ID of the vpc.
        Type: String
        AssociationProperty: ALIYUN::ECS::VPC::VPCId
      VswitchId:
        Description:
          en: The ID of the vswitch.
        Type: String
        AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
        AssociationPropertyMetadata: 
          VpcId: VpcId
          ZoneId: ZoneId
      InstanceId:
        Description:
          en: The ID of the instance.
        Type: String
      ModuleName:
        Default: Registry
        Description:
          en: 'The name of the module in the instance for which a whitelist is configured.
            Valid values:
    
            - **Registry** (default): Access the image repository.
    
            - **Chart**: Access Helm Chart.'
        Type: String
    Resources:
      InstanceVpcEndpointLinkedVpc:
        Properties:
          InstanceId:
            Ref: InstanceId
          ModuleName:
            Ref: ModuleName
          VpcId:
            Ref: VpcId
          VswitchId:
            Ref: VswitchId
        Type: ALIYUN::CR::InstanceVpcEndpointLinkedVpc
    Outputs:
      InstanceId:
        Description: The ID of the instance.
        Value:
          Fn::GetAtt:
          - InstanceVpcEndpointLinkedVpc
          - InstanceId
      VpcId:
        Description: The ID of the vpc.
        Value:
          Fn::GetAtt:
          - InstanceVpcEndpointLinkedVpc
          - VpcId
      VswitchId:
        Description: The ID of the vswitch.
        Value:
          Fn::GetAtt:
          - InstanceVpcEndpointLinkedVpc
          - VswitchId
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ZoneId": {
          "Description": {
            "en": "ECS VSwitch Zone ID."
          },
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::ZoneId"
        },
        "VpcId": {
          "Description": {
            "en": "The ID of the vpc."
          },
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
        },
        "VswitchId": {
          "Description": {
            "en": "The ID of the vswitch."
          },
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
          "AssociationPropertyMetadata": {
            "VpcId": "VpcId",
            "ZoneId": "ZoneId"
          }
        },
        "InstanceId": {
          "Description": {
            "en": "The ID of the instance."
          },
          "Type": "String"
        },
        "ModuleName": {
          "Default": "Registry",
          "Description": {
            "en": "The name of the module in the instance for which a whitelist is configured. Valid values:\n- **Registry** (default): Access the image repository.\n- **Chart**: Access Helm Chart."
          },
          "Type": "String"
        }
      },
      "Resources": {
        "InstanceVpcEndpointLinkedVpc": {
          "Properties": {
            "InstanceId": {
              "Ref": "InstanceId"
            },
            "ModuleName": {
              "Ref": "ModuleName"
            },
            "VpcId": {
              "Ref": "VpcId"
            },
            "VswitchId": {
              "Ref": "VswitchId"
            }
          },
          "Type": "ALIYUN::CR::InstanceVpcEndpointLinkedVpc"
        }
      },
      "Outputs": {
        "InstanceId": {
          "Description": "The ID of the instance.",
          "Value": {
            "Fn::GetAtt": [
              "InstanceVpcEndpointLinkedVpc",
              "InstanceId"
            ]
          }
        },
        "VpcId": {
          "Description": "The ID of the vpc.",
          "Value": {
            "Fn::GetAtt": [
              "InstanceVpcEndpointLinkedVpc",
              "VpcId"
            ]
          }
        },
        "VswitchId": {
          "Description": "The ID of the vswitch.",
          "Value": {
            "Fn::GetAtt": [
              "InstanceVpcEndpointLinkedVpc",
              "VswitchId"
            ]
          }
        }
      }
    }
  • 本页导读 (1)
文档反馈