Skip to main content

vpc_connections

Creates, updates, deletes or gets a vpc_connection resource or lists vpc_connections in a region

Overview

Namevpc_connections
TypeResource
DescriptionDefinition of the AWS::QuickSight::VPCConnection Resource Type.
Idawscc.quicksight.vpc_connections

Fields

NameDatatypeDescription
arnstring

The Amazon Resource Name (ARN) of the VPC connection.

availability_statusstring
aws_account_idstring
created_timestring

The time that the VPC connection was created.

dns_resolversarray
last_updated_timestring

The time that the VPC connection was last updated.

namestring
network_interfacesarray

A list of network interfaces.

role_arnstring
security_group_idsarray
statusstring
subnet_idsarray
tagsarray
vpc_connection_idstring
vpc_idstring

The Amazon EC2 VPC ID associated with the VPC connection.

regionstringAWS region.

For more information, see AWS::QuickSight::VPCConnection.

Methods

NameResourceAccessible byRequired Params
create_resourcevpc_connectionsINSERTregion
delete_resourcevpc_connectionsDELETEIdentifier, region
update_resourcevpc_connectionsUPDATEIdentifier, PatchDocument, region
list_resourcesvpc_connections_list_onlySELECTregion
get_resourcevpc_connectionsSELECTIdentifier, region

SELECT examples

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 = '{{ region }}' AND
Identifier = '{{ aws_account_id }}|{{ vpc_connection_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new vpc_connection resource, using stack-deploy.

/*+ 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.quicksight.vpc_connections
WHERE
Identifier = '{{ aws_account_id }}|{{ vpc_connection_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the vpc_connections resource, the following permissions are required:

quicksight:CreateVPCConnection,
quicksight:DescribeVPCConnection,
quicksight:ListTagsForResource,
quicksight:TagResource,
iam:PassRole