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)

41 lines (40 loc) 1.56 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * A resource policy with specified policy statements that attaches to a Lex bot or bot alias. */ export declare function getResourcePolicy(args: GetResourcePolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetResourcePolicyResult>; export interface GetResourcePolicyArgs { /** * The identifier of the resource policy. */ id: string; } export interface GetResourcePolicyResult { /** * The identifier of the resource policy. */ readonly id?: string; /** * A resource policy to add to the resource. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow IAM syntax. If the policy isn't valid, Amazon Lex returns a validation exception. */ readonly policy?: outputs.lex.ResourcePolicyPolicy; /** * The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to. */ readonly resourceArn?: string; /** * Specifies the current revision of a resource policy. */ readonly revisionId?: string; } /** * A resource policy with specified policy statements that attaches to a Lex bot or bot alias. */ export declare function getResourcePolicyOutput(args: GetResourcePolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetResourcePolicyResult>; export interface GetResourcePolicyOutputArgs { /** * The identifier of the resource policy. */ id: pulumi.Input<string>; }