import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Data source for reading Harness Chaos Action Templates. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const byIdentity = harness.chaos.getActionTemplate({ * orgId: "my_org", * projectId: "my_project", * hubIdentity: "my-chaos-hub", * identity: "delay-action-template", * }); * export const templateId = byIdentity.then(byIdentity => byIdentity.id); * ``` */ export declare function getActionTemplate(args: GetActionTemplateArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getActionTemplate. */ export interface GetActionTemplateArgs { /** * Container action configuration. Required when type is 'container'. */ containerAction?: inputs.chaos.GetActionTemplateContainerAction; /** * Custom script action configuration. Required when type is 'customScript'. */ customScriptAction?: inputs.chaos.GetActionTemplateCustomScriptAction; /** * Delay action configuration. Required when type is 'delay'. */ delayAction?: inputs.chaos.GetActionTemplateDelayAction; /** * Description of the action template. */ description?: string; /** * Identity of the chaos hub this action template belongs to. */ hubIdentity: string; /** * Unique identifier for the action template (immutable). */ identity?: string; /** * Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>. */ infrastructureType?: string; /** * Name of the action template. */ name?: string; /** * Organization identifier. */ orgId?: string; /** * Project identifier. */ projectId?: string; /** * Run properties for the action template execution. */ runProperties?: inputs.chaos.GetActionTemplateRunProperties; /** * Tags to associate with the action template. */ tags?: string[]; /** * Type of the action template. Valid values: delay, customScript, container. */ type?: string; /** * Template variables that can be used in the action. */ variables?: inputs.chaos.GetActionTemplateVariable[]; } /** * A collection of values returned by getActionTemplate. */ export interface GetActionTemplateResult { /** * Account identifier. */ readonly accountId: string; /** * Container action configuration. Required when type is 'container'. */ readonly containerAction?: outputs.chaos.GetActionTemplateContainerAction; /** * Creation timestamp (Unix epoch). */ readonly createdAt: number; /** * User who created the action template. */ readonly createdBy: string; /** * Custom script action configuration. Required when type is 'customScript'. */ readonly customScriptAction?: outputs.chaos.GetActionTemplateCustomScriptAction; /** * Delay action configuration. Required when type is 'delay'. */ readonly delayAction?: outputs.chaos.GetActionTemplateDelayAction; /** * Description of the action template. */ readonly description?: string; /** * Identity of the chaos hub this action template belongs to. */ readonly hubIdentity: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Internal ID of the action template. */ readonly idInternal: string; /** * Unique identifier for the action template (immutable). */ readonly identity: string; /** * Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>. */ readonly infrastructureType?: string; /** * Whether this is the default version for predefined actions. */ readonly isDefault: boolean; /** * Whether this is an enterprise action template. */ readonly isEnterprise: boolean; /** * Whether the action template has been removed. */ readonly isRemoved: boolean; /** * Name of the action template. */ readonly name: string; /** * Organization identifier. */ readonly orgId?: string; /** * Project identifier. */ readonly projectId?: string; /** * Revision number of the action template. */ readonly revision: number; /** * Run properties for the action template execution. */ readonly runProperties?: outputs.chaos.GetActionTemplateRunProperties; /** * Tags to associate with the action template. */ readonly tags?: string[]; /** * Template content/definition. */ readonly template: string; /** * Type of the action template. Valid values: delay, customScript, container. */ readonly type: string; /** * Last update timestamp (Unix epoch). */ readonly updatedAt: number; /** * User who last updated the action template. */ readonly updatedBy: string; /** * Template variables that can be used in the action. */ readonly variables?: outputs.chaos.GetActionTemplateVariable[]; } /** * Data source for reading Harness Chaos Action Templates. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const byIdentity = harness.chaos.getActionTemplate({ * orgId: "my_org", * projectId: "my_project", * hubIdentity: "my-chaos-hub", * identity: "delay-action-template", * }); * export const templateId = byIdentity.then(byIdentity => byIdentity.id); * ``` */ export declare function getActionTemplateOutput(args: GetActionTemplateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getActionTemplate. */ export interface GetActionTemplateOutputArgs { /** * Container action configuration. Required when type is 'container'. */ containerAction?: pulumi.Input; /** * Custom script action configuration. Required when type is 'customScript'. */ customScriptAction?: pulumi.Input; /** * Delay action configuration. Required when type is 'delay'. */ delayAction?: pulumi.Input; /** * Description of the action template. */ description?: pulumi.Input; /** * Identity of the chaos hub this action template belongs to. */ hubIdentity: pulumi.Input; /** * Unique identifier for the action template (immutable). */ identity?: pulumi.Input; /** * Infrastructure type for the action template. Valid values: Kubernetes, KubernetesV2, Windows, Linux, CloudFoundry, Container. Supports runtime inputs like <+input>. */ infrastructureType?: pulumi.Input; /** * Name of the action template. */ name?: pulumi.Input; /** * Organization identifier. */ orgId?: pulumi.Input; /** * Project identifier. */ projectId?: pulumi.Input; /** * Run properties for the action template execution. */ runProperties?: pulumi.Input; /** * Tags to associate with the action template. */ tags?: pulumi.Input[] | undefined>; /** * Type of the action template. Valid values: delay, customScript, container. */ type?: pulumi.Input; /** * Template variables that can be used in the action. */ variables?: pulumi.Input[] | undefined>; } //# sourceMappingURL=getActionTemplate.d.ts.map