@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
219 lines (218 loc) • 6.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const example = new harness.platform.InfraModule("example", {
* description: "example",
* name: "name",
* system: "provider",
* repository: "https://github.com/org/repo",
* repositoryBranch: "main",
* repositoryPath: "tf/aws/basic",
* repositoryConnector: test.id,
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import harness:platform/infraModule:InfraModule example <module_id>
* ```
*/
export declare class InfraModule extends pulumi.CustomResource {
/**
* Get an existing InfraModule 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?: InfraModuleState, opts?: pulumi.CustomResourceOptions): InfraModule;
/**
* Returns true if the given object is an instance of InfraModule. 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 InfraModule;
/**
* Timestamp when the module was created.
*/
readonly created: pulumi.Output<number>;
/**
* Description of the module.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Name of the module.
*/
readonly name: pulumi.Output<string>;
/**
* For account connectors, the repository where the module can be found
*/
readonly repository: pulumi.Output<string | undefined>;
/**
* Name of the branch to fetch the code from. This cannot be set if repository commit is set.
*/
readonly repositoryBranch: pulumi.Output<string | undefined>;
/**
* Tag to fetch the code from. This cannot be set if repository branch is set.
*/
readonly repositoryCommit: pulumi.Output<string | undefined>;
/**
* Reference to the connector to be used to fetch the code.
*/
readonly repositoryConnector: pulumi.Output<string | undefined>;
/**
* Path to the module within the repository.
*/
readonly repositoryPath: pulumi.Output<string | undefined>;
/**
* URL of the repository where the module is stored.
*/
readonly repositoryUrl: pulumi.Output<string>;
/**
* Timestamp when the module was last synced.
*/
readonly synced: pulumi.Output<number>;
/**
* Provider of the module.
*/
readonly system: pulumi.Output<string>;
/**
* Git tags associated with the module.
*/
readonly tags: pulumi.Output<string>;
/**
* List of versions of the module.
*/
readonly versions: pulumi.Output<string[]>;
/**
* Create a InfraModule 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: InfraModuleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering InfraModule resources.
*/
export interface InfraModuleState {
/**
* Timestamp when the module was created.
*/
created?: pulumi.Input<number>;
/**
* Description of the module.
*/
description?: pulumi.Input<string>;
/**
* Name of the module.
*/
name?: pulumi.Input<string>;
/**
* For account connectors, the repository where the module can be found
*/
repository?: pulumi.Input<string>;
/**
* Name of the branch to fetch the code from. This cannot be set if repository commit is set.
*/
repositoryBranch?: pulumi.Input<string>;
/**
* Tag to fetch the code from. This cannot be set if repository branch is set.
*/
repositoryCommit?: pulumi.Input<string>;
/**
* Reference to the connector to be used to fetch the code.
*/
repositoryConnector?: pulumi.Input<string>;
/**
* Path to the module within the repository.
*/
repositoryPath?: pulumi.Input<string>;
/**
* URL of the repository where the module is stored.
*/
repositoryUrl?: pulumi.Input<string>;
/**
* Timestamp when the module was last synced.
*/
synced?: pulumi.Input<number>;
/**
* Provider of the module.
*/
system?: pulumi.Input<string>;
/**
* Git tags associated with the module.
*/
tags?: pulumi.Input<string>;
/**
* List of versions of the module.
*/
versions?: pulumi.Input<pulumi.Input<string>[]>;
}
/**
* The set of arguments for constructing a InfraModule resource.
*/
export interface InfraModuleArgs {
/**
* Timestamp when the module was created.
*/
created?: pulumi.Input<number>;
/**
* Description of the module.
*/
description?: pulumi.Input<string>;
/**
* Name of the module.
*/
name?: pulumi.Input<string>;
/**
* For account connectors, the repository where the module can be found
*/
repository?: pulumi.Input<string>;
/**
* Name of the branch to fetch the code from. This cannot be set if repository commit is set.
*/
repositoryBranch?: pulumi.Input<string>;
/**
* Tag to fetch the code from. This cannot be set if repository branch is set.
*/
repositoryCommit?: pulumi.Input<string>;
/**
* Reference to the connector to be used to fetch the code.
*/
repositoryConnector?: pulumi.Input<string>;
/**
* Path to the module within the repository.
*/
repositoryPath?: pulumi.Input<string>;
/**
* URL of the repository where the module is stored.
*/
repositoryUrl?: pulumi.Input<string>;
/**
* Timestamp when the module was last synced.
*/
synced?: pulumi.Input<number>;
/**
* Provider of the module.
*/
system: pulumi.Input<string>;
/**
* Git tags associated with the module.
*/
tags?: pulumi.Input<string>;
/**
* List of versions of the module.
*/
versions?: pulumi.Input<pulumi.Input<string>[]>;
}