mongodbatlas.StreamInstance
Explore with Pulumi AI
# Resource: mongodbatlas.StreamInstance
mongodbatlas.StreamInstance
provides a Stream Instance resource. The resource lets you create, edit, and delete stream instances in a project.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.StreamInstance;
import com.pulumi.mongodbatlas.StreamInstanceArgs;
import com.pulumi.mongodbatlas.inputs.StreamInstanceDataProcessRegionArgs;
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 StreamInstance("test", StreamInstanceArgs.builder()
.projectId(projectId)
.instanceName("InstanceName")
.dataProcessRegion(StreamInstanceDataProcessRegionArgs.builder()
.region("VIRGINIA_USA")
.cloud_provider("AWS")
.build())
.build());
}
}
resources:
test:
type: mongodbatlas:StreamInstance
properties:
projectId: ${projectId}
instanceName: InstanceName
dataProcessRegion:
region: VIRGINIA_USA
cloud_provider: AWS
Create StreamInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StreamInstance(name: string, args: StreamInstanceArgs, opts?: CustomResourceOptions);
@overload
def StreamInstance(resource_name: str,
args: StreamInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StreamInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_process_region: Optional[StreamInstanceDataProcessRegionArgs] = None,
instance_name: Optional[str] = None,
project_id: Optional[str] = None,
stream_config: Optional[StreamInstanceStreamConfigArgs] = None)
func NewStreamInstance(ctx *Context, name string, args StreamInstanceArgs, opts ...ResourceOption) (*StreamInstance, error)
public StreamInstance(string name, StreamInstanceArgs args, CustomResourceOptions? opts = null)
public StreamInstance(String name, StreamInstanceArgs args)
public StreamInstance(String name, StreamInstanceArgs args, CustomResourceOptions options)
type: mongodbatlas:StreamInstance
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 StreamInstanceArgs
- 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 StreamInstanceArgs
- 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 StreamInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StreamInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StreamInstanceArgs
- 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 streamInstanceResource = new Mongodbatlas.StreamInstance("streamInstanceResource", new()
{
DataProcessRegion = new Mongodbatlas.Inputs.StreamInstanceDataProcessRegionArgs
{
CloudProvider = "string",
Region = "string",
},
InstanceName = "string",
ProjectId = "string",
StreamConfig = new Mongodbatlas.Inputs.StreamInstanceStreamConfigArgs
{
Tier = "string",
},
});
example, err := mongodbatlas.NewStreamInstance(ctx, "streamInstanceResource", &mongodbatlas.StreamInstanceArgs{
DataProcessRegion: &mongodbatlas.StreamInstanceDataProcessRegionArgs{
CloudProvider: pulumi.String("string"),
Region: pulumi.String("string"),
},
InstanceName: pulumi.String("string"),
ProjectId: pulumi.String("string"),
StreamConfig: &mongodbatlas.StreamInstanceStreamConfigArgs{
Tier: pulumi.String("string"),
},
})
var streamInstanceResource = new StreamInstance("streamInstanceResource", StreamInstanceArgs.builder()
.dataProcessRegion(StreamInstanceDataProcessRegionArgs.builder()
.cloudProvider("string")
.region("string")
.build())
.instanceName("string")
.projectId("string")
.streamConfig(StreamInstanceStreamConfigArgs.builder()
.tier("string")
.build())
.build());
stream_instance_resource = mongodbatlas.StreamInstance("streamInstanceResource",
data_process_region={
"cloud_provider": "string",
"region": "string",
},
instance_name="string",
project_id="string",
stream_config={
"tier": "string",
})
const streamInstanceResource = new mongodbatlas.StreamInstance("streamInstanceResource", {
dataProcessRegion: {
cloudProvider: "string",
region: "string",
},
instanceName: "string",
projectId: "string",
streamConfig: {
tier: "string",
},
});
type: mongodbatlas:StreamInstance
properties:
dataProcessRegion:
cloudProvider: string
region: string
instanceName: string
projectId: string
streamConfig:
tier: string
StreamInstance 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 StreamInstance resource accepts the following input properties:
- Data
Process StreamRegion Instance Data Process Region - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- Instance
Name string - Human-readable label that identifies the stream instance.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Stream
Config StreamInstance Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- Data
Process StreamRegion Instance Data Process Region Args - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- Instance
Name string - Human-readable label that identifies the stream instance.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Stream
Config StreamInstance Stream Config Args - Configuration options for an Atlas Stream Processing Instance. See stream config
- data
Process StreamRegion Instance Data Process Region - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- instance
Name String - Human-readable label that identifies the stream instance.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- stream
Config StreamInstance Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- data
Process StreamRegion Instance Data Process Region - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- instance
Name string - Human-readable label that identifies the stream instance.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- stream
Config StreamInstance Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- data_
process_ Streamregion Instance Data Process Region Args - Cloud service provider and region where MongoDB Cloud performs stream processing. See data process region.
- instance_
name str - Human-readable label that identifies the stream instance.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- stream_
config StreamInstance 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.
- instance
Name String - Human-readable label that identifies the stream instance.
- 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
Outputs
All input properties are implicitly available as output properties. Additionally, the StreamInstance resource produces the following output properties:
Look up Existing StreamInstance Resource
Get an existing StreamInstance 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?: StreamInstanceState, opts?: CustomResourceOptions): StreamInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
data_process_region: Optional[StreamInstanceDataProcessRegionArgs] = None,
hostnames: Optional[Sequence[str]] = None,
instance_name: Optional[str] = None,
project_id: Optional[str] = None,
stream_config: Optional[StreamInstanceStreamConfigArgs] = None) -> StreamInstance
func GetStreamInstance(ctx *Context, name string, id IDInput, state *StreamInstanceState, opts ...ResourceOption) (*StreamInstance, error)
public static StreamInstance Get(string name, Input<string> id, StreamInstanceState? state, CustomResourceOptions? opts = null)
public static StreamInstance get(String name, Output<String> id, StreamInstanceState 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.
- Data
Process StreamRegion Instance 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 instance.
- Instance
Name string - Human-readable label that identifies the stream instance.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Stream
Config StreamInstance Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- Data
Process StreamRegion Instance 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 instance.
- Instance
Name string - Human-readable label that identifies the stream instance.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Stream
Config StreamInstance Stream Config Args - Configuration options for an Atlas Stream Processing Instance. See stream config
- data
Process StreamRegion Instance 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 instance.
- instance
Name String - Human-readable label that identifies the stream instance.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- stream
Config StreamInstance Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- data
Process StreamRegion Instance 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 instance.
- instance
Name string - Human-readable label that identifies the stream instance.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- stream
Config StreamInstance Stream Config - Configuration options for an Atlas Stream Processing Instance. See stream config
- data_
process_ Streamregion Instance 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 instance.
- instance_
name str - Human-readable label that identifies the stream instance.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- stream_
config StreamInstance 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.
- hostnames List<String>
- List that contains the hostnames assigned to the stream instance.
- instance
Name String - Human-readable label that identifies the stream instance.
- 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
Supporting Types
StreamInstanceDataProcessRegion, StreamInstanceDataProcessRegionArgs
- 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.
StreamInstanceStreamConfig, StreamInstanceStreamConfigArgs
- Tier string
- Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- Tier string
- Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- tier String
- Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- tier string
- Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- tier str
- Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
- tier String
- Selected tier for the Stream Instance. Configures Memory / VCPU allowances. The MongoDB Atlas API describes the valid values.
Import
You can import stream instance resource using the project ID and instance name, in the format PROJECT_ID-INSTANCE_NAME
. For example:
$ pulumi import mongodbatlas:index/streamInstance:StreamInstance test 650972848269185c55f40ca1-InstanceName
To learn more, see: MongoDB Atlas API - Stream Instance Documentation. The Terraform Provider Examples Section also contains details on the overall support for Atlas Streams Processing in Terraform.
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.