Skip to main content

endpoint_access

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

Overview

Nameendpoint_access
TypeResource
Idaws.redshift.endpoint_access

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
addressstringThe DNS address of the endpoint.
cluster_identifierstringThe cluster identifier of the cluster associated with the endpoint.
endpoint_create_timestringThe time (UTC) that the endpoint was created.
endpoint_namestringThe name of the endpoint.
endpoint_statusstringThe status of the endpoint.
portintegerThe port number on which the cluster accepts incoming connections.
resource_ownerstringThe Amazon Web Services account ID of the owner of the cluster.
subnet_group_namestringThe subnet group name where Amazon Redshift chooses to deploy the endpoint.
vpc_endpointstringThe connection endpoint for connecting to an Amazon Redshift cluster through the proxy.
vpc_security_groupsstringThe security groups associated with the endpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_endpoint_accessselectregionClusterIdentifier, ResourceOwner, EndpointName, VpcId, MaxRecords, MarkerDescribes a Redshift-managed VPC endpoint.
create_endpoint_accessinsertEndpointName, SubnetGroupName, regionClusterIdentifier, ResourceOwner, VpcSecurityGroupIdsCreates a Redshift-managed VPC endpoint.
authorize_endpoint_accessupdateAccount, regionClusterIdentifier, VpcIdsGrants access to a cluster.
modify_endpoint_accessupdateEndpointName, regionVpcSecurityGroupIdsModifies a Redshift-managed VPC endpoint.
revoke_endpoint_accessupdateregionClusterIdentifier, Account, VpcIds, ForceRevokes access to a cluster.
delete_endpoint_accessdeleteEndpointName, regionDeletes a Redshift-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
AccountstringThe Amazon Web Services account ID to grant access to.
EndpointNamestringThe Redshift-managed VPC endpoint to delete.
SubnetGroupNamestringThe subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
regionstringAWS region (default: us-east-1)
AccountstringThe Amazon Web Services account ID whose access is to be revoked.
ClusterIdentifierstringThe cluster to revoke access from.
EndpointNamestringThe name of the endpoint to be described.
ForcebooleanIndicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.
MarkerstringAn optional pagination token provided by a previous DescribeEndpointAccess request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by the MaxRecords parameter.
MaxRecordsintegerThe maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a Marker is included in the response so that the remaining results can be retrieved.
ResourceOwnerstringThe Amazon Web Services account ID of the owner of the cluster. This is only required if the cluster is in another Amazon Web Services account.
VpcIdstringThe virtual private cloud (VPC) identifier with access to the cluster.
VpcIdsarrayThe virtual private cloud (VPC) identifiers for which access is to be revoked.
VpcSecurityGroupIdsarrayThe complete list of VPC security groups associated with the endpoint after the endpoint is modified.

SELECT examples

Describes a Redshift-managed VPC endpoint.

SELECT
address,
cluster_identifier,
endpoint_create_time,
endpoint_name,
endpoint_status,
port,
resource_owner,
subnet_group_name,
vpc_endpoint,
vpc_security_groups
FROM aws.redshift.endpoint_access
WHERE region = '{{ region }}' -- required
AND ClusterIdentifier = '{{ ClusterIdentifier }}'
AND ResourceOwner = '{{ ResourceOwner }}'
AND EndpointName = '{{ EndpointName }}'
AND VpcId = '{{ VpcId }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
;

INSERT examples

Creates a Redshift-managed VPC endpoint.

INSERT INTO aws.redshift.endpoint_access (
EndpointName,
SubnetGroupName,
region,
ClusterIdentifier,
ResourceOwner,
VpcSecurityGroupIds
)
SELECT
'{{ EndpointName }}',
'{{ SubnetGroupName }}',
'{{ region }}',
'{{ ClusterIdentifier }}',
'{{ ResourceOwner }}',
'{{ VpcSecurityGroupIds }}'
RETURNING
address,
cluster_identifier,
endpoint_create_time,
endpoint_name,
endpoint_status,
port,
resource_owner,
subnet_group_name,
vpc_endpoint,
vpc_security_groups
;

UPDATE examples

Grants access to a cluster.

UPDATE aws.redshift.endpoint_access
SET
-- No updatable properties
WHERE
Account = '{{ Account }}' --required
AND region = '{{ region }}' --required
AND ClusterIdentifier = '{{ ClusterIdentifier}}'
AND VpcIds = '{{ VpcIds}}'
RETURNING
allowed_all_vpcs,
allowed_vpcs,
authorize_time,
cluster_identifier,
cluster_status,
endpoint_count,
grantee,
grantor,
status;

DELETE examples

Deletes a Redshift-managed VPC endpoint.

DELETE FROM aws.redshift.endpoint_access
WHERE EndpointName = '{{ EndpointName }}' --required
AND region = '{{ region }}' --required
;