vpc_connections
Creates, updates, deletes or gets a vpc_connection resource or lists vpc_connections in a region
Overview
| Name | vpc_connections |
| Type | Resource |
| Description | Definition of the AWS::QuickSight::VPCConnection Resource Type. |
| Id | awscc.quicksight.vpc_connections |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
arn | string | <p>The Amazon Resource Name (ARN) of the VPC connection.</p> |
availability_status | string | |
aws_account_id | string | |
created_time | string | <p>The time that the VPC connection was created.</p> |
dns_resolvers | array | |
last_updated_time | string | <p>The time that the VPC connection was last updated.</p> |
name | string | |
network_interfaces | array | <p>A list of network interfaces.</p> |
role_arn | string | |
security_group_ids | array | |
status | string | |
subnet_ids | array | |
tags | array | |
vpc_connection_id | string | |
vpc_id | string | <p>The Amazon EC2 VPC ID associated with the VPC connection.</p> |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
aws_account_id | string | |
vpc_connection_id | string | |
region | string | AWS region. |
For more information, see AWS::QuickSight::VPCConnection.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | vpc_connections | INSERT | region |
delete_resource | vpc_connections | DELETE | Identifier, region |
update_resource | vpc_connections | UPDATE | Identifier, PatchDocument, region |
list_resources | vpc_connections_list_only | SELECT | region |
get_resource | vpc_connections | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual vpc_connection.
SELECT
region,
arn,
availability_status,
aws_account_id,
created_time,
dns_resolvers,
last_updated_time,
name,
network_interfaces,
role_arn,
security_group_ids,
status,
subnet_ids,
tags,
vpc_connection_id,
vpc_id
FROM awscc.quicksight.vpc_connections
WHERE
region = 'us-east-1' AND
Identifier = '{{ aws_account_id }}|{{ vpc_connection_id }}';
Lists all vpc_connections in a region.
SELECT
region,
aws_account_id,
vpc_connection_id
FROM awscc.quicksight.vpc_connections_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new vpc_connection resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.quicksight.vpc_connections (
AvailabilityStatus,
AwsAccountId,
DnsResolvers,
Name,
RoleArn,
SecurityGroupIds,
SubnetIds,
Tags,
VPCConnectionId,
region
)
SELECT
'{{ availability_status }}',
'{{ aws_account_id }}',
'{{ dns_resolvers }}',
'{{ name }}',
'{{ role_arn }}',
'{{ security_group_ids }}',
'{{ subnet_ids }}',
'{{ tags }}',
'{{ vpc_connection_id }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.quicksight.vpc_connections (
AvailabilityStatus,
AwsAccountId,
DnsResolvers,
Name,
RoleArn,
SecurityGroupIds,
SubnetIds,
Tags,
VPCConnectionId,
region
)
SELECT
'{{ availability_status }}',
'{{ aws_account_id }}',
'{{ dns_resolvers }}',
'{{ name }}',
'{{ role_arn }}',
'{{ security_group_ids }}',
'{{ subnet_ids }}',
'{{ tags }}',
'{{ vpc_connection_id }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: vpc_connection
props:
- name: availability_status
value: '{{ availability_status }}'
- name: aws_account_id
value: '{{ aws_account_id }}'
- name: dns_resolvers
value:
- '{{ dns_resolvers[0] }}'
- name: name
value: '{{ name }}'
- name: role_arn
value: '{{ role_arn }}'
- name: security_group_ids
value:
- '{{ security_group_ids[0] }}'
- name: subnet_ids
value:
- '{{ subnet_ids[0] }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: vpc_connection_id
value: '{{ vpc_connection_id }}'
UPDATE example
Use the following StackQL query and manifest file to update a vpc_connection resource, using stack-deploy.
/*+ update */
UPDATE awscc.quicksight.vpc_connections
SET PatchDocument = string('{{ {
"AvailabilityStatus": availability_status,
"DnsResolvers": dns_resolvers,
"Name": name,
"RoleArn": role_arn,
"SecurityGroupIds": security_group_ids,
"SubnetIds": subnet_ids,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ aws_account_id }}|{{ vpc_connection_id }}';
DELETE example
/*+ delete */
DELETE FROM awscc.quicksight.vpc_connections
WHERE
Identifier = '{{ aws_account_id }}|{{ vpc_connection_id }}' AND
region = 'us-east-1';
Permissions
To operate on the vpc_connections resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
quicksight:CreateVPCConnection,
quicksight:DescribeVPCConnection,
quicksight:ListTagsForResource,
quicksight:TagResource,
iam:PassRole
quicksight:DescribeVPCConnection,
quicksight:ListTagsForResource
quicksight:DescribeVPCConnection,
quicksight:UpdateVPCConnection,
quicksight:TagResource,
quicksight:UntagResource,
quicksight:ListTagsForResource,
iam:PassRole
quicksight:DescribeVPCConnection,
quicksight:DeleteVPCConnection,
quicksight:ListTagsForResource,
iam:PassRole
quicksight:ListVPCConnections