describe_flow_logs
¶
describe_flow_logs(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
24871 24872 24873 24874 24875 24876 24877 24878 24879 24880 24881 24882 24883 24884 24885 24886 24887 24888 24889 24890 24891 24892 24893 24894 24895 24896 24897 24898 24899 24900 24901 24902 24903 24904 24905 24906 24907 24908 24909 24910 24911 24912 24913 24914 24915 24916 24917 24918 24919 24920 24921 24922 24923 24924 24925 24926 24927 24928 24929 | |