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 |
Accepts the specified grant.
Synopsis
- data AcceptGrant = AcceptGrant' {}
- newAcceptGrant :: Text -> AcceptGrant
- acceptGrant_grantArn :: Lens' AcceptGrant Text
- data AcceptGrantResponse = AcceptGrantResponse' {}
- newAcceptGrantResponse :: Int -> AcceptGrantResponse
- acceptGrantResponse_status :: Lens' AcceptGrantResponse (Maybe GrantStatus)
- acceptGrantResponse_version :: Lens' AcceptGrantResponse (Maybe Text)
- acceptGrantResponse_grantArn :: Lens' AcceptGrantResponse (Maybe Text)
- acceptGrantResponse_httpStatus :: Lens' AcceptGrantResponse Int
Creating a Request
data AcceptGrant Source #
See: newAcceptGrant
smart constructor.
Instances
Create a value of AcceptGrant
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:grantArn:AcceptGrant'
, acceptGrant_grantArn
- Amazon Resource Name (ARN) of the grant.
Request Lenses
acceptGrant_grantArn :: Lens' AcceptGrant Text Source #
Amazon Resource Name (ARN) of the grant.
Destructuring the Response
data AcceptGrantResponse Source #
See: newAcceptGrantResponse
smart constructor.
Instances
newAcceptGrantResponse Source #
Create a value of AcceptGrantResponse
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:AcceptGrantResponse'
, acceptGrantResponse_status
- Grant status.
$sel:version:AcceptGrantResponse'
, acceptGrantResponse_version
- Grant version.
$sel:grantArn:AcceptGrant'
, acceptGrantResponse_grantArn
- Grant ARN.
$sel:httpStatus:AcceptGrantResponse'
, acceptGrantResponse_httpStatus
- The response's http status code.
Response Lenses
acceptGrantResponse_status :: Lens' AcceptGrantResponse (Maybe GrantStatus) Source #
Grant status.
acceptGrantResponse_version :: Lens' AcceptGrantResponse (Maybe Text) Source #
Grant version.
acceptGrantResponse_grantArn :: Lens' AcceptGrantResponse (Maybe Text) Source #
Grant ARN.
acceptGrantResponse_httpStatus :: Lens' AcceptGrantResponse Int Source #
The response's http status code.