security_group_vpc_associations
Creates, updates, deletes, gets or lists a security_group_vpc_associations resource.
Overview
| Name | security_group_vpc_associations |
| Type | Resource |
| Id | aws.ec2.security_group_vpc_associations |
Fields
The following fields are returned by SELECT queries:
- describe_security_group_vpc_associations
| Name | Datatype | Description |
|---|---|---|
group_id | string | The association's security group ID. |
group_owner_id | string | The Amazon Web Services account ID of the owner of the security group. |
state | string | The association's state. |
state_reason | string | The association's state reason. |
vpc_id | string | The association's VPC ID. |
vpc_owner_id | string | The Amazon Web Services account ID of the owner of the VPC. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_security_group_vpc_associations | select | region | Filter, NextToken, MaxResults, DryRun | Describes 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
DryRun | boolean | 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 is UnauthorizedOperation. |
Filter | array | Security 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. |
MaxResults | integer | 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. |
NextToken | string | The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request. |
SELECT examples
- describe_security_group_vpc_associations
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 }}'
;