@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
187 lines (186 loc) • 5.07 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of ecs invocations
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.ecs.getInvocations({
* invocationId: "ivk-ych9y4vujvl8j01c****",
* invocationStatuses: ["Success"],
* });
* ```
*/
export declare function getInvocations(args?: GetInvocationsArgs, opts?: pulumi.InvokeOptions): Promise<GetInvocationsResult>;
/**
* A collection of arguments for invoking getInvocations.
*/
export interface GetInvocationsArgs {
/**
* The id of ecs command.
*/
commandId?: string;
/**
* The name of ecs command. This field support fuzzy query.
*/
commandName?: string;
/**
* The type of ecs command. Valid values: `Shell`.
*/
commandType?: string;
/**
* The id of ecs invocation.
*/
invocationId?: string;
/**
* The name of ecs invocation. This field support fuzzy query.
*/
invocationName?: string;
/**
* The list of status of ecs invocation. Valid values: `Pending`, `Scheduled`, `Running`, `Success`, `Failed`, `Stopped`, `PartialFailed`, `Finished`.
*/
invocationStatuses?: string[];
/**
* A Name Regex of Resource.
*/
nameRegex?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The project name of ecs invocation.
*/
projectName?: string;
/**
* The repeat mode of ecs invocation. Valid values: `Once`, `Rate`, `Fixed`.
*/
repeatMode?: string;
/**
* Tags.
*/
tags?: inputs.ecs.GetInvocationsTag[];
}
/**
* A collection of values returned by getInvocations.
*/
export interface GetInvocationsResult {
/**
* The id of the ecs command.
*/
readonly commandId?: string;
/**
* The name of the ecs command.
*/
readonly commandName?: string;
/**
* The type of the ecs command.
*/
readonly commandType?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The id of the ecs invocation.
*/
readonly invocationId?: string;
/**
* The name of the ecs invocation.
*/
readonly invocationName?: string;
/**
* The status of the ecs invocation.
*/
readonly invocationStatuses?: string[];
/**
* The collection of query.
*/
readonly invocations: outputs.ecs.GetInvocationsInvocation[];
readonly nameRegex?: string;
readonly outputFile?: string;
/**
* The project name of the ecs invocation.
*/
readonly projectName?: string;
/**
* The repeat mode of the ecs invocation.
*/
readonly repeatMode?: string;
/**
* Tags.
*/
readonly tags?: outputs.ecs.GetInvocationsTag[];
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of ecs invocations
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.ecs.getInvocations({
* invocationId: "ivk-ych9y4vujvl8j01c****",
* invocationStatuses: ["Success"],
* });
* ```
*/
export declare function getInvocationsOutput(args?: GetInvocationsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInvocationsResult>;
/**
* A collection of arguments for invoking getInvocations.
*/
export interface GetInvocationsOutputArgs {
/**
* The id of ecs command.
*/
commandId?: pulumi.Input<string>;
/**
* The name of ecs command. This field support fuzzy query.
*/
commandName?: pulumi.Input<string>;
/**
* The type of ecs command. Valid values: `Shell`.
*/
commandType?: pulumi.Input<string>;
/**
* The id of ecs invocation.
*/
invocationId?: pulumi.Input<string>;
/**
* The name of ecs invocation. This field support fuzzy query.
*/
invocationName?: pulumi.Input<string>;
/**
* The list of status of ecs invocation. Valid values: `Pending`, `Scheduled`, `Running`, `Success`, `Failed`, `Stopped`, `PartialFailed`, `Finished`.
*/
invocationStatuses?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A Name Regex of Resource.
*/
nameRegex?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The project name of ecs invocation.
*/
projectName?: pulumi.Input<string>;
/**
* The repeat mode of ecs invocation. Valid values: `Once`, `Rate`, `Fixed`.
*/
repeatMode?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.ecs.GetInvocationsTagArgs>[]>;
}