import * as pulumi from "@pulumi/pulumi"; /** * Resource for managing a Harness execution image override for CI, IACM, or IDP. * * Setting `value` overrides the named image field for the account. Omitting or removing `value` resets the field back to the Harness default. * * ## Example Usage * * ### CI — override the lite-engine image * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const ciLiteEngine = new harness.platform.DefaultImages("ci_lite_engine", { * kind: "ci", * field: "liteEngineTag", * value: "harness/ci-lite-engine:1.16.5", * }); * const ciCustomer = harness.platform.getDefaultImages({ * kind: "ci", * type: "customer", * }); * export const ciLiteEngineTag = ciCustomer.then(ciCustomer => ciCustomer.images?.liteEngineTag); * ``` * * ### CI — reset the lite-engine image to the Harness default * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const ciLiteEngine = new harness.platform.DefaultImages("ci_lite_engine", { * kind: "ci", * field: "liteEngineTag", * }); * ``` * * ### IACM — override the AWS CDK image * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const iacmAwsCdk = new harness.platform.DefaultImages("iacm_aws_cdk", { * kind: "iacm", * field: "iacmAwsCdk", * value: "plugins/harness_aws_cdk:1.2.0", * }); * const iacmDefaults = harness.platform.getDefaultImages({ * kind: "iacm", * }); * export const iacmAwsCdkTag = iacmDefaults.then(iacmDefaults => iacmDefaults.images?.iacmAwsCdk); * ``` * * ### IACM — reset to default * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const iacmAwsCdk = new harness.platform.DefaultImages("iacm_aws_cdk", { * kind: "iacm", * field: "iacmAwsCdk", * }); * ``` * * ### IDP — override the register-catalog image * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const idpRegisterCatalog = new harness.platform.DefaultImages("idp_register_catalog", { * kind: "idp", * field: "registerCatalog", * value: "harness/registercatalog:1.5.0", * }); * const idpDefaults = harness.platform.getDefaultImages({ * kind: "idp", * }); * export const idpRegisterCatalogTag = idpDefaults.then(idpDefaults => idpDefaults.images?.registerCatalog); * ``` * * ### IDP — reset to default * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const idpRegisterCatalog = new harness.platform.DefaultImages("idp_register_catalog", { * kind: "idp", * field: "registerCatalog", * }); * ``` */ export declare class DefaultImages extends pulumi.CustomResource { /** * Get an existing DefaultImages 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?: DefaultImagesState, opts?: pulumi.CustomResourceOptions): DefaultImages; /** * Returns true if the given object is an instance of DefaultImages. 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 DefaultImages; /** * The image field name to override (e.g. `addonTag`, `liteEngineTag`). */ readonly field: pulumi.Output; /** * The infrastructure type passed to the execution config API (e.g. `K8`, `VM`). Defaults to `K8`. */ readonly infraType: pulumi.Output; /** * The service kind. Supported values: `ci`, `iacm`, `idp`. */ readonly kind: pulumi.Output; /** * The image tag value to set. When omitted or set to `null`, the field override is reset to the Harness default. */ readonly value: pulumi.Output; /** * Create a DefaultImages 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: DefaultImagesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DefaultImages resources. */ export interface DefaultImagesState { /** * The image field name to override (e.g. `addonTag`, `liteEngineTag`). */ field?: pulumi.Input; /** * The infrastructure type passed to the execution config API (e.g. `K8`, `VM`). Defaults to `K8`. */ infraType?: pulumi.Input; /** * The service kind. Supported values: `ci`, `iacm`, `idp`. */ kind?: pulumi.Input; /** * The image tag value to set. When omitted or set to `null`, the field override is reset to the Harness default. */ value?: pulumi.Input; } /** * The set of arguments for constructing a DefaultImages resource. */ export interface DefaultImagesArgs { /** * The image field name to override (e.g. `addonTag`, `liteEngineTag`). */ field: pulumi.Input; /** * The infrastructure type passed to the execution config API (e.g. `K8`, `VM`). Defaults to `K8`. */ infraType?: pulumi.Input; /** * The service kind. Supported values: `ci`, `iacm`, `idp`. */ kind: pulumi.Input; /** * The image tag value to set. When omitted or set to `null`, the field override is reset to the Harness default. */ value?: pulumi.Input; } //# sourceMappingURL=defaultImages.d.ts.map