| 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.CreateGrant
Description
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_grantArn :: Lens' CreateGrantResponse (Maybe Text)
- createGrantResponse_status :: Lens' CreateGrantResponse (Maybe GrantStatus)
- createGrantResponse_version :: Lens' CreateGrantResponse (Maybe Text)
- createGrantResponse_httpStatus :: Lens' CreateGrantResponse Int
Creating a Request
data CreateGrant Source #
See: newCreateGrant smart constructor.
Constructors
| CreateGrant' | |
Fields
| |
Instances
Arguments
| :: 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.
CreateGrant, createGrant_grantName - Grant name.
CreateGrant, createGrant_licenseArn - Amazon Resource Name (ARN) of the license.
$sel:principals:CreateGrant', createGrant_principals - The grant principals. This value should be specified as an Amazon
Resource Name (ARN).
CreateGrant, createGrant_homeRegion - Home Region of the grant.
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. This value should be specified as an Amazon Resource Name (ARN).
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.
Constructors
| CreateGrantResponse' | |
Instances
newCreateGrantResponse Source #
Arguments
| :: Int | |
| -> CreateGrantResponse |
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:
CreateGrantResponse, createGrantResponse_grantArn - Grant ARN.
CreateGrantResponse, createGrantResponse_status - Grant status.
CreateGrantResponse, createGrantResponse_version - Grant version.
$sel:httpStatus:CreateGrantResponse', createGrantResponse_httpStatus - The response's http status code.
Response Lenses
createGrantResponse_grantArn :: Lens' CreateGrantResponse (Maybe Text) Source #
Grant ARN.
createGrantResponse_status :: Lens' CreateGrantResponse (Maybe GrantStatus) Source #
Grant status.
createGrantResponse_version :: Lens' CreateGrantResponse (Maybe Text) Source #
Grant version.
createGrantResponse_httpStatus :: Lens' CreateGrantResponse Int Source #
The response's http status code.