DATASOURCE::VPC::FlowLogs is used to query flow logs.
Syntax
{
"Type": "DATASOURCE::VPC::FlowLogs",
"Properties": {
"FlowLogName": String,
"Description": String,
"LogStoreName": String,
"ResourceId": String,
"ProjectName": String,
"ResourceType": String,
"FlowLogId": String,
"TrafficType": String,
"RefreshOptions": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
FlowLogName | String | No | Yes | The name of the flow log. | The name must be 1 to 128 characters in length and cannot start with |
Description | String | No | Yes | The description of the flow log. | None. |
LogStoreName | String | No | Yes | The Logstore that stores the captured traffic data. | None. |
ResourceId | String | No | Yes | The ID of the resource from which traffic is captured. | None. |
ProjectName | String | No | Yes | The project that manages the captured traffic data. | None. |
ResourceType | String | No | Yes | The type of the resource from which traffic is captured. | Valid values:
|
FlowLogId | String | No | Yes | The ID of the flow log. | None. |
TrafficType | String | No | Yes | The type of the traffic that is captured by the flow log. | Valid values:
|
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
Return values
Fn::GetAtt
FlowLogs: details of the flow logs.
FlowLogIds: the IDs of the flow logs.
Property | Type | Description | Constraint |
FlowLogIds | List | The IDs of the flow logs. | None. |
FlowLogs | List | Details of the flow logs. | None. |
Status | String | The status of the flow log. | Valid values:
|
FlowLogName | String | The name of the flow log. | None. |
Description | String | The description of the flow log. | None. |
ResourceType | String | The type of resource from which traffic is captured. | Valid values:
|
ProjectName | String | The project that manages the captured traffic data. | None. |
RegionId | String | The ID of the region to which the flow log belongs. | None. |
TrafficType | String | The type of the traffic that is captured. | Valid values:
|
LogStoreName | String | The Logstore that stores the captured traffic data. | None. |
ResourceId | String | The ID of the resource from which traffic is captured. | None. |
FlowLogId | String | The ID of the flow log. | None. |
CreateTime | String | The time when the flow log was created. | None. |
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
ExtensionDataSource:
Type: DATASOURCE::VPC::FlowLogs
Properties:
ResourceType: VPC
TrafficType: All
Outputs:
FlowLogs:
Description: The list of flow logs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- FlowLogs
FlowLogIds:
Description: The list of flow log IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- FlowLogIds
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::VPC::FlowLogs",
"Properties": {
"ResourceType": "VPC",
"TrafficType": "All"
}
}
},
"Outputs": {
"FlowLogs": {
"Description": "The list of flow logs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"FlowLogs"
]
}
},
"FlowLogIds": {
"Description": "The list of flow log IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"FlowLogIds"
]
}
}
}
}