get_security_groups_for_vpc
async
¶
get_security_groups_for_vpc(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
47125 47126 47127 47128 47129 47130 47131 47132 47133 47134 47135 47136 47137 47138 47139 47140 47141 47142 47143 47144 47145 47146 47147 47148 47149 47150 47151 47152 47153 47154 47155 47156 47157 47158 47159 47160 47161 47162 47163 47164 47165 47166 47167 47168 47169 47170 47171 47172 47173 47174 47175 47176 47177 47178 47179 47180 47181 47182 47183 47184 47185 47186 | |