@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
66 lines (65 loc) • 2.03 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Data source for managing an AWS Organizations Policy.
*
* ## Example Usage
*/
export declare function getPolicy(args: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetPolicyResult>;
/**
* A collection of arguments for invoking getPolicy.
*/
export interface GetPolicyArgs {
/**
* The unique identifier (ID) of the policy that you want more details on. Policy id starts with a "p-" followed by 8-28 lowercase or uppercase letters, digits, and underscores.
*/
policyId: string;
}
/**
* A collection of values returned by getPolicy.
*/
export interface GetPolicyResult {
/**
* The Amazon Resource Name of the policy.
*/
readonly arn: string;
/**
* Indicates if a policy is an AWS managed policy.
*/
readonly awsManaged: boolean;
/**
* The text content of the policy.
*/
readonly content: string;
/**
* The description of the policy.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The friendly name of the policy.
*/
readonly name: string;
readonly policyId: string;
/**
* The type of policy values can be `AISERVICES_OPT_OUT_POLICY | BACKUP_POLICY | CHATBOT_POLICY | DECLARATIVE_POLICY_EC2 | RESOURCE_CONTROL_POLICY | SERVICE_CONTROL_POLICY | TAG_POLICY`
*/
readonly type: string;
}
/**
* Data source for managing an AWS Organizations Policy.
*
* ## Example Usage
*/
export declare function getPolicyOutput(args: GetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPolicyResult>;
/**
* A collection of arguments for invoking getPolicy.
*/
export interface GetPolicyOutputArgs {
/**
* The unique identifier (ID) of the policy that you want more details on. Policy id starts with a "p-" followed by 8-28 lowercase or uppercase letters, digits, and underscores.
*/
policyId: pulumi.Input<string>;
}