Consulta um flow log por ID.
Sintaxe
{
"Type": "DATASOURCE::VPC::FlowLog",
"Properties": {
"FlowLogId": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
FlowLogId |
String |
Sim |
Sim |
ID do flow log. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos de source ao atualizar a pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
FlowLogName: nome do flow log.
Description: descrição do flow log.
LogStoreName: nome do Logstore que armazena o tráfego capturado.
ResourceId: ID do recurso de origem do tráfego capturado.
ProjectName: nome do projeto que gerencia o tráfego capturado.
CreateTime: horário de criação do flow log.
ResourceType: tipo do recurso de origem do tráfego capturado.
BusinessStatus: status operacional do flow log.
FlowLogId: ID do flow log.
AggregationInterval: intervalo de agregação de dados.
TrafficType: tipo do tráfego capturado.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
FlowLogId:
Description:
en: The flow log ID.
Required: true
Type: String
Resources:
ExtensionDataSource:
Properties:
FlowLogId:
Ref: FlowLogId
Type: DATASOURCE::VPC::FlowLog
Outputs:
AggregationInterval:
Description: Data aggregation interval.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AggregationInterval
BusinessStatus:
Description: Business status.
Value:
Fn::GetAtt:
- ExtensionDataSource
- BusinessStatus
CreateTime:
Description: the time of creation.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
Description:
Description: The Description of flow log.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
FlowLogId:
Description: The flow log ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- FlowLogId
FlowLogName:
Description: The flow log name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- FlowLogName
LogStoreName:
Description: The log store name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LogStoreName
ProjectName:
Description: The project name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ProjectName
ResourceId:
Description: The resource id.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceId
ResourceType:
Description: The resource type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceType
TrafficType:
Description: The traffic type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TrafficType
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"FlowLogId": {
"Type": "String",
"Description": {
"en": "The flow log ID."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::VPC::FlowLog",
"Properties": {
"FlowLogId": {
"Ref": "FlowLogId"
}
}
}
},
"Outputs": {
"FlowLogName": {
"Description": "The flow log name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"FlowLogName"
]
}
},
"Description": {
"Description": "The Description of flow log.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"LogStoreName": {
"Description": "The log store name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LogStoreName"
]
}
},
"ResourceId": {
"Description": "The resource id.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceId"
]
}
},
"ProjectName": {
"Description": "The project name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ProjectName"
]
}
},
"CreateTime": {
"Description": "the time of creation.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"ResourceType": {
"Description": "The resource type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceType"
]
}
},
"BusinessStatus": {
"Description": "Business status.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"BusinessStatus"
]
}
},
"FlowLogId": {
"Description": "The flow log ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"FlowLogId"
]
}
},
"AggregationInterval": {
"Description": "Data aggregation interval.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AggregationInterval"
]
}
},
"TrafficType": {
"Description": "The traffic type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TrafficType"
]
}
}
}
}