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 details of a resource-based policy that is attached to a custom model, including the JSON body of the policy.
Synopsis
- data DescribeResourcePolicy = DescribeResourcePolicy' {
- resourceArn :: Text
- newDescribeResourcePolicy :: Text -> DescribeResourcePolicy
- describeResourcePolicy_resourceArn :: Lens' DescribeResourcePolicy Text
- data DescribeResourcePolicyResponse = DescribeResourcePolicyResponse' {}
- newDescribeResourcePolicyResponse :: Int -> DescribeResourcePolicyResponse
- describeResourcePolicyResponse_creationTime :: Lens' DescribeResourcePolicyResponse (Maybe UTCTime)
- describeResourcePolicyResponse_lastModifiedTime :: Lens' DescribeResourcePolicyResponse (Maybe UTCTime)
- describeResourcePolicyResponse_policyRevisionId :: Lens' DescribeResourcePolicyResponse (Maybe Text)
- describeResourcePolicyResponse_resourcePolicy :: 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:
$sel:resourceArn:DescribeResourcePolicy'
, describeResourcePolicy_resourceArn
- The Amazon Resource Name (ARN) of the custom model version that has the
resource policy.
Request Lenses
describeResourcePolicy_resourceArn :: Lens' DescribeResourcePolicy Text Source #
The Amazon Resource Name (ARN) of the custom model version that has the resource policy.
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:
DescribeResourcePolicyResponse
, describeResourcePolicyResponse_creationTime
- The time at which the policy was created.
DescribeResourcePolicyResponse
, describeResourcePolicyResponse_lastModifiedTime
- The time at which the policy was last modified.
$sel:policyRevisionId:DescribeResourcePolicyResponse'
, describeResourcePolicyResponse_policyRevisionId
- The revision ID of the policy. Each time you modify a policy, Amazon
Comprehend assigns a new revision ID, and it deletes the prior version
of the policy.
$sel:resourcePolicy:DescribeResourcePolicyResponse'
, describeResourcePolicyResponse_resourcePolicy
- The JSON body of the resource-based policy.
$sel:httpStatus:DescribeResourcePolicyResponse'
, describeResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
describeResourcePolicyResponse_creationTime :: Lens' DescribeResourcePolicyResponse (Maybe UTCTime) Source #
The time at which the policy was created.
describeResourcePolicyResponse_lastModifiedTime :: Lens' DescribeResourcePolicyResponse (Maybe UTCTime) Source #
The time at which the policy was last modified.
describeResourcePolicyResponse_policyRevisionId :: Lens' DescribeResourcePolicyResponse (Maybe Text) Source #
The revision ID of the policy. Each time you modify a policy, Amazon Comprehend assigns a new revision ID, and it deletes the prior version of the policy.
describeResourcePolicyResponse_resourcePolicy :: Lens' DescribeResourcePolicyResponse (Maybe Text) Source #
The JSON body of the resource-based policy.
describeResourcePolicyResponse_httpStatus :: Lens' DescribeResourcePolicyResponse Int Source #
The response's http status code.