Skip to main content

endpoint_access

Creates, updates, deletes, gets or lists an endpoint_access resource.

Overview

Nameendpoint_access
TypeResource
Idaws.redshift_serverless.endpoint_access

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
addressstringThe DNS address of the endpoint.
endpoint_arnstringThe Amazon Resource Name (ARN) of the VPC endpoint.
endpoint_create_timestring (date-time)The time that the endpoint was created.
endpoint_namestringThe name of the VPC endpoint.
endpoint_statusstringThe status of the VPC endpoint.
portintegerThe port number on which Amazon Redshift Serverless accepts incoming connections.
subnet_idsarrayThe unique identifier of subnets where Amazon Redshift Serverless choose to deploy the VPC endpoint.
vpc_endpointobjectThe connection endpoint for connecting to Amazon Redshift Serverless.
vpc_security_groupsarrayThe security groups associated with the endpoint.
workgroup_namestringThe name of the workgroup associated with the endpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_endpoint_accessselectregionReturns information, such as the name, about a VPC endpoint.
list_endpoint_accessselectregionReturns an array of EndpointAccess objects and relevant information.
create_endpoint_accessinsertregion, endpointName, subnetIds, workgroupNameCreates an Amazon Redshift Serverless managed VPC endpoint.
update_endpoint_accessupdateregion, endpointNameUpdates an Amazon Redshift Serverless managed endpoint.
delete_endpoint_accessdeleteregionDeletes an Amazon Redshift Serverless managed VPC endpoint.

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)

SELECT examples

Returns information, such as the name, about a VPC endpoint.

SELECT
address,
endpoint_arn,
endpoint_create_time,
endpoint_name,
endpoint_status,
port,
subnet_ids,
vpc_endpoint,
vpc_security_groups,
workgroup_name
FROM aws.redshift_serverless.endpoint_access
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Redshift Serverless managed VPC endpoint.

INSERT INTO aws.redshift_serverless.endpoint_access (
endpointName,
ownerAccount,
subnetIds,
vpcSecurityGroupIds,
workgroupName,
region
)
SELECT
'{{ endpointName }}' /* required */,
'{{ ownerAccount }}',
'{{ subnetIds }}' /* required */,
'{{ vpcSecurityGroupIds }}',
'{{ workgroupName }}' /* required */,
'{{ region }}'
RETURNING
endpoint
;

UPDATE examples

Updates an Amazon Redshift Serverless managed endpoint.

UPDATE aws.redshift_serverless.endpoint_access
SET
endpointName = '{{ endpointName }}',
vpcSecurityGroupIds = '{{ vpcSecurityGroupIds }}'
WHERE
region = '{{ region }}' --required
AND endpointName = '{{ endpointName }}' --required
RETURNING
endpoint;

DELETE examples

Deletes an Amazon Redshift Serverless managed VPC endpoint.

DELETE FROM aws.redshift_serverless.endpoint_access
WHERE region = '{{ region }}' --required
;