import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to look up a specific [v3 schedule](https://developer.pagerduty.com/api-reference/e792b51909787-create-a-schedule) by name so you can reference its ID in other resources such as escalation policies. * * > **Note:** This data source requires the `flexible-schedules-early-access` early access flag on your PagerDuty account. The required `X-Early-Access` header is sent automatically by the provider. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const oncall = pagerduty.getSchedulev2({ * name: "Engineering On-Call", * }); * const example = new pagerduty.EscalationPolicy("example", { * name: "Engineering Escalation Policy", * numLoops: 2, * rules: [{ * escalationDelayInMinutes: 10, * targets: [{ * type: "schedule_reference", * id: oncall.then(oncall => oncall.id), * }], * }], * }); * ``` */ export declare function getSchedulev2(args: GetSchedulev2Args, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSchedulev2. */ export interface GetSchedulev2Args { /** * The exact name of the v3 schedule to look up. */ name: string; } /** * A collection of values returned by getSchedulev2. */ export interface GetSchedulev2Result { /** * The ID of the found schedule. */ readonly id: string; /** * The name of the found schedule. */ readonly name: string; } /** * Use this data source to look up a specific [v3 schedule](https://developer.pagerduty.com/api-reference/e792b51909787-create-a-schedule) by name so you can reference its ID in other resources such as escalation policies. * * > **Note:** This data source requires the `flexible-schedules-early-access` early access flag on your PagerDuty account. The required `X-Early-Access` header is sent automatically by the provider. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pagerduty from "@pulumi/pagerduty"; * * const oncall = pagerduty.getSchedulev2({ * name: "Engineering On-Call", * }); * const example = new pagerduty.EscalationPolicy("example", { * name: "Engineering Escalation Policy", * numLoops: 2, * rules: [{ * escalationDelayInMinutes: 10, * targets: [{ * type: "schedule_reference", * id: oncall.then(oncall => oncall.id), * }], * }], * }); * ``` */ export declare function getSchedulev2Output(args: GetSchedulev2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSchedulev2. */ export interface GetSchedulev2OutputArgs { /** * The exact name of the v3 schedule to look up. */ name: pulumi.Input; }