Upstash v0.3.14 published on Friday, Aug 9, 2024 by Upstash
upstash.getQStashSchedule
Explore with Pulumi AI
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 * as pulumi from "@pulumi/pulumi";
import * as upstash from "@pulumi/upstash";
const exampleQstashScheduleData = upstash.getQStashSchedule({
    scheduleId: resource.upstash_qstash_schedule.exampleQstashSchedule.schedule_id,
});
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"])
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)
public static Output<GetQStashScheduleResult> getQStashSchedule(GetQStashScheduleArgs args, InvokeOptions options)
fn::invoke:
  function: upstash:index/getQStashSchedule:getQStashSchedule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ScheduleId string
- ScheduleId string
- scheduleId String
- scheduleId string
- schedule_id str
- 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 upstashTerraform Provider.