@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
97 lines (96 loc) • 3.06 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Resource for approving or rejecting delegates.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const test = harness.getDelegate({
* name: "my-delegate",
* });
* const testDelegateApproval = new harness.DelegateApproval("test", {
* delegateId: test.then(test => test.id),
* approve: true,
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Import the status of the delegate approval.
*
* ```sh
* $ pulumi import harness:index/delegateApproval:DelegateApproval example <delegate_id>
* ```
*/
export declare class DelegateApproval extends pulumi.CustomResource {
/**
* Get an existing DelegateApproval 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?: DelegateApprovalState, opts?: pulumi.CustomResourceOptions): DelegateApproval;
/**
* Returns true if the given object is an instance of DelegateApproval. 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 DelegateApproval;
/**
* Whether or not to approve the delegate.
*/
readonly approve: pulumi.Output<boolean>;
/**
* The id of the delegate.
*/
readonly delegateId: pulumi.Output<string>;
/**
* The status of the delegate.
*/
readonly status: pulumi.Output<string>;
/**
* Create a DelegateApproval 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: DelegateApprovalArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering DelegateApproval resources.
*/
export interface DelegateApprovalState {
/**
* Whether or not to approve the delegate.
*/
approve?: pulumi.Input<boolean>;
/**
* The id of the delegate.
*/
delegateId?: pulumi.Input<string>;
/**
* The status of the delegate.
*/
status?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a DelegateApproval resource.
*/
export interface DelegateApprovalArgs {
/**
* Whether or not to approve the delegate.
*/
approve: pulumi.Input<boolean>;
/**
* The id of the delegate.
*/
delegateId: pulumi.Input<string>;
}