Upstash v0.2.0 published on Wednesday, May 24, 2023 by Upstash
upstash.QStashTopic
Explore with Pulumi AI
Example Usage
using Pulumi;
using Upstash = Pulumi.Upstash;
class MyStack : Stack
{
public MyStack()
{
var exampleQstashTopic = new Upstash.QStashTopic("exampleQstashTopic", new Upstash.QStashTopicArgs
{
});
}
}
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/upstash/pulumi-upstash/sdk/go/upstash"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := upstash.NewQStashTopic(ctx, "exampleQstashTopic", nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleQstashTopic = new QStashTopic("exampleQstashTopic");
}
}
import pulumi
import upstash_pulumi as upstash
example_qstash_topic = upstash.QStashTopic("exampleQstashTopic")
import * as pulumi from "@pulumi/pulumi";
import * as upstash from "@pulumi/upstash";
const exampleQstashTopic = new upstash.QStashTopic("exampleQstashTopic", {});
resources:
exampleQstashTopic:
type: upstash:QStashTopic
Create QStashTopic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new QStashTopic(name: string, args?: QStashTopicArgs, opts?: CustomResourceOptions);
@overload
def QStashTopic(resource_name: str,
args: Optional[QStashTopicArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def QStashTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None)
func NewQStashTopic(ctx *Context, name string, args *QStashTopicArgs, opts ...ResourceOption) (*QStashTopic, error)
public QStashTopic(string name, QStashTopicArgs? args = null, CustomResourceOptions? opts = null)
public QStashTopic(String name, QStashTopicArgs args)
public QStashTopic(String name, QStashTopicArgs args, CustomResourceOptions options)
type: upstash:QStashTopic
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 QStashTopicArgs
- 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 QStashTopicArgs
- 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 QStashTopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args QStashTopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args QStashTopicArgs
- 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 qstashTopicResource = new Upstash.QStashTopic("qstashTopicResource", new()
{
Name = "string",
});
example, err := upstash.NewQStashTopic(ctx, "qstashTopicResource", &upstash.QStashTopicArgs{
Name: pulumi.String("string"),
})
var qstashTopicResource = new QStashTopic("qstashTopicResource", QStashTopicArgs.builder()
.name("string")
.build());
qstash_topic_resource = upstash.QStashTopic("qstashTopicResource", name="string")
const qstashTopicResource = new upstash.QStashTopic("qstashTopicResource", {name: "string"});
type: upstash:QStashTopic
properties:
name: string
QStashTopic 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 QStashTopic resource accepts the following input properties:
- Name string
- Name of the Qstash Topic
- Name string
- Name of the Qstash Topic
- name String
- Name of the Qstash Topic
- name string
- Name of the Qstash Topic
- name str
- Name of the Qstash Topic
- name String
- Name of the Qstash Topic
Outputs
All input properties are implicitly available as output properties. Additionally, the QStashTopic resource produces the following output properties:
Look up Existing QStashTopic Resource
Get an existing QStashTopic 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?: QStashTopicState, opts?: CustomResourceOptions): QStashTopic
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
endpoints: Optional[Sequence[Mapping[str, str]]] = None,
name: Optional[str] = None,
topic_id: Optional[str] = None) -> QStashTopic
func GetQStashTopic(ctx *Context, name string, id IDInput, state *QStashTopicState, opts ...ResourceOption) (*QStashTopic, error)
public static QStashTopic Get(string name, Input<string> id, QStashTopicState? state, CustomResourceOptions? opts = null)
public static QStashTopic get(String name, Output<String> id, QStashTopicState 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.
Package Details
- Repository
- upstash upstash/pulumi-upstash
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upstash
Terraform Provider.