MongoDB Atlas v3.7.2, Mar 31 23
MongoDB Atlas v3.7.2, Mar 31 23
mongodbatlas.PrivatelinkEndpointServerless
Explore with Pulumi AI
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 seeMongoDB Atlas API - Serverless Private Endpoints.
Example Usage
AWS Example
using System.Collections.Generic;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var testServerlessInstance = new Mongodbatlas.ServerlessInstance("testServerlessInstance", new()
{
ProjectId = "<PROJECT_ID>",
ProviderSettingsBackingProviderName = "AWS",
ProviderSettingsProviderName = "SERVERLESS",
ProviderSettingsRegionName = "US_EAST_1",
ContinuousBackupEnabled = true,
});
var testPrivatelinkEndpointServerless = new Mongodbatlas.PrivatelinkEndpointServerless("testPrivatelinkEndpointServerless", new()
{
ProjectId = "<PROJECT_ID>",
InstanceName = testServerlessInstance.Name,
ProviderName = "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, "testServerlessInstance", &mongodbatlas.ServerlessInstanceArgs{
ProjectId: pulumi.String("<PROJECT_ID>"),
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, "testPrivatelinkEndpointServerless", &mongodbatlas.PrivatelinkEndpointServerlessArgs{
ProjectId: pulumi.String("<PROJECT_ID>"),
InstanceName: testServerlessInstance.Name,
ProviderName: pulumi.String("AWS"),
})
if err != nil {
return err
}
return nil
})
}
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>")
.providerSettingsBackingProviderName("AWS")
.providerSettingsProviderName("SERVERLESS")
.providerSettingsRegionName("US_EAST_1")
.continuousBackupEnabled(true)
.build());
var testPrivatelinkEndpointServerless = new PrivatelinkEndpointServerless("testPrivatelinkEndpointServerless", PrivatelinkEndpointServerlessArgs.builder()
.projectId("<PROJECT_ID>")
.instanceName(testServerlessInstance.name())
.providerName("AWS")
.build());
}
}
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_serverless_instance = mongodbatlas.ServerlessInstance("testServerlessInstance",
project_id="<PROJECT_ID>",
provider_settings_backing_provider_name="AWS",
provider_settings_provider_name="SERVERLESS",
provider_settings_region_name="US_EAST_1",
continuous_backup_enabled=True)
test_privatelink_endpoint_serverless = mongodbatlas.PrivatelinkEndpointServerless("testPrivatelinkEndpointServerless",
project_id="<PROJECT_ID>",
instance_name=test_serverless_instance.name,
provider_name="AWS")
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testServerlessInstance = new mongodbatlas.ServerlessInstance("testServerlessInstance", {
projectId: "<PROJECT_ID>",
providerSettingsBackingProviderName: "AWS",
providerSettingsProviderName: "SERVERLESS",
providerSettingsRegionName: "US_EAST_1",
continuousBackupEnabled: true,
});
const testPrivatelinkEndpointServerless = new mongodbatlas.PrivatelinkEndpointServerless("testPrivatelinkEndpointServerless", {
projectId: "<PROJECT_ID>",
instanceName: testServerlessInstance.name,
providerName: "AWS",
});
resources:
testPrivatelinkEndpointServerless:
type: mongodbatlas:PrivatelinkEndpointServerless
properties:
projectId: <PROJECT_ID>
instanceName: ${testServerlessInstance.name}
providerName: AWS
testServerlessInstance:
type: mongodbatlas:ServerlessInstance
properties:
projectId: <PROJECT_ID>
providerSettingsBackingProviderName: AWS
providerSettingsProviderName: SERVERLESS
providerSettingsRegionName: US_EAST_1
continuousBackupEnabled: true
Create PrivatelinkEndpointServerless Resource
new PrivatelinkEndpointServerless(name: string, args: PrivatelinkEndpointServerlessArgs, opts?: CustomResourceOptions);
@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)
@overload
def PrivatelinkEndpointServerless(resource_name: str,
args: PrivatelinkEndpointServerlessArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
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.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
mongodbatlas
Terraform Provider.