describe_security_group_rules
async
¶
describe_security_group_rules(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
filters: Optional[FilterList] = None,
security_group_rule_ids: Optional[SecurityGroupRuleIdList] = None,
dry_run: Optional[Boolean] = None,
next_token: Optional[String] = None,
max_results: Optional[DescribeSecurityGroupRulesMaxResults] = None,
) -> DescribeSecurityGroupRulesResult
Describes one or more of your security group rules.
Parameters:
-
filters(Optional[FilterList], default:None) –One or more filters.
-
group-id- The ID of the security group. -
security-group-rule-id- The ID of the security group rule. -
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.
-
-
security_group_rule_ids(Optional[SecurityGroupRuleIdList], default:None) –The IDs of the security group rules.
-
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. -
next_token(Optional[String], default:None) –The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
-
max_results(Optional[DescribeSecurityGroupRulesMaxResults], 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. This value can be between 5 and 1000. If this parameter is not specified, then all items are returned. For more information, see Pagination.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
33225 33226 33227 33228 33229 33230 33231 33232 33233 33234 33235 33236 33237 33238 33239 33240 33241 33242 33243 33244 33245 33246 33247 33248 33249 33250 33251 33252 33253 33254 33255 33256 33257 33258 33259 33260 33261 33262 33263 33264 33265 33266 33267 33268 33269 33270 33271 33272 33273 33274 33275 33276 33277 33278 33279 33280 33281 33282 33283 33284 33285 33286 33287 33288 | |