1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. lex
  5. getResourcePolicy

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.lex.getResourcePolicy

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

A resource policy with specified policy statements that attaches to a Lex bot or bot alias.

Using getResourcePolicy

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getResourcePolicy(args: GetResourcePolicyArgs, opts?: InvokeOptions): Promise<GetResourcePolicyResult>
function getResourcePolicyOutput(args: GetResourcePolicyOutputArgs, opts?: InvokeOptions): Output<GetResourcePolicyResult>
Copy
def get_resource_policy(id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetResourcePolicyResult
def get_resource_policy_output(id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetResourcePolicyResult]
Copy
func LookupResourcePolicy(ctx *Context, args *LookupResourcePolicyArgs, opts ...InvokeOption) (*LookupResourcePolicyResult, error)
func LookupResourcePolicyOutput(ctx *Context, args *LookupResourcePolicyOutputArgs, opts ...InvokeOption) LookupResourcePolicyResultOutput
Copy

> Note: This function is named LookupResourcePolicy in the Go SDK.

public static class GetResourcePolicy 
{
    public static Task<GetResourcePolicyResult> InvokeAsync(GetResourcePolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetResourcePolicyResult> Invoke(GetResourcePolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetResourcePolicyResult> getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options)
public static Output<GetResourcePolicyResult> getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:lex:getResourcePolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The identifier of the resource policy.
Id This property is required. string
The identifier of the resource policy.
id This property is required. String
The identifier of the resource policy.
id This property is required. string
The identifier of the resource policy.
id This property is required. str
The identifier of the resource policy.
id This property is required. String
The identifier of the resource policy.

getResourcePolicy Result

The following output properties are available:

Id string
The identifier of the resource policy.
Policy Pulumi.AwsNative.Lex.Outputs.ResourcePolicyPolicy
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.
ResourceArn string
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
RevisionId string
Specifies the current revision of a resource policy.
Id string
The identifier of the resource policy.
Policy ResourcePolicyPolicy
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.
ResourceArn string
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
RevisionId string
Specifies the current revision of a resource policy.
id String
The identifier of the resource policy.
policy ResourcePolicyPolicy
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.
resourceArn String
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
revisionId String
Specifies the current revision of a resource policy.
id string
The identifier of the resource policy.
policy ResourcePolicyPolicy
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.
resourceArn string
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
revisionId string
Specifies the current revision of a resource policy.
id str
The identifier of the resource policy.
policy ResourcePolicyPolicy
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.
resource_arn str
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
revision_id str
Specifies the current revision of a resource policy.
id String
The identifier of the resource policy.
policy Property Map
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.
resourceArn String
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
revisionId String
Specifies the current revision of a resource policy.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi