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

upstash.getQStashSchedule

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 exampleQstashScheduleData = Output.Create(Upstash.GetQStashSchedule.InvokeAsync(new Upstash.GetQStashScheduleArgs
            {
                ScheduleId = resource.Upstash_qstash_schedule.ExampleQstashSchedule.Schedule_id,
            }));
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-upstash/sdk/go/upstash"
    	"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.LookupQStashSchedule(ctx, &GetQStashScheduleArgs{
    			ScheduleId: resource.Upstash_qstash_schedule.ExampleQstashSchedule.Schedule_id,
    		}, 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) {
            final var exampleQstashScheduleData = Output.of(UpstashFunctions.getQStashSchedule(GetQStashScheduleArgs.builder()
                .scheduleId(resource.upstash_qstash_schedule().exampleQstashSchedule().schedule_id())
                .build()));
    
        }
    }
    
    import pulumi
    import pulumi_upstash as upstash
    
    example_qstash_schedule_data = upstash.get_q_stash_schedule(schedule_id=resource["upstash_qstash_schedule"]["exampleQstashSchedule"]["schedule_id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as upstash from "@pulumi/upstash";
    
    const exampleQstashScheduleData = upstash.getQStashSchedule({
        scheduleId: resource.upstash_qstash_schedule.exampleQstashSchedule.schedule_id,
    });
    
    variables:
      exampleQstashScheduleData:
        Fn::Invoke:
          Function: upstash:getQStashSchedule
          Arguments:
            scheduleId: ${resource.upstash_qstash_schedule.exampleQstashSchedule.schedule_id}
    

    Using getQStashSchedule

    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 getQStashSchedule(args: GetQStashScheduleArgs, opts?: InvokeOptions): Promise<GetQStashScheduleResult>
    function getQStashScheduleOutput(args: GetQStashScheduleOutputArgs, opts?: InvokeOptions): Output<GetQStashScheduleResult>
    def get_q_stash_schedule(schedule_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetQStashScheduleResult
    def get_q_stash_schedule_output(schedule_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetQStashScheduleResult]
    func LookupQStashSchedule(ctx *Context, args *LookupQStashScheduleArgs, opts ...InvokeOption) (*LookupQStashScheduleResult, error)
    func LookupQStashScheduleOutput(ctx *Context, args *LookupQStashScheduleOutputArgs, opts ...InvokeOption) LookupQStashScheduleResultOutput

    > Note: This function is named LookupQStashSchedule in the Go SDK.

    public static class GetQStashSchedule 
    {
        public static Task<GetQStashScheduleResult> InvokeAsync(GetQStashScheduleArgs args, InvokeOptions? opts = null)
        public static Output<GetQStashScheduleResult> Invoke(GetQStashScheduleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetQStashScheduleResult> getQStashSchedule(GetQStashScheduleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: upstash:index/getQStashSchedule:getQStashSchedule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ScheduleId string
    ScheduleId string
    scheduleId String
    scheduleId string
    scheduleId String

    getQStashSchedule Result

    The following output properties are available:

    Body string
    CreatedAt int
    Cron string
    Destination string
    ForwardHeaders Dictionary<string, string>
    Id string
    The provider-assigned unique ID for this managed resource.
    NotBefore int
    Retries int
    ScheduleId string
    Body string
    CreatedAt int
    Cron string
    Destination string
    ForwardHeaders map[string]string
    Id string
    The provider-assigned unique ID for this managed resource.
    NotBefore int
    Retries int
    ScheduleId string
    body String
    createdAt Integer
    cron String
    destination String
    forwardHeaders Map<String,String>
    id String
    The provider-assigned unique ID for this managed resource.
    notBefore Integer
    retries Integer
    scheduleId String
    body string
    createdAt number
    cron string
    destination string
    forwardHeaders {[key: string]: string}
    id string
    The provider-assigned unique ID for this managed resource.
    notBefore number
    retries number
    scheduleId string
    body str
    created_at int
    cron str
    destination str
    forward_headers Mapping[str, str]
    id str
    The provider-assigned unique ID for this managed resource.
    not_before int
    retries int
    schedule_id str
    body String
    createdAt Number
    cron String
    destination String
    forwardHeaders Map<String>
    id String
    The provider-assigned unique ID for this managed resource.
    notBefore Number
    retries Number
    scheduleId String

    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