Skip to content

UpdateLicenseSpecificationsForResource

Source: src/AWS/LicenseManager/UpdateLicenseSpecificationsForResource.ts

Runtime binding for license-manager:UpdateLicenseSpecificationsForResource — associate or disassociate license configurations with a resource (e.g. attach a license configuration to an AMI so launches are tracked).

Provide the implementation with Effect.provide(AWS.LicenseManager.UpdateLicenseSpecificationsForResourceHttp).

// init
const updateSpecifications =
yield* AWS.LicenseManager.UpdateLicenseSpecificationsForResource();
// runtime
yield* updateSpecifications({
ResourceArn: amiArn,
AddLicenseSpecifications: [
{ LicenseConfigurationArn: configurationArn },
],
});