# CfnEndpointAccessProps

Properties for defining a `CfnEndpointAccess`.

Used as props by: [CfnEndpointAccess](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_redshift.CfnEndpointAccess.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `clusterIdentifier`: string (required) — The cluster identifier of the cluster associated with the endpoint.

- `endpointName`: string (required) — The name of the endpoint.

- `resourceOwner`: string — The AWS account ID of the owner of the cluster.

- `subnetGroupName`: string | [IClusterSubnetGroupRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_redshift.IClusterSubnetGroupRef.html) (required) — The subnet group name where Amazon Redshift chooses to deploy the endpoint.

- `vpcSecurityGroupIds`: string | [ISecurityGroupRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.ISecurityGroupRef.html)[] (required) — The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
