MongoDB Atlas v3.20.4 published on Wednesday, Oct 30, 2024 by Pulumi
mongodbatlas.getStreamInstance
Explore with Pulumi AI
# Data Source: mongodbatlas.StreamInstance
mongodbatlas.StreamInstance
describes a stream instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const example = mongodbatlas.getStreamInstance({
projectId: "<PROJECT_ID>",
instanceName: "<INSTANCE_NAME>",
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
example = mongodbatlas.get_stream_instance(project_id="<PROJECT_ID>",
instance_name="<INSTANCE_NAME>")
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 {
_, err := mongodbatlas.LookupStreamInstance(ctx, &mongodbatlas.LookupStreamInstanceArgs{
ProjectId: "<PROJECT_ID>",
InstanceName: "<INSTANCE_NAME>",
}, nil)
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 = Mongodbatlas.GetStreamInstance.Invoke(new()
{
ProjectId = "<PROJECT_ID>",
InstanceName = "<INSTANCE_NAME>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetStreamInstanceArgs;
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) {
final var example = MongodbatlasFunctions.getStreamInstance(GetStreamInstanceArgs.builder()
.projectId("<PROJECT_ID>")
.instanceName("<INSTANCE_NAME>")
.build());
}
}
variables:
example:
fn::invoke:
Function: mongodbatlas:getStreamInstance
Arguments:
projectId: <PROJECT_ID>
instanceName: <INSTANCE_NAME>
Using getStreamInstance
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getStreamInstance(args: GetStreamInstanceArgs, opts?: InvokeOptions): Promise<GetStreamInstanceResult>
function getStreamInstanceOutput(args: GetStreamInstanceOutputArgs, opts?: InvokeOptions): Output<GetStreamInstanceResult>
def get_stream_instance(instance_name: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStreamInstanceResult
def get_stream_instance_output(instance_name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStreamInstanceResult]
func LookupStreamInstance(ctx *Context, args *LookupStreamInstanceArgs, opts ...InvokeOption) (*LookupStreamInstanceResult, error)
func LookupStreamInstanceOutput(ctx *Context, args *LookupStreamInstanceOutputArgs, opts ...InvokeOption) LookupStreamInstanceResultOutput
> Note: This function is named LookupStreamInstance
in the Go SDK.
public static class GetStreamInstance
{
public static Task<GetStreamInstanceResult> InvokeAsync(GetStreamInstanceArgs args, InvokeOptions? opts = null)
public static Output<GetStreamInstanceResult> Invoke(GetStreamInstanceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStreamInstanceResult> getStreamInstance(GetStreamInstanceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: mongodbatlas:index/getStreamInstance:getStreamInstance
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Name string - Human-readable label that identifies the stream instance.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- Instance
Name string - Human-readable label that identifies the stream instance.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- instance
Name String - Human-readable label that identifies the stream instance.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
- instance
Name string - Human-readable label that identifies the stream instance.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project.
- instance_
name str - Human-readable label that identifies the stream instance.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project.
- instance
Name String - Human-readable label that identifies the stream instance.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project.
getStreamInstance Result
The following output properties are available:
- Data
Process GetRegion Stream Instance Data Process Region - Defines the 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.
- Id string
- Instance
Name string - Project
Id string - Stream
Config GetStream Instance Stream Config - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- Data
Process GetRegion Stream Instance Data Process Region - Defines the 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.
- Id string
- Instance
Name string - Project
Id string - Stream
Config GetStream Instance Stream Config - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- data
Process GetRegion Stream Instance Data Process Region - Defines the 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.
- id String
- instance
Name String - project
Id String - stream
Config GetStream Instance Stream Config - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- data
Process GetRegion Stream Instance Data Process Region - Defines the 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.
- id string
- instance
Name string - project
Id string - stream
Config GetStream Instance Stream Config - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- data_
process_ Getregion Stream Instance Data Process Region - Defines the 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.
- id str
- instance_
name str - project_
id str - stream_
config GetStream Instance Stream Config - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
- data
Process Property MapRegion - Defines the 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.
- id String
- instance
Name String - project
Id String - stream
Config Property Map - Defines the configuration options for an Atlas Stream Processing Instance. See stream config
Supporting Types
GetStreamInstanceDataProcessRegion
- 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.
GetStreamInstanceStreamConfig
- 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.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlas
Terraform Provider.