Endpoint Access Args
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,
});
Content copied to clipboard
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"])
Content copied to clipboard
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,
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
example:
type: aws:redshift:EndpointAccess
properties:
endpointName: example
subnetGroupName: ${exampleAwsRedshiftSubnetGroup.id}
clusterIdentifier: ${exampleAwsRedshiftCluster.clusterIdentifier}
Content copied to clipboard
Import
Using pulumi import
, import Redshift endpoint access using the name
. For example:
$ pulumi import aws:redshift/endpointAccess:EndpointAccess example example
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
The cluster identifier of the cluster to access.
Link copied to clipboard
The Redshift-managed VPC endpoint name.
Link copied to clipboard
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
The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
Link copied to clipboard
The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.