astra.StreamingTopic
Explore with Pulumi AI
astra.StreamingTopic
creates an Astra Streaming topic.
Create StreamingTopic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StreamingTopic(name: string, args: StreamingTopicArgs, opts?: CustomResourceOptions);
@overload
def StreamingTopic(resource_name: str,
args: StreamingTopicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def StreamingTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_provider: Optional[str] = None,
namespace: Optional[str] = None,
region: Optional[str] = None,
tenant_name: Optional[str] = None,
topic: Optional[str] = None,
deletion_protection: Optional[bool] = None)
func NewStreamingTopic(ctx *Context, name string, args StreamingTopicArgs, opts ...ResourceOption) (*StreamingTopic, error)
public StreamingTopic(string name, StreamingTopicArgs args, CustomResourceOptions? opts = null)
public StreamingTopic(String name, StreamingTopicArgs args)
public StreamingTopic(String name, StreamingTopicArgs args, CustomResourceOptions options)
type: astra:StreamingTopic
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. StreamingTopicArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. StreamingTopicArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. StreamingTopicArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. StreamingTopicArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. StreamingTopicArgs - 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 streamingTopicResource = new Astra.StreamingTopic("streamingTopicResource", new()
{
CloudProvider = "string",
Namespace = "string",
Region = "string",
TenantName = "string",
Topic = "string",
DeletionProtection = false,
});
example, err := astra.NewStreamingTopic(ctx, "streamingTopicResource", &astra.StreamingTopicArgs{
CloudProvider: pulumi.String("string"),
Namespace: pulumi.String("string"),
Region: pulumi.String("string"),
TenantName: pulumi.String("string"),
Topic: pulumi.String("string"),
DeletionProtection: pulumi.Bool(false),
})
var streamingTopicResource = new StreamingTopic("streamingTopicResource", StreamingTopicArgs.builder()
.cloudProvider("string")
.namespace("string")
.region("string")
.tenantName("string")
.topic("string")
.deletionProtection(false)
.build());
streaming_topic_resource = astra.StreamingTopic("streamingTopicResource",
cloud_provider="string",
namespace="string",
region="string",
tenant_name="string",
topic="string",
deletion_protection=False)
const streamingTopicResource = new astra.StreamingTopic("streamingTopicResource", {
cloudProvider: "string",
namespace: "string",
region: "string",
tenantName: "string",
topic: "string",
deletionProtection: false,
});
type: astra:StreamingTopic
properties:
cloudProvider: string
deletionProtection: false
namespace: string
region: string
tenantName: string
topic: string
StreamingTopic 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 StreamingTopic resource accepts the following input properties:
- Cloud
Provider This property is required. Changes to this property will trigger replacement.
- Cloud provider
- Namespace
This property is required. Changes to this property will trigger replacement.
- Pulsar Namespace
- Region
This property is required. Changes to this property will trigger replacement.
- cloud region
- Tenant
Name This property is required. Changes to this property will trigger replacement.
- Streaming tenant name.
- Topic
This property is required. Changes to this property will trigger replacement.
- Streaming tenant topic.
- Deletion
Protection bool - Whether or not to allow Terraform to destroy this streaming topic. 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 This property is required. Changes to this property will trigger replacement.
- Cloud provider
- Namespace
This property is required. Changes to this property will trigger replacement.
- Pulsar Namespace
- Region
This property is required. Changes to this property will trigger replacement.
- cloud region
- Tenant
Name This property is required. Changes to this property will trigger replacement.
- Streaming tenant name.
- Topic
This property is required. Changes to this property will trigger replacement.
- Streaming tenant topic.
- Deletion
Protection bool - Whether or not to allow Terraform to destroy this streaming topic. 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 This property is required. Changes to this property will trigger replacement.
- Cloud provider
- namespace
This property is required. Changes to this property will trigger replacement.
- Pulsar Namespace
- region
This property is required. Changes to this property will trigger replacement.
- cloud region
- tenant
Name This property is required. Changes to this property will trigger replacement.
- Streaming tenant name.
- topic
This property is required. Changes to this property will trigger replacement.
- Streaming tenant topic.
- deletion
Protection Boolean - Whether or not to allow Terraform to destroy this streaming topic. 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 This property is required. Changes to this property will trigger replacement.
- Cloud provider
- namespace
This property is required. Changes to this property will trigger replacement.
- Pulsar Namespace
- region
This property is required. Changes to this property will trigger replacement.
- cloud region
- tenant
Name This property is required. Changes to this property will trigger replacement.
- Streaming tenant name.
- topic
This property is required. Changes to this property will trigger replacement.
- Streaming tenant topic.
- deletion
Protection boolean - Whether or not to allow Terraform to destroy this streaming topic. 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 This property is required. Changes to this property will trigger replacement.
- Cloud provider
- namespace
This property is required. Changes to this property will trigger replacement.
- Pulsar Namespace
- region
This property is required. Changes to this property will trigger replacement.
- cloud region
- tenant_
name This property is required. Changes to this property will trigger replacement.
- Streaming tenant name.
- topic
This property is required. Changes to this property will trigger replacement.
- Streaming tenant topic.
- deletion_
protection bool - Whether or not to allow Terraform to destroy this streaming topic. 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 This property is required. Changes to this property will trigger replacement.
- Cloud provider
- namespace
This property is required. Changes to this property will trigger replacement.
- Pulsar Namespace
- region
This property is required. Changes to this property will trigger replacement.
- cloud region
- tenant
Name This property is required. Changes to this property will trigger replacement.
- Streaming tenant name.
- topic
This property is required. Changes to this property will trigger replacement.
- Streaming tenant topic.
- deletion
Protection Boolean - Whether or not to allow Terraform to destroy this streaming topic. 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 StreamingTopic resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing StreamingTopic Resource
Get an existing StreamingTopic 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?: StreamingTopicState, opts?: CustomResourceOptions): StreamingTopic
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_provider: Optional[str] = None,
deletion_protection: Optional[bool] = None,
namespace: Optional[str] = None,
region: Optional[str] = None,
tenant_name: Optional[str] = None,
topic: Optional[str] = None) -> StreamingTopic
func GetStreamingTopic(ctx *Context, name string, id IDInput, state *StreamingTopicState, opts ...ResourceOption) (*StreamingTopic, error)
public static StreamingTopic Get(string name, Input<string> id, StreamingTopicState? state, CustomResourceOptions? opts = null)
public static StreamingTopic get(String name, Output<String> id, StreamingTopicState state, CustomResourceOptions options)
resources: _: type: astra:StreamingTopic get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Cloud
Provider Changes to this property will trigger replacement.
- Cloud provider
- Deletion
Protection bool - Whether or not to allow Terraform to destroy this streaming topic. Unless this field is set to false in Terraform state,
a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - Namespace
Changes to this property will trigger replacement.
- Pulsar Namespace
- Region
Changes to this property will trigger replacement.
- cloud region
- Tenant
Name Changes to this property will trigger replacement.
- Streaming tenant name.
- Topic
Changes to this property will trigger replacement.
- Streaming tenant topic.
- Cloud
Provider Changes to this property will trigger replacement.
- Cloud provider
- Deletion
Protection bool - Whether or not to allow Terraform to destroy this streaming topic. Unless this field is set to false in Terraform state,
a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - Namespace
Changes to this property will trigger replacement.
- Pulsar Namespace
- Region
Changes to this property will trigger replacement.
- cloud region
- Tenant
Name Changes to this property will trigger replacement.
- Streaming tenant name.
- Topic
Changes to this property will trigger replacement.
- Streaming tenant topic.
- cloud
Provider Changes to this property will trigger replacement.
- Cloud provider
- deletion
Protection Boolean - Whether or not to allow Terraform to destroy this streaming topic. Unless this field is set to false in Terraform state,
a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - namespace
Changes to this property will trigger replacement.
- Pulsar Namespace
- region
Changes to this property will trigger replacement.
- cloud region
- tenant
Name Changes to this property will trigger replacement.
- Streaming tenant name.
- topic
Changes to this property will trigger replacement.
- Streaming tenant topic.
- cloud
Provider Changes to this property will trigger replacement.
- Cloud provider
- deletion
Protection boolean - Whether or not to allow Terraform to destroy this streaming topic. Unless this field is set to false in Terraform state,
a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - namespace
Changes to this property will trigger replacement.
- Pulsar Namespace
- region
Changes to this property will trigger replacement.
- cloud region
- tenant
Name Changes to this property will trigger replacement.
- Streaming tenant name.
- topic
Changes to this property will trigger replacement.
- Streaming tenant topic.
- cloud_
provider Changes to this property will trigger replacement.
- Cloud provider
- deletion_
protection bool - Whether or not to allow Terraform to destroy this streaming topic. Unless this field is set to false in Terraform state,
a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - namespace
Changes to this property will trigger replacement.
- Pulsar Namespace
- region
Changes to this property will trigger replacement.
- cloud region
- tenant_
name Changes to this property will trigger replacement.
- Streaming tenant name.
- topic
Changes to this property will trigger replacement.
- Streaming tenant topic.
- cloud
Provider Changes to this property will trigger replacement.
- Cloud provider
- deletion
Protection Boolean - Whether or not to allow Terraform to destroy this streaming topic. Unless this field is set to false in Terraform state,
a
terraform destroy
orterraform apply
command that deletes the instance will fail. Defaults totrue
. - namespace
Changes to this property will trigger replacement.
- Pulsar Namespace
- region
Changes to this property will trigger replacement.
- cloud region
- tenant
Name Changes to this property will trigger replacement.
- Streaming tenant name.
- topic
Changes to this property will trigger replacement.
- Streaming tenant topic.
Package Details
- Repository
- astra pulumiverse/pulumi-astra
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
astra
Terraform Provider.