Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes the specified grant.
Synopsis
- data DeleteGrant = DeleteGrant' {}
- newDeleteGrant :: Text -> Text -> DeleteGrant
- deleteGrant_statusReason :: Lens' DeleteGrant (Maybe Text)
- deleteGrant_grantArn :: Lens' DeleteGrant Text
- deleteGrant_version :: Lens' DeleteGrant Text
- data DeleteGrantResponse = DeleteGrantResponse' {}
- newDeleteGrantResponse :: Int -> DeleteGrantResponse
- deleteGrantResponse_status :: Lens' DeleteGrantResponse (Maybe GrantStatus)
- deleteGrantResponse_version :: Lens' DeleteGrantResponse (Maybe Text)
- deleteGrantResponse_grantArn :: Lens' DeleteGrantResponse (Maybe Text)
- deleteGrantResponse_httpStatus :: Lens' DeleteGrantResponse Int
Creating a Request
data DeleteGrant Source #
See: newDeleteGrant
smart constructor.
Instances
Create a value of DeleteGrant
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:statusReason:DeleteGrant'
, deleteGrant_statusReason
- The Status reason for the delete request.
$sel:grantArn:DeleteGrant'
, deleteGrant_grantArn
- Amazon Resource Name (ARN) of the grant.
$sel:version:DeleteGrant'
, deleteGrant_version
- Current version of the grant.
Request Lenses
deleteGrant_statusReason :: Lens' DeleteGrant (Maybe Text) Source #
The Status reason for the delete request.
deleteGrant_grantArn :: Lens' DeleteGrant Text Source #
Amazon Resource Name (ARN) of the grant.
deleteGrant_version :: Lens' DeleteGrant Text Source #
Current version of the grant.
Destructuring the Response
data DeleteGrantResponse Source #
See: newDeleteGrantResponse
smart constructor.
Instances
newDeleteGrantResponse Source #
Create a value of DeleteGrantResponse
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:status:DeleteGrantResponse'
, deleteGrantResponse_status
- Grant status.
$sel:version:DeleteGrant'
, deleteGrantResponse_version
- Grant version.
$sel:grantArn:DeleteGrant'
, deleteGrantResponse_grantArn
- Grant ARN.
$sel:httpStatus:DeleteGrantResponse'
, deleteGrantResponse_httpStatus
- The response's http status code.
Response Lenses
deleteGrantResponse_status :: Lens' DeleteGrantResponse (Maybe GrantStatus) Source #
Grant status.
deleteGrantResponse_version :: Lens' DeleteGrantResponse (Maybe Text) Source #
Grant version.
deleteGrantResponse_grantArn :: Lens' DeleteGrantResponse (Maybe Text) Source #
Grant ARN.
deleteGrantResponse_httpStatus :: Lens' DeleteGrantResponse Int Source #
The response's http status code.