Consulta os nomes de todas as tabelas criadas em uma instância do Tablestore.
Sintaxe
{
"Type": "DATASOURCE::OTS::Tables",
"Properties": {
"InstanceName": String,
"TableName": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
InstanceName |
String |
Sim |
Sim |
Nome da instância. |
Nenhuma. |
|
TableName |
String |
Não |
Sim |
Nome da tabela. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da fonte de dados durante atualizações da pilha. |
Valores válidos:
|
Valores de retorno (Fn::GetAtt)
TableNames: nomes das tabelas.
Tables: detalhes das tabelas.
|
Propriedade |
Tipo |
Descrição |
Restrição |
|
TableNames |
List |
Nomes das tabelas. |
Nenhuma. |
|
Tables |
List |
Detalhes das tabelas. |
Nenhuma. |
|
TableName |
String |
Nome da tabela. |
Nenhuma. |
Exemplos
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceName": {
"Type": "String",
"Description": "The name of the instance to which the table belongs."
}
},
"Resources": {
"Tables": {
"Type": "DATASOURCE::OTS::Tables",
"Properties": {
"InstanceName": {
"Ref": "InstanceName"
}
}
}
},
"Outputs": {
"TableNames": {
"Description": "The list of table names.",
"Value": {
"Fn::GetAtt": [
"Tables",
"TableNames"
]
}
},
"Tables": {
"Description": "The list of tables.",
"Value": {
"Fn::GetAtt": [
"Tables",
"Tables"
]
}
}
}
}
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceName:
Type: String
Description: The name of the instance to which the table belongs.
Resources:
Tables:
Type: DATASOURCE::OTS::Tables
Properties:
InstanceName:
Ref: InstanceName
Outputs:
TableNames:
Description: The list of table names.
Value:
Fn::GetAtt:
- Tables
- TableNames
Tables:
Description: The list of tables.
Value:
Fn::GetAtt:
- Tables
- Tables