| 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 |
Amazonka.Comprehend.DeleteResourcePolicy
Description
Deletes a resource-based policy that is attached to a custom model.
Synopsis
- data DeleteResourcePolicy = DeleteResourcePolicy' {}
- newDeleteResourcePolicy :: Text -> DeleteResourcePolicy
- deleteResourcePolicy_policyRevisionId :: Lens' DeleteResourcePolicy (Maybe Text)
- deleteResourcePolicy_resourceArn :: Lens' DeleteResourcePolicy Text
- data DeleteResourcePolicyResponse = DeleteResourcePolicyResponse' {
- httpStatus :: Int
- newDeleteResourcePolicyResponse :: Int -> DeleteResourcePolicyResponse
- deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int
Creating a Request
data DeleteResourcePolicy Source #
See: newDeleteResourcePolicy smart constructor.
Constructors
| DeleteResourcePolicy' | |
Fields
| |
Instances
newDeleteResourcePolicy Source #
Create a value of DeleteResourcePolicy 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:policyRevisionId:DeleteResourcePolicy', deleteResourcePolicy_policyRevisionId - The revision ID of the policy to delete.
$sel:resourceArn:DeleteResourcePolicy', deleteResourcePolicy_resourceArn - The Amazon Resource Name (ARN) of the custom model version that has the
policy to delete.
Request Lenses
deleteResourcePolicy_policyRevisionId :: Lens' DeleteResourcePolicy (Maybe Text) Source #
The revision ID of the policy to delete.
deleteResourcePolicy_resourceArn :: Lens' DeleteResourcePolicy Text Source #
The Amazon Resource Name (ARN) of the custom model version that has the policy to delete.
Destructuring the Response
data DeleteResourcePolicyResponse Source #
See: newDeleteResourcePolicyResponse smart constructor.
Constructors
| DeleteResourcePolicyResponse' | |
Fields
| |
Instances
newDeleteResourcePolicyResponse Source #
Create a value of DeleteResourcePolicyResponse 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:httpStatus:DeleteResourcePolicyResponse', deleteResourcePolicyResponse_httpStatus - The response's http status code.
Response Lenses
deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int Source #
The response's http status code.