import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog Fleet Automation Agent upgrade schedule. Schedule mutations use Preview API endpoints and require an application key with the `agentUpgradeWrite` and `hostsRead` permissions. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Fleet schedule mutations use Preview API endpoints. The application key must * // have both the agent_upgrade_write and hosts_read permissions. * const nonproduction = new datadog.FleetSchedule("nonproduction", { * name: "Non-production Agent upgrades", * query: "env:staging service:example", * status: "inactive", * versionToLatest: 1, * rule: { * days_of_week: [ * "Tue", * "Thu", * ], * maintenance_window_duration: 120, * start_maintenance_window: "03:00", * timezone: "America/New_York", * }, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import datadog:index/fleetSchedule:FleetSchedule nonproduction "" * ``` */ export declare class FleetSchedule extends pulumi.CustomResource { /** * Get an existing FleetSchedule resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FleetScheduleState, opts?: pulumi.CustomResourceOptions): FleetSchedule; /** * Check whether an existing FleetSchedule resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: FleetScheduleState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of FleetSchedule. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is FleetSchedule; /** * Human-readable name for the schedule. String length must be at least 1. */ readonly name: pulumi.Output; /** * Datadog host query used to select the Agent upgrade targets. String length must be at least 1. */ readonly query: pulumi.Output; /** * Weekly recurrence and maintenance-window configuration for the schedule. */ readonly rule: pulumi.Output; /** * Whether the schedule creates deployments. Valid values are `active` and `inactive`. The API default is used when omitted. Valid values are `active`, `inactive`. */ readonly status: pulumi.Output; /** * Number of major Agent versions behind the latest version to target: `0`, `1`, or `2`. The API default is used when omitted. Value must be between 0 and 2. */ readonly versionToLatest: pulumi.Output; /** * Create a FleetSchedule resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: FleetScheduleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FleetSchedule resources. */ export interface FleetScheduleState { /** * Human-readable name for the schedule. String length must be at least 1. */ name?: pulumi.Input; /** * Datadog host query used to select the Agent upgrade targets. String length must be at least 1. */ query?: pulumi.Input; /** * Weekly recurrence and maintenance-window configuration for the schedule. */ rule?: pulumi.Input; /** * Whether the schedule creates deployments. Valid values are `active` and `inactive`. The API default is used when omitted. Valid values are `active`, `inactive`. */ status?: pulumi.Input; /** * Number of major Agent versions behind the latest version to target: `0`, `1`, or `2`. The API default is used when omitted. Value must be between 0 and 2. */ versionToLatest?: pulumi.Input; } /** * The set of arguments for constructing a FleetSchedule resource. */ export interface FleetScheduleArgs { /** * Human-readable name for the schedule. String length must be at least 1. */ name: pulumi.Input; /** * Datadog host query used to select the Agent upgrade targets. String length must be at least 1. */ query: pulumi.Input; /** * Weekly recurrence and maintenance-window configuration for the schedule. */ rule: pulumi.Input; /** * Whether the schedule creates deployments. Valid values are `active` and `inactive`. The API default is used when omitted. Valid values are `active`, `inactive`. */ status?: pulumi.Input; /** * Number of major Agent versions behind the latest version to target: `0`, `1`, or `2`. The API default is used when omitted. Value must be between 0 and 2. */ versionToLatest?: pulumi.Input; } //# sourceMappingURL=fleetSchedule.d.ts.map