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 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:
- Schedule
Id string
- Schedule
Id string
- schedule
Id String
- schedule
Id string
- schedule_
id str
- schedule
Id String
getQStashSchedule Result
The following output properties are available:
- Body string
- Created
At int - Cron string
- Destination string
- Forward
Headers Dictionary<string, string> - Id string
- The provider-assigned unique ID for this managed resource.
- Not
Before int - Retries int
- Schedule
Id string
- Body string
- Created
At int - Cron string
- Destination string
- Forward
Headers map[string]string - Id string
- The provider-assigned unique ID for this managed resource.
- Not
Before int - Retries int
- Schedule
Id string
- body String
- created
At Integer - cron String
- destination String
- forward
Headers Map<String,String> - id String
- The provider-assigned unique ID for this managed resource.
- not
Before Integer - retries Integer
- schedule
Id String
- body string
- created
At number - cron string
- destination string
- forward
Headers {[key: string]: string} - id string
- The provider-assigned unique ID for this managed resource.
- not
Before number - retries number
- schedule
Id 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
- created
At Number - cron String
- destination String
- forward
Headers Map<String> - id String
- The provider-assigned unique ID for this managed resource.
- not
Before Number - retries Number
- schedule
Id String
Package Details
- Repository
- upstash upstash/pulumi-upstash
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upstash
Terraform Provider.