Skip to main content

security_group_vpc_associations

Creates, updates, deletes, gets or lists a security_group_vpc_associations resource.

Overview

Namesecurity_group_vpc_associations
TypeResource
Idaws.ec2.security_group_vpc_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
group_idstringThe association's security group ID.
group_owner_idstringThe Amazon Web Services account ID of the owner of the security group.
statestringThe association's state.
state_reasonstringThe association's state reason.
vpc_idstringThe association's VPC ID.
vpc_owner_idstringThe Amazon Web Services account ID of the owner of the VPC.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_security_group_vpc_associationsselectregionFilter, NextToken, MaxResults, DryRunDescribes security group VPC associations made with AssociateSecurityGroupVpc.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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 is UnauthorizedOperation.
FilterarraySecurity group VPC association filters. group-id: The security group ID. group-owner-id: The group owner ID. state: The state of the association. vpc-id: The ID of the associated VPC. vpc-owner-id: The account ID of the VPC owner.
MaxResultsintegerThe 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.
NextTokenstringThe token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

SELECT examples

Describes security group VPC associations made with AssociateSecurityGroupVpc.

SELECT
group_id,
group_owner_id,
state,
state_reason,
vpc_id,
vpc_owner_id
FROM aws.ec2.security_group_vpc_associations
WHERE region = '{{ region }}' -- required
AND Filter = '{{ Filter }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND DryRun = '{{ DryRun }}'
;