| 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 |
Amazonka.LicenseManager.CreateGrantVersion
Description
Creates a new version of the specified grant.
Synopsis
- data CreateGrantVersion = CreateGrantVersion' {}
- newCreateGrantVersion :: Text -> Text -> CreateGrantVersion
- createGrantVersion_allowedOperations :: Lens' CreateGrantVersion (Maybe (NonEmpty AllowedOperation))
- createGrantVersion_grantName :: Lens' CreateGrantVersion (Maybe Text)
- createGrantVersion_sourceVersion :: Lens' CreateGrantVersion (Maybe Text)
- createGrantVersion_status :: Lens' CreateGrantVersion (Maybe GrantStatus)
- createGrantVersion_statusReason :: Lens' CreateGrantVersion (Maybe Text)
- createGrantVersion_clientToken :: Lens' CreateGrantVersion Text
- createGrantVersion_grantArn :: Lens' CreateGrantVersion Text
- data CreateGrantVersionResponse = CreateGrantVersionResponse' {}
- newCreateGrantVersionResponse :: Int -> CreateGrantVersionResponse
- createGrantVersionResponse_grantArn :: Lens' CreateGrantVersionResponse (Maybe Text)
- createGrantVersionResponse_status :: Lens' CreateGrantVersionResponse (Maybe GrantStatus)
- createGrantVersionResponse_version :: Lens' CreateGrantVersionResponse (Maybe Text)
- createGrantVersionResponse_httpStatus :: Lens' CreateGrantVersionResponse Int
Creating a Request
data CreateGrantVersion Source #
See: newCreateGrantVersion smart constructor.
Constructors
| CreateGrantVersion' | |
Fields
| |
Instances
newCreateGrantVersion Source #
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:
CreateGrantVersion, createGrantVersion_allowedOperations - Allowed operations for the grant.
CreateGrantVersion, createGrantVersion_grantName - Grant name.
$sel:sourceVersion:CreateGrantVersion', createGrantVersion_sourceVersion - Current version of the grant.
CreateGrantVersion, createGrantVersion_status - Grant status.
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.
CreateGrantVersion, createGrantVersion_grantArn - Amazon Resource Name (ARN) of the grant.
Request Lenses
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_status :: Lens' CreateGrantVersion (Maybe GrantStatus) Source #
Grant status.
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.
Constructors
| CreateGrantVersionResponse' | |
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:
CreateGrantVersion, createGrantVersionResponse_grantArn - Grant ARN.
CreateGrantVersion, createGrantVersionResponse_status - Grant status.
CreateGrantVersionResponse, createGrantVersionResponse_version - New version of the grant.
$sel:httpStatus:CreateGrantVersionResponse', createGrantVersionResponse_httpStatus - The response's http status code.
Response Lenses
createGrantVersionResponse_grantArn :: Lens' CreateGrantVersionResponse (Maybe Text) Source #
Grant ARN.
createGrantVersionResponse_status :: Lens' CreateGrantVersionResponse (Maybe GrantStatus) Source #
Grant status.
createGrantVersionResponse_version :: Lens' CreateGrantVersionResponse (Maybe Text) Source #
New version of the grant.
createGrantVersionResponse_httpStatus :: Lens' CreateGrantVersionResponse Int Source #
The response's http status code.