astra.StreamingTenant
Explore with Pulumi AI
astra.StreamingTenant
creates an Astra Streaming tenant.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Astra = Pulumiverse.Astra;
return await Deployment.RunAsync(() =>
{
var streamingTenant_1 = new Astra.StreamingTenant("streamingTenant-1", new()
{
CloudProvider = "gcp",
Region = "useast-4",
TenantName = "terraformtest",
Topic = "terraformtest",
UserEmail = "seb@datastax.com",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-astra/sdk/go/astra"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := astra.NewStreamingTenant(ctx, "streamingTenant-1", &astra.StreamingTenantArgs{
CloudProvider: pulumi.String("gcp"),
Region: pulumi.String("useast-4"),
TenantName: pulumi.String("terraformtest"),
Topic: pulumi.String("terraformtest"),
UserEmail: pulumi.String("seb@datastax.com"),
})
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.astra.StreamingTenant;
import com.pulumi.astra.StreamingTenantArgs;
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 streamingTenant_1 = new StreamingTenant("streamingTenant-1", StreamingTenantArgs.builder()
.cloudProvider("gcp")
.region("useast-4")
.tenantName("terraformtest")
.topic("terraformtest")
.userEmail("seb@datastax.com")
.build());
}
}
import pulumi
import pulumiverse_astra as astra
streaming_tenant_1 = astra.StreamingTenant("streamingTenant-1",
cloud_provider="gcp",
region="useast-4",
tenant_name="terraformtest",
topic="terraformtest",
user_email="seb@datastax.com")
import * as pulumi from "@pulumi/pulumi";
import * as astra from "@pulumi/astra";
const streaming_tenant_1 = new astra.StreamingTenant("streaming_tenant-1", {
cloudProvider: "gcp",
region: "useast-4",
tenantName: "terraformtest",
topic: "terraformtest",
userEmail: "seb@datastax.com",
});
resources:
streamingTenant-1:
type: astra:StreamingTenant
properties:
cloudProvider: gcp
region: useast-4
tenantName: terraformtest
topic: terraformtest
userEmail: seb@datastax.com
Create StreamingTenant Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StreamingTenant(name: string, args: StreamingTenantArgs, opts?: CustomResourceOptions);
@overload
def StreamingTenant(resource_name: str,
args: StreamingTenantArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StreamingTenant(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_provider: Optional[str] = None,
region: Optional[str] = None,
tenant_name: Optional[str] = None,
topic: Optional[str] = None,
user_email: Optional[str] = None,
deletion_protection: Optional[bool] = None)
func NewStreamingTenant(ctx *Context, name string, args StreamingTenantArgs, opts ...ResourceOption) (*StreamingTenant, error)
public StreamingTenant(string name, StreamingTenantArgs args, CustomResourceOptions? opts = null)
public StreamingTenant(String name, StreamingTenantArgs args)
public StreamingTenant(String name, StreamingTenantArgs args, CustomResourceOptions options)
type: astra:StreamingTenant
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 StreamingTenantArgs
- 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 StreamingTenantArgs
- 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 StreamingTenantArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StreamingTenantArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StreamingTenantArgs
- 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 streamingTenantResource = new Astra.StreamingTenant("streamingTenantResource", new()
{
CloudProvider = "string",
Region = "string",
TenantName = "string",
Topic = "string",
UserEmail = "string",
DeletionProtection = false,
});
example, err := astra.NewStreamingTenant(ctx, "streamingTenantResource", &astra.StreamingTenantArgs{
CloudProvider: pulumi.String("string"),
Region: pulumi.String("string"),
TenantName: pulumi.String("string"),
Topic: pulumi.String("string"),
UserEmail: pulumi.String("string"),
DeletionProtection: pulumi.Bool(false),
})
var streamingTenantResource = new StreamingTenant("streamingTenantResource", StreamingTenantArgs.builder()
.cloudProvider("string")
.region("string")
.tenantName("string")
.topic("string")
.userEmail("string")
.deletionProtection(false)
.build());
streaming_tenant_resource = astra.StreamingTenant("streamingTenantResource",
cloud_provider="string",
region="string",
tenant_name="string",
topic="string",
user_email="string",
deletion_protection=False)
const streamingTenantResource = new astra.StreamingTenant("streamingTenantResource", {
cloudProvider: "string",
region: "string",
tenantName: "string",
topic: "string",
userEmail: "string",
deletionProtection: false,
});
type: astra:StreamingTenant
properties:
cloudProvider: string
deletionProtection: false
region: string
tenantName: string
topic: string
userEmail: string
StreamingTenant 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 StreamingTenant resource accepts the following input properties:
- Cloud
Provider string - Cloud provider
- Region string
- cloud region
- Tenant
Name string - Streaming tenant name.
- Topic string
- Streaming tenant topic.
- User
Email string - User email for tenant.
- Deletion
Protection bool - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
.
- Cloud
Provider string - Cloud provider
- Region string
- cloud region
- Tenant
Name string - Streaming tenant name.
- Topic string
- Streaming tenant topic.
- User
Email string - User email for tenant.
- Deletion
Protection bool - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
.
- cloud
Provider String - Cloud provider
- region String
- cloud region
- tenant
Name String - Streaming tenant name.
- topic String
- Streaming tenant topic.
- user
Email String - User email for tenant.
- deletion
Protection Boolean - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
.
- cloud
Provider string - Cloud provider
- region string
- cloud region
- tenant
Name string - Streaming tenant name.
- topic string
- Streaming tenant topic.
- user
Email string - User email for tenant.
- deletion
Protection boolean - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
.
- cloud_
provider str - Cloud provider
- region str
- cloud region
- tenant_
name str - Streaming tenant name.
- topic str
- Streaming tenant topic.
- user_
email str - User email for tenant.
- deletion_
protection bool - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
.
- cloud
Provider String - Cloud provider
- region String
- cloud region
- tenant
Name String - Streaming tenant name.
- topic String
- Streaming tenant topic.
- user
Email String - User email for tenant.
- deletion
Protection Boolean - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
.
Outputs
All input properties are implicitly available as output properties. Additionally, the StreamingTenant resource produces the following output properties:
- Broker
Service stringUrl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- Cluster
Name string - Pulsar cluster name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tenant
Id string - UUID for the tenant.
- User
Metrics stringUrl - URL for metrics.
- Web
Service stringUrl - URL used for administrative operations.
- Web
Socket stringQuery Param Url - URL used for web socket query parameter operations.
- Web
Socket stringUrl - URL used for web socket operations.
- Broker
Service stringUrl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- Cluster
Name string - Pulsar cluster name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tenant
Id string - UUID for the tenant.
- User
Metrics stringUrl - URL for metrics.
- Web
Service stringUrl - URL used for administrative operations.
- Web
Socket stringQuery Param Url - URL used for web socket query parameter operations.
- Web
Socket stringUrl - URL used for web socket operations.
- broker
Service StringUrl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- cluster
Name String - Pulsar cluster name.
- id String
- The provider-assigned unique ID for this managed resource.
- tenant
Id String - UUID for the tenant.
- user
Metrics StringUrl - URL for metrics.
- web
Service StringUrl - URL used for administrative operations.
- web
Socket StringQuery Param Url - URL used for web socket query parameter operations.
- web
Socket StringUrl - URL used for web socket operations.
- broker
Service stringUrl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- cluster
Name string - Pulsar cluster name.
- id string
- The provider-assigned unique ID for this managed resource.
- tenant
Id string - UUID for the tenant.
- user
Metrics stringUrl - URL for metrics.
- web
Service stringUrl - URL used for administrative operations.
- web
Socket stringQuery Param Url - URL used for web socket query parameter operations.
- web
Socket stringUrl - URL used for web socket operations.
- broker_
service_ strurl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- cluster_
name str - Pulsar cluster name.
- id str
- The provider-assigned unique ID for this managed resource.
- tenant_
id str - UUID for the tenant.
- user_
metrics_ strurl - URL for metrics.
- web_
service_ strurl - URL used for administrative operations.
- web_
socket_ strquery_ param_ url - URL used for web socket query parameter operations.
- web_
socket_ strurl - URL used for web socket operations.
- broker
Service StringUrl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- cluster
Name String - Pulsar cluster name.
- id String
- The provider-assigned unique ID for this managed resource.
- tenant
Id String - UUID for the tenant.
- user
Metrics StringUrl - URL for metrics.
- web
Service StringUrl - URL used for administrative operations.
- web
Socket StringQuery Param Url - URL used for web socket query parameter operations.
- web
Socket StringUrl - URL used for web socket operations.
Look up Existing StreamingTenant Resource
Get an existing StreamingTenant 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?: StreamingTenantState, opts?: CustomResourceOptions): StreamingTenant
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
broker_service_url: Optional[str] = None,
cloud_provider: Optional[str] = None,
cluster_name: Optional[str] = None,
deletion_protection: Optional[bool] = None,
region: Optional[str] = None,
tenant_id: Optional[str] = None,
tenant_name: Optional[str] = None,
topic: Optional[str] = None,
user_email: Optional[str] = None,
user_metrics_url: Optional[str] = None,
web_service_url: Optional[str] = None,
web_socket_query_param_url: Optional[str] = None,
web_socket_url: Optional[str] = None) -> StreamingTenant
func GetStreamingTenant(ctx *Context, name string, id IDInput, state *StreamingTenantState, opts ...ResourceOption) (*StreamingTenant, error)
public static StreamingTenant Get(string name, Input<string> id, StreamingTenantState? state, CustomResourceOptions? opts = null)
public static StreamingTenant get(String name, Output<String> id, StreamingTenantState 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.
- Broker
Service stringUrl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- Cloud
Provider string - Cloud provider
- Cluster
Name string - Pulsar cluster name.
- Deletion
Protection bool - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - Region string
- cloud region
- Tenant
Id string - UUID for the tenant.
- Tenant
Name string - Streaming tenant name.
- Topic string
- Streaming tenant topic.
- User
Email string - User email for tenant.
- User
Metrics stringUrl - URL for metrics.
- Web
Service stringUrl - URL used for administrative operations.
- Web
Socket stringQuery Param Url - URL used for web socket query parameter operations.
- Web
Socket stringUrl - URL used for web socket operations.
- Broker
Service stringUrl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- Cloud
Provider string - Cloud provider
- Cluster
Name string - Pulsar cluster name.
- Deletion
Protection bool - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - Region string
- cloud region
- Tenant
Id string - UUID for the tenant.
- Tenant
Name string - Streaming tenant name.
- Topic string
- Streaming tenant topic.
- User
Email string - User email for tenant.
- User
Metrics stringUrl - URL for metrics.
- Web
Service stringUrl - URL used for administrative operations.
- Web
Socket stringQuery Param Url - URL used for web socket query parameter operations.
- Web
Socket stringUrl - URL used for web socket operations.
- broker
Service StringUrl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- cloud
Provider String - Cloud provider
- cluster
Name String - Pulsar cluster name.
- deletion
Protection Boolean - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - region String
- cloud region
- tenant
Id String - UUID for the tenant.
- tenant
Name String - Streaming tenant name.
- topic String
- Streaming tenant topic.
- user
Email String - User email for tenant.
- user
Metrics StringUrl - URL for metrics.
- web
Service StringUrl - URL used for administrative operations.
- web
Socket StringQuery Param Url - URL used for web socket query parameter operations.
- web
Socket StringUrl - URL used for web socket operations.
- broker
Service stringUrl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- cloud
Provider string - Cloud provider
- cluster
Name string - Pulsar cluster name.
- deletion
Protection boolean - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - region string
- cloud region
- tenant
Id string - UUID for the tenant.
- tenant
Name string - Streaming tenant name.
- topic string
- Streaming tenant topic.
- user
Email string - User email for tenant.
- user
Metrics stringUrl - URL for metrics.
- web
Service stringUrl - URL used for administrative operations.
- web
Socket stringQuery Param Url - URL used for web socket query parameter operations.
- web
Socket stringUrl - URL used for web socket operations.
- broker_
service_ strurl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- cloud_
provider str - Cloud provider
- cluster_
name str - Pulsar cluster name.
- deletion_
protection bool - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - region str
- cloud region
- tenant_
id str - UUID for the tenant.
- tenant_
name str - Streaming tenant name.
- topic str
- Streaming tenant topic.
- user_
email str - User email for tenant.
- user_
metrics_ strurl - URL for metrics.
- web_
service_ strurl - URL used for administrative operations.
- web_
socket_ strquery_ param_ url - URL used for web socket query parameter operations.
- web_
socket_ strurl - URL used for web socket operations.
- broker
Service StringUrl - The Pulsar Binary Protocol URL used for production and consumption of messages.
- cloud
Provider String - Cloud provider
- cluster
Name String - Pulsar cluster name.
- deletion
Protection Boolean - Whether or not to allow Terraform to destroy this tenant. Unless this field is set to false in Terraform state, a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - region String
- cloud region
- tenant
Id String - UUID for the tenant.
- tenant
Name String - Streaming tenant name.
- topic String
- Streaming tenant topic.
- user
Email String - User email for tenant.
- user
Metrics StringUrl - URL for metrics.
- web
Service StringUrl - URL used for administrative operations.
- web
Socket StringQuery Param Url - URL used for web socket query parameter operations.
- web
Socket StringUrl - URL used for web socket operations.
Import
$ pulumi import astra:index/streamingTenant:StreamingTenant example tenant_name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- astra pulumiverse/pulumi-astra
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
astra
Terraform Provider.