UNPKG

@lbrlabs/pulumi-harness

Version:

A Pulumi package for creating and managing Harness resources.

167 lines (166 loc) 7.7 kB
import * as pulumi from "@pulumi/pulumi"; /** * Resource for creating a Harness environment service overrides. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@lbrlabs/pulumi-harness"; * * const example = new harness.platform.EnvironmentServiceOverrides("example", { * envId: "environmentIdentifier", * orgId: "orgIdentifier", * projectId: "projectIdentifier", * serviceId: "serviceIdentifier", * yaml: ` serviceOverrides: * environmentRef: environmentIdentifier * serviceRef: serviceIdentifier * variables: * - name: asda * type: String * value: asddad * manifests: * - manifest: * identifier: manifestEnv * type: Values * spec: * store: * type: Git * spec: * connectorRef: <+input> * gitFetchType: Branch * paths: * - file1 * repoName: <+input> * branch: master * configFiles: * - configFile: * identifier: configFileEnv * spec: * store: * type: Harness * spec: * files: * - account:/Add-ons/svcOverrideTest * secretFiles: [] * * `, * }); * ``` * * ## Import * * Import using serviceoverride id * * ```sh * $ pulumi import harness:platform/environmentServiceOverrides:EnvironmentServiceOverrides example <serviceoverride_id> * ``` */ export declare class EnvironmentServiceOverrides extends pulumi.CustomResource { /** * Get an existing EnvironmentServiceOverrides 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<pulumi.ID>, state?: EnvironmentServiceOverridesState, opts?: pulumi.CustomResourceOptions): EnvironmentServiceOverrides; /** * Returns true if the given object is an instance of EnvironmentServiceOverrides. 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 EnvironmentServiceOverrides; /** * The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{env*id}. To reference an environment at the account scope, prefix 'account' to the expression: account.{env*id}). */ readonly envId: pulumi.Output<string>; /** * identifier of the service overrides. */ readonly identifier: pulumi.Output<string>; /** * Unique identifier of the organization. */ readonly orgId: pulumi.Output<string | undefined>; /** * Unique identifier of the project. */ readonly projectId: pulumi.Output<string | undefined>; /** * The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{service*id}. To reference a service at the account scope, prefix 'account' to the expression: account.{service*id}). */ readonly serviceId: pulumi.Output<string>; /** * Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId. */ readonly yaml: pulumi.Output<string>; /** * Create a EnvironmentServiceOverrides 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: EnvironmentServiceOverridesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EnvironmentServiceOverrides resources. */ export interface EnvironmentServiceOverridesState { /** * The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{env*id}. To reference an environment at the account scope, prefix 'account' to the expression: account.{env*id}). */ envId?: pulumi.Input<string>; /** * identifier of the service overrides. */ identifier?: pulumi.Input<string>; /** * Unique identifier of the organization. */ orgId?: pulumi.Input<string>; /** * Unique identifier of the project. */ projectId?: pulumi.Input<string>; /** * The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{service*id}. To reference a service at the account scope, prefix 'account' to the expression: account.{service*id}). */ serviceId?: pulumi.Input<string>; /** * Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId. */ yaml?: pulumi.Input<string>; } /** * The set of arguments for constructing a EnvironmentServiceOverrides resource. */ export interface EnvironmentServiceOverridesArgs { /** * The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{env*id}. To reference an environment at the account scope, prefix 'account' to the expression: account.{env*id}). */ envId: pulumi.Input<string>; /** * identifier of the service overrides. */ identifier?: pulumi.Input<string>; /** * Unique identifier of the organization. */ orgId?: pulumi.Input<string>; /** * Unique identifier of the project. */ projectId?: pulumi.Input<string>; /** * The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{service*id}. To reference a service at the account scope, prefix 'account' to the expression: account.{service*id}). */ serviceId: pulumi.Input<string>; /** * Environment Service Overrides YAML. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId. */ yaml: pulumi.Input<string>; }