Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Gets the resource policy and policy revision for a bot or bot alias.
Synopsis
- data DescribeResourcePolicy = DescribeResourcePolicy' {
- resourceArn :: Text
- newDescribeResourcePolicy :: Text -> DescribeResourcePolicy
- describeResourcePolicy_resourceArn :: Lens' DescribeResourcePolicy Text
- data DescribeResourcePolicyResponse = DescribeResourcePolicyResponse' {
- policy :: Maybe Text
- resourceArn :: Maybe Text
- revisionId :: Maybe Text
- httpStatus :: Int
- newDescribeResourcePolicyResponse :: Int -> DescribeResourcePolicyResponse
- describeResourcePolicyResponse_policy :: Lens' DescribeResourcePolicyResponse (Maybe Text)
- describeResourcePolicyResponse_resourceArn :: Lens' DescribeResourcePolicyResponse (Maybe Text)
- describeResourcePolicyResponse_revisionId :: Lens' DescribeResourcePolicyResponse (Maybe Text)
- describeResourcePolicyResponse_httpStatus :: Lens' DescribeResourcePolicyResponse Int
Creating a Request
data DescribeResourcePolicy Source #
See: newDescribeResourcePolicy
smart constructor.
DescribeResourcePolicy' | |
|
Instances
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.
DescribeResourcePolicyResponse' | |
|
Instances
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.
describeResourcePolicyResponse_httpStatus :: Lens' DescribeResourcePolicyResponse Int Source #
The response's http status code.