amazonka-license-manager-2.0: Amazon License Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data CreateGrant Source #

See: newCreateGrant smart constructor.

Constructors

CreateGrant' 

Fields

Instances

Instances details
ToJSON CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

ToHeaders CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Methods

toHeaders :: CreateGrant -> [Header] #

ToPath CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

ToQuery CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

AWSRequest CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Associated Types

type AWSResponse CreateGrant #

Generic CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Associated Types

type Rep CreateGrant :: Type -> Type #

Read CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Show CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

NFData CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Methods

rnf :: CreateGrant -> () #

Eq CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Hashable CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

type AWSResponse CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

type Rep CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

type Rep CreateGrant = D1 ('MetaData "CreateGrant" "Amazonka.LicenseManager.CreateGrant" "amazonka-license-manager-2.0-7MwrI8iJ3YaDRGRrldCApy" 'False) (C1 ('MetaCons "CreateGrant'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "grantName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "licenseArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "principals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)) :*: (S1 ('MetaSel ('Just "homeRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "allowedOperations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty AllowedOperation))))))

newCreateGrant Source #

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_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.

Destructuring the Response

data CreateGrantResponse Source #

See: newCreateGrantResponse smart constructor.

Constructors

CreateGrantResponse' 

Fields

Instances

Instances details
Generic CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Associated Types

type Rep CreateGrantResponse :: Type -> Type #

Read CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Show CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

NFData CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Methods

rnf :: CreateGrantResponse -> () #

Eq CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

type Rep CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

type Rep CreateGrantResponse = D1 ('MetaData "CreateGrantResponse" "Amazonka.LicenseManager.CreateGrant" "amazonka-license-manager-2.0-7MwrI8iJ3YaDRGRrldCApy" 'False) (C1 ('MetaCons "CreateGrantResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "grantArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GrantStatus))) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:

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