@spacelift-io/pulumi-spacelift
Version:
A Pulumi package for creating and managing Spacelift resources.
82 lines (81 loc) • 2.26 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* `spacelift.Policy` represents a Spacelift **policy** - a collection of customer-defined rules that are applied by Spacelift at one of the decision points within the application.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as spacelift from "@pulumi/spacelift";
*
* const policy = spacelift.getPolicy({
* policyId: spacelift_policy.policy.id,
* });
* export const policyBody = policy.then(policy => policy.body);
* ```
*/
export declare function getPolicy(args: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetPolicyResult>;
/**
* A collection of arguments for invoking getPolicy.
*/
export interface GetPolicyArgs {
/**
* immutable ID (slug) of the policy
*/
policyId: string;
}
/**
* A collection of values returned by getPolicy.
*/
export interface GetPolicyResult {
/**
* body of the policy
*/
readonly body: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly labels: string[];
/**
* name of the policy
*/
readonly name: string;
/**
* immutable ID (slug) of the policy
*/
readonly policyId: string;
/**
* ID (slug) of the space the policy is in
*/
readonly spaceId: string;
/**
* type of the policy
*/
readonly type: string;
}
/**
* `spacelift.Policy` represents a Spacelift **policy** - a collection of customer-defined rules that are applied by Spacelift at one of the decision points within the application.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as spacelift from "@pulumi/spacelift";
*
* const policy = spacelift.getPolicy({
* policyId: spacelift_policy.policy.id,
* });
* export const policyBody = policy.then(policy => policy.body);
* ```
*/
export declare function getPolicyOutput(args: GetPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPolicyResult>;
/**
* A collection of arguments for invoking getPolicy.
*/
export interface GetPolicyOutputArgs {
/**
* immutable ID (slug) of the policy
*/
policyId: pulumi.Input<string>;
}