EndpointAccessArgs

data class EndpointAccessArgs(val clusterIdentifier: Output<String>? = null, val endpointName: Output<String>? = null, val resourceOwner: Output<String>? = null, val subnetGroupName: Output<String>? = null, val vpcSecurityGroupIds: Output<List<String>>? = null) : ConvertibleToJava<EndpointAccessArgs>

Creates a new Amazon Redshift endpoint access.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.redshift.EndpointAccess("example", {
endpointName: "example",
subnetGroupName: exampleAwsRedshiftSubnetGroup.id,
clusterIdentifier: exampleAwsRedshiftCluster.clusterIdentifier,
});
import pulumi
import pulumi_aws as aws
example = aws.redshift.EndpointAccess("example",
endpoint_name="example",
subnet_group_name=example_aws_redshift_subnet_group["id"],
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.EndpointAccess("example", new()
{
EndpointName = "example",
SubnetGroupName = exampleAwsRedshiftSubnetGroup.Id,
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.NewEndpointAccess(ctx, "example", &redshift.EndpointAccessArgs{
EndpointName: pulumi.String("example"),
SubnetGroupName: pulumi.Any(exampleAwsRedshiftSubnetGroup.Id),
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.EndpointAccess;
import com.pulumi.aws.redshift.EndpointAccessArgs;
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 EndpointAccess("example", EndpointAccessArgs.builder()
.endpointName("example")
.subnetGroupName(exampleAwsRedshiftSubnetGroup.id())
.clusterIdentifier(exampleAwsRedshiftCluster.clusterIdentifier())
.build());
}
}
resources:
example:
type: aws:redshift:EndpointAccess
properties:
endpointName: example
subnetGroupName: ${exampleAwsRedshiftSubnetGroup.id}
clusterIdentifier: ${exampleAwsRedshiftCluster.clusterIdentifier}

Import

Using pulumi import, import Redshift endpoint access using the name. For example:

$ pulumi import aws:redshift/endpointAccess:EndpointAccess example example

Constructors

Link copied to clipboard
constructor(clusterIdentifier: Output<String>? = null, endpointName: Output<String>? = null, resourceOwner: Output<String>? = null, subnetGroupName: Output<String>? = null, vpcSecurityGroupIds: Output<List<String>>? = null)

Properties

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

The cluster identifier of the cluster to access.

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

The Redshift-managed VPC endpoint name.

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

The Amazon Web Services account ID of the owner of the cluster. This is only required if the cluster is in another Amazon Web Services account.

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

The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.

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

The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

Functions

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