PrivateEndpoint
mongodbatlas..PrivateEndpoint provides a Private Endpoint resource. This represents a Private Endpoint Connection that can be created in an Atlas project.
IMPORTANT:You must have one of the following roles to successfully handle the resource: * Organization Owner * Project Owner
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
Example Usage
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var test = new Mongodbatlas.PrivateEndpoint("test", new Mongodbatlas.PrivateEndpointArgs
{
ProjectId = "<PROJECT-ID>",
ProviderName = "AWS",
Region = "us-east-1",
});
}
}
Coming soon!
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.PrivateEndpoint("test",
project_id="<PROJECT-ID>",
provider_name="AWS",
region="us-east-1")import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const test = new mongodbatlas.PrivateEndpoint("test", {
projectId: "<PROJECT-ID>",
providerName: "AWS",
region: "us-east-1",
});Create a PrivateEndpoint Resource
new PrivateEndpoint(name: string, args: PrivateEndpointArgs, opts?: CustomResourceOptions);def PrivateEndpoint(resource_name, opts=None, project_id=None, provider_name=None, region=None, __props__=None);func NewPrivateEndpoint(ctx *Context, name string, args PrivateEndpointArgs, opts ...ResourceOption) (*PrivateEndpoint, error)public PrivateEndpoint(string name, PrivateEndpointArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args PrivateEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PrivateEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
PrivateEndpoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The PrivateEndpoint resource accepts the following input properties:
- Project
Id string Required Unique identifier for the project.
- Provider
Name string - Region string
Cloud provider region in which you want to create the private endpoint connection. Accepted values are: *
us-east-1*us-east-2*us-west-1*us-west-2*ca-central-1*sa-east-1*eu-north-1*eu-west-1*eu-west-2*eu-west-3*eu-central-1*me-south-1*ap-northeast-1*ap-northeast-2*ap-south-1*ap-southeast-1*ap-southeast-2*ap-east-1
- Project
Id string Required Unique identifier for the project.
- Provider
Name string - Region string
Cloud provider region in which you want to create the private endpoint connection. Accepted values are: *
us-east-1*us-east-2*us-west-1*us-west-2*ca-central-1*sa-east-1*eu-north-1*eu-west-1*eu-west-2*eu-west-3*eu-central-1*me-south-1*ap-northeast-1*ap-northeast-2*ap-south-1*ap-southeast-1*ap-southeast-2*ap-east-1
- project
Id string Required Unique identifier for the project.
- provider
Name string - region string
Cloud provider region in which you want to create the private endpoint connection. Accepted values are: *
us-east-1*us-east-2*us-west-1*us-west-2*ca-central-1*sa-east-1*eu-north-1*eu-west-1*eu-west-2*eu-west-3*eu-central-1*me-south-1*ap-northeast-1*ap-northeast-2*ap-south-1*ap-southeast-1*ap-southeast-2*ap-east-1
- project_
id str Required Unique identifier for the project.
- provider_
name str - region str
Cloud provider region in which you want to create the private endpoint connection. Accepted values are: *
us-east-1*us-east-2*us-west-1*us-west-2*ca-central-1*sa-east-1*eu-north-1*eu-west-1*eu-west-2*eu-west-3*eu-central-1*me-south-1*ap-northeast-1*ap-northeast-2*ap-south-1*ap-southeast-1*ap-southeast-2*ap-east-1
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateEndpoint resource produces the following output properties:
- Endpoint
Service stringName Name of the PrivateLink endpoint service in AWS. Returns null while the endpoint service is being created.
- Error
Message string Error message pertaining to the AWS PrivateLink connection. Returns null if there are no errors.
- Id string
- The provider-assigned unique ID for this managed resource.
- Interface
Endpoints List<string> Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
- Private
Link stringId Unique identifier of the AWS PrivateLink connection.
- Status string
Status of the AWS PrivateLink connection. Returns one of the following values:
- Endpoint
Service stringName Name of the PrivateLink endpoint service in AWS. Returns null while the endpoint service is being created.
- Error
Message string Error message pertaining to the AWS PrivateLink connection. Returns null if there are no errors.
- Id string
- The provider-assigned unique ID for this managed resource.
- Interface
Endpoints []string Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
- Private
Link stringId Unique identifier of the AWS PrivateLink connection.
- Status string
Status of the AWS PrivateLink connection. Returns one of the following values:
- endpoint
Service stringName Name of the PrivateLink endpoint service in AWS. Returns null while the endpoint service is being created.
- error
Message string Error message pertaining to the AWS PrivateLink connection. Returns null if there are no errors.
- id string
- The provider-assigned unique ID for this managed resource.
- interface
Endpoints string[] Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
- private
Link stringId Unique identifier of the AWS PrivateLink connection.
- status string
Status of the AWS PrivateLink connection. Returns one of the following values:
- endpoint_
service_ strname Name of the PrivateLink endpoint service in AWS. Returns null while the endpoint service is being created.
- error_
message str Error message pertaining to the AWS PrivateLink connection. Returns null if there are no errors.
- id str
- The provider-assigned unique ID for this managed resource.
- interface_
endpoints List[str] Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
- private_
link_ strid Unique identifier of the AWS PrivateLink connection.
- status str
Status of the AWS PrivateLink connection. Returns one of the following values:
Look up an Existing PrivateEndpoint Resource
Get an existing PrivateEndpoint 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?: PrivateEndpointState, opts?: CustomResourceOptions): PrivateEndpointstatic get(resource_name, id, opts=None, endpoint_service_name=None, error_message=None, interface_endpoints=None, private_link_id=None, project_id=None, provider_name=None, region=None, status=None, __props__=None);func GetPrivateEndpoint(ctx *Context, name string, id IDInput, state *PrivateEndpointState, opts ...ResourceOption) (*PrivateEndpoint, error)public static PrivateEndpoint Get(string name, Input<string> id, PrivateEndpointState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Endpoint
Service stringName Name of the PrivateLink endpoint service in AWS. Returns null while the endpoint service is being created.
- Error
Message string Error message pertaining to the AWS PrivateLink connection. Returns null if there are no errors.
- Interface
Endpoints List<string> Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
- Private
Link stringId Unique identifier of the AWS PrivateLink connection.
- Project
Id string Required Unique identifier for the project.
- Provider
Name string - Region string
Cloud provider region in which you want to create the private endpoint connection. Accepted values are: *
us-east-1*us-east-2*us-west-1*us-west-2*ca-central-1*sa-east-1*eu-north-1*eu-west-1*eu-west-2*eu-west-3*eu-central-1*me-south-1*ap-northeast-1*ap-northeast-2*ap-south-1*ap-southeast-1*ap-southeast-2*ap-east-1- Status string
Status of the AWS PrivateLink connection. Returns one of the following values:
- Endpoint
Service stringName Name of the PrivateLink endpoint service in AWS. Returns null while the endpoint service is being created.
- Error
Message string Error message pertaining to the AWS PrivateLink connection. Returns null if there are no errors.
- Interface
Endpoints []string Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
- Private
Link stringId Unique identifier of the AWS PrivateLink connection.
- Project
Id string Required Unique identifier for the project.
- Provider
Name string - Region string
Cloud provider region in which you want to create the private endpoint connection. Accepted values are: *
us-east-1*us-east-2*us-west-1*us-west-2*ca-central-1*sa-east-1*eu-north-1*eu-west-1*eu-west-2*eu-west-3*eu-central-1*me-south-1*ap-northeast-1*ap-northeast-2*ap-south-1*ap-southeast-1*ap-southeast-2*ap-east-1- Status string
Status of the AWS PrivateLink connection. Returns one of the following values:
- endpoint
Service stringName Name of the PrivateLink endpoint service in AWS. Returns null while the endpoint service is being created.
- error
Message string Error message pertaining to the AWS PrivateLink connection. Returns null if there are no errors.
- interface
Endpoints string[] Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
- private
Link stringId Unique identifier of the AWS PrivateLink connection.
- project
Id string Required Unique identifier for the project.
- provider
Name string - region string
Cloud provider region in which you want to create the private endpoint connection. Accepted values are: *
us-east-1*us-east-2*us-west-1*us-west-2*ca-central-1*sa-east-1*eu-north-1*eu-west-1*eu-west-2*eu-west-3*eu-central-1*me-south-1*ap-northeast-1*ap-northeast-2*ap-south-1*ap-southeast-1*ap-southeast-2*ap-east-1- status string
Status of the AWS PrivateLink connection. Returns one of the following values:
- endpoint_
service_ strname Name of the PrivateLink endpoint service in AWS. Returns null while the endpoint service is being created.
- error_
message str Error message pertaining to the AWS PrivateLink connection. Returns null if there are no errors.
- interface_
endpoints List[str] Unique identifiers of the interface endpoints in your VPC that you added to the AWS PrivateLink connection.
- private_
link_ strid Unique identifier of the AWS PrivateLink connection.
- project_
id str Required Unique identifier for the project.
- provider_
name str - region str
Cloud provider region in which you want to create the private endpoint connection. Accepted values are: *
us-east-1*us-east-2*us-west-1*us-west-2*ca-central-1*sa-east-1*eu-north-1*eu-west-1*eu-west-2*eu-west-3*eu-central-1*me-south-1*ap-northeast-1*ap-northeast-2*ap-south-1*ap-southeast-1*ap-southeast-2*ap-east-1- status str
Status of the AWS PrivateLink connection. Returns one of the following values:
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.