DATASOURCE::ECS::Activations は、アクティベーションコードをクエリするために使用されます。
構文
{
"Type": "DATASOURCE::ECS::Activations",
"Properties": {
"InstanceName": String,
"ActivationId": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
InstanceName | String | いいえ | はい | インスタンス名のデフォルトのプレフィックス。 | なし。 |
ActivationId | String | いいえ | はい | アクティベーションコードの ID。 | なし。 |
RefreshOptions | String | いいえ | はい | スタックの更新時のデータソースリソースのリフレッシュポリシー。 | 有効な値:
|
戻り値
Fn::GetAtt
Activations: アクティベーションコードの詳細。
ActivationIds: アクティベーションコードの ID。
プロパティ | タイプ | 説明 | 制約 |
ActivationIds | List | アクティベーションコードの ID。 | なし。 |
Activations | List | アクティベーションコードの詳細。 | なし。 |
TimeToLiveInHours | Integer | アクティベーションコードの有効期間。 | 単位: 時間。 |
RegisteredCount | Integer | 登録済みインスタンスの数。 | なし。 |
ActivationId | String | アクティベーションコードの ID。 | なし。 |
Description | String | アクティベーションコードの説明。 | なし。 |
IpAddressRange | String | アクティベーションコードを使用できるホストの IP アドレス。 | なし。 |
InstanceName | String | インスタンス名のデフォルトのプレフィックス。 | なし。 |
Disabled | Boolean | アクティベーションコードが無効になっているかどうかを示します。 | 有効な値:
|
DeregisteredCount | Integer | 登録解除済みインスタンスの数。 | なし。 |
InstanceCount | Integer | アクティベーションコードを使用してマネージドインスタンスを登録できる最大回数。 | なし。 |
CreateTime | String | 作成時間。 | なし。 |
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ActivationId:
Description:
en: Activation code ID.
Type: String
InstanceName:
Description:
en: The default prefix of the instance name.
Type: String
Resources:
ExtensionDataSource:
Properties:
ActivationId:
Ref: ActivationId
InstanceName:
Ref: InstanceName
Type: DATASOURCE::ECS::Activations
Outputs:
ActivationIds:
Description: The list of activation IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ActivationIds
Activations:
Description: The list of activations.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Activations
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceName": {
"Type": "String",
"Description": {
"en": "The default prefix of the instance name."
}
},
"ActivationId": {
"Type": "String",
"Description": {
"en": "Activation code ID."
}
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ECS::Activations",
"Properties": {
"InstanceName": {
"Ref": "InstanceName"
},
"ActivationId": {
"Ref": "ActivationId"
}
}
}
},
"Outputs": {
"Activations": {
"Description": "The list of activations.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Activations"
]
}
},
"ActivationIds": {
"Description": "The list of activation IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ActivationIds"
]
}
}
}
}