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

Resource Orchestration Service:DATASOURCE::ECS::Command

最終更新日:Mar 17, 2025

DATASOURCE::ECS::Command は、手動で作成された使用可能なコマンドをクエリするために使用されます。

構文

{
  "Type": "DATASOURCE::ECS::Command",
  "Properties": {
    "CommandId": String,
    "RefreshOptions": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

CommandId

String

はい

はい

コマンド ID。

なし。

RefreshOptions

String

いいえ

はい

スタックの更新時のデータソース リソースのリフレッシュ ポリシー。

有効な値:

  • Never (デフォルト): スタックの更新時にデータソース リソースをリフレッシュしません。

  • Always: スタックの更新時にデータソース リソースをリフレッシュします。

戻り値

Fn::GetAtt

  • WorkingDir: 実行パス。

  • CommandContent: コマンドの内容。

  • Type: コマンド タイプ。

  • Description: コマンドの説明。

  • ParameterNames: コマンドの作成時に CommandContent を使用して指定したコマンドの内容から解析されたカスタム パラメーター名。

  • Timeout: タイムアウト期間。

  • CreateTime: コマンドが作成された時刻。

  • EnableParameter: カスタム パラメーター機能が有効になっているかどうかを示します。

  • CommandName: コマンド名。

  • CommandId: コマンド ID。

  • Tags: コマンドのタグに関する情報。

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CommandId:
    Type: String
    Description:
      en: Command ID.
    Required: true
    AssociationProperty: ALIYUN::ECS::Command::CommandId
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::ECS::Command
    Properties:
      CommandId:
        Ref: CommandId
Outputs:
  WorkingDir:
    Description: 実行パス。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - WorkingDir
  CommandContent:
    Description: コマンドの内容。Base64 でエンコードされて送信されます。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CommandContent
  Type:
    Description: コマンド タイプ。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Type
  Description:
    Description: コマンドの説明。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  ParameterNames:
    Description: パラメーター名。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ParameterNames
  Timeout:
    Description: タイムアウト。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Timeout
  CreateTime:
    Description: コマンドの作成時刻。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  EnableParameter:
    Description: パラメーターを使用するかどうか。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - EnableParameter
  CommandName:
    Description: コマンド名。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CommandName
  CommandId:
    Description: コマンド ID。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CommandId
  Tags:
    Description: コマンドのラベル情報。
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Tags
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "CommandId": {
      "Type": "String",
      "Description": {
        "en": "Command ID."
      },
      "Required": true,
      "AssociationProperty": "ALIYUN::ECS::Command::CommandId"
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::ECS::Command",
      "Properties": {
        "CommandId": {
          "Ref": "CommandId"
        }
      }
    }
  },
  "Outputs": {
    "WorkingDir": {
      "Description": "実行パス。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "WorkingDir"
        ]
      }
    },
    "CommandContent": {
      "Description": "コマンドの内容。Base64 でエンコードされて送信されます。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CommandContent"
        ]
      }
    },
    "Type": {
      "Description": "コマンド タイプ。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Type"
        ]
      }
    },
    "Description": {
      "Description": "コマンドの説明。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "ParameterNames": {
      "Description": "パラメーター名。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ParameterNames"
        ]
      }
    },
    "Timeout": {
      "Description": "タイムアウト。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Timeout"
        ]
      }
    },
    "CreateTime": {
      "Description": "コマンドの作成時刻。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "EnableParameter": {
      "Description": "パラメーターを使用するかどうか。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EnableParameter"
        ]
      }
    },
    "CommandName": {
      "Description": "コマンド名。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CommandName"
        ]
      }
    },
    "CommandId": {
      "Description": "コマンド ID。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CommandId"
        ]
      }
    },
    "Tags": {
      "Description": "コマンドのラベル情報。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    }
  }
}