Get Security Groups For Vpc
ec2_get_security_groups_for_vpc | R Documentation |
Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC¶
Description¶
Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC.
Usage¶
Arguments¶
VpcId
[required] The VPC ID where the security group can be used.
NextToken
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
MaxResults
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
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.
DryRun
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
.
Value¶
A list with the following syntax:
list(
NextToken = "string",
SecurityGroupForVpcs = list(
list(
Description = "string",
GroupName = "string",
OwnerId = "string",
GroupId = "string",
Tags = list(
list(
Key = "string",
Value = "string"
)
),
PrimaryVpcId = "string"
)
)
)