aws.redshift.EndpointAccess
Explore with Pulumi AI
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"])
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
})
}
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 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}
Create EndpointAccess Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EndpointAccess(name: string, args: EndpointAccessArgs, opts?: CustomResourceOptions);
@overload
def EndpointAccess(resource_name: str,
args: EndpointAccessArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EndpointAccess(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_identifier: Optional[str] = None,
endpoint_name: Optional[str] = None,
subnet_group_name: Optional[str] = None,
resource_owner: Optional[str] = None,
vpc_security_group_ids: Optional[Sequence[str]] = None)
func NewEndpointAccess(ctx *Context, name string, args EndpointAccessArgs, opts ...ResourceOption) (*EndpointAccess, error)
public EndpointAccess(string name, EndpointAccessArgs args, CustomResourceOptions? opts = null)
public EndpointAccess(String name, EndpointAccessArgs args)
public EndpointAccess(String name, EndpointAccessArgs args, CustomResourceOptions options)
type: aws:redshift:EndpointAccess
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EndpointAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EndpointAccessArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EndpointAccessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointAccessArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var endpointAccessResource = new Aws.RedShift.EndpointAccess("endpointAccessResource", new()
{
ClusterIdentifier = "string",
EndpointName = "string",
SubnetGroupName = "string",
ResourceOwner = "string",
VpcSecurityGroupIds = new[]
{
"string",
},
});
example, err := redshift.NewEndpointAccess(ctx, "endpointAccessResource", &redshift.EndpointAccessArgs{
ClusterIdentifier: pulumi.String("string"),
EndpointName: pulumi.String("string"),
SubnetGroupName: pulumi.String("string"),
ResourceOwner: pulumi.String("string"),
VpcSecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
})
var endpointAccessResource = new EndpointAccess("endpointAccessResource", EndpointAccessArgs.builder()
.clusterIdentifier("string")
.endpointName("string")
.subnetGroupName("string")
.resourceOwner("string")
.vpcSecurityGroupIds("string")
.build());
endpoint_access_resource = aws.redshift.EndpointAccess("endpointAccessResource",
cluster_identifier="string",
endpoint_name="string",
subnet_group_name="string",
resource_owner="string",
vpc_security_group_ids=["string"])
const endpointAccessResource = new aws.redshift.EndpointAccess("endpointAccessResource", {
clusterIdentifier: "string",
endpointName: "string",
subnetGroupName: "string",
resourceOwner: "string",
vpcSecurityGroupIds: ["string"],
});
type: aws:redshift:EndpointAccess
properties:
clusterIdentifier: string
endpointName: string
resourceOwner: string
subnetGroupName: string
vpcSecurityGroupIds:
- string
EndpointAccess Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The EndpointAccess resource accepts the following input properties:
- Cluster
Identifier string - The cluster identifier of the cluster to access.
- Endpoint
Name string - The Redshift-managed VPC endpoint name.
- Subnet
Group stringName - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- Resource
Owner string - 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.
- Vpc
Security List<string>Group Ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- Cluster
Identifier string - The cluster identifier of the cluster to access.
- Endpoint
Name string - The Redshift-managed VPC endpoint name.
- Subnet
Group stringName - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- Resource
Owner string - 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.
- Vpc
Security []stringGroup Ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- cluster
Identifier String - The cluster identifier of the cluster to access.
- endpoint
Name String - The Redshift-managed VPC endpoint name.
- subnet
Group StringName - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- resource
Owner String - 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.
- vpc
Security List<String>Group Ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- cluster
Identifier string - The cluster identifier of the cluster to access.
- endpoint
Name string - The Redshift-managed VPC endpoint name.
- subnet
Group stringName - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- resource
Owner string - 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.
- vpc
Security string[]Group Ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- cluster_
identifier str - The cluster identifier of the cluster to access.
- endpoint_
name str - The Redshift-managed VPC endpoint name.
- subnet_
group_ strname - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- resource_
owner str - 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.
- vpc_
security_ Sequence[str]group_ ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- cluster
Identifier String - The cluster identifier of the cluster to access.
- endpoint
Name String - The Redshift-managed VPC endpoint name.
- subnet
Group StringName - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- resource
Owner String - 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.
- vpc
Security List<String>Group Ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
Outputs
All input properties are implicitly available as output properties. Additionally, the EndpointAccess resource produces the following output properties:
- Address string
- The DNS address of the endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- Port int
- The port number on which the cluster accepts incoming connections.
- Vpc
Endpoints List<EndpointAccess Vpc Endpoint> - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- Address string
- The DNS address of the endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- Port int
- The port number on which the cluster accepts incoming connections.
- Vpc
Endpoints []EndpointAccess Vpc Endpoint - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- address String
- The DNS address of the endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- port Integer
- The port number on which the cluster accepts incoming connections.
- vpc
Endpoints List<EndpointAccess Vpc Endpoint> - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- address string
- The DNS address of the endpoint.
- id string
- The provider-assigned unique ID for this managed resource.
- port number
- The port number on which the cluster accepts incoming connections.
- vpc
Endpoints EndpointAccess Vpc Endpoint[] - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- address str
- The DNS address of the endpoint.
- id str
- The provider-assigned unique ID for this managed resource.
- port int
- The port number on which the cluster accepts incoming connections.
- vpc_
endpoints Sequence[EndpointAccess Vpc Endpoint] - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- address String
- The DNS address of the endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- port Number
- The port number on which the cluster accepts incoming connections.
- vpc
Endpoints List<Property Map> - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
Look up Existing EndpointAccess Resource
Get an existing EndpointAccess resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EndpointAccessState, opts?: CustomResourceOptions): EndpointAccess
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
cluster_identifier: Optional[str] = None,
endpoint_name: Optional[str] = None,
port: Optional[int] = None,
resource_owner: Optional[str] = None,
subnet_group_name: Optional[str] = None,
vpc_endpoints: Optional[Sequence[EndpointAccessVpcEndpointArgs]] = None,
vpc_security_group_ids: Optional[Sequence[str]] = None) -> EndpointAccess
func GetEndpointAccess(ctx *Context, name string, id IDInput, state *EndpointAccessState, opts ...ResourceOption) (*EndpointAccess, error)
public static EndpointAccess Get(string name, Input<string> id, EndpointAccessState? state, CustomResourceOptions? opts = null)
public static EndpointAccess get(String name, Output<String> id, EndpointAccessState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Address string
- The DNS address of the endpoint.
- Cluster
Identifier string - The cluster identifier of the cluster to access.
- Endpoint
Name string - The Redshift-managed VPC endpoint name.
- Port int
- The port number on which the cluster accepts incoming connections.
- Resource
Owner string - 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.
- Subnet
Group stringName - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- Vpc
Endpoints List<EndpointAccess Vpc Endpoint> - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- Vpc
Security List<string>Group Ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- Address string
- The DNS address of the endpoint.
- Cluster
Identifier string - The cluster identifier of the cluster to access.
- Endpoint
Name string - The Redshift-managed VPC endpoint name.
- Port int
- The port number on which the cluster accepts incoming connections.
- Resource
Owner string - 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.
- Subnet
Group stringName - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- Vpc
Endpoints []EndpointAccess Vpc Endpoint Args - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- Vpc
Security []stringGroup Ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- address String
- The DNS address of the endpoint.
- cluster
Identifier String - The cluster identifier of the cluster to access.
- endpoint
Name String - The Redshift-managed VPC endpoint name.
- port Integer
- The port number on which the cluster accepts incoming connections.
- resource
Owner String - 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.
- subnet
Group StringName - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- vpc
Endpoints List<EndpointAccess Vpc Endpoint> - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- vpc
Security List<String>Group Ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- address string
- The DNS address of the endpoint.
- cluster
Identifier string - The cluster identifier of the cluster to access.
- endpoint
Name string - The Redshift-managed VPC endpoint name.
- port number
- The port number on which the cluster accepts incoming connections.
- resource
Owner string - 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.
- subnet
Group stringName - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- vpc
Endpoints EndpointAccess Vpc Endpoint[] - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- vpc
Security string[]Group Ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- address str
- The DNS address of the endpoint.
- cluster_
identifier str - The cluster identifier of the cluster to access.
- endpoint_
name str - The Redshift-managed VPC endpoint name.
- port int
- The port number on which the cluster accepts incoming connections.
- resource_
owner str - 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.
- subnet_
group_ strname - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- vpc_
endpoints Sequence[EndpointAccess Vpc Endpoint Args] - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- vpc_
security_ Sequence[str]group_ ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
- address String
- The DNS address of the endpoint.
- cluster
Identifier String - The cluster identifier of the cluster to access.
- endpoint
Name String - The Redshift-managed VPC endpoint name.
- port Number
- The port number on which the cluster accepts incoming connections.
- resource
Owner String - 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.
- subnet
Group StringName - The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
- vpc
Endpoints List<Property Map> - The connection endpoint for connecting to an Amazon Redshift cluster through the proxy. See details below.
- vpc
Security List<String>Group Ids - The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
Supporting Types
EndpointAccessVpcEndpoint, EndpointAccessVpcEndpointArgs
- Network
Interfaces List<EndpointAccess Vpc Endpoint Network Interface> - One or more network interfaces of the endpoint. Also known as an interface endpoint. See details below.
- Vpc
Endpoint stringId - The connection endpoint ID for connecting an Amazon Redshift cluster through the proxy.
- Vpc
Id string - The VPC identifier that the endpoint is associated.
- Network
Interfaces []EndpointAccess Vpc Endpoint Network Interface - One or more network interfaces of the endpoint. Also known as an interface endpoint. See details below.
- Vpc
Endpoint stringId - The connection endpoint ID for connecting an Amazon Redshift cluster through the proxy.
- Vpc
Id string - The VPC identifier that the endpoint is associated.
- network
Interfaces List<EndpointAccess Vpc Endpoint Network Interface> - One or more network interfaces of the endpoint. Also known as an interface endpoint. See details below.
- vpc
Endpoint StringId - The connection endpoint ID for connecting an Amazon Redshift cluster through the proxy.
- vpc
Id String - The VPC identifier that the endpoint is associated.
- network
Interfaces EndpointAccess Vpc Endpoint Network Interface[] - One or more network interfaces of the endpoint. Also known as an interface endpoint. See details below.
- vpc
Endpoint stringId - The connection endpoint ID for connecting an Amazon Redshift cluster through the proxy.
- vpc
Id string - The VPC identifier that the endpoint is associated.
- network_
interfaces Sequence[EndpointAccess Vpc Endpoint Network Interface] - One or more network interfaces of the endpoint. Also known as an interface endpoint. See details below.
- vpc_
endpoint_ strid - The connection endpoint ID for connecting an Amazon Redshift cluster through the proxy.
- vpc_
id str - The VPC identifier that the endpoint is associated.
- network
Interfaces List<Property Map> - One or more network interfaces of the endpoint. Also known as an interface endpoint. See details below.
- vpc
Endpoint StringId - The connection endpoint ID for connecting an Amazon Redshift cluster through the proxy.
- vpc
Id String - The VPC identifier that the endpoint is associated.
EndpointAccessVpcEndpointNetworkInterface, EndpointAccessVpcEndpointNetworkInterfaceArgs
- Availability
Zone string - The Availability Zone.
- Network
Interface stringId - The network interface identifier.
- Private
Ip stringAddress - The IPv4 address of the network interface within the subnet.
- Subnet
Id string - The subnet identifier.
- Availability
Zone string - The Availability Zone.
- Network
Interface stringId - The network interface identifier.
- Private
Ip stringAddress - The IPv4 address of the network interface within the subnet.
- Subnet
Id string - The subnet identifier.
- availability
Zone String - The Availability Zone.
- network
Interface StringId - The network interface identifier.
- private
Ip StringAddress - The IPv4 address of the network interface within the subnet.
- subnet
Id String - The subnet identifier.
- availability
Zone string - The Availability Zone.
- network
Interface stringId - The network interface identifier.
- private
Ip stringAddress - The IPv4 address of the network interface within the subnet.
- subnet
Id string - The subnet identifier.
- availability_
zone str - The Availability Zone.
- network_
interface_ strid - The network interface identifier.
- private_
ip_ straddress - The IPv4 address of the network interface within the subnet.
- subnet_
id str - The subnet identifier.
- availability
Zone String - The Availability Zone.
- network
Interface StringId - The network interface identifier.
- private
Ip StringAddress - The IPv4 address of the network interface within the subnet.
- subnet
Id String - The subnet identifier.
Import
Using pulumi import
, import Redshift endpoint access using the name
. For example:
$ pulumi import aws:redshift/endpointAccess:EndpointAccess example example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.