@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
49 lines (48 loc) • 1.72 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
/**
* Definition of AWS::VerifiedPermissions::Policy Resource Type
*/
export declare function getPolicy(args: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetPolicyResult>;
export interface GetPolicyArgs {
/**
* The unique ID of the new or updated policy.
*/
policyId: string;
/**
* Specifies the `PolicyStoreId` of the policy store you want to store the policy in.
*/
policyStoreId: string;
}
export interface GetPolicyResult {
/**
* Specifies the policy type and content to use for the new or updated policy. The definition structure must include either a `Static` or a `TemplateLinked` element.
*/
readonly definition?: outputs.verifiedpermissions.PolicyDefinition0Properties | outputs.verifiedpermissions.PolicyDefinition1Properties;
/**
* The unique ID of the new or updated policy.
*/
readonly policyId?: string;
/**
* The type of the policy. This is one of the following values:
*
* - Static
* - TemplateLinked
*/
readonly policyType?: enums.verifiedpermissions.PolicyType;
}
/**
* Definition of AWS::VerifiedPermissions::Policy Resource Type
*/
export declare function getPolicyOutput(args: GetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPolicyResult>;
export interface GetPolicyOutputArgs {
/**
* The unique ID of the new or updated policy.
*/
policyId: pulumi.Input<string>;
/**
* Specifies the `PolicyStoreId` of the policy store you want to store the policy in.
*/
policyStoreId: pulumi.Input<string>;
}