MongoDB Atlas v3.7.2, Mar 31 23
MongoDB Atlas v3.7.2, Mar 31 23
mongodbatlas.ServerlessInstance
Explore with Pulumi AI
Import
Serverless Instance can be imported using the group ID and serverless instance name, in the format GROUP_ID-SERVERLESS_INSTANCE_NAME
, e.g.
$ pulumi import mongodbatlas:index/serverlessInstance:ServerlessInstance my_serverless_instance 1112222b3bf99403840e8934-My Serverless Instance
For more information seeMongoDB Atlas API - Serverless Instance Documentation.
Create ServerlessInstance Resource
new ServerlessInstance(name: string, args: ServerlessInstanceArgs, opts?: CustomResourceOptions);
@overload
def ServerlessInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
continuous_backup_enabled: Optional[bool] = None,
links: Optional[Sequence[ServerlessInstanceLinkArgs]] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
provider_settings_backing_provider_name: Optional[str] = None,
provider_settings_provider_name: Optional[str] = None,
provider_settings_region_name: Optional[str] = None,
state_name: Optional[str] = None,
termination_protection_enabled: Optional[bool] = None)
@overload
def ServerlessInstance(resource_name: str,
args: ServerlessInstanceArgs,
opts: Optional[ResourceOptions] = None)
func NewServerlessInstance(ctx *Context, name string, args ServerlessInstanceArgs, opts ...ResourceOption) (*ServerlessInstance, error)
public ServerlessInstance(string name, ServerlessInstanceArgs args, CustomResourceOptions? opts = null)
public ServerlessInstance(String name, ServerlessInstanceArgs args)
public ServerlessInstance(String name, ServerlessInstanceArgs args, CustomResourceOptions options)
type: mongodbatlas:ServerlessInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerlessInstanceArgs
- 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 ServerlessInstanceArgs
- 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 ServerlessInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerlessInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerlessInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ServerlessInstance 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 ServerlessInstance resource accepts the following input properties:
- Project
Id string The ID of the organization or project you want to create the serverless instance within.
- Provider
Settings stringBacking Provider Name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- Provider
Settings stringProvider Name Cloud service provider that applies to the provisioned the serverless instance.
- Provider
Settings stringRegion Name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- Continuous
Backup boolEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- Links
List<Serverless
Instance Link Args> - Name string
Human-readable label that identifies the serverless instance.
- State
Name string Stage of deployment of this serverless instance when the resource made its request.
- Termination
Protection boolEnabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- Project
Id string The ID of the organization or project you want to create the serverless instance within.
- Provider
Settings stringBacking Provider Name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- Provider
Settings stringProvider Name Cloud service provider that applies to the provisioned the serverless instance.
- Provider
Settings stringRegion Name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- Continuous
Backup boolEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- Links
[]Serverless
Instance Link Args - Name string
Human-readable label that identifies the serverless instance.
- State
Name string Stage of deployment of this serverless instance when the resource made its request.
- Termination
Protection boolEnabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- project
Id String The ID of the organization or project you want to create the serverless instance within.
- provider
Settings StringBacking Provider Name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider
Settings StringProvider Name Cloud service provider that applies to the provisioned the serverless instance.
- provider
Settings StringRegion Name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- continuous
Backup BooleanEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- links
List<Serverless
Instance Link Args> - name String
Human-readable label that identifies the serverless instance.
- state
Name String Stage of deployment of this serverless instance when the resource made its request.
- termination
Protection BooleanEnabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- project
Id string The ID of the organization or project you want to create the serverless instance within.
- provider
Settings stringBacking Provider Name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider
Settings stringProvider Name Cloud service provider that applies to the provisioned the serverless instance.
- provider
Settings stringRegion Name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- continuous
Backup booleanEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- links
Serverless
Instance Link Args[] - name string
Human-readable label that identifies the serverless instance.
- state
Name string Stage of deployment of this serverless instance when the resource made its request.
- termination
Protection booleanEnabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- project_
id str The ID of the organization or project you want to create the serverless instance within.
- provider_
settings_ strbacking_ provider_ name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider_
settings_ strprovider_ name Cloud service provider that applies to the provisioned the serverless instance.
- provider_
settings_ strregion_ name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- continuous_
backup_ boolenabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- links
Sequence[Serverless
Instance Link Args] - name str
Human-readable label that identifies the serverless instance.
- state_
name str Stage of deployment of this serverless instance when the resource made its request.
- termination_
protection_ boolenabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- project
Id String The ID of the organization or project you want to create the serverless instance within.
- provider
Settings StringBacking Provider Name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider
Settings StringProvider Name Cloud service provider that applies to the provisioned the serverless instance.
- provider
Settings StringRegion Name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- continuous
Backup BooleanEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- links List<Property Map>
- name String
Human-readable label that identifies the serverless instance.
- state
Name String Stage of deployment of this serverless instance when the resource made its request.
- termination
Protection BooleanEnabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerlessInstance resource produces the following output properties:
- Connection
Strings List<string>Private Endpoint Srvs List of Serverless Private Endpoint Connections
- Connection
Strings stringStandard Srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- Create
Date string Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- Id string
The provider-assigned unique ID for this managed resource.
- Mongo
Db stringVersion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.
- Connection
Strings []stringPrivate Endpoint Srvs List of Serverless Private Endpoint Connections
- Connection
Strings stringStandard Srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- Create
Date string Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- Id string
The provider-assigned unique ID for this managed resource.
- Mongo
Db stringVersion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.
- connection
Strings List<String>Private Endpoint Srvs List of Serverless Private Endpoint Connections
- connection
Strings StringStandard Srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- create
Date String Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- id String
The provider-assigned unique ID for this managed resource.
- mongo
Db StringVersion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.
- connection
Strings string[]Private Endpoint Srvs List of Serverless Private Endpoint Connections
- connection
Strings stringStandard Srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- create
Date string Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- id string
The provider-assigned unique ID for this managed resource.
- mongo
Db stringVersion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.
- connection_
strings_ Sequence[str]private_ endpoint_ srvs List of Serverless Private Endpoint Connections
- connection_
strings_ strstandard_ srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- create_
date str Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- id str
The provider-assigned unique ID for this managed resource.
- mongo_
db_ strversion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.
- connection
Strings List<String>Private Endpoint Srvs List of Serverless Private Endpoint Connections
- connection
Strings StringStandard Srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- create
Date String Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- id String
The provider-assigned unique ID for this managed resource.
- mongo
Db StringVersion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.
Look up Existing ServerlessInstance Resource
Get an existing ServerlessInstance 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?: ServerlessInstanceState, opts?: CustomResourceOptions): ServerlessInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connection_strings_private_endpoint_srvs: Optional[Sequence[str]] = None,
connection_strings_standard_srv: Optional[str] = None,
continuous_backup_enabled: Optional[bool] = None,
create_date: Optional[str] = None,
links: Optional[Sequence[ServerlessInstanceLinkArgs]] = None,
mongo_db_version: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
provider_settings_backing_provider_name: Optional[str] = None,
provider_settings_provider_name: Optional[str] = None,
provider_settings_region_name: Optional[str] = None,
state_name: Optional[str] = None,
termination_protection_enabled: Optional[bool] = None) -> ServerlessInstance
func GetServerlessInstance(ctx *Context, name string, id IDInput, state *ServerlessInstanceState, opts ...ResourceOption) (*ServerlessInstance, error)
public static ServerlessInstance Get(string name, Input<string> id, ServerlessInstanceState? state, CustomResourceOptions? opts = null)
public static ServerlessInstance get(String name, Output<String> id, ServerlessInstanceState 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.
- Connection
Strings List<string>Private Endpoint Srvs List of Serverless Private Endpoint Connections
- Connection
Strings stringStandard Srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- Continuous
Backup boolEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- Create
Date string Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- Links
List<Serverless
Instance Link Args> - Mongo
Db stringVersion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.- Name string
Human-readable label that identifies the serverless instance.
- Project
Id string The ID of the organization or project you want to create the serverless instance within.
- Provider
Settings stringBacking Provider Name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- Provider
Settings stringProvider Name Cloud service provider that applies to the provisioned the serverless instance.
- Provider
Settings stringRegion Name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- State
Name string Stage of deployment of this serverless instance when the resource made its request.
- Termination
Protection boolEnabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- Connection
Strings []stringPrivate Endpoint Srvs List of Serverless Private Endpoint Connections
- Connection
Strings stringStandard Srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- Continuous
Backup boolEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- Create
Date string Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- Links
[]Serverless
Instance Link Args - Mongo
Db stringVersion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.- Name string
Human-readable label that identifies the serverless instance.
- Project
Id string The ID of the organization or project you want to create the serverless instance within.
- Provider
Settings stringBacking Provider Name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- Provider
Settings stringProvider Name Cloud service provider that applies to the provisioned the serverless instance.
- Provider
Settings stringRegion Name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- State
Name string Stage of deployment of this serverless instance when the resource made its request.
- Termination
Protection boolEnabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- connection
Strings List<String>Private Endpoint Srvs List of Serverless Private Endpoint Connections
- connection
Strings StringStandard Srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- continuous
Backup BooleanEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- create
Date String Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- links
List<Serverless
Instance Link Args> - mongo
Db StringVersion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.- name String
Human-readable label that identifies the serverless instance.
- project
Id String The ID of the organization or project you want to create the serverless instance within.
- provider
Settings StringBacking Provider Name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider
Settings StringProvider Name Cloud service provider that applies to the provisioned the serverless instance.
- provider
Settings StringRegion Name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- state
Name String Stage of deployment of this serverless instance when the resource made its request.
- termination
Protection BooleanEnabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- connection
Strings string[]Private Endpoint Srvs List of Serverless Private Endpoint Connections
- connection
Strings stringStandard Srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- continuous
Backup booleanEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- create
Date string Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- links
Serverless
Instance Link Args[] - mongo
Db stringVersion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.- name string
Human-readable label that identifies the serverless instance.
- project
Id string The ID of the organization or project you want to create the serverless instance within.
- provider
Settings stringBacking Provider Name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider
Settings stringProvider Name Cloud service provider that applies to the provisioned the serverless instance.
- provider
Settings stringRegion Name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- state
Name string Stage of deployment of this serverless instance when the resource made its request.
- termination
Protection booleanEnabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- connection_
strings_ Sequence[str]private_ endpoint_ srvs List of Serverless Private Endpoint Connections
- connection_
strings_ strstandard_ srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- continuous_
backup_ boolenabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- create_
date str Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- links
Sequence[Serverless
Instance Link Args] - mongo_
db_ strversion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.- name str
Human-readable label that identifies the serverless instance.
- project_
id str The ID of the organization or project you want to create the serverless instance within.
- provider_
settings_ strbacking_ provider_ name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider_
settings_ strprovider_ name Cloud service provider that applies to the provisioned the serverless instance.
- provider_
settings_ strregion_ name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- state_
name str Stage of deployment of this serverless instance when the resource made its request.
- termination_
protection_ boolenabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
- connection
Strings List<String>Private Endpoint Srvs List of Serverless Private Endpoint Connections
- connection
Strings StringStandard Srv Public
mongodb+srv://
connection string that you can use to connect to this serverless instance.- continuous
Backup BooleanEnabled Flag that indicates whether the serverless instance uses Serverless Continuous Backup. If this parameter is false or not used, the serverless instance uses Basic Backup.
- create
Date String Timestamp that indicates when MongoDB Cloud created the serverless instance. The timestamp displays in the ISO 8601 date and time format in UTC.
- links List<Property Map>
- mongo
Db StringVersion Version of MongoDB that the serverless instance runs, in
<major version>
.<minor version>
format.- name String
Human-readable label that identifies the serverless instance.
- project
Id String The ID of the organization or project you want to create the serverless instance within.
- provider
Settings StringBacking Provider Name Cloud service provider on which MongoDB Cloud provisioned the serverless instance.
- provider
Settings StringProvider Name Cloud service provider that applies to the provisioned the serverless instance.
- provider
Settings StringRegion Name Human-readable label that identifies the physical location of your MongoDB serverless instance. The region you choose can affect network latency for clients accessing your databases.
- state
Name String Stage of deployment of this serverless instance when the resource made its request.
- termination
Protection BooleanEnabled Flag that indicates whether termination protection is enabled on the cluster. If set to true, MongoDB Cloud won't delete the cluster. If set to false, MongoDB Cloud will delete the cluster.
Supporting Types
ServerlessInstanceLink
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
mongodbatlas
Terraform Provider.