aws.redshiftserverless.EndpointAccess
Explore with Pulumi AI
Creates a new Amazon Redshift Serverless Endpoint Access.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.redshiftserverless.EndpointAccess("example", {
    endpointName: "example",
    workgroupName: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.redshiftserverless.EndpointAccess("example",
    endpoint_name="example",
    workgroup_name="example")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/redshiftserverless"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := redshiftserverless.NewEndpointAccess(ctx, "example", &redshiftserverless.EndpointAccessArgs{
			EndpointName:  pulumi.String("example"),
			WorkgroupName: pulumi.String("example"),
		})
		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.RedshiftServerless.EndpointAccess("example", new()
    {
        EndpointName = "example",
        WorkgroupName = "example",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshiftserverless.EndpointAccess;
import com.pulumi.aws.redshiftserverless.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")
            .workgroupName("example")
            .build());
    }
}
resources:
  example:
    type: aws:redshiftserverless:EndpointAccess
    properties:
      endpointName: example
      workgroupName: example
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,
                   endpoint_name: Optional[str] = None,
                   subnet_ids: Optional[Sequence[str]] = None,
                   workgroup_name: Optional[str] = None,
                   owner_account: 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:redshiftserverless: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 awsEndpointAccessResource = new Aws.RedshiftServerless.EndpointAccess("awsEndpointAccessResource", new()
{
    EndpointName = "string",
    SubnetIds = new[]
    {
        "string",
    },
    WorkgroupName = "string",
    OwnerAccount = "string",
    VpcSecurityGroupIds = new[]
    {
        "string",
    },
});
example, err := redshiftserverless.NewEndpointAccess(ctx, "awsEndpointAccessResource", &redshiftserverless.EndpointAccessArgs{
	EndpointName: pulumi.String("string"),
	SubnetIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	WorkgroupName: pulumi.String("string"),
	OwnerAccount:  pulumi.String("string"),
	VpcSecurityGroupIds: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var awsEndpointAccessResource = new EndpointAccess("awsEndpointAccessResource", EndpointAccessArgs.builder()
    .endpointName("string")
    .subnetIds("string")
    .workgroupName("string")
    .ownerAccount("string")
    .vpcSecurityGroupIds("string")
    .build());
aws_endpoint_access_resource = aws.redshiftserverless.EndpointAccess("awsEndpointAccessResource",
    endpoint_name="string",
    subnet_ids=["string"],
    workgroup_name="string",
    owner_account="string",
    vpc_security_group_ids=["string"])
const awsEndpointAccessResource = new aws.redshiftserverless.EndpointAccess("awsEndpointAccessResource", {
    endpointName: "string",
    subnetIds: ["string"],
    workgroupName: "string",
    ownerAccount: "string",
    vpcSecurityGroupIds: ["string"],
});
type: aws:redshiftserverless:EndpointAccess
properties:
    endpointName: string
    ownerAccount: string
    subnetIds:
        - string
    vpcSecurityGroupIds:
        - string
    workgroupName: 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:
- EndpointName string
- The name of the endpoint.
- SubnetIds List<string>
- An array of VPC subnet IDs to associate with the endpoint.
- WorkgroupName string
- The name of the workgroup.
- OwnerAccount string
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- VpcSecurity List<string>Group Ids 
- An array of security group IDs to associate with the workgroup.
- EndpointName string
- The name of the endpoint.
- SubnetIds []string
- An array of VPC subnet IDs to associate with the endpoint.
- WorkgroupName string
- The name of the workgroup.
- OwnerAccount string
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- VpcSecurity []stringGroup Ids 
- An array of security group IDs to associate with the workgroup.
- endpointName String
- The name of the endpoint.
- subnetIds List<String>
- An array of VPC subnet IDs to associate with the endpoint.
- workgroupName String
- The name of the workgroup.
- ownerAccount String
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- vpcSecurity List<String>Group Ids 
- An array of security group IDs to associate with the workgroup.
- endpointName string
- The name of the endpoint.
- subnetIds string[]
- An array of VPC subnet IDs to associate with the endpoint.
- workgroupName string
- The name of the workgroup.
- ownerAccount string
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- vpcSecurity string[]Group Ids 
- An array of security group IDs to associate with the workgroup.
- endpoint_name str
- The name of the endpoint.
- subnet_ids Sequence[str]
- An array of VPC subnet IDs to associate with the endpoint.
- workgroup_name str
- The name of the workgroup.
- owner_account str
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- vpc_security_ Sequence[str]group_ ids 
- An array of security group IDs to associate with the workgroup.
- endpointName String
- The name of the endpoint.
- subnetIds List<String>
- An array of VPC subnet IDs to associate with the endpoint.
- workgroupName String
- The name of the workgroup.
- ownerAccount String
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- vpcSecurity List<String>Group Ids 
- An array of security group IDs to associate with the workgroup.
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 VPC endpoint.
- Arn string
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- Id string
- The provider-assigned unique ID for this managed resource.
- Port int
- The port that Amazon Redshift Serverless listens on.
- VpcEndpoints List<EndpointAccess Vpc Endpoint> 
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- Address string
- The DNS address of the VPC endpoint.
- Arn string
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- Id string
- The provider-assigned unique ID for this managed resource.
- Port int
- The port that Amazon Redshift Serverless listens on.
- VpcEndpoints []EndpointAccess Vpc Endpoint 
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- address String
- The DNS address of the VPC endpoint.
- arn String
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- id String
- The provider-assigned unique ID for this managed resource.
- port Integer
- The port that Amazon Redshift Serverless listens on.
- vpcEndpoints List<EndpointAccess Vpc Endpoint> 
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- address string
- The DNS address of the VPC endpoint.
- arn string
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- id string
- The provider-assigned unique ID for this managed resource.
- port number
- The port that Amazon Redshift Serverless listens on.
- vpcEndpoints EndpointAccess Vpc Endpoint[] 
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- address str
- The DNS address of the VPC endpoint.
- arn str
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- id str
- The provider-assigned unique ID for this managed resource.
- port int
- The port that Amazon Redshift Serverless listens on.
- vpc_endpoints Sequence[EndpointAccess Vpc Endpoint] 
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- address String
- The DNS address of the VPC endpoint.
- arn String
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- id String
- The provider-assigned unique ID for this managed resource.
- port Number
- The port that Amazon Redshift Serverless listens on.
- vpcEndpoints List<Property Map>
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
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,
        arn: Optional[str] = None,
        endpoint_name: Optional[str] = None,
        owner_account: Optional[str] = None,
        port: Optional[int] = None,
        subnet_ids: Optional[Sequence[str]] = None,
        vpc_endpoints: Optional[Sequence[EndpointAccessVpcEndpointArgs]] = None,
        vpc_security_group_ids: Optional[Sequence[str]] = None,
        workgroup_name: Optional[str] = None) -> EndpointAccessfunc 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)resources:  _:    type: aws:redshiftserverless:EndpointAccess    get:      id: ${id}- 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 VPC endpoint.
