aws.neptune.ClusterEndpoint
Explore with Pulumi AI
Provides an Neptune Cluster Endpoint Resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.neptune.ClusterEndpoint("example", {
clusterIdentifier: test.clusterIdentifier,
clusterEndpointIdentifier: "example",
endpointType: "READER",
});
import pulumi
import pulumi_aws as aws
example = aws.neptune.ClusterEndpoint("example",
cluster_identifier=test["clusterIdentifier"],
cluster_endpoint_identifier="example",
endpoint_type="READER")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/neptune"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := neptune.NewClusterEndpoint(ctx, "example", &neptune.ClusterEndpointArgs{
ClusterIdentifier: pulumi.Any(test.ClusterIdentifier),
ClusterEndpointIdentifier: pulumi.String("example"),
EndpointType: pulumi.String("READER"),
})
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.Neptune.ClusterEndpoint("example", new()
{
ClusterIdentifier = test.ClusterIdentifier,
ClusterEndpointIdentifier = "example",
EndpointType = "READER",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.neptune.ClusterEndpoint;
import com.pulumi.aws.neptune.ClusterEndpointArgs;
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 ClusterEndpoint("example", ClusterEndpointArgs.builder()
.clusterIdentifier(test.clusterIdentifier())
.clusterEndpointIdentifier("example")
.endpointType("READER")
.build());
}
}
resources:
example:
type: aws:neptune:ClusterEndpoint
properties:
clusterIdentifier: ${test.clusterIdentifier}
clusterEndpointIdentifier: example
endpointType: READER
Create ClusterEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterEndpoint(name: string, args: ClusterEndpointArgs, opts?: CustomResourceOptions);
@overload
def ClusterEndpoint(resource_name: str,
args: ClusterEndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_endpoint_identifier: Optional[str] = None,
cluster_identifier: Optional[str] = None,
endpoint_type: Optional[str] = None,
excluded_members: Optional[Sequence[str]] = None,
static_members: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewClusterEndpoint(ctx *Context, name string, args ClusterEndpointArgs, opts ...ResourceOption) (*ClusterEndpoint, error)
public ClusterEndpoint(string name, ClusterEndpointArgs args, CustomResourceOptions? opts = null)
public ClusterEndpoint(String name, ClusterEndpointArgs args)
public ClusterEndpoint(String name, ClusterEndpointArgs args, CustomResourceOptions options)
type: aws:neptune:ClusterEndpoint
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 ClusterEndpointArgs
- 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 ClusterEndpointArgs
- 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 ClusterEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterEndpointArgs
- 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 clusterEndpointResource = new Aws.Neptune.ClusterEndpoint("clusterEndpointResource", new()
{
ClusterEndpointIdentifier = "string",
ClusterIdentifier = "string",
EndpointType = "string",
ExcludedMembers = new[]
{
"string",
},
StaticMembers = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := neptune.NewClusterEndpoint(ctx, "clusterEndpointResource", &neptune.ClusterEndpointArgs{
ClusterEndpointIdentifier: pulumi.String("string"),
ClusterIdentifier: pulumi.String("string"),
EndpointType: pulumi.String("string"),
ExcludedMembers: pulumi.StringArray{
pulumi.String("string"),
},
StaticMembers: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var clusterEndpointResource = new ClusterEndpoint("clusterEndpointResource", ClusterEndpointArgs.builder()
.clusterEndpointIdentifier("string")
.clusterIdentifier("string")
.endpointType("string")
.excludedMembers("string")
.staticMembers("string")
.tags(Map.of("string", "string"))
.build());
cluster_endpoint_resource = aws.neptune.ClusterEndpoint("clusterEndpointResource",
cluster_endpoint_identifier="string",
cluster_identifier="string",
endpoint_type="string",
excluded_members=["string"],
static_members=["string"],
tags={
"string": "string",
})
const clusterEndpointResource = new aws.neptune.ClusterEndpoint("clusterEndpointResource", {
clusterEndpointIdentifier: "string",
clusterIdentifier: "string",
endpointType: "string",
excludedMembers: ["string"],
staticMembers: ["string"],
tags: {
string: "string",
},
});
type: aws:neptune:ClusterEndpoint
properties:
clusterEndpointIdentifier: string
clusterIdentifier: string
endpointType: string
excludedMembers:
- string
staticMembers:
- string
tags:
string: string
ClusterEndpoint 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 ClusterEndpoint resource accepts the following input properties:
- Cluster
Endpoint stringIdentifier - The identifier of the endpoint.
- Cluster
Identifier string - The DB cluster identifier of the DB cluster associated with the endpoint.
- Endpoint
Type string - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - Excluded
Members List<string> - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- Static
Members List<string> - List of DB instance identifiers that are part of the custom endpoint group.
- Dictionary<string, string>
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Cluster
Endpoint stringIdentifier - The identifier of the endpoint.
- Cluster
Identifier string - The DB cluster identifier of the DB cluster associated with the endpoint.
- Endpoint
Type string - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - Excluded
Members []string - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- Static
Members []string - List of DB instance identifiers that are part of the custom endpoint group.
- map[string]string
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster
Endpoint StringIdentifier - The identifier of the endpoint.
- cluster
Identifier String - The DB cluster identifier of the DB cluster associated with the endpoint.
- endpoint
Type String - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - excluded
Members List<String> - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- static
Members List<String> - List of DB instance identifiers that are part of the custom endpoint group.
- Map<String,String>
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster
Endpoint stringIdentifier - The identifier of the endpoint.
- cluster
Identifier string - The DB cluster identifier of the DB cluster associated with the endpoint.
- endpoint
Type string - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - excluded
Members string[] - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- static
Members string[] - List of DB instance identifiers that are part of the custom endpoint group.
- {[key: string]: string}
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster_
endpoint_ stridentifier - The identifier of the endpoint.
- cluster_
identifier str - The DB cluster identifier of the DB cluster associated with the endpoint.
- endpoint_
type str - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - excluded_
members Sequence[str] - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- static_
members Sequence[str] - List of DB instance identifiers that are part of the custom endpoint group.
- Mapping[str, str]
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster
Endpoint StringIdentifier - The identifier of the endpoint.
- cluster
Identifier String - The DB cluster identifier of the DB cluster associated with the endpoint.
- endpoint
Type String - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - excluded
Members List<String> - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- static
Members List<String> - List of DB instance identifiers that are part of the custom endpoint group.
- Map<String>
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterEndpoint resource produces the following output properties:
- Arn string
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- Endpoint string
- The DNS address of the endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- Endpoint string
- The DNS address of the endpoint.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- endpoint String
- The DNS address of the endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- endpoint string
- The DNS address of the endpoint.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- endpoint str
- The DNS address of the endpoint.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- endpoint String
- The DNS address of the endpoint.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing ClusterEndpoint Resource
Get an existing ClusterEndpoint 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?: ClusterEndpointState, opts?: CustomResourceOptions): ClusterEndpoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
cluster_endpoint_identifier: Optional[str] = None,
cluster_identifier: Optional[str] = None,
endpoint: Optional[str] = None,
endpoint_type: Optional[str] = None,
excluded_members: Optional[Sequence[str]] = None,
static_members: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> ClusterEndpoint
func GetClusterEndpoint(ctx *Context, name string, id IDInput, state *ClusterEndpointState, opts ...ResourceOption) (*ClusterEndpoint, error)
public static ClusterEndpoint Get(string name, Input<string> id, ClusterEndpointState? state, CustomResourceOptions? opts = null)
public static ClusterEndpoint get(String name, Output<String> id, ClusterEndpointState 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.
- Arn string
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- Cluster
Endpoint stringIdentifier - The identifier of the endpoint.
- Cluster
Identifier string - The DB cluster identifier of the DB cluster associated with the endpoint.
- Endpoint string
- The DNS address of the endpoint.
- Endpoint
Type string - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - Excluded
Members List<string> - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- Static
Members List<string> - List of DB instance identifiers that are part of the custom endpoint group.
- Dictionary<string, string>
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- Cluster
Endpoint stringIdentifier - The identifier of the endpoint.
- Cluster
Identifier string - The DB cluster identifier of the DB cluster associated with the endpoint.
- Endpoint string
- The DNS address of the endpoint.
- Endpoint
Type string - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - Excluded
Members []string - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- Static
Members []string - List of DB instance identifiers that are part of the custom endpoint group.
- map[string]string
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- cluster
Endpoint StringIdentifier - The identifier of the endpoint.
- cluster
Identifier String - The DB cluster identifier of the DB cluster associated with the endpoint.
- endpoint String
- The DNS address of the endpoint.
- endpoint
Type String - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - excluded
Members List<String> - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- static
Members List<String> - List of DB instance identifiers that are part of the custom endpoint group.
- Map<String,String>
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- cluster
Endpoint stringIdentifier - The identifier of the endpoint.
- cluster
Identifier string - The DB cluster identifier of the DB cluster associated with the endpoint.
- endpoint string
- The DNS address of the endpoint.
- endpoint
Type string - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - excluded
Members string[] - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- static
Members string[] - List of DB instance identifiers that are part of the custom endpoint group.
- {[key: string]: string}
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- cluster_
endpoint_ stridentifier - The identifier of the endpoint.
- cluster_
identifier str - The DB cluster identifier of the DB cluster associated with the endpoint.
- endpoint str
- The DNS address of the endpoint.
- endpoint_
type str - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - excluded_
members Sequence[str] - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- static_
members Sequence[str] - List of DB instance identifiers that are part of the custom endpoint group.
- Mapping[str, str]
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Neptune Cluster Endpoint Amazon Resource Name (ARN).
- cluster
Endpoint StringIdentifier - The identifier of the endpoint.
- cluster
Identifier String - The DB cluster identifier of the DB cluster associated with the endpoint.
- endpoint String
- The DNS address of the endpoint.
- endpoint
Type String - The type of the endpoint. One of:
READER
,WRITER
,ANY
. - excluded
Members List<String> - List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.
- static
Members List<String> - List of DB instance identifiers that are part of the custom endpoint group.
- Map<String>
- A map of tags to assign to the Neptune cluster. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import aws_neptune_cluster_endpoint
using the cluster-identifier:endpoint-identfier
. For example:
$ pulumi import aws:neptune/clusterEndpoint:ClusterEndpoint example my-cluster:my-endpoint
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.