Try AWS Native preview for resources not in the classic version.
aws.redshiftserverless.EndpointAccess
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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
The EndpointAccess resource accepts the following input properties:
- Endpoint
Name string - The name of the endpoint.
- Subnet
Ids List<string> - An array of VPC subnet IDs to associate with the endpoint.
- Workgroup
Name string - The name of the workgroup.
- Owner
Account string - The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- Vpc
Security List<string>Group Ids - An array of security group IDs to associate with the workgroup.
- Endpoint
Name string - The name of the endpoint.
- Subnet
Ids []string - An array of VPC subnet IDs to associate with the endpoint.
- Workgroup
Name string - The name of the workgroup.
- Owner
Account string - The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- Vpc
Security []stringGroup Ids - An array of security group IDs to associate with the workgroup.
- endpoint
Name String - The name of the endpoint.
- subnet
Ids List<String> - An array of VPC subnet IDs to associate with the endpoint.
- workgroup
Name String - The name of the workgroup.
- owner
Account String - The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- vpc
Security List<String>Group Ids - An array of security group IDs to associate with the workgroup.
- endpoint
Name string - The name of the endpoint.
- subnet
Ids string[] - An array of VPC subnet IDs to associate with the endpoint.
- workgroup
Name string - The name of the workgroup.
- owner
Account string - The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- vpc
Security 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.
- endpoint
Name String - The name of the endpoint.
- subnet
Ids List<String> - An array of VPC subnet IDs to associate with the endpoint.
- workgroup
Name String - The name of the workgroup.
- owner
Account String - The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- vpc
Security 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.
- Vpc
Endpoints List<EndpointAccess Vpc Endpoint> - The VPC endpoint or the Redshift Serverless workgroup. See
VPC Endpoint
below.
- 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.
- Vpc
Endpoints []EndpointAccess Vpc Endpoint - The VPC endpoint or the Redshift Serverless workgroup. See
VPC Endpoint
below.
- 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.
- vpc
Endpoints List<EndpointAccess Vpc Endpoint> - The VPC endpoint or the Redshift Serverless workgroup. See
VPC Endpoint
below.
- 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.
- vpc
Endpoints EndpointAccess Vpc Endpoint[] - The VPC endpoint or the Redshift Serverless workgroup. See
VPC Endpoint
below.
- 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 Endpoint
below.
- 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.
- vpc
Endpoints List<Property Map> - The VPC endpoint or the Redshift Serverless workgroup. See
VPC Endpoint
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,
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) -> 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 VPC endpoint.
- Arn string
- Amazon Resource Name (ARN) of the Redshift Serverless Endpoint Access.
- Endpoint
Name string - The name of the endpoint.
- Owner
Account string - The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- Port int
- The port that Amazon Redshift Serverless listens on.
- Subnet
Ids List<string> - An array of VPC subnet IDs to associate with the endpoint.
- Vpc
Endpoints List<EndpointAccess Vpc Endpoint> - The VPC endpoint or the Redshift Serverless workgroup. See
VPC Endpoint
below. - Vpc
Security List<string>Group Ids - An array of security group IDs to associate with the workgroup.
- Workgroup
Name 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.
- Endpoint
Name string - The name of the endpoint.
- Owner
Account string - The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- Port int
- The port that Amazon Redshift Serverless listens on.
- Subnet
Ids []string - An array of VPC subnet IDs to associate with the endpoint.
- Vpc
Endpoints []EndpointAccess Vpc Endpoint Args - The VPC endpoint or the Redshift Serverless workgroup. See
VPC Endpoint
below. - Vpc
Security []stringGroup Ids - An array of security group IDs to associate with the workgroup.
- Workgroup
Name 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.
- endpoint
Name String - The name of the endpoint.
- owner
Account String - The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- port Integer
- The port that Amazon Redshift Serverless listens on.
- subnet
Ids List<String> - An array of VPC subnet IDs to associate with the endpoint.
- vpc
Endpoints List<EndpointAccess Vpc Endpoint> - The VPC endpoint or the Redshift Serverless workgroup. See
VPC Endpoint
below. - vpc
Security List<String>Group Ids - An array of security group IDs to associate with the workgroup.
- workgroup
Name 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.
- endpoint
Name string - The name of the endpoint.
- owner
Account string - The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- port number
- The port that Amazon Redshift Serverless listens on.
- subnet
Ids string[] - An array of VPC subnet IDs to associate with the endpoint.
- vpc
Endpoints EndpointAccess Vpc Endpoint[] - The VPC endpoint or the Redshift Serverless workgroup. See
VPC Endpoint
below. - vpc
Security string[]Group Ids - An array of security group IDs to associate with the workgroup.
- workgroup
Name 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 Endpoint
below. - 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.
- endpoint
Name String - The name of the endpoint.
- owner
Account String - The owner Amazon Web Services account for the Amazon Redshift Serverless workgroup.
- port Number
- The port that Amazon Redshift Serverless listens on.
- subnet
Ids List<String> - An array of VPC subnet IDs to associate with the endpoint.
- vpc
Endpoints List<Property Map> - The VPC endpoint or the Redshift Serverless workgroup. See
VPC Endpoint
below. - vpc
Security List<String>Group Ids - An array of security group IDs to associate with the workgroup.
- workgroup
Name String - The name of the workgroup.
Supporting Types
EndpointAccessVpcEndpoint, EndpointAccessVpcEndpointArgs
- Network
Interfaces List<EndpointAccess Vpc Endpoint Network Interface> - The network interfaces of the endpoint.. See
Network Interface
below. - Vpc
Endpoint stringId - The DNS address of the VPC endpoint.
- Vpc
Id string - The port that Amazon Redshift Serverless listens on.
- Network
Interfaces []EndpointAccess Vpc Endpoint Network Interface - The network interfaces of the endpoint.. See
Network Interface
below. - Vpc
Endpoint stringId - The DNS address of the VPC endpoint.
- Vpc
Id string - The port that Amazon Redshift Serverless listens on.
- network
Interfaces List<EndpointAccess Vpc Endpoint Network Interface> - The network interfaces of the endpoint.. See
Network Interface
below. - vpc
Endpoint StringId - The DNS address of the VPC endpoint.
- vpc
Id String - The port that Amazon Redshift Serverless listens on.
- network
Interfaces EndpointAccess Vpc Endpoint Network Interface[] - The network interfaces of the endpoint.. See
Network Interface
below. - vpc
Endpoint stringId - The DNS address of the VPC endpoint.
- vpc
Id 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 Interface
below. - vpc_
endpoint_ strid - The DNS address of the VPC endpoint.
- vpc_
id str - The port that Amazon Redshift Serverless listens on.
- network
Interfaces List<Property Map> - The network interfaces of the endpoint.. See
Network Interface
below. - vpc
Endpoint StringId - The DNS address of the VPC endpoint.
- vpc
Id String - The port that Amazon Redshift Serverless listens on.
EndpointAccessVpcEndpointNetworkInterface, EndpointAccessVpcEndpointNetworkInterfaceArgs
- Availability
Zone string - The availability Zone.
- Network
Interface stringId - The unique identifier of the network interface.
- Private
Ip stringAddress - The IPv4 address of the network interface within the subnet.
- Subnet
Id string - The unique identifier of the subnet.
- Availability
Zone string - The availability Zone.
- Network
Interface stringId - The unique identifier of the network interface.
- Private
Ip stringAddress - The IPv4 address of the network interface within the subnet.
- Subnet
Id string - The unique identifier of the subnet.
- availability
Zone String - The availability Zone.
- network
Interface StringId - The unique identifier of the network interface.
- private
Ip StringAddress - The IPv4 address of the network interface within the subnet.
- subnet
Id String - The unique identifier of the subnet.
- availability
Zone string - The availability Zone.
- network
Interface stringId - The unique identifier of the network interface.
- private
Ip stringAddress - The IPv4 address of the network interface within the subnet.
- subnet
Id 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.
- availability
Zone String - The availability Zone.
- network
Interface StringId - The unique identifier of the network interface.
- private
Ip StringAddress - The IPv4 address of the network interface within the subnet.
- subnet
Id 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
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.