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 |
Removes an existing policy from a bot or bot alias. If the resource doesn't have a policy attached, Amazon Lex returns an exception.
Synopsis
- data DeleteResourcePolicy = DeleteResourcePolicy' {}
- newDeleteResourcePolicy :: Text -> DeleteResourcePolicy
- deleteResourcePolicy_expectedRevisionId :: Lens' DeleteResourcePolicy (Maybe Text)
- deleteResourcePolicy_resourceArn :: Lens' DeleteResourcePolicy Text
- data DeleteResourcePolicyResponse = DeleteResourcePolicyResponse' {
- resourceArn :: Maybe Text
- revisionId :: Maybe Text
- httpStatus :: Int
- newDeleteResourcePolicyResponse :: Int -> DeleteResourcePolicyResponse
- deleteResourcePolicyResponse_resourceArn :: Lens' DeleteResourcePolicyResponse (Maybe Text)
- deleteResourcePolicyResponse_revisionId :: Lens' DeleteResourcePolicyResponse (Maybe Text)
- deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int
Creating a Request
data DeleteResourcePolicy Source #
See: newDeleteResourcePolicy
smart constructor.
DeleteResourcePolicy' | |
|
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:expectedRevisionId:DeleteResourcePolicy'
, deleteResourcePolicy_expectedRevisionId
- The identifier of the revision to edit. If this ID doesn't match the
current revision number, Amazon Lex returns an exception
If you don't specify a revision ID, Amazon Lex will delete the current policy.
DeleteResourcePolicy
, deleteResourcePolicy_resourceArn
- The Amazon Resource Name (ARN) of the bot or bot alias that has the
resource policy attached.
Request Lenses
deleteResourcePolicy_expectedRevisionId :: Lens' DeleteResourcePolicy (Maybe Text) Source #
The identifier of the revision to edit. If this ID doesn't match the current revision number, Amazon Lex returns an exception
If you don't specify a revision ID, Amazon Lex will delete the current policy.
deleteResourcePolicy_resourceArn :: Lens' DeleteResourcePolicy Text Source #
The Amazon Resource Name (ARN) of the bot or bot alias that has the resource policy attached.
Destructuring the Response
data DeleteResourcePolicyResponse Source #
See: newDeleteResourcePolicyResponse
smart constructor.
DeleteResourcePolicyResponse' | |
|
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:
DeleteResourcePolicy
, deleteResourcePolicyResponse_resourceArn
- The Amazon Resource Name (ARN) of the bot or bot alias that the resource
policy was deleted from.
$sel:revisionId:DeleteResourcePolicyResponse'
, deleteResourcePolicyResponse_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:DeleteResourcePolicyResponse'
, deleteResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
deleteResourcePolicyResponse_resourceArn :: Lens' DeleteResourcePolicyResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy was deleted from.
deleteResourcePolicyResponse_revisionId :: Lens' DeleteResourcePolicyResponse (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.
deleteResourcePolicyResponse_httpStatus :: Lens' DeleteResourcePolicyResponse Int Source #
The response's http status code.