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 |
Deletes a policy statement from a resource policy. If you delete the last statement from a policy, the policy is deleted. If you specify a statement ID that doesn't exist in the policy, or if the bot or bot alias doesn't have a policy attached, Amazon Lex returns an exception.
Synopsis
- data DeleteResourcePolicyStatement = DeleteResourcePolicyStatement' {}
- newDeleteResourcePolicyStatement :: Text -> Text -> DeleteResourcePolicyStatement
- deleteResourcePolicyStatement_expectedRevisionId :: Lens' DeleteResourcePolicyStatement (Maybe Text)
- deleteResourcePolicyStatement_resourceArn :: Lens' DeleteResourcePolicyStatement Text
- deleteResourcePolicyStatement_statementId :: Lens' DeleteResourcePolicyStatement Text
- data DeleteResourcePolicyStatementResponse = DeleteResourcePolicyStatementResponse' {
- resourceArn :: Maybe Text
- revisionId :: Maybe Text
- httpStatus :: Int
- newDeleteResourcePolicyStatementResponse :: Int -> DeleteResourcePolicyStatementResponse
- deleteResourcePolicyStatementResponse_resourceArn :: Lens' DeleteResourcePolicyStatementResponse (Maybe Text)
- deleteResourcePolicyStatementResponse_revisionId :: Lens' DeleteResourcePolicyStatementResponse (Maybe Text)
- deleteResourcePolicyStatementResponse_httpStatus :: Lens' DeleteResourcePolicyStatementResponse Int
Creating a Request
data DeleteResourcePolicyStatement Source #
See: newDeleteResourcePolicyStatement
smart constructor.
DeleteResourcePolicyStatement' | |
|
Instances
newDeleteResourcePolicyStatement Source #
Create a value of DeleteResourcePolicyStatement
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:DeleteResourcePolicyStatement'
, deleteResourcePolicyStatement_expectedRevisionId
- The identifier of the revision of the policy to delete the statement
from. If this revision ID doesn't match the current revision ID, Amazon
Lex throws an exception.
If you don't specify a revision, Amazon Lex removes the current contents of the statement.
DeleteResourcePolicyStatement
, deleteResourcePolicyStatement_resourceArn
- The Amazon Resource Name (ARN) of the bot or bot alias that the resource
policy is attached to.
$sel:statementId:DeleteResourcePolicyStatement'
, deleteResourcePolicyStatement_statementId
- The name of the statement (SID) to delete from the policy.
Request Lenses
deleteResourcePolicyStatement_expectedRevisionId :: Lens' DeleteResourcePolicyStatement (Maybe Text) Source #
The identifier of the revision of the policy to delete the statement from. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.
If you don't specify a revision, Amazon Lex removes the current contents of the statement.
deleteResourcePolicyStatement_resourceArn :: Lens' DeleteResourcePolicyStatement Text Source #
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
deleteResourcePolicyStatement_statementId :: Lens' DeleteResourcePolicyStatement Text Source #
The name of the statement (SID) to delete from the policy.
Destructuring the Response
data DeleteResourcePolicyStatementResponse Source #
See: newDeleteResourcePolicyStatementResponse
smart constructor.
DeleteResourcePolicyStatementResponse' | |
|
Instances
newDeleteResourcePolicyStatementResponse Source #
Create a value of DeleteResourcePolicyStatementResponse
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:
DeleteResourcePolicyStatement
, deleteResourcePolicyStatementResponse_resourceArn
- The Amazon Resource Name (ARN) of the bot or bot alias that the resource
policy statement was removed from.
$sel:revisionId:DeleteResourcePolicyStatementResponse'
, deleteResourcePolicyStatementResponse_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:DeleteResourcePolicyStatementResponse'
, deleteResourcePolicyStatementResponse_httpStatus
- The response's http status code.
Response Lenses
deleteResourcePolicyStatementResponse_resourceArn :: Lens' DeleteResourcePolicyStatementResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy statement was removed from.
deleteResourcePolicyStatementResponse_revisionId :: Lens' DeleteResourcePolicyStatementResponse (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.
deleteResourcePolicyStatementResponse_httpStatus :: Lens' DeleteResourcePolicyStatementResponse Int Source #
The response's http status code.