UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

252 lines (251 loc) 7.17 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating files in Harness. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Create file * const example = new harness.platform.FileStoreFile("example", { * orgId: "org_id", * projectId: "project_id", * identifier: "identifier", * name: "name", * description: "description", * tags: [ * "foo:bar", * "baz:qux", * ], * parentIdentifier: "parent_identifier", * fileContentPath: "file_content_path", * mimeType: "mime_type", * fileUsage: "MANIFEST_FILE|CONFIG|SCRIPT", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import account level file * * ```sh * $ pulumi import harness:platform/fileStoreFile:FileStoreFile example <identifier> * ``` * * Import org level file * * ```sh * $ pulumi import harness:platform/fileStoreFile:FileStoreFile example <org_id>/<identifier> * ``` * * Import org level file * * ```sh * $ pulumi import harness:platform/fileStoreFile:FileStoreFile example <org_id>/<project_id>/<identifier> * ``` */ export declare class FileStoreFile extends pulumi.CustomResource { /** * Get an existing FileStoreFile 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?: FileStoreFileState, opts?: pulumi.CustomResourceOptions): FileStoreFile; /** * Returns true if the given object is an instance of FileStoreFile. 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 FileStoreFile; /** * File content stored on Harness File Store */ readonly content: pulumi.Output<string>; /** * Created by */ readonly createdBies: pulumi.Output<outputs.platform.FileStoreFileCreatedBy[]>; /** * Description of the resource. */ readonly description: pulumi.Output<string | undefined>; /** * File content path to be upladed on Harness File Store */ readonly fileContentPath: pulumi.Output<string>; /** * File usage. Valid options are MANIFEST_FILE, CONFIG, SCRIPT */ readonly fileUsage: pulumi.Output<string>; /** * Unique identifier of the resource. */ readonly identifier: pulumi.Output<string>; /** * Last modified at */ readonly lastModifiedAt: pulumi.Output<number>; /** * Last modified by */ readonly lastModifiedBies: pulumi.Output<outputs.platform.FileStoreFileLastModifiedBy[]>; /** * File mime type */ readonly mimeType: pulumi.Output<string>; /** * Name of the resource. */ readonly name: pulumi.Output<string>; /** * Unique identifier of the organization. */ readonly orgId: pulumi.Output<string | undefined>; /** * File parent identifier on Harness File Store */ readonly parentIdentifier: pulumi.Output<string>; /** * Harness File Store file path */ readonly path: pulumi.Output<string>; /** * Unique identifier of the project. */ readonly projectId: pulumi.Output<string | undefined>; /** * Tags to associate with the resource. */ readonly tags: pulumi.Output<string[] | undefined>; /** * Create a FileStoreFile 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: FileStoreFileArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FileStoreFile resources. */ export interface FileStoreFileState { /** * File content stored on Harness File Store */ content?: pulumi.Input<string>; /** * Created by */ createdBies?: pulumi.Input<pulumi.Input<inputs.platform.FileStoreFileCreatedBy>[]>; /** * Description of the resource. */ description?: pulumi.Input<string>; /** * File content path to be upladed on Harness File Store */ fileContentPath?: pulumi.Input<string>; /** * File usage. Valid options are MANIFEST_FILE, CONFIG, SCRIPT */ fileUsage?: pulumi.Input<string>; /** * Unique identifier of the resource. */ identifier?: pulumi.Input<string>; /** * Last modified at */ lastModifiedAt?: pulumi.Input<number>; /** * Last modified by */ lastModifiedBies?: pulumi.Input<pulumi.Input<inputs.platform.FileStoreFileLastModifiedBy>[]>; /** * File mime type */ mimeType?: pulumi.Input<string>; /** * Name of the resource. */ name?: pulumi.Input<string>; /** * Unique identifier of the organization. */ orgId?: pulumi.Input<string>; /** * File parent identifier on Harness File Store */ parentIdentifier?: pulumi.Input<string>; /** * Harness File Store file path */ path?: pulumi.Input<string>; /** * Unique identifier of the project. */ projectId?: pulumi.Input<string>; /** * Tags to associate with the resource. */ tags?: pulumi.Input<pulumi.Input<string>[]>; } /** * The set of arguments for constructing a FileStoreFile resource. */ export interface FileStoreFileArgs { /** * File content stored on Harness File Store */ content?: pulumi.Input<string>; /** * Description of the resource. */ description?: pulumi.Input<string>; /** * File content path to be upladed on Harness File Store */ fileContentPath?: pulumi.Input<string>; /** * File usage. Valid options are MANIFEST_FILE, CONFIG, SCRIPT */ fileUsage?: pulumi.Input<string>; /** * Unique identifier of the resource. */ identifier: pulumi.Input<string>; /** * File mime type */ mimeType?: pulumi.Input<string>; /** * Name of the resource. */ name?: pulumi.Input<string>; /** * Unique identifier of the organization. */ orgId?: pulumi.Input<string>; /** * File parent identifier on Harness File Store */ parentIdentifier: pulumi.Input<string>; /** * Unique identifier of the project. */ projectId?: pulumi.Input<string>; /** * Tags to associate with the resource. */ tags?: pulumi.Input<pulumi.Input<string>[]>; }