UNPKG

@lbrlabs/pulumi-harness

Version:

A Pulumi package for creating and managing Harness resources.

129 lines (128 loc) 4.26 kB
import * as pulumi from "@pulumi/pulumi"; /** * Resource for creating an Azure cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `createBeforeDestroy = true` lifecycle setting. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@lbrlabs/pulumi-harness"; * import * as harness from "@pulumi/harness"; * * const default = harness.getSecretManager({ * "default": true, * }); * const azureKey = new harness.EncryptedText("azureKey", { * value: "<AZURE_KEY>", * secretManagerId: _default.then(_default => _default.id), * }); * const azure = new harness.cloudprovider.Azure("azure", { * clientId: "<AZURE_CLIENT_ID>", * tenantId: "<AZURE_TENANT_ID>", * key: azureKey.name, * }); * ``` * * ## Import * * Import using the Harness azure cloud provider id. * * ```sh * $ pulumi import harness:cloudprovider/azure:Azure example <provider_id> * ``` */ export declare class Azure extends pulumi.CustomResource { /** * Get an existing Azure 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?: AzureState, opts?: pulumi.CustomResourceOptions): Azure; /** * Returns true if the given object is an instance of Azure. 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 Azure; /** * The client id for the Azure application */ readonly clientId: pulumi.Output<string>; /** * The type of environment. Valid options are [AZURE AZURE*US*GOVERNMENT] */ readonly environmentType: pulumi.Output<string | undefined>; /** * The Name of the Harness secret containing the key for the Azure application */ readonly key: pulumi.Output<string>; /** * The name of the cloud provider. */ readonly name: pulumi.Output<string>; /** * The tenant id for the Azure application */ readonly tenantId: pulumi.Output<string>; /** * Create a Azure 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: AzureArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Azure resources. */ export interface AzureState { /** * The client id for the Azure application */ clientId?: pulumi.Input<string>; /** * The type of environment. Valid options are [AZURE AZURE*US*GOVERNMENT] */ environmentType?: pulumi.Input<string>; /** * The Name of the Harness secret containing the key for the Azure application */ key?: pulumi.Input<string>; /** * The name of the cloud provider. */ name?: pulumi.Input<string>; /** * The tenant id for the Azure application */ tenantId?: pulumi.Input<string>; } /** * The set of arguments for constructing a Azure resource. */ export interface AzureArgs { /** * The client id for the Azure application */ clientId: pulumi.Input<string>; /** * The type of environment. Valid options are [AZURE AZURE*US*GOVERNMENT] */ environmentType?: pulumi.Input<string>; /** * The Name of the Harness secret containing the key for the Azure application */ key: pulumi.Input<string>; /** * The name of the cloud provider. */ name?: pulumi.Input<string>; /** * The tenant id for the Azure application */ tenantId: pulumi.Input<string>; }