libZSservicesZSamazonka-license-managerZSamazonka-license-manager
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Read CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Show CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Generic CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Associated Types

type Rep CreateGrant :: Type -> Type #

NFData CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Methods

rnf :: CreateGrant -> () #

Hashable CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

ToJSON CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

AWSRequest CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Associated Types

type AWSResponse 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

type Rep CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

type Rep CreateGrant = D1 ('MetaData "CreateGrant" "Amazonka.LicenseManager.CreateGrant" "libZSservicesZSamazonka-license-managerZSamazonka-license-manager" '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))))))
type AWSResponse CreateGrant Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

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.

$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_licenseArn :: Lens' CreateGrant Text Source #

Amazon Resource Name (ARN) of the license.

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
Eq CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Read CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Show CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Generic CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Associated Types

type Rep CreateGrantResponse :: Type -> Type #

NFData CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

Methods

rnf :: CreateGrantResponse -> () #

type Rep CreateGrantResponse Source # 
Instance details

Defined in Amazonka.LicenseManager.CreateGrant

type Rep CreateGrantResponse = D1 ('MetaData "CreateGrantResponse" "Amazonka.LicenseManager.CreateGrant" "libZSservicesZSamazonka-license-managerZSamazonka-license-manager" 'False) (C1 ('MetaCons "CreateGrantResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GrantStatus)) :*: S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "grantArn") '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:

$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