1. Packages
  2. Upstash
  3. API Docs
  4. QStashEndpoint
Upstash v0.2.0 published on Wednesday, May 24, 2023 by Upstash

upstash.QStashEndpoint

Explore with Pulumi AI

upstash logo
Upstash v0.2.0 published on Wednesday, May 24, 2023 by Upstash

    Example Usage

    using Pulumi;
    using Upstash = Pulumi.Upstash;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleQstashEndpoint = new Upstash.QStashEndpoint("exampleQstashEndpoint", new Upstash.QStashEndpointArgs
            {
                Url = "https://***.***",
                TopicId = resource.Upstash_qstash_topic.ExampleQstashTopic.Topic_id,
            });
        }
    
    }
    
    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.NewQStashEndpoint(ctx, "exampleQstashEndpoint", &upstash.QStashEndpointArgs{
    			Url:     pulumi.String("https://***.***"),
    			TopicId: pulumi.Any(resource.Upstash_qstash_topic.ExampleQstashTopic.Topic_id),
    		})
    		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 exampleQstashEndpoint = new QStashEndpoint("exampleQstashEndpoint", QStashEndpointArgs.builder()        
                .url("https://***.***")
                .topicId(resource.upstash_qstash_topic().exampleQstashTopic().topic_id())
                .build());
    
        }
    }
    
    import pulumi
    import upstash_pulumi as upstash
    
    example_qstash_endpoint = upstash.QStashEndpoint("exampleQstashEndpoint",
        url="https://***.***",
        topic_id=resource["upstash_qstash_topic"]["exampleQstashTopic"]["topic_id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as pulumi from "@upstash/pulumi";
    
    const exampleQstashEndpoint = new upstash.QStashEndpoint("exampleQstashEndpoint", {
        url: "https://***.***",
        topicId: resource.upstash_qstash_topic.exampleQstashTopic.topic_id,
    });
    
    resources:
      exampleQstashEndpoint:
        type: upstash:QStashEndpoint
        properties:
          url: https://***.***
          topicId: ${resource.upstash_qstash_topic.exampleQstashTopic.topic_id}
    

    Create QStashEndpoint Resource

    new QStashEndpoint(name: string, args: QStashEndpointArgs, opts?: CustomResourceOptions);
    @overload
    def QStashEndpoint(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       topic_id: Optional[str] = None,
                       url: Optional[str] = None)
    @overload
    def QStashEndpoint(resource_name: str,
                       args: QStashEndpointArgs,
                       opts: Optional[ResourceOptions] = None)
    func NewQStashEndpoint(ctx *Context, name string, args QStashEndpointArgs, opts ...ResourceOption) (*QStashEndpoint, error)
    public QStashEndpoint(string name, QStashEndpointArgs args, CustomResourceOptions? opts = null)
    public QStashEndpoint(String name, QStashEndpointArgs args)
    public QStashEndpoint(String name, QStashEndpointArgs args, CustomResourceOptions options)
    
    type: upstash:QStashEndpoint
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args QStashEndpointArgs
    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 QStashEndpointArgs
    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 QStashEndpointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args QStashEndpointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args QStashEndpointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    QStashEndpoint 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 QStashEndpoint resource accepts the following input properties:

    TopicId string
    Topic Id that the endpoint is added to
    Url string
    URL of the endpoint
    TopicId string
    Topic Id that the endpoint is added to
    Url string
    URL of the endpoint
    topicId String
    Topic Id that the endpoint is added to
    url String
    URL of the endpoint
    topicId string
    Topic Id that the endpoint is added to
    url string
    URL of the endpoint
    topic_id str
    Topic Id that the endpoint is added to
    url str
    URL of the endpoint
    topicId String
    Topic Id that the endpoint is added to
    url String
    URL of the endpoint

    Outputs

    All input properties are implicitly available as output properties. Additionally, the QStashEndpoint resource produces the following output properties:

    EndpointId string
    Unique Qstash Endpoint ID
    Id string
    The provider-assigned unique ID for this managed resource.
    TopicName string
    Unique Qstash Topic Name for Endpoint
    EndpointId string
    Unique Qstash Endpoint ID
    Id string
    The provider-assigned unique ID for this managed resource.
    TopicName string
    Unique Qstash Topic Name for Endpoint
    endpointId String
    Unique Qstash Endpoint ID
    id String
    The provider-assigned unique ID for this managed resource.
    topicName String
    Unique Qstash Topic Name for Endpoint
    endpointId string
    Unique Qstash Endpoint ID
    id string
    The provider-assigned unique ID for this managed resource.
    topicName string
    Unique Qstash Topic Name for Endpoint
    endpoint_id str
    Unique Qstash Endpoint ID
    id str
    The provider-assigned unique ID for this managed resource.
    topic_name str
    Unique Qstash Topic Name for Endpoint
    endpointId String
    Unique Qstash Endpoint ID
    id String
    The provider-assigned unique ID for this managed resource.
    topicName String
    Unique Qstash Topic Name for Endpoint

    Look up Existing QStashEndpoint Resource

    Get an existing QStashEndpoint 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?: QStashEndpointState, opts?: CustomResourceOptions): QStashEndpoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            endpoint_id: Optional[str] = None,
            topic_id: Optional[str] = None,
            topic_name: Optional[str] = None,
            url: Optional[str] = None) -> QStashEndpoint
    func GetQStashEndpoint(ctx *Context, name string, id IDInput, state *QStashEndpointState, opts ...ResourceOption) (*QStashEndpoint, error)
    public static QStashEndpoint Get(string name, Input<string> id, QStashEndpointState? state, CustomResourceOptions? opts = null)
    public static QStashEndpoint get(String name, Output<String> id, QStashEndpointState 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.
    The following state arguments are supported:
    EndpointId string
    Unique Qstash Endpoint ID
    TopicId string
    Topic Id that the endpoint is added to
    TopicName string
    Unique Qstash Topic Name for Endpoint
    Url string
    URL of the endpoint
    EndpointId string
    Unique Qstash Endpoint ID
    TopicId string
    Topic Id that the endpoint is added to
    TopicName string
    Unique Qstash Topic Name for Endpoint
    Url string
    URL of the endpoint
    endpointId String
    Unique Qstash Endpoint ID
    topicId String
    Topic Id that the endpoint is added to
    topicName String
    Unique Qstash Topic Name for Endpoint
    url String
    URL of the endpoint
    endpointId string
    Unique Qstash Endpoint ID
    topicId string
    Topic Id that the endpoint is added to
    topicName string
    Unique Qstash Topic Name for Endpoint
    url string
    URL of the endpoint
    endpoint_id str
    Unique Qstash Endpoint ID
    topic_id str
    Topic Id that the endpoint is added to
    topic_name str
    Unique Qstash Topic Name for Endpoint
    url str
    URL of the endpoint
    endpointId String
    Unique Qstash Endpoint ID
    topicId String
    Topic Id that the endpoint is added to
    topicName String
    Unique Qstash Topic Name for Endpoint
    url String
    URL of the endpoint

    Package Details

    Repository
    upstash upstash/pulumi-upstash
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the upstash Terraform Provider.
    upstash logo
    Upstash v0.2.0 published on Wednesday, May 24, 2023 by Upstash