Skip to main content

vpc_connections

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

Overview

Namevpc_connections
TypeResource
Idaws.kafka.vpc_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
authenticationstringThe authentication type of VPC connection.
creation_timestring (date-time)The creation time of the VPC connection.
security_groupsarrayThe list of security groups for the VPC connection.
statestringThe state of VPC connection. (CREATING, AVAILABLE, INACTIVE, DEACTIVATING, DELETING, FAILED, REJECTED, REJECTING)
subnetsarrayThe list of subnets for the VPC connection.
tagsobjectA map of tags for the VPC connection.
target_cluster_arnstringThe Amazon Resource Name (ARN) that uniquely identifies an MSK cluster.
vpc_connection_arnstringThe Amazon Resource Name (ARN) that uniquely identifies a MSK VPC connection.
vpc_idstringThe VPC Id for the VPC connection.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_vpc_connectionselectarn, regionReturns a description of this MSK VPC connection.
list_vpc_connectionsselectregionmaxResults, nextTokenReturns a list of all the VPC connections in this Region.
create_vpc_connectioninsertregion, TargetClusterArn, VpcId, ClientSubnets, SecurityGroupsCreates a new MSK VPC connection.
delete_vpc_connectiondeletearn, regionDeletes a MSK VPC connection.
reject_client_vpc_connectionexeccluster_arn, region, VpcConnectionArnReturns empty response.

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
arnstringThe Amazon Resource Name (ARN) that uniquely identifies an MSK VPC connection.
cluster_arnstringThe Amazon Resource Name (ARN) of the cluster.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in the response. If there are more results, the response includes a NextToken parameter.
nextTokenstringThe paginated results marker. When the result of the operation is truncated, the call returns NextToken in the response. To get the next batch, provide this token in your next request.

SELECT examples

Returns a description of this MSK VPC connection.

SELECT
authentication,
creation_time,
security_groups,
state,
subnets,
tags,
target_cluster_arn,
vpc_connection_arn,
vpc_id
FROM aws.kafka.vpc_connections
WHERE arn = '{{ arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new MSK VPC connection.

INSERT INTO aws.kafka.vpc_connections (
TargetClusterArn,
Authentication,
VpcId,
ClientSubnets,
SecurityGroups,
Tags,
region
)
SELECT
'{{ TargetClusterArn }}' /* required */,
'{{ Authentication }}',
'{{ VpcId }}' /* required */,
'{{ ClientSubnets }}' /* required */,
'{{ SecurityGroups }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
authentication,
client_subnets,
creation_time,
security_groups,
state,
tags,
vpc_connection_arn,
vpc_id
;

DELETE examples

Deletes a MSK VPC connection.

DELETE FROM aws.kafka.vpc_connections
WHERE arn = '{{ arn }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Returns empty response.

EXEC aws.kafka.vpc_connections.reject_client_vpc_connection
@cluster_arn='{{ cluster_arn }}' --required,
@region='{{ region }}' --required
@@json=
'{
"VpcConnectionArn": "{{ VpcConnectionArn }}"
}'
;