Skip to content

/AWS1/CL_LIC=>UPDATELICENSESPECSFORRESRC()

About UpdateLicenseSpecificationsForResource

Adds or removes the specified license configurations for the specified Amazon Web Services resource.

You can update the license specifications of AMIs, instances, and hosts. You cannot update the license specifications for launch templates and CloudFormation templates, as they send license configurations to the operation that creates the resource.

Method Signature

IMPORTING

Required arguments:

IV_RESOURCEARN TYPE /AWS1/LICSTRING /AWS1/LICSTRING

Amazon Resource Name (ARN) of the Amazon Web Services resource.

Optional arguments:

IT_ADDLICENSESPECIFICATIONS TYPE /AWS1/CL_LICLICENSESPEC=>TT_LICENSESPECIFICATIONS TT_LICENSESPECIFICATIONS

ARNs of the license configurations to add.

IT_REMOVELICENSESPECS TYPE /AWS1/CL_LICLICENSESPEC=>TT_LICENSESPECIFICATIONS TT_LICENSESPECIFICATIONS

ARNs of the license configurations to remove.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LICUPLICENSESPECSFO01 /AWS1/CL_LICUPLICENSESPECSFO01