# CfnEndpointAuthorizationProps

Struct · External

Properties for defining a `CfnEndpointAuthorization`.

Used as props by: [CfnEndpointAuthorization](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_redshift.CfnEndpointAuthorization.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 cfnEndpointAuthorizationProps: redshift.CfnEndpointAuthorizationProps = {
  account: 'account',
  clusterIdentifier: 'clusterIdentifier',

  // the properties below are optional
  force: false,
  vpcIds: ['vpcIds'],
};
```

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_authorization_props = redshift.CfnEndpointAuthorizationProps(
    account="account",
    cluster_identifier="clusterIdentifier",

    # the properties below are optional
    force=False,
    vpc_ids=["vpcIds"]
)
```

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.*;

CfnEndpointAuthorizationProps cfnEndpointAuthorizationProps = CfnEndpointAuthorizationProps.builder()
        .account("account")
        .clusterIdentifier("clusterIdentifier")

        // the properties below are optional
        .force(false)
        .vpcIds(List.of("vpcIds"))
        .build();
```

C#:

```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 cfnEndpointAuthorizationProps = new CfnEndpointAuthorizationProps {
    Account = "account",
    ClusterIdentifier = "clusterIdentifier",

    // the properties below are optional
    Force = false,
    VpcIds = new [] { "vpcIds" }
};
```

Go:

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

cfnEndpointAuthorizationProps := &CfnEndpointAuthorizationProps{
	Account: jsii.String("account"),
	ClusterIdentifier: jsii.String("clusterIdentifier"),

	// the properties below are optional
	Force: jsii.Boolean(false),
	VpcIds: []interface{}{
		jsii.String("vpcIds"),
	},
}
```

## Properties

- `account`: string (required) — The AWS account ID of either the cluster owner (grantor) or grantee.

  If `Grantee` parameter is true, then the `Account` value is of the grantor.

- `clusterIdentifier`: string (required) — The cluster identifier.

- `force`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether to force the revoke action.

  If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted.

- `vpcIds`: string | [IVPCRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IVPCRef.html)[] — The virtual private cloud (VPC) identifiers to grant access to.