- Arn string
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- EndpointName string
- The name of the endpoint.
- OwnerAccount string
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- Port int
- The port that Amazon Redshift Serverless listens on.
- SubnetIds List<string>
- An array of VPC subnet IDs to associate with the endpoint.
- VpcEndpoints List<EndpointAccess Vpc Endpoint> 
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- VpcSecurity List<string>Group Ids 
- An array of security group IDs to associate with the workgroup.
- WorkgroupName string
- The name of the workgroup.
- Address string
- The DNS address of the VPC endpoint.
- Arn string
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- EndpointName string
- The name of the endpoint.
- OwnerAccount string
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- Port int
- The port that Amazon Redshift Serverless listens on.
- SubnetIds []string
- An array of VPC subnet IDs to associate with the endpoint.
- VpcEndpoints []EndpointAccess Vpc Endpoint Args 
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- VpcSecurity []stringGroup Ids 
- An array of security group IDs to associate with the workgroup.
- WorkgroupName string
- The name of the workgroup.
- address String
- The DNS address of the VPC endpoint.
- arn String
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- endpointName String
- The name of the endpoint.
- ownerAccount String
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- port Integer
- The port that Amazon Redshift Serverless listens on.
- subnetIds List<String>
- An array of VPC subnet IDs to associate with the endpoint.
- vpcEndpoints List<EndpointAccess Vpc Endpoint> 
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- vpcSecurity List<String>Group Ids 
- An array of security group IDs to associate with the workgroup.
- workgroupName String
- The name of the workgroup.
- address string
- The DNS address of the VPC endpoint.
- arn string
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- endpointName string
- The name of the endpoint.
- ownerAccount string
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- port number
- The port that Amazon Redshift Serverless listens on.
- subnetIds string[]
- An array of VPC subnet IDs to associate with the endpoint.
- vpcEndpoints EndpointAccess Vpc Endpoint[] 
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- vpcSecurity string[]Group Ids 
- An array of security group IDs to associate with the workgroup.
- workgroupName string
- The name of the workgroup.
- address str
- The DNS address of the VPC endpoint.
- arn str
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- endpoint_name str
- The name of the endpoint.
- owner_account str
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- port int
- The port that Amazon Redshift Serverless listens on.
- subnet_ids Sequence[str]
- An array of VPC subnet IDs to associate with the endpoint.
- vpc_endpoints Sequence[EndpointAccess Vpc Endpoint Args] 
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- vpc_security_ Sequence[str]group_ ids 
- An array of security group IDs to associate with the workgroup.
- workgroup_name str
- The name of the workgroup.
- address String
- The DNS address of the VPC endpoint.
- arn String
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- endpointName String
- The name of the endpoint.
- ownerAccount String
- The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- port Number
- The port that Amazon Redshift Serverless listens on.
- subnetIds List<String>
- An array of VPC subnet IDs to associate with the endpoint.
- vpcEndpoints List<Property Map>
- The VPC endpoint or the Redshift Serverless workgroup. See VPC Endpointbelow.
- vpcSecurity List<String>Group Ids 
- An array of security group IDs to associate with the workgroup.
- workgroupName String
- The name of the workgroup.
Supporting Types
EndpointAccessVpcEndpoint, EndpointAccessVpcEndpointArgs        
- NetworkInterfaces List<EndpointAccess Vpc Endpoint Network Interface> 
- The network interfaces of the endpoint.. See Network Interfacebelow.
- VpcEndpoint stringId 
- The DNS address of the VPC endpoint.
- VpcId string
- The port that Amazon Redshift Serverless listens on.
- NetworkInterfaces []EndpointAccess Vpc Endpoint Network Interface 
- The network interfaces of the endpoint.. See Network Interfacebelow.
- VpcEndpoint stringId 
- The DNS address of the VPC endpoint.
- VpcId string
- The port that Amazon Redshift Serverless listens on.
- networkInterfaces List<EndpointAccess Vpc Endpoint Network Interface> 
- The network interfaces of the endpoint.. See Network Interfacebelow.
- vpcEndpoint StringId 
- The DNS address of the VPC endpoint.
- vpcId String
- The port that Amazon Redshift Serverless listens on.
- networkInterfaces EndpointAccess Vpc Endpoint Network Interface[] 
- The network interfaces of the endpoint.. See Network Interfacebelow.
- vpcEndpoint stringId 
- The DNS address of the VPC endpoint.
- vpcId string
- The port that Amazon Redshift Serverless listens on.
- network_interfaces Sequence[EndpointAccess Vpc Endpoint Network Interface] 
- The network interfaces of the endpoint.. See Network Interfacebelow.
- vpc_endpoint_ strid 
- The DNS address of the VPC endpoint.
- vpc_id str
- The port that Amazon Redshift Serverless listens on.
- networkInterfaces List<Property Map>
- The network interfaces of the endpoint.. See Network Interfacebelow.
- vpcEndpoint StringId 
- The DNS address of the VPC endpoint.
- vpcId String
- The port that Amazon Redshift Serverless listens on.
EndpointAccessVpcEndpointNetworkInterface, EndpointAccessVpcEndpointNetworkInterfaceArgs            
- AvailabilityZone string
- The availability Zone.
- NetworkInterface stringId 
- The unique identifier of the network interface.
- PrivateIp stringAddress 
- The IPv4 address of the network interface within the subnet.
- SubnetId string
- The unique identifier of the subnet.
- AvailabilityZone string
- The availability Zone.
- NetworkInterface stringId 
- The unique identifier of the network interface.
- PrivateIp stringAddress 
- The IPv4 address of the network interface within the subnet.
- SubnetId string
- The unique identifier of the subnet.
- availabilityZone String
- The availability Zone.
- networkInterface StringId 
- The unique identifier of the network interface.
- privateIp StringAddress 
- The IPv4 address of the network interface within the subnet.
- subnetId String
- The unique identifier of the subnet.
- availabilityZone string
- The availability Zone.
- networkInterface stringId 
- The unique identifier of the network interface.
- privateIp stringAddress 
- The IPv4 address of the network interface within the subnet.
- subnetId string
- The unique identifier of the subnet.
- availability_zone str
- The availability Zone.
- network_interface_ strid 
- The unique identifier of the network interface.
- private_ip_ straddress 
- The IPv4 address of the network interface within the subnet.
- subnet_id str
- The unique identifier of the subnet.
- availabilityZone String
- The availability Zone.
- networkInterface StringId 
- The unique identifier of the network interface.
- privateIp StringAddress 
- The IPv4 address of the network interface within the subnet.
- subnetId String
- The unique identifier of the subnet.
Import
Using pulumi import, import Redshift Serverless Endpoint Access using the endpoint_name. For example:
$ pulumi import aws:redshiftserverless/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 awsTerraform Provider.