Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CreateResourcePolicyStatementRequest

import type { CreateResourcePolicyStatementRequest } from "https://aws-api.deno.dev/v0.4/services/lexmodelsv2.ts?docs=full";
interface CreateResourcePolicyStatementRequest {
action: string[];
condition?: {
[key: string]: {
[key: string]: string | null | undefined;
}
| null | undefined
;
}
| null;
effect: Effect;
expectedRevisionId?: string | null;
principal: Principal[];
resourceArn: string;
statementId: string;
}

§Properties

§
action: string[]
[src]

The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type of the specified ARN. For more information, see Actions, resources, and condition keys for Amazon Lex V2.

§
condition?: {
[key: string]: {
[key: string]: string | null | undefined;
}
| null | undefined
;
}
| null
[src]

Specifies a condition when the policy is in effect. If the principal of the policy is a service principal, you must provide two condition blocks, one with a SourceAccount global condition key and one with a SourceArn global condition key.

For more information, see IAM JSON policy elements: Condition.

§
effect: Effect
[src]

Determines whether the statement allows or denies access to the resource.

§
expectedRevisionId?: string | null
[src]

The identifier of the revision of the policy to edit. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.

If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.

§
principal: Principal[]
[src]

An IAM principal, such as an IAM users, IAM roles, or AWS services that is allowed or denied access to a resource. For more information, see AWS JSON policy elements: Principal.

§
resourceArn: string
[src]

The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.

§
statementId: string
[src]

The name of the statement. The ID is the same as the Sid IAM property. The statement name must be unique within the policy. For more information, see IAM JSON policy elements: Sid.