mongodbatlas.StreamWorkspace provides a Stream Workspace resource. The resource lets you create, edit, and delete stream workspaces in a project.
NOTE: This resource is an alias for
mongodbatlas.StreamInstance. Use this resource for new configurations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const test = new mongodbatlas.StreamWorkspace("test", {
projectId: projectId,
workspaceName: "WorkspaceName",
dataProcessRegion: {
region: "VIRGINIA_USA",
cloudProvider: "AWS",
},
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.StreamWorkspace("test",
project_id=project_id,
workspace_name="WorkspaceName",
data_process_region={
"region": "VIRGINIA_USA",
"cloud_provider": "AWS",
})
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodbatlas.NewStreamWorkspace(ctx, "test", &mongodbatlas.StreamWorkspaceArgs{
ProjectId: pulumi.Any(projectId),
WorkspaceName: pulumi.String("WorkspaceName"),
DataProcessRegion: &mongodbatlas.StreamWorkspaceDataProcessRegionArgs{
Region: pulumi.String("VIRGINIA_USA"),
CloudProvider: 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 test = new Mongodbatlas.StreamWorkspace("test", new()
{
ProjectId = projectId,
WorkspaceName = "WorkspaceName",
DataProcessRegion = new Mongodbatlas.Inputs.StreamWorkspaceDataProcessRegionArgs
{
Region = "VIRGINIA_USA",
CloudProvider = "AWS",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.StreamWorkspace;
import com.pulumi.mongodbatlas.StreamWorkspaceArgs;
import com.pulumi.mongodbatlas.inputs.StreamWorkspaceDataProcessRegionArgs;
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 test = new StreamWorkspace("test", StreamWorkspaceArgs.builder()
.projectId(projectId)
.workspaceName("WorkspaceName")
.dataProcessRegion(StreamWorkspaceDataProcessRegionArgs.builder()
.region("VIRGINIA_USA")
.cloudProvider("AWS")
.build())
.build());
}
}
resources:
test:
type: mongodbatlas:StreamWorkspace
properties:
projectId: ${projectId}
workspaceName: WorkspaceName
dataProcessRegion:
region: VIRGINIA_USA
cloudProvider: AWS
Further Examples
- Atlas Stream Workspace
Migration from<span pulumi-lang-nodejs=" streamInstance
" pulumi-lang-dotnet=" StreamInstance
" pulumi-lang-go=" streamInstance
" pulumi-lang-python=" stream_instance
" pulumi-lang-yaml=" streamInstance
" pulumi-lang-java=" streamInstance
“> stream_instance
To migrate from mongodbatlas.StreamInstance to mongodbatlas.StreamWorkspace, use the following moved block:
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const example = new mongodbatlas.StreamWorkspace("example", {
projectId: projectId,
workspaceName: "WorkspaceName",
dataProcessRegion: {
region: "VIRGINIA_USA",
cloudProvider: "AWS",
},
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
example = mongodbatlas.StreamWorkspace("example",
project_id=project_id,
workspace_name="WorkspaceName",
data_process_region={
"region": "VIRGINIA_USA",
"cloud_provider": "AWS",
})
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mongodbatlas.NewStreamWorkspace(ctx, "example", &mongodbatlas.StreamWorkspaceArgs{
ProjectId: pulumi.Any(projectId),
WorkspaceName: pulumi.String("WorkspaceName"),
DataProcessRegion: &mongodbatlas.StreamWorkspaceDataProcessRegionArgs{
Region: pulumi.String("VIRGINIA_USA"),
CloudProvider: 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 example = new Mongodbatlas.StreamWorkspace("example", new()
{
ProjectId = projectId,
WorkspaceName = "WorkspaceName",
DataProcessRegion = new Mongodbatlas.Inputs.StreamWorkspaceDataProcessRegionArgs
{
Region = "VIRGINIA_USA",
CloudProvider = "AWS",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.StreamWorkspace;
import com.pulumi.mongodbatlas.StreamWorkspaceArgs;
import com.pulumi.mongodbatlas.inputs.StreamWorkspaceDataProcessRegionArgs;
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 StreamWorkspace("example", StreamWorkspaceArgs.builder()
.projectId(projectId)
.workspaceName("WorkspaceName")
.dataProcessRegion(StreamWorkspaceDataProcessRegionArgs.builder()
.region("VIRGINIA_USA")
.cloudProvider("AWS")
.build())
.build());
}
}
resources:
example:
type: mongodbatlas:StreamWorkspace
properties:
projectId: ${projectId}
workspaceName: WorkspaceName
dataProcessRegion:
region: VIRGINIA_USA
cloudProvider: AWS
Create StreamWorkspace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StreamWorkspace(name: string, args: StreamWorkspaceArgs, opts?: CustomResourceOptions);@overload
def StreamWorkspace(resource_name: str,
args: StreamWorkspaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StreamWorkspace(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_process_region: Optional[StreamWorkspaceDataProcessRegionArgs] = None,
project_id: Optional[str] = None,
workspace_name: Optional[str] = None,
stream_config: Optional[StreamWorkspaceStreamConfigArgs] = None)func NewStreamWorkspace(ctx *Context, name string, args StreamWorkspaceArgs, opts ...ResourceOption) (*StreamWorkspace, error)public StreamWorkspace(string name, StreamWorkspaceArgs args, CustomResourceOptions? opts = null)
public StreamWorkspace(String name, StreamWorkspaceArgs args)
public StreamWorkspace(String name, StreamWorkspaceArgs args, CustomResourceOptions options)
type: mongodbatlas:StreamWorkspace
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 StreamWorkspaceArgs
- 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 StreamWorkspaceArgs
- 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 StreamWorkspaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StreamWorkspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StreamWorkspaceArgs
- 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 streamWorkspaceResource = new Mongodbatlas.StreamWorkspace("streamWorkspaceResource", new()
{
DataProcessRegion = new Mongodbatlas.Inputs.StreamWorkspaceDataProcessRegionArgs
{
CloudProvider = "string",
Region = "string",
},
ProjectId = "string",
WorkspaceName = "string",
StreamConfig = new Mongodbatlas.Inputs.StreamWorkspaceStreamConfigArgs
{
MaxTierSize = "string",
Tier = "string",
},
});
example, err := mongodbatlas.NewStreamWorkspace(ctx, "streamWorkspaceResource", &mongodbatlas.StreamWorkspaceArgs{
DataProcessRegion: &mongodbatlas.StreamWorkspaceDataProcessRegionArgs{
CloudProvider: pulumi.String("string"),
Region: pulumi.String("string"),
},
ProjectId: pulumi.String("string"),
WorkspaceName: pulumi.String("string"),
StreamConfig: &mongodbatlas.StreamWorkspaceStreamConfigArgs{
MaxTierSize: pulumi.String("string"),
Tier: pulumi.String("string"),
},
})
var streamWorkspaceResource = new StreamWorkspace("streamWorkspaceResource", StreamWorkspaceArgs.builder()
.dataProcessRegion(StreamWorkspaceDataProcessRegionArgs.builder()
.cloudProvider("string")
.region("string")
.build())
.projectId("string")
.workspaceName("string")
.streamConfig(StreamWorkspaceStreamConfigArgs.builder()
.maxTierSize("string")
.tier("string")
.build())
.build());
stream_workspace_resource = mongodbatlas.StreamWorkspace("streamWorkspaceResource",
data_process_region={
"cloud_provider": "string",
"region": "string",
},
project_id="string",
workspace_name="string",
stream_config={
"max_tier_size": "string",
"tier": "string",
})
const streamWorkspaceResource = new mongodbatlas.StreamWorkspace("streamWorkspaceResource", {
dataProcessRegion: {
cloudProvider: "string",
region: "string",
},
projectId: "string",
workspaceName: "string",
streamConfig: {
maxTierSize: "string",
tier: "string",
},
});
type: mongodbatlas:StreamWorkspace
properties:
dataProcessRegion:
cloudProvider: string
region: string
projectId: string
streamConfig:
maxTierSize: string
tier: string
workspaceName: string
StreamWorkspace 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 StreamWorkspace resource accepts the following input properties:
- Data
Process StreamRegion Workspace Data Process Region - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Workspace
Name string - Label that identifies the stream workspace.
- Stream
Config StreamWorkspace Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- Data
Process StreamRegion Workspace Data Process Region Args - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Workspace
Name string - Label that identifies the stream workspace.
- Stream
Config StreamWorkspace Stream Config Args - Configuration options for an Atlas Stream Processing Instance. See stream config
- data
Process StreamRegion Workspace Data Process Region - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- workspace
Name String - Label that identifies the stream workspace.
- stream
Config StreamWorkspace Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- data
Process StreamRegion Workspace Data Process Region - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- workspace
Name string - Label that identifies the stream workspace.
- stream
Config StreamWorkspace Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- data_
process_ Streamregion Workspace Data Process Region Args - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- workspace_
name str - Label that identifies the stream workspace.
- stream_
config StreamWorkspace Stream Config Args - Configuration options for an Atlas Stream Processing Instance. See stream config
- data
Process Property MapRegion - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- workspace
Name String - Label that identifies the stream workspace.
- stream
Config Property Map - Configuration options for an Atlas Stream Processing Instance. See stream config
Outputs
All input properties are implicitly available as output properties. Additionally, the StreamWorkspace resource produces the following output properties:
Look up Existing StreamWorkspace Resource
Get an existing StreamWorkspace 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?: StreamWorkspaceState, opts?: CustomResourceOptions): StreamWorkspace@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_process_region: Optional[StreamWorkspaceDataProcessRegionArgs] = None,
hostnames: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
stream_config: Optional[StreamWorkspaceStreamConfigArgs] = None,
workspace_name: Optional[str] = None) -> StreamWorkspacefunc GetStreamWorkspace(ctx *Context, name string, id IDInput, state *StreamWorkspaceState, opts ...ResourceOption) (*StreamWorkspace, error)public static StreamWorkspace Get(string name, Input<string> id, StreamWorkspaceState? state, CustomResourceOptions? opts = null)public static StreamWorkspace get(String name, Output<String> id, StreamWorkspaceState state, CustomResourceOptions options)resources: _: type: mongodbatlas:StreamWorkspace get: id: ${id}- 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.
- Data
Process StreamRegion Workspace Data Process Region - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- Hostnames List<string>
- List that contains the hostnames assigned to the stream workspace.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Stream
Config StreamWorkspace Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- Workspace
Name string - Label that identifies the stream workspace.
- Data
Process StreamRegion Workspace Data Process Region Args - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- Hostnames []string
- List that contains the hostnames assigned to the stream workspace.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Stream
Config StreamWorkspace Stream Config Args - Configuration options for an Atlas Stream Processing Instance. See stream config
- Workspace
Name string - Label that identifies the stream workspace.
- data
Process StreamRegion Workspace Data Process Region - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- hostnames List<String>
- List that contains the hostnames assigned to the stream workspace.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- stream
Config StreamWorkspace Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- workspace
Name String - Label that identifies the stream workspace.
- data
Process StreamRegion Workspace Data Process Region - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- hostnames string[]
- List that contains the hostnames assigned to the stream workspace.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- stream
Config StreamWorkspace Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- workspace
Name string - Label that identifies the stream workspace.
- data_
process_ Streamregion Workspace Data Process Region Args - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- hostnames Sequence[str]
- List that contains the hostnames assigned to the stream workspace.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- stream_
config StreamWorkspace Stream Config Args - Configuration options for an Atlas Stream Processing Instance. See stream config
- workspace_
name str - Label that identifies the stream workspace.
- data
Process Property MapRegion - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- hostnames List<String>
- List that contains the hostnames assigned to the stream workspace.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- stream
Config Property Map - Configuration options for an Atlas Stream Processing Instance. See stream config
- workspace
Name String - Label that identifies the stream workspace.
Supporting Types
StreamWorkspaceDataProcessRegion, StreamWorkspaceDataProcessRegionArgs
- Cloud
Provider string - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- Region string
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
- Cloud
Provider string - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- Region string
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
- cloud
Provider String - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- region String
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
- cloud
Provider string - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- region string
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
- cloud_
provider str - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- region str
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
- cloud
Provider String - Label that identifies the cloud service provider where MongoDB Cloud performs stream processing. The MongoDB Atlas API describes the valid values.
- region String
- Name of the cloud provider region hosting Atlas Stream Processing. The MongoDB Atlas API describes the valid values.
StreamWorkspaceStreamConfig, StreamWorkspaceStreamConfigArgs
- Max
Tier stringSize - Max tier size for the Stream Workspace. Configures Memory / VCPU allowances.
- Tier string
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- Max
Tier stringSize - Max tier size for the Stream Workspace. Configures Memory / VCPU allowances.
- Tier string
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- max
Tier StringSize - Max tier size for the Stream Workspace. Configures Memory / VCPU allowances.
- tier String
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- max
Tier stringSize - Max tier size for the Stream Workspace. Configures Memory / VCPU allowances.
- tier string
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- max_
tier_ strsize - Max tier size for the Stream Workspace. Configures Memory / VCPU allowances.
- tier str
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- max
Tier StringSize - Max tier size for the Stream Workspace. Configures Memory / VCPU allowances.
- tier String
- Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
Import
You can import stream workspace resource using the project ID and workspace name, in the format PROJECT_ID-WORKSPACE_NAME. For example:
$ pulumi import mongodbatlas:index/streamWorkspace:StreamWorkspace test 650972848269185c55f40ca1-WorkspaceName
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
mongodbatlasTerraform Provider.
