LicenseManager / Client / update_license_specifications_for_resource

update_license_specifications_for_resource#

LicenseManager.Client.update_license_specifications_for_resource(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.update_license_specifications_for_resource(
    ResourceArn='string',
    AddLicenseSpecifications=[
        {
            'LicenseConfigurationArn': 'string',
            'AmiAssociationScope': 'string'
        },
    ],
    RemoveLicenseSpecifications=[
        {
            'LicenseConfigurationArn': 'string',
            'AmiAssociationScope': 'string'
        },
    ]
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

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

  • AddLicenseSpecifications (list) –

    ARNs of the license configurations to add.

    • (dict) –

      Details for associating a license configuration with a resource.

      • LicenseConfigurationArn (string) – [REQUIRED]

        Amazon Resource Name (ARN) of the license configuration.

      • AmiAssociationScope (string) –

        Scope of AMI associations. The possible value is cross-account.

  • RemoveLicenseSpecifications (list) –

    ARNs of the license configurations to remove.

    • (dict) –

      Details for associating a license configuration with a resource.

      • LicenseConfigurationArn (string) – [REQUIRED]

        Amazon Resource Name (ARN) of the license configuration.

      • AmiAssociationScope (string) –

        Scope of AMI associations. The possible value is cross-account.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions