Skip to content
v2.278.0

CfnEndpointAccessProps Struct ​

Properties for defining a CfnEndpointAccess.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshift as redshift } from 'aws-cdk-lib';
const cfnEndpointAccessProps: redshift.CfnEndpointAccessProps = {
  clusterIdentifier: 'clusterIdentifier',
  endpointName: 'endpointName',
  subnetGroupName: 'subnetGroupName',
  vpcSecurityGroupIds: ['vpcSecurityGroupIds'],

  // the properties below are optional
  resourceOwner: 'resourceOwner',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_redshift as redshift

cfn_endpoint_access_props = redshift.CfnEndpointAccessProps(
    cluster_identifier="clusterIdentifier",
    endpoint_name="endpointName",
    subnet_group_name="subnetGroupName",
    vpc_security_group_ids=["vpcSecurityGroupIds"],

    # the properties below are optional
    resource_owner="resourceOwner"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.redshift.*;

CfnEndpointAccessProps cfnEndpointAccessProps = CfnEndpointAccessProps.builder()
        .clusterIdentifier("clusterIdentifier")
        .endpointName("endpointName")
        .subnetGroupName("subnetGroupName")
        .vpcSecurityGroupIds(List.of("vpcSecurityGroupIds"))

        // the properties below are optional
        .resourceOwner("resourceOwner")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Redshift;

var cfnEndpointAccessProps = new CfnEndpointAccessProps {
    ClusterIdentifier = "clusterIdentifier",
    EndpointName = "endpointName",
    SubnetGroupName = "subnetGroupName",
    VpcSecurityGroupIds = new [] { "vpcSecurityGroupIds" },

    // the properties below are optional
    ResourceOwner = "resourceOwner"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnEndpointAccessProps := &CfnEndpointAccessProps{
	ClusterIdentifier: jsii.String("clusterIdentifier"),
	EndpointName: jsii.String("endpointName"),
	SubnetGroupName: jsii.String("subnetGroupName"),
	VpcSecurityGroupIds: []interface{}{
		jsii.String("vpcSecurityGroupIds"),
	},

	// the properties below are optional
	ResourceOwner: jsii.String("resourceOwner"),
}

Properties ​

clusterIdentifierstringcluster_identifierstrclusterIdentifierStringClusterIdentifierstringClusterIdentifier*string required #
The cluster identifier of the cluster associated with the endpoint.
endpointNamestringendpoint_namestrendpointNameStringEndpointNamestringEndpointName*string required #
The name of the endpoint.
resourceOwneroptionalstringresource_owneroptionalstrresourceOwneroptionalStringResourceOwneroptionalstringResourceOwneroptional*string #
The AWS account ID of the owner of the cluster.
subnetGroupNamestring | IClusterSubnetGroupRefsubnet_group_nametyping.Union[str, IClusterSubnetGroupRef]subnetGroupNameStringSubnetGroupNamestringSubnetGroupNameinterface{} required #
The subnet group name where Amazon Redshift chooses to deploy the endpoint.
vpcSecurityGroupIdsstring | ISecurityGroupRef[]vpc_security_group_idstyping.List[typing.Union[str, ISecurityGroupRef]]vpcSecurityGroupIdsList<String>VpcSecurityGroupIdsstring[]VpcSecurityGroupIds*[]interface{} required #
The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.