describe_flow_logs
async
¶
describe_flow_logs(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
filter: Optional[FilterList] = None,
flow_log_ids: Optional[FlowLogIdList] = None,
max_results: Optional[Integer] = None,
next_token: Optional[String] = None,
) -> DescribeFlowLogsResult
Describes one or more flow logs.
To view the published flow log records, you must view the log destination. For example, the CloudWatch Logs log group, the Amazon S3 bucket, or the Kinesis Data Firehose delivery stream.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
filter(Optional[FilterList], default:None) –One or more filters.
-
deliver-log-status- The status of the logs delivery (SUCCESS|FAILED). -
log-destination-type- The type of destination for the flow log data (cloud-watch-logs|s3|kinesis-data-firehose). -
flow-log-id- The ID of the flow log. -
log-group-name- The name of the log group. -
resource-id- The ID of the VPC, subnet, or network interface. -
traffic-type- The type of traffic (ACCEPT|REJECT|ALL). -
tag:- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Ownerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
tag-key- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.
-
-
flow_log_ids(Optional[FlowLogIdList], default:None) –One or more flow log IDs.
Constraint: Maximum of 1000 flow log IDs.
-
max_results(Optional[Integer], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
-
next_token(Optional[String], default:None) –The token to request the next page of items. Pagination continues from the end of the items returned by the previous request.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
25217 25218 25219 25220 25221 25222 25223 25224 25225 25226 25227 25228 25229 25230 25231 25232 25233 25234 25235 25236 25237 25238 25239 25240 25241 25242 25243 25244 25245 25246 25247 25248 25249 25250 25251 25252 25253 25254 25255 25256 25257 25258 25259 25260 25261 25262 25263 25264 25265 25266 25267 25268 25269 25270 25271 25272 25273 25274 25275 25276 | |