amazonka-lexv2-models-2.0: Amazon Lex Model Building V2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LexV2Models.DescribeResourcePolicy

Description

Gets the resource policy and policy revision for a bot or bot alias.

Synopsis

Creating a Request

data DescribeResourcePolicy Source #

See: newDescribeResourcePolicy smart constructor.

Constructors

DescribeResourcePolicy' 

Fields

  • resourceArn :: Text

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

Instances

Instances details
ToHeaders DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

ToPath DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

ToQuery DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

AWSRequest DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

Associated Types

type AWSResponse DescribeResourcePolicy #

Generic DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

Associated Types

type Rep DescribeResourcePolicy :: Type -> Type #

Read DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

Show DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

NFData DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

Methods

rnf :: DescribeResourcePolicy -> () #

Eq DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

Hashable DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

type AWSResponse DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

type Rep DescribeResourcePolicy Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

type Rep DescribeResourcePolicy = D1 ('MetaData "DescribeResourcePolicy" "Amazonka.LexV2Models.DescribeResourcePolicy" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DescribeResourcePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDescribeResourcePolicy Source #

Create a value of DescribeResourcePolicy with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

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

Request Lenses

describeResourcePolicy_resourceArn :: Lens' DescribeResourcePolicy Text Source #

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

Destructuring the Response

data DescribeResourcePolicyResponse Source #

See: newDescribeResourcePolicyResponse smart constructor.

Constructors

DescribeResourcePolicyResponse' 

Fields

  • policy :: Maybe Text

    The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .

  • resourceArn :: Maybe Text

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

  • revisionId :: Maybe Text

    The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

Associated Types

type Rep DescribeResourcePolicyResponse :: Type -> Type #

Read DescribeResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

Show DescribeResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

NFData DescribeResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

Eq DescribeResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

type Rep DescribeResourcePolicyResponse Source # 
Instance details

Defined in Amazonka.LexV2Models.DescribeResourcePolicy

type Rep DescribeResourcePolicyResponse = D1 ('MetaData "DescribeResourcePolicyResponse" "Amazonka.LexV2Models.DescribeResourcePolicy" "amazonka-lexv2-models-2.0-5mExjJXBfuO6j0ascNcayE" 'False) (C1 ('MetaCons "DescribeResourcePolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "revisionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeResourcePolicyResponse Source #

Create a value of DescribeResourcePolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:policy:DescribeResourcePolicyResponse', describeResourcePolicyResponse_policy - The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .

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

$sel:revisionId:DescribeResourcePolicyResponse', describeResourcePolicyResponse_revisionId - The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.

$sel:httpStatus:DescribeResourcePolicyResponse', describeResourcePolicyResponse_httpStatus - The response's http status code.

Response Lenses

describeResourcePolicyResponse_policy :: Lens' DescribeResourcePolicyResponse (Maybe Text) Source #

The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .

describeResourcePolicyResponse_resourceArn :: Lens' DescribeResourcePolicyResponse (Maybe Text) Source #

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

describeResourcePolicyResponse_revisionId :: Lens' DescribeResourcePolicyResponse (Maybe Text) Source #

The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.