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 grant for the specified license. A grant shares the use of license entitlements with specific Amazon Web Services accounts.
Synopsis
- data CreateGrant = CreateGrant' {}
- newCreateGrant :: Text -> Text -> Text -> NonEmpty Text -> Text -> NonEmpty AllowedOperation -> CreateGrant
- createGrant_clientToken :: Lens' CreateGrant Text
- createGrant_grantName :: Lens' CreateGrant Text
- createGrant_licenseArn :: Lens' CreateGrant Text
- createGrant_principals :: Lens' CreateGrant (NonEmpty Text)
- createGrant_homeRegion :: Lens' CreateGrant Text
- createGrant_allowedOperations :: Lens' CreateGrant (NonEmpty AllowedOperation)
- data CreateGrantResponse = CreateGrantResponse' {}
- newCreateGrantResponse :: Int -> CreateGrantResponse
- createGrantResponse_status :: Lens' CreateGrantResponse (Maybe GrantStatus)
- createGrantResponse_version :: Lens' CreateGrantResponse (Maybe Text)
- createGrantResponse_grantArn :: Lens' CreateGrantResponse (Maybe Text)
- createGrantResponse_httpStatus :: Lens' CreateGrantResponse Int
Creating a Request
data CreateGrant Source #
See: newCreateGrant
smart constructor.
CreateGrant' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> NonEmpty Text | |
-> Text | |
-> NonEmpty AllowedOperation | |
-> CreateGrant |
Create a value of CreateGrant
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:clientToken:CreateGrant'
, createGrant_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:grantName:CreateGrant'
, createGrant_grantName
- Grant name.
$sel:licenseArn:CreateGrant'
, createGrant_licenseArn
- Amazon Resource Name (ARN) of the license.
$sel:principals:CreateGrant'
, createGrant_principals
- The grant principals.
$sel:homeRegion:CreateGrant'
, createGrant_homeRegion
- Home Region of the grant.
$sel:allowedOperations:CreateGrant'
, createGrant_allowedOperations
- Allowed operations for the grant.
Request Lenses
createGrant_clientToken :: Lens' CreateGrant Text Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createGrant_grantName :: Lens' CreateGrant Text Source #
Grant name.
createGrant_licenseArn :: Lens' CreateGrant Text Source #
Amazon Resource Name (ARN) of the license.
createGrant_principals :: Lens' CreateGrant (NonEmpty Text) Source #
The grant principals.
createGrant_homeRegion :: Lens' CreateGrant Text Source #
Home Region of the grant.
createGrant_allowedOperations :: Lens' CreateGrant (NonEmpty AllowedOperation) Source #
Allowed operations for the grant.
Destructuring the Response
data CreateGrantResponse Source #
See: newCreateGrantResponse
smart constructor.
Instances
newCreateGrantResponse Source #
Create a value of CreateGrantResponse
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:CreateGrantResponse'
, createGrantResponse_status
- Grant status.
$sel:version:CreateGrantResponse'
, createGrantResponse_version
- Grant version.
$sel:grantArn:CreateGrantResponse'
, createGrantResponse_grantArn
- Grant ARN.
$sel:httpStatus:CreateGrantResponse'
, createGrantResponse_httpStatus
- The response's http status code.
Response Lenses
createGrantResponse_status :: Lens' CreateGrantResponse (Maybe GrantStatus) Source #
Grant status.
createGrantResponse_version :: Lens' CreateGrantResponse (Maybe Text) Source #
Grant version.
createGrantResponse_grantArn :: Lens' CreateGrantResponse (Maybe Text) Source #
Grant ARN.
createGrantResponse_httpStatus :: Lens' CreateGrantResponse Int Source #
The response's http status code.