EndpointAuthorization

class EndpointAuthorization : KotlinCustomResource

Creates a new Amazon Redshift endpoint authorization.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.redshift.EndpointAuthorization("example", {
account: "01234567910",
clusterIdentifier: exampleAwsRedshiftCluster.clusterIdentifier,
});
import pulumi
import pulumi_aws as aws
example = aws.redshift.EndpointAuthorization("example",
account="01234567910",
cluster_identifier=example_aws_redshift_cluster["clusterIdentifier"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.RedShift.EndpointAuthorization("example", new()
{
Account = "01234567910",
ClusterIdentifier = exampleAwsRedshiftCluster.ClusterIdentifier,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshift"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redshift.NewEndpointAuthorization(ctx, "example", &redshift.EndpointAuthorizationArgs{
Account: pulumi.String("01234567910"),
ClusterIdentifier: pulumi.Any(exampleAwsRedshiftCluster.ClusterIdentifier),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.EndpointAuthorization;
import com.pulumi.aws.redshift.EndpointAuthorizationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new EndpointAuthorization("example", EndpointAuthorizationArgs.builder()
.account("01234567910")
.clusterIdentifier(exampleAwsRedshiftCluster.clusterIdentifier())
.build());
}
}
resources:
example:
type: aws:redshift:EndpointAuthorization
properties:
account: '01234567910'
clusterIdentifier: ${exampleAwsRedshiftCluster.clusterIdentifier}

Import

Using pulumi import, import Redshift endpoint authorization using the id. For example:

$ pulumi import aws:redshift/endpointAuthorization:EndpointAuthorization example 01234567910:cluster-example-id

Properties

Link copied to clipboard
val account: Output<String>

The Amazon Web Services account ID to grant access to.

Link copied to clipboard
val allowedAllVpcs: Output<Boolean>

Indicates whether all VPCs in the grantee account are allowed access to the cluster.

Link copied to clipboard

The cluster identifier of the cluster to grant access to.

Link copied to clipboard
val endpointCount: Output<Int>

The number of Redshift-managed VPC endpoints created for the authorization.

Link copied to clipboard
val forceDelete: Output<Boolean>?

Indicates whether to force the revoke action. If true, the Redshift-managed VPC endpoints associated with the endpoint authorization are also deleted. Default value is false.

Link copied to clipboard
val grantee: Output<String>

The Amazon Web Services account ID of the grantee of the cluster.

Link copied to clipboard
val grantor: Output<String>

The Amazon Web Services account ID of the cluster owner.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcIds: Output<List<String>>?

The virtual private cloud (VPC) identifiers to grant access to. If none are specified all VPCs in shared account are allowed.