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 |
Creates a new version of the specified grant.
Synopsis
- data CreateGrantVersion = CreateGrantVersion' {}
- newCreateGrantVersion :: Text -> Text -> CreateGrantVersion
- createGrantVersion_status :: Lens' CreateGrantVersion (Maybe GrantStatus)
- createGrantVersion_allowedOperations :: Lens' CreateGrantVersion (Maybe (NonEmpty AllowedOperation))
- createGrantVersion_grantName :: Lens' CreateGrantVersion (Maybe Text)
- createGrantVersion_sourceVersion :: Lens' CreateGrantVersion (Maybe Text)
- createGrantVersion_statusReason :: Lens' CreateGrantVersion (Maybe Text)
- createGrantVersion_clientToken :: Lens' CreateGrantVersion Text
- createGrantVersion_grantArn :: Lens' CreateGrantVersion Text
- data CreateGrantVersionResponse = CreateGrantVersionResponse' {}
- newCreateGrantVersionResponse :: Int -> CreateGrantVersionResponse
- createGrantVersionResponse_status :: Lens' CreateGrantVersionResponse (Maybe GrantStatus)
- createGrantVersionResponse_version :: Lens' CreateGrantVersionResponse (Maybe Text)
- createGrantVersionResponse_grantArn :: Lens' CreateGrantVersionResponse (Maybe Text)
- createGrantVersionResponse_httpStatus :: Lens' CreateGrantVersionResponse Int
Creating a Request
data CreateGrantVersion Source #
See: newCreateGrantVersion
smart constructor.
CreateGrantVersion' | |
|
Instances
newCreateGrantVersion Source #
:: Text | |
-> Text | |
-> CreateGrantVersion |
Create a value of CreateGrantVersion
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:CreateGrantVersion'
, createGrantVersion_status
- Grant status.
$sel:allowedOperations:CreateGrantVersion'
, createGrantVersion_allowedOperations
- Allowed operations for the grant.
$sel:grantName:CreateGrantVersion'
, createGrantVersion_grantName
- Grant name.
$sel:sourceVersion:CreateGrantVersion'
, createGrantVersion_sourceVersion
- Current version of the grant.
$sel:statusReason:CreateGrantVersion'
, createGrantVersion_statusReason
- Grant status reason.
$sel:clientToken:CreateGrantVersion'
, createGrantVersion_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:grantArn:CreateGrantVersion'
, createGrantVersion_grantArn
- Amazon Resource Name (ARN) of the grant.
Request Lenses
createGrantVersion_status :: Lens' CreateGrantVersion (Maybe GrantStatus) Source #
Grant status.
createGrantVersion_allowedOperations :: Lens' CreateGrantVersion (Maybe (NonEmpty AllowedOperation)) Source #
Allowed operations for the grant.
createGrantVersion_grantName :: Lens' CreateGrantVersion (Maybe Text) Source #
Grant name.
createGrantVersion_sourceVersion :: Lens' CreateGrantVersion (Maybe Text) Source #
Current version of the grant.
createGrantVersion_statusReason :: Lens' CreateGrantVersion (Maybe Text) Source #
Grant status reason.
createGrantVersion_clientToken :: Lens' CreateGrantVersion Text Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createGrantVersion_grantArn :: Lens' CreateGrantVersion Text Source #
Amazon Resource Name (ARN) of the grant.
Destructuring the Response
data CreateGrantVersionResponse Source #
See: newCreateGrantVersionResponse
smart constructor.
Instances
newCreateGrantVersionResponse Source #
Create a value of CreateGrantVersionResponse
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:CreateGrantVersion'
, createGrantVersionResponse_status
- Grant status.
$sel:version:CreateGrantVersionResponse'
, createGrantVersionResponse_version
- New version of the grant.
$sel:grantArn:CreateGrantVersion'
, createGrantVersionResponse_grantArn
- Grant ARN.
$sel:httpStatus:CreateGrantVersionResponse'
, createGrantVersionResponse_httpStatus
- The response's http status code.
Response Lenses
createGrantVersionResponse_status :: Lens' CreateGrantVersionResponse (Maybe GrantStatus) Source #
Grant status.
createGrantVersionResponse_version :: Lens' CreateGrantVersionResponse (Maybe Text) Source #
New version of the grant.
createGrantVersionResponse_grantArn :: Lens' CreateGrantVersionResponse (Maybe Text) Source #
Grant ARN.
createGrantVersionResponse_httpStatus :: Lens' CreateGrantVersionResponse Int Source #
The response's http status code.