@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSLicenseManagerClient extends AmazonWebServiceClient implements AWSLicenseManager
AWS License Manager makes it easier to manage licenses from software vendors across multiple AWS accounts and on-premises servers.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shutdown
public static AWSLicenseManagerClientBuilder builder()
public CreateLicenseConfigurationResult createLicenseConfiguration(CreateLicenseConfigurationRequest request)
Creates a license configuration.
A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), license affinity to host (how long a license must be associated with a host), and the number of licenses purchased and used.
createLicenseConfiguration
in interface AWSLicenseManager
createLicenseConfigurationRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.ResourceLimitExceededException
- Your resource limits have been exceeded.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public DeleteLicenseConfigurationResult deleteLicenseConfiguration(DeleteLicenseConfigurationRequest request)
Deletes the specified license configuration.
You cannot delete a license configuration that is in use.
deleteLicenseConfiguration
in interface AWSLicenseManager
deleteLicenseConfigurationRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public GetLicenseConfigurationResult getLicenseConfiguration(GetLicenseConfigurationRequest request)
Gets detailed information about the specified license configuration.
getLicenseConfiguration
in interface AWSLicenseManager
getLicenseConfigurationRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public GetServiceSettingsResult getServiceSettings(GetServiceSettingsRequest request)
Gets the License Manager settings for the current Region.
getServiceSettings
in interface AWSLicenseManager
getServiceSettingsRequest
- ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public ListAssociationsForLicenseConfigurationResult listAssociationsForLicenseConfiguration(ListAssociationsForLicenseConfigurationRequest request)
Lists the resource associations for the specified license configuration.
Resource associations need not consume licenses from a license configuration. For example, an AMI or a stopped instance might not consume a license (depending on the license rules).
listAssociationsForLicenseConfiguration
in interface AWSLicenseManager
listAssociationsForLicenseConfigurationRequest
- InvalidParameterValueException
- One or more parameter values are not valid.FilterLimitExceededException
- The request uses too many filters or too many filter values.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public ListFailuresForLicenseConfigurationOperationsResult listFailuresForLicenseConfigurationOperations(ListFailuresForLicenseConfigurationOperationsRequest request)
Lists the license configuration operations that failed.
listFailuresForLicenseConfigurationOperations
in interface AWSLicenseManager
listFailuresForLicenseConfigurationOperationsRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public ListLicenseConfigurationsResult listLicenseConfigurations(ListLicenseConfigurationsRequest request)
Lists the license configurations for your account.
listLicenseConfigurations
in interface AWSLicenseManager
listLicenseConfigurationsRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.FilterLimitExceededException
- The request uses too many filters or too many filter values.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public ListLicenseSpecificationsForResourceResult listLicenseSpecificationsForResource(ListLicenseSpecificationsForResourceRequest request)
Describes the license configurations for the specified resource.
listLicenseSpecificationsForResource
in interface AWSLicenseManager
listLicenseSpecificationsForResourceRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public ListResourceInventoryResult listResourceInventory(ListResourceInventoryRequest request)
Lists resources managed using Systems Manager inventory.
listResourceInventory
in interface AWSLicenseManager
listResourceInventoryRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.FilterLimitExceededException
- The request uses too many filters or too many filter values.FailedDependencyException
- A dependency required to run the API is missing.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the tags for the specified license configuration.
listTagsForResource
in interface AWSLicenseManager
listTagsForResourceRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public ListUsageForLicenseConfigurationResult listUsageForLicenseConfiguration(ListUsageForLicenseConfigurationRequest request)
Lists all license usage records for a license configuration, displaying license consumption details by resource at a selected point in time. Use this action to audit the current license consumption for any license inventory and configuration.
listUsageForLicenseConfiguration
in interface AWSLicenseManager
listUsageForLicenseConfigurationRequest
- InvalidParameterValueException
- One or more parameter values are not valid.FilterLimitExceededException
- The request uses too many filters or too many filter values.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public TagResourceResult tagResource(TagResourceRequest request)
Adds the specified tags to the specified license configuration.
tagResource
in interface AWSLicenseManager
tagResourceRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes the specified tags from the specified license configuration.
untagResource
in interface AWSLicenseManager
untagResourceRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public UpdateLicenseConfigurationResult updateLicenseConfiguration(UpdateLicenseConfigurationRequest request)
Modifies the attributes of an existing license configuration.
updateLicenseConfiguration
in interface AWSLicenseManager
updateLicenseConfigurationRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public UpdateLicenseSpecificationsForResourceResult updateLicenseSpecificationsForResource(UpdateLicenseSpecificationsForResourceRequest request)
Adds or removes the specified license configurations for the specified AWS resource.
You can update the license specifications of AMIs, instances, and hosts. You cannot update the license specifications for launch templates and AWS CloudFormation templates, as they send license configurations to the operation that creates the resource.
updateLicenseSpecificationsForResource
in interface AWSLicenseManager
updateLicenseSpecificationsForResourceRequest
- InvalidParameterValueException
- One or more parameter values are not valid.InvalidResourceStateException
- License Manager cannot allocate a license to a resource because of its state.
For example, you cannot allocate a license to an instance in the process of shutting down.
LicenseUsageException
- You do not have enough licenses available to support a new resource launch.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public UpdateServiceSettingsResult updateServiceSettings(UpdateServiceSettingsRequest request)
Updates License Manager settings for the current Region.
updateServiceSettings
in interface AWSLicenseManager
updateServiceSettingsRequest
- InvalidParameterValueException
- One or more parameter values are not valid.ServerInternalException
- The server experienced an internal error. Try again.AuthorizationException
- The AWS user account does not have permission to perform the action. Check the IAM policy associated with
this account.AccessDeniedException
- Access to resource denied.RateLimitExceededException
- Too many requests have been submitted. Try again after a brief wait.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSLicenseManager
request
- The originally executed request