Skip to content
v2.278.0

CfnEndpointAuthorizationProps Struct ​

Properties for defining a CfnEndpointAuthorization.

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 cfnEndpointAuthorizationProps: redshift.CfnEndpointAuthorizationProps = {
  account: 'account',
  clusterIdentifier: 'clusterIdentifier',

  // the properties below are optional
  force: false,
  vpcIds: ['vpcIds'],
};
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
// 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();
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
// 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 ​

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

clusterIdentifierstringcluster_identifierstrclusterIdentifierStringClusterIdentifierstringClusterIdentifier*string required #
The cluster identifier.
forceoptionalboolean | IResolvableforceoptionaltyping.Union[bool, IResolvable]forceoptionalBooleanForceoptionalboolForceoptionalinterface{} #
Indicates whether to force the revoke action.

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

vpcIdsoptionalstring | IVPCRef[]vpc_idsoptionaltyping.List[typing.Union[str, IVPCRef]]vpcIdsoptionalList<String>VpcIdsoptionalstring[]VpcIdsoptional*[]interface{} #
The virtual private cloud (VPC) identifiers to grant access to.