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

Resource Orchestration Service:ALIYUN::PVTZ::UserVpcAuthorization

最終更新日:Jan 16, 2025

ALIYUN::PVTZ::UserVpcAuthorization は、アカウント間で仮想プライベートクラウド ( VPC ) を関連付けるために使用されます。

構文

{
  "Type": "ALIYUN::PVTZ::UserVpcAuthorization",
  "Properties": {
    "AuthCode": String,
    "AuthChannel": String,
    "AuthorizedUserId": String,
    "AuthType": String,
    "IgnoreDeletionForbidden": Boolean
  }
}

プロパティ

プロパティタイプ必須編集可能説明制約
AuthCodeStringいいえいいえ検証コード。AuthChannel プロパティが AUTH_CODE に設定されているか、空のままになっている場合、このプロパティは必須です。
AuthChannelStringいいえいいえ認証チャネル。デフォルト値:AUTH_CODE。有効な値:
  • AUTH_CODE:認証コードを使用して、アカウント間で VPC を関連付けます。システムは、AuthCode で指定された認証コードが正しいかどうかを確認します。
  • RESOURCE_DIRECTORY:リソースディレクトリを使用して、アカウント間で VPC を関連付けます。システムは、AuthorizedUserId プロパティで指定されたアカウントと現在の Alibaba Cloud アカウントが同じリソースディレクトリにあるかどうかを確認します。
AuthorizedUserIdStringはいいいえ権限を付与する Alibaba Cloud アカウントの ID 。なし
AuthTypeStringいいえいいえ認証タイプ。値を NORMAL に設定します。この値は、通常の権限のみが付与されることを指定します。
IgnoreDeletionForbiddenBooleanいいえはい削除保護を無視するかどうかを示します。有効な値:
  • true
  • false

戻り値

Fn::GetAtt

  • AuthorizedUserId:権限を付与する Alibaba Cloud アカウントの ID 。
  • AuthType:認証タイプ。

  • YAML 形式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      UserVpcAuthorization:
        Type: ALIYUN::PVTZ::UserVpcAuthorization
        Properties:
          AuthCode: 12hsj839
          AuthChannel: AUTH_CODE
          AuthorizedUserId:
            Ref: ALIYUN::AccountId
          AuthType: NORMAL
    Outputs:
      AuthorizedUserId:
        Description: The account ID of the user who authorizes the resource.  // リソースを承認するユーザーのアカウント ID 。
        Value:
          Fn::GetAtt:
            - UserVpcAuthorization
            - AuthorizedUserId
      AuthType:
        Description: Authorization type. // 認証タイプ。
        Value:
          Fn::GetAtt:
            - UserVpcAuthorization
            - AuthType
  • JSON 形式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "UserVpcAuthorization": {
          "Type": "ALIYUN::PVTZ::UserVpcAuthorization",
          "Properties": {
            "AuthCode": "12hsj839",
            "AuthChannel": "AUTH_CODE",
            "AuthorizedUserId": {
              "Ref": "ALIYUN::AccountId"
            },
            "AuthType": "NORMAL"
          }
        }
      },
      "Outputs": {
        "AuthorizedUserId": {
          "Description": "The account ID of the user who authorizes the resource.", // リソースを承認するユーザーのアカウント ID 。
          "Value": {
            "Fn::GetAtt": [
              "UserVpcAuthorization",
              "AuthorizedUserId"
            ]
          }
        },
        "AuthType": {
          "Description": "Authorization type.", // 認証タイプ。
          "Value": {
            "Fn::GetAtt": [
              "UserVpcAuthorization",
              "AuthType"
            ]
          }
        }
      }
    }