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

Resource Orchestration Service:ALIYUN::OOS::Parameter

最終更新日:Jan 16, 2025

ALIYUN::OOS::Parameter は、共通パラメーターを作成するために使用されます。

構文

{
  "Type": "ALIYUN::OOS::Parameter",
  "Properties": {
    "Type": String,
    "Constraints": String,
    "Description": String,
    "Value": String,
    "Name": String,
    "ResourceGroupId": String
  }
}

プロパティ

プロパティタイプ必須編集可能説明制約
TypeStringYesNoパラメーターのデータ型。有効な値:
  • String
  • StringList
ConstraintsStringNoNoパラメーターの制約。有効な値:
  • AllowedValues: パラメーターの有効な値。この値は、配列形式の文字列です。
  • AllowedPattern: パラメーターの正規表現。
  • MinLength: パラメーターの最小長。
  • MaxLength: パラメーターの最大長。
DescriptionStringNoYesパラメーターの説明。説明は最大 200 文字です。
ValueStringYesYesパラメーターの値。パラメーター値は最大 4,096 文字です。
NameStringYesNoパラメーターの名前。名前は最大 200 文字です。ALIYUNACSALIBABAALICLOUD、または OOS で始めることはできません。名前には、文字、数字、ハイフン(-)、およびアンダースコア(_)を含めることができます。
ResourceGroupIdStringNoYesリソースグループの ID。なし

レスポンスパラメーター

Fn::GetAtt

  • Name: パラメーターの名前。
  • Value: パラメーターの値。

  • YAML 形式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      Parameter:
        Type: ALIYUN::OOS::Parameter
        Properties:
          Type: String
          Value: echo hello world
          Description: Prefix for Interruption Handler parameters
          Name:
            Fn::Join:
              - ''
              - - /ecs-test-handler/run_commands/test-SampleWebAppAutoScalingGroup-
                - Ref: ALIYUN::StackId
    Outputs:
      Value:
        Description: The Value of the parameter.
        Value:
          Fn::GetAtt:
            - Parameter
            - Value
      Name:
        Description: The Name of the parameter.
        Value:
          Fn::GetAtt:
            - Parameter
            - Name
  • JSON 形式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "Parameter": {
          "Type": "ALIYUN::OOS::Parameter",
          "Properties": {
            "Type": "String",
            "Value": "echo hello world",
            "Description": "Prefix for Interruption Handler parameters",
            "Name": {
              "Fn::Join": [
                "",
                [
                  "/ecs-test-handler/run_commands/test-SampleWebAppAutoScalingGroup-",
                  {
                    "Ref": "ALIYUN::StackId"
                  }
                ]
              ]
            }
          }
        }
      },
      "Outputs": {
        "Value": {
          "Description": "The Value of the parameter.",
          "Value": {
            "Fn::GetAtt": [
              "Parameter",
              "Value"
            ]
          }
        },
        "Name": {
          "Description": "The Name of the parameter.",
          "Value": {
            "Fn::GetAtt": [
              "Parameter",
              "Name"
            ]
          }
        }
      }
    }