UNPKG

@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)

53 lines (52 loc) 2.11 kB
import * as pulumi from "@pulumi/pulumi"; import * as enums from "../types/enums"; /** * Policy Statement defined in AWS Entity Resolution Service */ export declare function getPolicyStatement(args: GetPolicyStatementArgs, opts?: pulumi.InvokeOptions): Promise<GetPolicyStatementResult>; export interface GetPolicyStatementArgs { /** * The Amazon Resource Name (ARN) of the resource that will be accessed by the principal. */ arn: string; /** * A statement identifier that differentiates the statement from others in the same policy. */ statementId: string; } export interface GetPolicyStatementResult { /** * The action that the principal can use on the resource. * * For example, `entityresolution:GetIdMappingJob` , `entityresolution:GetMatchingJob` . */ readonly action?: string[]; /** * A set of condition keys that you can use in key policies. */ readonly condition?: string; /** * Determines whether the permissions specified in the policy are to be allowed ( `Allow` ) or denied ( `Deny` ). * * > If you set the value of the `effect` parameter to `Deny` for the `AddPolicyStatement` operation, you must also set the value of the `effect` parameter in the `policy` to `Deny` for the `PutPolicy` operation. */ readonly effect?: enums.entityresolution.PolicyStatementStatementEffect; /** * The AWS service or AWS account that can access the resource defined as ARN. */ readonly principal?: string[]; } /** * Policy Statement defined in AWS Entity Resolution Service */ export declare function getPolicyStatementOutput(args: GetPolicyStatementOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPolicyStatementResult>; export interface GetPolicyStatementOutputArgs { /** * The Amazon Resource Name (ARN) of the resource that will be accessed by the principal. */ arn: pulumi.Input<string>; /** * A statement identifier that differentiates the statement from others in the same policy. */ statementId: pulumi.Input<string>; }