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 |
Gets detailed information about the specified grant.
Synopsis
- data GetGrant = GetGrant' {}
- newGetGrant :: Text -> GetGrant
- getGrant_version :: Lens' GetGrant (Maybe Text)
- getGrant_grantArn :: Lens' GetGrant Text
- data GetGrantResponse = GetGrantResponse' {
- grant :: Maybe Grant
- httpStatus :: Int
- newGetGrantResponse :: Int -> GetGrantResponse
- getGrantResponse_grant :: Lens' GetGrantResponse (Maybe Grant)
- getGrantResponse_httpStatus :: Lens' GetGrantResponse Int
Creating a Request
See: newGetGrant
smart constructor.
Instances
Create a value of GetGrant
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:version:GetGrant'
, getGrant_version
- Grant version.
$sel:grantArn:GetGrant'
, getGrant_grantArn
- Amazon Resource Name (ARN) of the grant.
Request Lenses
Destructuring the Response
data GetGrantResponse Source #
See: newGetGrantResponse
smart constructor.
GetGrantResponse' | |
|
Instances
Create a value of GetGrantResponse
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:grant:GetGrantResponse'
, getGrantResponse_grant
- Grant details.
$sel:httpStatus:GetGrantResponse'
, getGrantResponse_httpStatus
- The response's http status code.
Response Lenses
getGrantResponse_grant :: Lens' GetGrantResponse (Maybe Grant) Source #
Grant details.
getGrantResponse_httpStatus :: Lens' GetGrantResponse Int Source #
The response's http status code.