get_security_groups_for_vpc
¶
get_security_groups_for_vpc(
*,
config_overrides: Optional[EC2ClientConfig] = None,
vpc_id: Optional[VpcId] = None,
next_token: Optional[String] = None,
max_results: Optional[GetSecurityGroupsForVpcRequestMaxResults] = None,
filters: Optional[FilterList] = None,
dry_run: Optional[Boolean] = None,
) -> GetSecurityGroupsForVpcResult
Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC.
Parameters:
-
vpc_id(Optional[VpcId], default:None) –The VPC ID where the security group can be used.
-
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[GetSecurityGroupsForVpcRequestMaxResults], 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.
-
filters(Optional[FilterList], default:None) –The filters. If using multiple filters, the results include security groups which match all filters.
-
group-id: The security group ID. -
description: The security group's description. -
group-name: The security group name. -
owner-id: The security group owner ID. -
primary-vpc-id: The VPC ID in which the security group was created.
-
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
46484 46485 46486 46487 46488 46489 46490 46491 46492 46493 46494 46495 46496 46497 46498 46499 46500 46501 46502 46503 46504 46505 46506 46507 46508 46509 46510 46511 46512 46513 46514 46515 46516 46517 46518 46519 46520 46521 46522 46523 46524 46525 46526 46527 46528 46529 46530 46531 46532 46533 46534 46535 46536 46537 46538 46539 46540 46541 46542 46543 46544 | |