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

Resource Orchestration Service:ALIYUN::RAM::AppSecret

最終更新日:Mar 17, 2025

ALIYUN::RAM::AppSecret は、アプリケーションシークレットを作成するために使用されます。

構文

{
  "Type": "ALIYUN::RAM::AppSecret",
  "Properties": {
    "AppId": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

AppId

String

はい

いいえ

アプリケーション ID。

なし。

戻り値

Fn::GetAtt

  • AppSecretValue: アプリケーションシークレットの内容。 この値は、OAuth アプリケーションのクライアントシークレットパラメーターに使用できます。

  • AppSecretId: アプリケーションシークレットの ID。

  • YAML フォーマット

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AppId:
        Description: アプリケーションの ID。
        Type: String
    Resources:
      AppSecret:
        Properties:
          AppId:
            Ref: AppId
        Type: ALIYUN::RAM::AppSecret
    Outputs:
      AppSecretId:
        Description: アプリケーションシークレットの ID。
        Value:
          Fn::GetAtt:
          - AppSecret
          - AppSecretId
      AppSecretValue:
        Description: アプリケーションシークレットの内容。 この値は、オープンオーソリゼーションのクライアントシークレットとして使用できます。
        Value:
          Fn::GetAtt:
          - AppSecret
          - AppSecretValue
                            
  • JSON フォーマット

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AppId": {
          "Type": "String",
          "Description": "アプリケーションの ID。"
        }
      },
      "Resources": {
        "AppSecret": {
          "Type": "ALIYUN::RAM::AppSecret",
          "Properties": {
            "AppId": {
              "Ref": "AppId"
            }
          }
        }
      },
      "Outputs": {
        "AppSecretValue": {
          "Description": "アプリケーションシークレットの内容。 この値は、オープンオーソリゼーションのクライアントシークレットとして使用できます。",
          "Value": {
            "Fn::GetAtt": [
              "AppSecret",
              "AppSecretValue"
            ]
          }
        },
        "AppSecretId": {
          "Description": "アプリケーションシークレットの ID。",
          "Value": {
            "Fn::GetAtt": [
              "AppSecret",
              "AppSecretId"
            ]
          }
        }
      }
    }