mongodbatlas.PrivatelinkEndpointServerless
Explore with Pulumi AI
# Resource: privatelink_endpoint_serverless
privatelink_endpoint_serverless
Provides a Serverless PrivateLink Endpoint resource.
This is the first of two resources required to configure PrivateLink for Serverless, the second is mongodbatlas_privatelink_endpoint_service_serverless.
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
Example Usage
AWS Example
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testServerlessInstance = new mongodbatlas.ServerlessInstance("test", {
projectId: "<PROJECT_ID>",
name: "test-db",
providerSettingsBackingProviderName: "AWS",
providerSettingsProviderName: "SERVERLESS",
providerSettingsRegionName: "US_EAST_1",
continuousBackupEnabled: true,
});
const test = new mongodbatlas.PrivatelinkEndpointServerless("test", {
projectId: "<PROJECT_ID>",
instanceName: testServerlessInstance.name,
providerName: "AWS",
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_serverless_instance = mongodbatlas.ServerlessInstance("test",
project_id="<PROJECT_ID>",
name="test-db",
provider_settings_backing_provider_name="AWS",
provider_settings_provider_name="SERVERLESS",
provider_settings_region_name="US_EAST_1",
continuous_backup_enabled=True)
test = mongodbatlas.PrivatelinkEndpointServerless("test",
project_id="<PROJECT_ID>",
instance_name=test_serverless_instance.name,
provider_name="AWS")
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testServerlessInstance, err := mongodbatlas.NewServerlessInstance(ctx, "test", &mongodbatlas.ServerlessInstanceArgs{
ProjectId: pulumi.String("<PROJECT_ID>"),
Name: pulumi.String("test-db"),
ProviderSettingsBackingProviderName: pulumi.String("AWS"),
ProviderSettingsProviderName: pulumi.String("SERVERLESS"),
ProviderSettingsRegionName: pulumi.String("US_EAST_1"),
ContinuousBackupEnabled: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = mongodbatlas.NewPrivatelinkEndpointServerless(ctx, "test", &mongodbatlas.PrivatelinkEndpointServerlessArgs{
ProjectId: pulumi.String("<PROJECT_ID>"),
InstanceName: testServerlessInstance.Name,
ProviderName: pulumi.String("AWS"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testServerlessInstance = new Mongodbatlas.ServerlessInstance("test", new()
{
ProjectId = "<PROJECT_ID>",
Name = "test-db",
ProviderSettingsBackingProviderName = "AWS",
ProviderSettingsProviderName = "SERVERLESS",
ProviderSettingsRegionName = "US_EAST_1",
ContinuousBackupEnabled = true,
});
var test = new Mongodbatlas.PrivatelinkEndpointServerless("test", new()
{
ProjectId = "<PROJECT_ID>",
InstanceName = testServerlessInstance.Name,
ProviderName = "AWS",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.ServerlessInstance;
import com.pulumi.mongodbatlas.ServerlessInstanceArgs;
import com.pulumi.mongodbatlas.PrivatelinkEndpointServerless;
import com.pulumi.mongodbatlas.PrivatelinkEndpointServerlessArgs;
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 testServerlessInstance = new ServerlessInstance("testServerlessInstance", ServerlessInstanceArgs.builder()
.projectId("<PROJECT_ID>")
.name("test-db")
.providerSettingsBackingProviderName("AWS")
.providerSettingsProviderName("SERVERLESS")
.providerSettingsRegionName("US_EAST_1")
.continuousBackupEnabled(true)
.build());
var test = new PrivatelinkEndpointServerless("test", PrivatelinkEndpointServerlessArgs.builder()
.projectId("<PROJECT_ID>")
.instanceName(testServerlessInstance.name())
.providerName("AWS")
.build());
}
}
resources:
test:
type: mongodbatlas:PrivatelinkEndpointServerless
properties:
projectId: <PROJECT_ID>
instanceName: ${testServerlessInstance.name}
providerName: AWS
testServerlessInstance:
type: mongodbatlas:ServerlessInstance
name: test
properties:
projectId: <PROJECT_ID>
name: test-db
providerSettingsBackingProviderName: AWS
providerSettingsProviderName: SERVERLESS
providerSettingsRegionName: US_EAST_1
continuousBackupEnabled: true
Create PrivatelinkEndpointServerless Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivatelinkEndpointServerless(name: string, args: PrivatelinkEndpointServerlessArgs, opts?: CustomResourceOptions);
@overload
def PrivatelinkEndpointServerless(resource_name: str,
args: PrivatelinkEndpointServerlessArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivatelinkEndpointServerless(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_name: Optional[str] = None,
project_id: Optional[str] = None,
provider_name: Optional[str] = None)
func NewPrivatelinkEndpointServerless(ctx *Context, name string, args PrivatelinkEndpointServerlessArgs, opts ...ResourceOption) (*PrivatelinkEndpointServerless, error)
public PrivatelinkEndpointServerless(string name, PrivatelinkEndpointServerlessArgs args, CustomResourceOptions? opts = null)
public PrivatelinkEndpointServerless(String name, PrivatelinkEndpointServerlessArgs args)
public PrivatelinkEndpointServerless(String name, PrivatelinkEndpointServerlessArgs args, CustomResourceOptions options)
type: mongodbatlas:PrivatelinkEndpointServerless
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 PrivatelinkEndpointServerlessArgs
- 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 PrivatelinkEndpointServerlessArgs
- 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 PrivatelinkEndpointServerlessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivatelinkEndpointServerlessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivatelinkEndpointServerlessArgs
- 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 privatelinkEndpointServerlessResource = new Mongodbatlas.PrivatelinkEndpointServerless("privatelinkEndpointServerlessResource", new()
{
InstanceName = "string",
ProjectId = "string",
ProviderName = "string",
});
example, err := mongodbatlas.NewPrivatelinkEndpointServerless(ctx, "privatelinkEndpointServerlessResource", &mongodbatlas.PrivatelinkEndpointServerlessArgs{
InstanceName: pulumi.String("string"),
ProjectId: pulumi.String("string"),
ProviderName: pulumi.String("string"),
})
var privatelinkEndpointServerlessResource = new PrivatelinkEndpointServerless("privatelinkEndpointServerlessResource", PrivatelinkEndpointServerlessArgs.builder()
.instanceName("string")
.projectId("string")
.providerName("string")
.build());
privatelink_endpoint_serverless_resource = mongodbatlas.PrivatelinkEndpointServerless("privatelinkEndpointServerlessResource",
instance_name="string",
project_id="string",
provider_name="string")
const privatelinkEndpointServerlessResource = new mongodbatlas.PrivatelinkEndpointServerless("privatelinkEndpointServerlessResource", {
instanceName: "string",
projectId: "string",
providerName: "string",
});
type: mongodbatlas:PrivatelinkEndpointServerless
properties:
instanceName: string
projectId: string
providerName: string
PrivatelinkEndpointServerless 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 PrivatelinkEndpointServerless resource accepts the following input properties:
- Instance
Name string - Human-readable label that identifies the serverless instance.
- Project
Id string - Unique 24-digit hexadecimal string that identifies the project.
- Provider
Name string - Cloud provider name; AWS is currently supported
- Instance
Name string - Human-readable label that identifies the serverless instance.
- Project
Id string - Unique 24-digit hexadecimal string that identifies the project.
- Provider
Name string - Cloud provider name; AWS is currently supported
- instance
Name String - Human-readable label that identifies the serverless instance.
- project
Id String - Unique 24-digit hexadecimal string that identifies the project.
- provider
Name String - Cloud provider name; AWS is currently supported
- instance
Name string - Human-readable label that identifies the serverless instance.
- project
Id string - Unique 24-digit hexadecimal string that identifies the project.
- provider
Name string - Cloud provider name; AWS is currently supported
- instance_
name str - Human-readable label that identifies the serverless instance.
- project_
id str - Unique 24-digit hexadecimal string that identifies the project.
- provider_
name str - Cloud provider name; AWS is currently supported
- instance
Name String - Human-readable label that identifies the serverless instance.
- project
Id String - Unique 24-digit hexadecimal string that identifies the project.
- provider
Name String - Cloud provider name; AWS is currently supported
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivatelinkEndpointServerless resource produces the following output properties:
- Endpoint
Id string - Unique 24-hexadecimal digit string that identifies the private endpoint.
- Endpoint
Service stringName - Unique string that identifies the PrivateLink endpoint service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Link stringService Resource Id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- Status string
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
- Endpoint
Id string - Unique 24-hexadecimal digit string that identifies the private endpoint.
- Endpoint
Service stringName - Unique string that identifies the PrivateLink endpoint service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Link stringService Resource Id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- Status string
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
- endpoint
Id String - Unique 24-hexadecimal digit string that identifies the private endpoint.
- endpoint
Service StringName - Unique string that identifies the PrivateLink endpoint service.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Link StringService Resource Id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- status String
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
- endpoint
Id string - Unique 24-hexadecimal digit string that identifies the private endpoint.
- endpoint
Service stringName - Unique string that identifies the PrivateLink endpoint service.
- id string
- The provider-assigned unique ID for this managed resource.
- private
Link stringService Resource Id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- status string
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
- endpoint_
id str - Unique 24-hexadecimal digit string that identifies the private endpoint.
- endpoint_
service_ strname - Unique string that identifies the PrivateLink endpoint service.
- id str
- The provider-assigned unique ID for this managed resource.
- private_
link_ strservice_ resource_ id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- status str
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
- endpoint
Id String - Unique 24-hexadecimal digit string that identifies the private endpoint.
- endpoint
Service StringName - Unique string that identifies the PrivateLink endpoint service.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Link StringService Resource Id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- status String
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
Look up Existing PrivatelinkEndpointServerless Resource
Get an existing PrivatelinkEndpointServerless 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?: PrivatelinkEndpointServerlessState, opts?: CustomResourceOptions): PrivatelinkEndpointServerless
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
endpoint_id: Optional[str] = None,
endpoint_service_name: Optional[str] = None,
instance_name: Optional[str] = None,
private_link_service_resource_id: Optional[str] = None,
project_id: Optional[str] = None,
provider_name: Optional[str] = None,
status: Optional[str] = None) -> PrivatelinkEndpointServerless
func GetPrivatelinkEndpointServerless(ctx *Context, name string, id IDInput, state *PrivatelinkEndpointServerlessState, opts ...ResourceOption) (*PrivatelinkEndpointServerless, error)
public static PrivatelinkEndpointServerless Get(string name, Input<string> id, PrivatelinkEndpointServerlessState? state, CustomResourceOptions? opts = null)
public static PrivatelinkEndpointServerless get(String name, Output<String> id, PrivatelinkEndpointServerlessState 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.
- Endpoint
Id string - Unique 24-hexadecimal digit string that identifies the private endpoint.
- Endpoint
Service stringName - Unique string that identifies the PrivateLink endpoint service.
- Instance
Name string - Human-readable label that identifies the serverless instance.
- Private
Link stringService Resource Id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- Project
Id string - Unique 24-digit hexadecimal string that identifies the project.
- Provider
Name string - Cloud provider name; AWS is currently supported
- Status string
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
- Endpoint
Id string - Unique 24-hexadecimal digit string that identifies the private endpoint.
- Endpoint
Service stringName - Unique string that identifies the PrivateLink endpoint service.
- Instance
Name string - Human-readable label that identifies the serverless instance.
- Private
Link stringService Resource Id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- Project
Id string - Unique 24-digit hexadecimal string that identifies the project.
- Provider
Name string - Cloud provider name; AWS is currently supported
- Status string
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
- endpoint
Id String - Unique 24-hexadecimal digit string that identifies the private endpoint.
- endpoint
Service StringName - Unique string that identifies the PrivateLink endpoint service.
- instance
Name String - Human-readable label that identifies the serverless instance.
- private
Link StringService Resource Id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- project
Id String - Unique 24-digit hexadecimal string that identifies the project.
- provider
Name String - Cloud provider name; AWS is currently supported
- status String
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
- endpoint
Id string - Unique 24-hexadecimal digit string that identifies the private endpoint.
- endpoint
Service stringName - Unique string that identifies the PrivateLink endpoint service.
- instance
Name string - Human-readable label that identifies the serverless instance.
- private
Link stringService Resource Id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- project
Id string - Unique 24-digit hexadecimal string that identifies the project.
- provider
Name string - Cloud provider name; AWS is currently supported
- status string
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
- endpoint_
id str - Unique 24-hexadecimal digit string that identifies the private endpoint.
- endpoint_
service_ strname - Unique string that identifies the PrivateLink endpoint service.
- instance_
name str - Human-readable label that identifies the serverless instance.
- private_
link_ strservice_ resource_ id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- project_
id str - Unique 24-digit hexadecimal string that identifies the project.
- provider_
name str - Cloud provider name; AWS is currently supported
- status str
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
- endpoint
Id String - Unique 24-hexadecimal digit string that identifies the private endpoint.
- endpoint
Service StringName - Unique string that identifies the PrivateLink endpoint service.
- instance
Name String - Human-readable label that identifies the serverless instance.
- private
Link StringService Resource Id - Root-relative path that identifies the Azure Private Link Service that MongoDB Cloud manages.
- project
Id String - Unique 24-digit hexadecimal string that identifies the project.
- provider
Name String - Cloud provider name; AWS is currently supported
- status String
- Human-readable label that indicates the current operating status of the private endpoint. Values include: RESERVATION_REQUESTED, RESERVED, INITIATING, AVAILABLE, FAILED, DELETING.
Import
Serverless privatelink endpoint can be imported using project ID and endpoint ID, in the format project_id
–endpoint_id
, e.g.
$ pulumi import mongodbatlas:index/privatelinkEndpointServerless:PrivatelinkEndpointServerless test 1112222b3bf99403840e8934--serverless_name--vpce-jjg5e24qp93513h03
For more information see: MongoDB Atlas API - Serverless Private Endpoints.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.