import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Data Source schema for Volcengine::ECS::Invocation */ export declare function getInvocation(args: GetInvocationArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getInvocation. */ export interface GetInvocationArgs { /** * Uniquely identifies the resource. */ id: string; } /** * A collection of values returned by getInvocation. */ export interface GetInvocationResult { /** * Command content. */ readonly commandContent: string; /** * Description of the invoked command. */ readonly commandDescription: string; /** * Command ID. */ readonly commandId: string; /** * Command name when the task is triggered. */ readonly commandName: string; /** * Provider of the invoked command. */ readonly commandProvider: string; /** * Command type triggered by the job. */ readonly commandType: string; /** * Whether the invoked command uses custom parameters. true: enabled. false: not enabled. */ readonly enableParameter: boolean; /** * Task end time. */ readonly endTime: string; /** * Execution frequency. This parameter is required when RepeatMode=Rate. Format: \n\n\n\n. Interval units supported: minutes (5m–60m), hours (1h–24h), and days (1d–7d). The interval is based on a fixed frequency and is independent of the actual job execution time. After job creation, it executes once based on LaunchTime, and the next execution time is determined by the interval setting. */ readonly frequency: string; /** * Uniquely identifies the resource. */ readonly id: string; /** * Instance ID list, supports up to 200 IDs. */ readonly instanceIds: string[]; /** * Number of instances executed. */ readonly instanceNumber: number; /** * Job description. Defaults to an empty string and must not exceed 256 characters. */ readonly invocationDescription: string; /** * Task execution ID. */ readonly invocationId: string; /** * Job name. Maximum 64 characters. No restriction on special characters. Job names can be duplicated within the same region. */ readonly invocationName: string; /** * Result of command execution on a single instance. */ readonly invocationResults: outputs.ecs.GetInvocationInvocationResult[]; /** * Overall execution status of the command. */ readonly invocationStatus: string; /** * Execution time. */ readonly launchTime: string; /** * Custom parameter definition for the command triggered by the task. */ readonly parameterDefinitions: outputs.ecs.GetInvocationParameterDefinition[]; /** * When the command includes custom parameters, use this parameter to pass custom parameter key-value pairs. The number of custom parameters ranges from 0 to 60. Key cannot be an empty string and supports up to 64 characters. Value can be an empty string. The combined length of custom parameters and original command content after Base64 encoding must not exceed 16 KB. The set of custom parameter names must be a subset of the parameter set defined when creating the command. Default values are used for parameters not provided. */ readonly parameters: string; /** * Project to which the resource belongs; each resource can belong to only one project. */ readonly projectName: string; /** * Cycle end time, applicable only to periodic tasks (Rate). */ readonly recurrenceEndTime: string; /** * Set the command execution mode. Once: Default, executes the command immediately. Rate: Executes the command periodically; specify the execution cycle using the Frequency parameter and Rate expression. Fixed: Executes the command at a scheduled time; specify the execution time using the LaunchTime parameter. */ readonly repeatMode: string; /** * Task start time. */ readonly startTime: string; /** * Tag key-value pair. */ readonly tags: outputs.ecs.GetInvocationTag[]; /** * Maximum timeout for command execution in ECS instances, in seconds. Default: 60. Optional range: 30–86400. */ readonly timeout: number; /** * User name for executing the command in the ECS instance. */ readonly username: string; /** * Password for custom Windows user. */ readonly windowsPassword: string; /** * Directory where the created command runs in the ECS instance. */ readonly workingDir: string; } /** * Data Source schema for Volcengine::ECS::Invocation */ export declare function getInvocationOutput(args: GetInvocationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getInvocation. */ export interface GetInvocationOutputArgs { /** * Uniquely identifies the resource. */ id: pulumi.Input; }