@pulumi/harness
Version:
A Pulumi package for creating and managing Harness resources.
119 lines (118 loc) • 2.73 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Data source for retrieving a Harness policy.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const test = harness.platform.getPolicy({
* identifier: testHarnessPlatformPolicy.identifier,
* });
* ```
*/
export declare function getPolicy(args?: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetPolicyResult>;
/**
* A collection of arguments for invoking getPolicy.
*/
export interface GetPolicyArgs {
/**
* Unique identifier of the resource.
*/
identifier?: string;
/**
* Name of the resource.
*/
name?: string;
/**
* Unique identifier of the organization.
*/
orgId?: string;
/**
* Unique identifier of the project.
*/
projectId?: string;
/**
* Rego code for the policy.
*/
rego?: string;
}
/**
* A collection of values returned by getPolicy.
*/
export interface GetPolicyResult {
/**
* Description of the resource.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Unique identifier of the resource.
*/
readonly identifier?: string;
/**
* Name of the resource.
*/
readonly name?: string;
/**
* Unique identifier of the organization.
*/
readonly orgId?: string;
/**
* Unique identifier of the project.
*/
readonly projectId?: string;
/**
* Rego code for the policy.
*/
readonly rego: string;
/**
* Tags to associate with the resource.
*/
readonly tags: string[];
}
/**
* Data source for retrieving a Harness policy.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as harness from "@pulumi/harness";
*
* const test = harness.platform.getPolicy({
* identifier: testHarnessPlatformPolicy.identifier,
* });
* ```
*/
export declare function getPolicyOutput(args?: GetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPolicyResult>;
/**
* A collection of arguments for invoking getPolicy.
*/
export interface GetPolicyOutputArgs {
/**
* Unique identifier of the resource.
*/
identifier?: pulumi.Input<string>;
/**
* Name of the resource.
*/
name?: pulumi.Input<string>;
/**
* Unique identifier of the organization.
*/
orgId?: pulumi.Input<string>;
/**
* Unique identifier of the project.
*/
projectId?: pulumi.Input<string>;
/**
* Rego code for the policy.
*/
rego?: pulumi.Input<string>;
}