Consulta os atributos de um conjunto de implantação.
Sintaxe
{
"Type": "DATASOURCE::ECS::DeploymentSet",
"Properties": {
"DeploymentSetId": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
DeploymentSetId |
String |
Sim |
Sim |
ID do conjunto de implantação. |
Nenhuma |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da fonte de dados ao atualizar a pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
DeploymentSetId: ID do conjunto de implantação.
InstanceAmount: quantidade de instâncias no conjunto de implantação.
GroupCount: número de grupos no conjunto de implantação.
CreateTime: hora de criação do conjunto de implantação.
Strategy: estratégia de implantação.
DeploymentSetName: nome do conjunto de implantação.
Granularity: granularidade da implantação.
InstanceIds: IDs das instâncias no conjunto de implantação.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DeploymentSetId:
Type: String
Description:
en: The ID of deployment set.
Required: true
AssociationProperty: ALIYUN::ECS::DeploymentSet::DeploymentSetId
Resources:
ExtensionDataSource:
Type: DATASOURCE::ECS::DeploymentSet
Properties:
DeploymentSetId:
Ref: DeploymentSetId
Outputs:
DeploymentSetId:
Description: The ID of deployment set.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DeploymentSetId
InstanceAmount:
Description: The number of instances in the deployment set.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceAmount
GroupCount:
Description: The number of deployment set groups in the deployment set.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GroupCount
CreateTime:
Description: The time when the deployment set was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
Strategy:
Description: The deployment strategy.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Strategy
DeploymentSetName:
Description: 'The name of the deployment set. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- DeploymentSetName
Granularity:
Description: The deployment granularity.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Granularity
InstanceIds:
Description: The IDs of the instances in the deployment set.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceIds
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DeploymentSetId": {
"Type": "String",
"Description": {
"en": "The ID of deployment set."
},
"Required": true,
"AssociationProperty": "ALIYUN::ECS::DeploymentSet::DeploymentSetId"
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ECS::DeploymentSet",
"Properties": {
"DeploymentSetId": {
"Ref": "DeploymentSetId"
}
}
}
},
"Outputs": {
"DeploymentSetId": {
"Description": "The ID of deployment set.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DeploymentSetId"
]
}
},
"InstanceAmount": {
"Description": "The number of instances in the deployment set.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceAmount"
]
}
},
"GroupCount": {
"Description": "The number of deployment set groups in the deployment set.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GroupCount"
]
}
},
"CreateTime": {
"Description": "The time when the deployment set was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"Strategy": {
"Description": "The deployment strategy.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Strategy"
]
}
},
"DeploymentSetName": {
"Description": "The name of the deployment set. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DeploymentSetName"
]
}
},
"Granularity": {
"Description": "The deployment granularity.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Granularity"
]
}
},
"InstanceIds": {
"Description": "The IDs of the instances in the deployment set.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceIds"
]
}
}
}
}