EndpointAuthorizationArgs

data class EndpointAuthorizationArgs(val account: Output<String>? = null, val clusterIdentifier: Output<String>? = null, val forceDelete: Output<Boolean>? = null, val vpcIds: Output<List<String>>? = null) : ConvertibleToJava<EndpointAuthorizationArgs>

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

Constructors

Link copied to clipboard
fun EndpointAuthorizationArgs(account: Output<String>? = null, clusterIdentifier: Output<String>? = null, forceDelete: Output<Boolean>? = null, vpcIds: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): EndpointAuthorizationArgs

Properties

Link copied to clipboard
val account: Output<String>? = null

The Amazon Web Services account ID to grant access to.

Link copied to clipboard
val clusterIdentifier: Output<String>? = null

The cluster identifier of the cluster to grant access to.

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

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 vpcIds: Output<List<String>>? = null

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