你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.AwsConnector ec2VPCPeeringConnections

Bicep 资源定义

可以使用目标操作部署 ec2VPCPeeringConnections 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.AwsConnector/ec2VPCPeeringConnections 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.AwsConnector/ec2VPCPeeringConnections@2024-12-01' = {
  location: 'string'
  name: 'string'
  properties: {
    arn: 'string'
    awsAccountId: 'string'
    awsProperties: {
      id: 'string'
      peerOwnerId: 'string'
      peerRegion: 'string'
      peerRoleArn: 'string'
      peerVpcId: 'string'
      tags: [
        {
          key: 'string'
          value: 'string'
        }
      ]
      vpcId: 'string'
    }
    awsRegion: 'string'
    awsSourceSchema: 'string'
    awsTags: {
      {customized property}: 'string'
    }
    publicCloudConnectorsResourceId: 'string'
    publicCloudResourceName: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

属性值

Microsoft.AwsConnector/ec2VPCPeeringConnections

名字 描述 价值
位置 资源所在的地理位置 string (必需)
名字 资源名称 字符串

约束:
模式 = ^(?=.{0,259}[^\s.]$)(?!.*[<>%&\?/#]) (必需)
性能 此资源的资源特定属性。 Ec2VPCPeeringConnectionProperties
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记

AwsEc2VPCPeeringConnectionProperties

名字 描述 价值
身份证 属性 ID 字符串
peerOwnerId 接受者VP的所有者的 AWS 帐户 ID。 字符串
peerRegion 如果接受方VP位于发出请求的区域以外的区域,则接受者VP的区域代码。 字符串
peerRoleArn 用于另一 AWS 帐户中对等互连连接的VP对等角色的 Amazon 资源名称(ARN)。 字符串
peerVpcId 要在其中创建VP对等互连连接的VP 的 ID。 必须在请求中指定此参数。 字符串
标签 属性标记 标签自动生成23
vpId 2016 年 10 月的 ID。 字符串

Ec2VPCPeeringConnectionProperties

名字 描述 价值
阿恩 Amazon 资源名称 (ARN) 字符串
awsAccountId AWS 帐户 ID 字符串
awsProperties AWS 属性 AwsEc2VPCPeeringConnectionProperties
awsRegion AWS 区域 字符串
awsSourceSchema AWS 源架构 字符串
aws标签 AWS 标记 Ec2VPCPeeringConnectionPropertiesAwsTags
publicCloudConnectorsResourceId 公有云连接器资源 ID 字符串
publicCloudResourceName (公共云资源名称) 公有云资源名称 字符串

Ec2VPCPeeringConnectionPropertiesAwsTags

名字 描述 价值

标签自动生成23

名字 描述 价值
钥匙 标记的键名称。 可以指定长度为 1 到 128 个 Unicode 字符的值,不能以 aws: 作为前缀。 可以使用以下任意字符:Unicode 字母、数字、空格、_、.、/、=、+和 -。 字符串
价值 标记的值。 可以指定长度为 0 到 256 个 Unicode 字符的值,不能以 aws: 作为前缀。 可以使用以下任意字符:Unicode 字母、数字、空格、_、.、/、=、+和 -。 字符串

TrackedResourceTags

名字 描述 价值

ARM 模板资源定义

可以使用目标操作部署 ec2VPCPeeringConnections 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.AwsConnector/ec2VPCPeeringConnections 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.AwsConnector/ec2VPCPeeringConnections",
  "apiVersion": "2024-12-01",
  "name": "string",
  "location": "string",
  "properties": {
    "arn": "string",
    "awsAccountId": "string",
    "awsProperties": {
      "id": "string",
      "peerOwnerId": "string",
      "peerRegion": "string",
      "peerRoleArn": "string",
      "peerVpcId": "string",
      "tags": [
        {
          "key": "string",
          "value": "string"
        }
      ],
      "vpcId": "string"
    },
    "awsRegion": "string",
    "awsSourceSchema": "string",
    "awsTags": {
      "{customized property}": "string"
    },
    "publicCloudConnectorsResourceId": "string",
    "publicCloudResourceName": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

属性值

Microsoft.AwsConnector/ec2VPCPeeringConnections

名字 描述 价值
apiVersion API 版本 '2024-12-01'
位置 资源所在的地理位置 string (必需)
名字 资源名称 字符串

约束:
模式 = ^(?=.{0,259}[^\s.]$)(?!.*[<>%&\?/#]) (必需)
性能 此资源的资源特定属性。 Ec2VPCPeeringConnectionProperties
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记
类型 资源类型 “Microsoft.AwsConnector/ec2VPCPeeringConnections”

AwsEc2VPCPeeringConnectionProperties

名字 描述 价值
身份证 属性 ID 字符串
peerOwnerId 接受者VP的所有者的 AWS 帐户 ID。 字符串
peerRegion 如果接受方VP位于发出请求的区域以外的区域,则接受者VP的区域代码。 字符串
peerRoleArn 用于另一 AWS 帐户中对等互连连接的VP对等角色的 Amazon 资源名称(ARN)。 字符串
peerVpcId 要在其中创建VP对等互连连接的VP 的 ID。 必须在请求中指定此参数。 字符串
标签 属性标记 标签自动生成23
vpId 2016 年 10 月的 ID。 字符串

Ec2VPCPeeringConnectionProperties

名字 描述 价值
阿恩 Amazon 资源名称 (ARN) 字符串
awsAccountId AWS 帐户 ID 字符串
awsProperties AWS 属性 AwsEc2VPCPeeringConnectionProperties
awsRegion AWS 区域 字符串
awsSourceSchema AWS 源架构 字符串
aws标签 AWS 标记 Ec2VPCPeeringConnectionPropertiesAwsTags
publicCloudConnectorsResourceId 公有云连接器资源 ID 字符串
publicCloudResourceName (公共云资源名称) 公有云资源名称 字符串

Ec2VPCPeeringConnectionPropertiesAwsTags

名字 描述 价值

标签自动生成23

名字 描述 价值
钥匙 标记的键名称。 可以指定长度为 1 到 128 个 Unicode 字符的值,不能以 aws: 作为前缀。 可以使用以下任意字符:Unicode 字母、数字、空格、_、.、/、=、+和 -。 字符串
价值 标记的值。 可以指定长度为 0 到 256 个 Unicode 字符的值,不能以 aws: 作为前缀。 可以使用以下任意字符:Unicode 字母、数字、空格、_、.、/、=、+和 -。 字符串

TrackedResourceTags

名字 描述 价值

用法示例

Terraform (AzAPI 提供程序)资源定义

可以使用目标操作部署 ec2VPCPeeringConnections 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.AwsConnector/ec2VPCPeeringConnections 资源,请将以下 Terraform 添加到模板中。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AwsConnector/ec2VPCPeeringConnections@2024-12-01"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      arn = "string"
      awsAccountId = "string"
      awsProperties = {
        id = "string"
        peerOwnerId = "string"
        peerRegion = "string"
        peerRoleArn = "string"
        peerVpcId = "string"
        tags = [
          {
            key = "string"
            value = "string"
          }
        ]
        vpcId = "string"
      }
      awsRegion = "string"
      awsSourceSchema = "string"
      awsTags = {
        {customized property} = "string"
      }
      publicCloudConnectorsResourceId = "string"
      publicCloudResourceName = "string"
    }
  }
}

属性值

Microsoft.AwsConnector/ec2VPCPeeringConnections

名字 描述 价值
位置 资源所在的地理位置 string (必需)
名字 资源名称 字符串

约束:
模式 = ^(?=.{0,259}[^\s.]$)(?!.*[<>%&\?/#]) (必需)
性能 此资源的资源特定属性。 Ec2VPCPeeringConnectionProperties
标签 资源标记 标记名称和值的字典。
类型 资源类型 “Microsoft.AwsConnector/ec2VPCPeeringConnections@2024-12-01”

AwsEc2VPCPeeringConnectionProperties

名字 描述 价值
身份证 属性 ID 字符串
peerOwnerId 接受者VP的所有者的 AWS 帐户 ID。 字符串
peerRegion 如果接受方VP位于发出请求的区域以外的区域,则接受者VP的区域代码。 字符串
peerRoleArn 用于另一 AWS 帐户中对等互连连接的VP对等角色的 Amazon 资源名称(ARN)。 字符串
peerVpcId 要在其中创建VP对等互连连接的VP 的 ID。 必须在请求中指定此参数。 字符串
标签 属性标记 标签自动生成23
vpId 2016 年 10 月的 ID。 字符串

Ec2VPCPeeringConnectionProperties

名字 描述 价值
阿恩 Amazon 资源名称 (ARN) 字符串
awsAccountId AWS 帐户 ID 字符串
awsProperties AWS 属性 AwsEc2VPCPeeringConnectionProperties
awsRegion AWS 区域 字符串
awsSourceSchema AWS 源架构 字符串
aws标签 AWS 标记 Ec2VPCPeeringConnectionPropertiesAwsTags
publicCloudConnectorsResourceId 公有云连接器资源 ID 字符串
publicCloudResourceName (公共云资源名称) 公有云资源名称 字符串

Ec2VPCPeeringConnectionPropertiesAwsTags

名字 描述 价值

标签自动生成23

名字 描述 价值
钥匙 标记的键名称。 可以指定长度为 1 到 128 个 Unicode 字符的值,不能以 aws: 作为前缀。 可以使用以下任意字符:Unicode 字母、数字、空格、_、.、/、=、+和 -。 字符串
价值 标记的值。 可以指定长度为 0 到 256 个 Unicode 字符的值,不能以 aws: 作为前缀。 可以使用以下任意字符:Unicode 字母、数字、空格、_、.、/、=、+和 -。 字符串

TrackedResourceTags

名字 描述 价值