/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.licensemanager; import org.w3c.dom.*; import java.net.*; import java.util.*; import javax.annotation.Generated; import org.apache.commons.logging.*; import com.amazonaws.*; import com.amazonaws.annotation.SdkInternalApi; import com.amazonaws.auth.*; import com.amazonaws.handlers.*; import com.amazonaws.http.*; import com.amazonaws.internal.*; import com.amazonaws.internal.auth.*; import com.amazonaws.metrics.*; import com.amazonaws.regions.*; import com.amazonaws.transform.*; import com.amazonaws.util.*; import com.amazonaws.protocol.json.*; import com.amazonaws.util.AWSRequestMetrics.Field; import com.amazonaws.annotation.ThreadSafe; import com.amazonaws.client.AwsSyncClientParams; import com.amazonaws.client.builder.AdvancedConfig; import com.amazonaws.services.licensemanager.AWSLicenseManagerClientBuilder; import com.amazonaws.AmazonServiceException; import com.amazonaws.services.licensemanager.model.*; import com.amazonaws.services.licensemanager.model.transform.*; /** * Client for accessing AWS License Manager. All service calls made using this client are blocking, and will not return * until the service call completes. *
*
* License Manager makes it easier to manage licenses from software vendors across multiple Amazon Web Services accounts * and on-premises servers. *
*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSLicenseManagerClient extends AmazonWebServiceClient implements AWSLicenseManager { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AWSLicenseManager.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "license-manager"; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory( new JsonClientMetadata() .withProtocolVersion("1.1") .withSupportsCbor(false) .withSupportsIon(false) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("FailedDependencyException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.FailedDependencyExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidParameterValueException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.InvalidParameterValueExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("RateLimitExceededException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.RateLimitExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("FilterLimitExceededException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.FilterLimitExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ServerInternalException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.ServerInternalExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("RedirectException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.RedirectExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("UnsupportedDigitalSignatureMethodException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.UnsupportedDigitalSignatureMethodExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AuthorizationException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.AuthorizationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.ConflictExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidResourceStateException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.InvalidResourceStateExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("EntitlementNotAllowedException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.EntitlementNotAllowedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ValidationException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.ValidationExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("NoEntitlementsAllowedException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.NoEntitlementsAllowedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("LicenseUsageException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.LicenseUsageExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceLimitExceededException").withExceptionUnmarshaller( com.amazonaws.services.licensemanager.model.transform.ResourceLimitExceededExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.licensemanager.model.AWSLicenseManagerException.class)); public static AWSLicenseManagerClientBuilder builder() { return AWSLicenseManagerClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on AWS License Manager using the specified parameters. * ** All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSLicenseManagerClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on AWS License Manager using the specified parameters. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSLicenseManagerClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly setEndpoint("license-manager.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/licensemanager/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/licensemanager/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *
* Accepts the specified grant. *
* * @param acceptGrantRequest * @return Result of the AcceptGrant operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.AcceptGrant * @see AWS * API Documentation */ @Override public AcceptGrantResult acceptGrant(AcceptGrantRequest request) { request = beforeClientExecution(request); return executeAcceptGrant(request); } @SdkInternalApi final AcceptGrantResult executeAcceptGrant(AcceptGrantRequest acceptGrantRequest) { ExecutionContext executionContext = createExecutionContext(acceptGrantRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Checks in the specified license. Check in a license when it is no longer in use. *
* * @param checkInLicenseRequest * @return Result of the CheckInLicense operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceNotFoundException * The resource cannot be found. * @throws ConflictException * There was a conflict processing the request. Try your request again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.CheckInLicense * @see AWS * API Documentation */ @Override public CheckInLicenseResult checkInLicense(CheckInLicenseRequest request) { request = beforeClientExecution(request); return executeCheckInLicense(request); } @SdkInternalApi final CheckInLicenseResult executeCheckInLicense(CheckInLicenseRequest checkInLicenseRequest) { ExecutionContext executionContext = createExecutionContext(checkInLicenseRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Checks out the specified license for offline use. *
* * @param checkoutBorrowLicenseRequest * @return Result of the CheckoutBorrowLicense operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceNotFoundException * The resource cannot be found. * @throws NoEntitlementsAllowedException * There are no entitlements found for this license, or the entitlement maximum count is reached. * @throws EntitlementNotAllowedException * The entitlement is not allowed. * @throws UnsupportedDigitalSignatureMethodException * The digital signature method is unsupported. Try your request again. * @throws RedirectException * This is not the correct Region for the resource. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.CheckoutBorrowLicense * @see AWS API Documentation */ @Override public CheckoutBorrowLicenseResult checkoutBorrowLicense(CheckoutBorrowLicenseRequest request) { request = beforeClientExecution(request); return executeCheckoutBorrowLicense(request); } @SdkInternalApi final CheckoutBorrowLicenseResult executeCheckoutBorrowLicense(CheckoutBorrowLicenseRequest checkoutBorrowLicenseRequest) { ExecutionContext executionContext = createExecutionContext(checkoutBorrowLicenseRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Checks out the specified license. *
** If the account that created the license is the same that is performing the check out, you must specify the * account as the beneficiary. *
** Creates a grant for the specified license. A grant shares the use of license entitlements with a specific Amazon * Web Services account, an organization, or an organizational unit (OU). For more information, see Granted licenses in * License Manager in the License Manager User Guide. *
* * @param createGrantRequest * @return Result of the CreateGrant operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws AccessDeniedException * Access to resource denied. * @sample AWSLicenseManager.CreateGrant * @see AWS * API Documentation */ @Override public CreateGrantResult createGrant(CreateGrantRequest request) { request = beforeClientExecution(request); return executeCreateGrant(request); } @SdkInternalApi final CreateGrantResult executeCreateGrant(CreateGrantRequest createGrantRequest) { ExecutionContext executionContext = createExecutionContext(createGrantRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a new version of the specified grant. For more information, see Granted licenses in * License Manager in the License Manager User Guide. *
* * @param createGrantVersionRequest * @return Result of the CreateGrantVersion operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.CreateGrantVersion * @see AWS API Documentation */ @Override public CreateGrantVersionResult createGrantVersion(CreateGrantVersionRequest request) { request = beforeClientExecution(request); return executeCreateGrantVersion(request); } @SdkInternalApi final CreateGrantVersionResult executeCreateGrantVersion(CreateGrantVersionRequest createGrantVersionRequest) { ExecutionContext executionContext = createExecutionContext(createGrantVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a license. *
* * @param createLicenseRequest * @return Result of the CreateLicense operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws RedirectException * This is not the correct Region for the resource. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.CreateLicense * @see AWS * API Documentation */ @Override public CreateLicenseResult createLicense(CreateLicenseRequest request) { request = beforeClientExecution(request); return executeCreateLicense(request); } @SdkInternalApi final CreateLicenseResult executeCreateLicense(CreateLicenseRequest createLicenseRequest) { ExecutionContext executionContext = createExecutionContext(createLicenseRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); 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. *
* * @param createLicenseConfigurationRequest * @return Result of the CreateLicenseConfiguration operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.CreateLicenseConfiguration * @see AWS API Documentation */ @Override public CreateLicenseConfigurationResult createLicenseConfiguration(CreateLicenseConfigurationRequest request) { request = beforeClientExecution(request); return executeCreateLicenseConfiguration(request); } @SdkInternalApi final CreateLicenseConfigurationResult executeCreateLicenseConfiguration(CreateLicenseConfigurationRequest createLicenseConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(createLicenseConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a new license conversion task. *
* * @param createLicenseConversionTaskForResourceRequest * @return Result of the CreateLicenseConversionTaskForResource operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.CreateLicenseConversionTaskForResource * @see AWS API Documentation */ @Override public CreateLicenseConversionTaskForResourceResult createLicenseConversionTaskForResource(CreateLicenseConversionTaskForResourceRequest request) { request = beforeClientExecution(request); return executeCreateLicenseConversionTaskForResource(request); } @SdkInternalApi final CreateLicenseConversionTaskForResourceResult executeCreateLicenseConversionTaskForResource( CreateLicenseConversionTaskForResourceRequest createLicenseConversionTaskForResourceRequest) { ExecutionContext executionContext = createExecutionContext(createLicenseConversionTaskForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a report generator. *
* * @param createLicenseManagerReportGeneratorRequest * @return Result of the CreateLicenseManagerReportGenerator operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws AccessDeniedException * Access to resource denied. * @throws ResourceNotFoundException * The resource cannot be found. * @sample AWSLicenseManager.CreateLicenseManagerReportGenerator * @see AWS API Documentation */ @Override public CreateLicenseManagerReportGeneratorResult createLicenseManagerReportGenerator(CreateLicenseManagerReportGeneratorRequest request) { request = beforeClientExecution(request); return executeCreateLicenseManagerReportGenerator(request); } @SdkInternalApi final CreateLicenseManagerReportGeneratorResult executeCreateLicenseManagerReportGenerator( CreateLicenseManagerReportGeneratorRequest createLicenseManagerReportGeneratorRequest) { ExecutionContext executionContext = createExecutionContext(createLicenseManagerReportGeneratorRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a new version of the specified license. *
* * @param createLicenseVersionRequest * @return Result of the CreateLicenseVersion operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws AccessDeniedException * Access to resource denied. * @throws ResourceNotFoundException * The resource cannot be found. * @throws RedirectException * This is not the correct Region for the resource. Try again. * @throws ConflictException * There was a conflict processing the request. Try your request again. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.CreateLicenseVersion * @see AWS API Documentation */ @Override public CreateLicenseVersionResult createLicenseVersion(CreateLicenseVersionRequest request) { request = beforeClientExecution(request); return executeCreateLicenseVersion(request); } @SdkInternalApi final CreateLicenseVersionResult executeCreateLicenseVersion(CreateLicenseVersionRequest createLicenseVersionRequest) { ExecutionContext executionContext = createExecutionContext(createLicenseVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a long-lived token. *
** A refresh token is a JWT token used to get an access token. With an access token, you can call * AssumeRoleWithWebIdentity to get role credentials that you can use to call License Manager to manage the * specified license. *
* * @param createTokenRequest * @return Result of the CreateToken operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws ResourceNotFoundException * The resource cannot be found. * @throws RedirectException * This is not the correct Region for the resource. Try again. * @sample AWSLicenseManager.CreateToken * @see AWS * API Documentation */ @Override public CreateTokenResult createToken(CreateTokenRequest request) { request = beforeClientExecution(request); return executeCreateToken(request); } @SdkInternalApi final CreateTokenResult executeCreateToken(CreateTokenRequest createTokenRequest) { ExecutionContext executionContext = createExecutionContext(createTokenRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the specified grant. *
* * @param deleteGrantRequest * @return Result of the DeleteGrant operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.DeleteGrant * @see AWS * API Documentation */ @Override public DeleteGrantResult deleteGrant(DeleteGrantRequest request) { request = beforeClientExecution(request); return executeDeleteGrant(request); } @SdkInternalApi final DeleteGrantResult executeDeleteGrant(DeleteGrantRequest deleteGrantRequest) { ExecutionContext executionContext = createExecutionContext(deleteGrantRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the specified license. *
* * @param deleteLicenseRequest * @return Result of the DeleteLicense operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws RedirectException * This is not the correct Region for the resource. Try again. * @throws ConflictException * There was a conflict processing the request. Try your request again. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.DeleteLicense * @see AWS * API Documentation */ @Override public DeleteLicenseResult deleteLicense(DeleteLicenseRequest request) { request = beforeClientExecution(request); return executeDeleteLicense(request); } @SdkInternalApi final DeleteLicenseResult executeDeleteLicense(DeleteLicenseRequest deleteLicenseRequest) { ExecutionContext executionContext = createExecutionContext(deleteLicenseRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the specified license configuration. *
** You cannot delete a license configuration that is in use. *
* * @param deleteLicenseConfigurationRequest * @return Result of the DeleteLicenseConfiguration operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.DeleteLicenseConfiguration * @see AWS API Documentation */ @Override public DeleteLicenseConfigurationResult deleteLicenseConfiguration(DeleteLicenseConfigurationRequest request) { request = beforeClientExecution(request); return executeDeleteLicenseConfiguration(request); } @SdkInternalApi final DeleteLicenseConfigurationResult executeDeleteLicenseConfiguration(DeleteLicenseConfigurationRequest deleteLicenseConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(deleteLicenseConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the specified report generator. *
** This action deletes the report generator, which stops it from generating future reports. The action cannot be * reversed. It has no effect on the previous reports from this generator. *
* * @param deleteLicenseManagerReportGeneratorRequest * @return Result of the DeleteLicenseManagerReportGenerator operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws AccessDeniedException * Access to resource denied. * @throws ResourceNotFoundException * The resource cannot be found. * @sample AWSLicenseManager.DeleteLicenseManagerReportGenerator * @see AWS API Documentation */ @Override public DeleteLicenseManagerReportGeneratorResult deleteLicenseManagerReportGenerator(DeleteLicenseManagerReportGeneratorRequest request) { request = beforeClientExecution(request); return executeDeleteLicenseManagerReportGenerator(request); } @SdkInternalApi final DeleteLicenseManagerReportGeneratorResult executeDeleteLicenseManagerReportGenerator( DeleteLicenseManagerReportGeneratorRequest deleteLicenseManagerReportGeneratorRequest) { ExecutionContext executionContext = createExecutionContext(deleteLicenseManagerReportGeneratorRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes the specified token. Must be called in the license home Region. *
* * @param deleteTokenRequest * @return Result of the DeleteToken operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws ResourceNotFoundException * The resource cannot be found. * @throws RedirectException * This is not the correct Region for the resource. Try again. * @sample AWSLicenseManager.DeleteToken * @see AWS * API Documentation */ @Override public DeleteTokenResult deleteToken(DeleteTokenRequest request) { request = beforeClientExecution(request); return executeDeleteToken(request); } @SdkInternalApi final DeleteTokenResult executeDeleteToken(DeleteTokenRequest deleteTokenRequest) { ExecutionContext executionContext = createExecutionContext(deleteTokenRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Extends the expiration date for license consumption. *
* * @param extendLicenseConsumptionRequest * @return Result of the ExtendLicenseConsumption operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws ResourceNotFoundException * The resource cannot be found. * @sample AWSLicenseManager.ExtendLicenseConsumption * @see AWS API Documentation */ @Override public ExtendLicenseConsumptionResult extendLicenseConsumption(ExtendLicenseConsumptionRequest request) { request = beforeClientExecution(request); return executeExtendLicenseConsumption(request); } @SdkInternalApi final ExtendLicenseConsumptionResult executeExtendLicenseConsumption(ExtendLicenseConsumptionRequest extendLicenseConsumptionRequest) { ExecutionContext executionContext = createExecutionContext(extendLicenseConsumptionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets a temporary access token to use with AssumeRoleWithWebIdentity. Access tokens are valid for one hour. *
* * @param getAccessTokenRequest * @return Result of the GetAccessToken operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.GetAccessToken * @see AWS * API Documentation */ @Override public GetAccessTokenResult getAccessToken(GetAccessTokenRequest request) { request = beforeClientExecution(request); return executeGetAccessToken(request); } @SdkInternalApi final GetAccessTokenResult executeGetAccessToken(GetAccessTokenRequest getAccessTokenRequest) { ExecutionContext executionContext = createExecutionContext(getAccessTokenRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets detailed information about the specified grant. *
* * @param getGrantRequest * @return Result of the GetGrant operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.GetGrant * @see AWS API * Documentation */ @Override public GetGrantResult getGrant(GetGrantRequest request) { request = beforeClientExecution(request); return executeGetGrant(request); } @SdkInternalApi final GetGrantResult executeGetGrant(GetGrantRequest getGrantRequest) { ExecutionContext executionContext = createExecutionContext(getGrantRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets detailed information about the specified license. *
* * @param getLicenseRequest * @return Result of the GetLicense operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.GetLicense * @see AWS API * Documentation */ @Override public GetLicenseResult getLicense(GetLicenseRequest request) { request = beforeClientExecution(request); return executeGetLicense(request); } @SdkInternalApi final GetLicenseResult executeGetLicense(GetLicenseRequest getLicenseRequest) { ExecutionContext executionContext = createExecutionContext(getLicenseRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets detailed information about the specified license configuration. *
* * @param getLicenseConfigurationRequest * @return Result of the GetLicenseConfiguration operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.GetLicenseConfiguration * @see AWS API Documentation */ @Override public GetLicenseConfigurationResult getLicenseConfiguration(GetLicenseConfigurationRequest request) { request = beforeClientExecution(request); return executeGetLicenseConfiguration(request); } @SdkInternalApi final GetLicenseConfigurationResult executeGetLicenseConfiguration(GetLicenseConfigurationRequest getLicenseConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(getLicenseConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets information about the specified license type conversion task. *
* * @param getLicenseConversionTaskRequest * @return Result of the GetLicenseConversionTask operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.GetLicenseConversionTask * @see AWS API Documentation */ @Override public GetLicenseConversionTaskResult getLicenseConversionTask(GetLicenseConversionTaskRequest request) { request = beforeClientExecution(request); return executeGetLicenseConversionTask(request); } @SdkInternalApi final GetLicenseConversionTaskResult executeGetLicenseConversionTask(GetLicenseConversionTaskRequest getLicenseConversionTaskRequest) { ExecutionContext executionContext = createExecutionContext(getLicenseConversionTaskRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets information about the specified report generator. *
* * @param getLicenseManagerReportGeneratorRequest * @return Result of the GetLicenseManagerReportGenerator operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws AccessDeniedException * Access to resource denied. * @throws ResourceNotFoundException * The resource cannot be found. * @sample AWSLicenseManager.GetLicenseManagerReportGenerator * @see AWS API Documentation */ @Override public GetLicenseManagerReportGeneratorResult getLicenseManagerReportGenerator(GetLicenseManagerReportGeneratorRequest request) { request = beforeClientExecution(request); return executeGetLicenseManagerReportGenerator(request); } @SdkInternalApi final GetLicenseManagerReportGeneratorResult executeGetLicenseManagerReportGenerator( GetLicenseManagerReportGeneratorRequest getLicenseManagerReportGeneratorRequest) { ExecutionContext executionContext = createExecutionContext(getLicenseManagerReportGeneratorRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets detailed information about the usage of the specified license. *
* * @param getLicenseUsageRequest * @return Result of the GetLicenseUsage operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.GetLicenseUsage * @see AWS API Documentation */ @Override public GetLicenseUsageResult getLicenseUsage(GetLicenseUsageRequest request) { request = beforeClientExecution(request); return executeGetLicenseUsage(request); } @SdkInternalApi final GetLicenseUsageResult executeGetLicenseUsage(GetLicenseUsageRequest getLicenseUsageRequest) { ExecutionContext executionContext = createExecutionContext(getLicenseUsageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets the License Manager settings for the current Region. *
* * @param getServiceSettingsRequest * @return Result of the GetServiceSettings operation returned by the service. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.GetServiceSettings * @see AWS API Documentation */ @Override public GetServiceSettingsResult getServiceSettings(GetServiceSettingsRequest request) { request = beforeClientExecution(request); return executeGetServiceSettings(request); } @SdkInternalApi final GetServiceSettingsResult executeGetServiceSettings(GetServiceSettingsRequest getServiceSettingsRequest) { ExecutionContext executionContext = createExecutionContext(getServiceSettingsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); 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). *
* * @param listAssociationsForLicenseConfigurationRequest * @return Result of the ListAssociationsForLicenseConfiguration operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws FilterLimitExceededException * The request uses too many filters or too many filter values. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListAssociationsForLicenseConfiguration * @see AWS API Documentation */ @Override public ListAssociationsForLicenseConfigurationResult listAssociationsForLicenseConfiguration(ListAssociationsForLicenseConfigurationRequest request) { request = beforeClientExecution(request); return executeListAssociationsForLicenseConfiguration(request); } @SdkInternalApi final ListAssociationsForLicenseConfigurationResult executeListAssociationsForLicenseConfiguration( ListAssociationsForLicenseConfigurationRequest listAssociationsForLicenseConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(listAssociationsForLicenseConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the grants distributed for the specified license. *
* * @param listDistributedGrantsRequest * @return Result of the ListDistributedGrants operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListDistributedGrants * @see AWS API Documentation */ @Override public ListDistributedGrantsResult listDistributedGrants(ListDistributedGrantsRequest request) { request = beforeClientExecution(request); return executeListDistributedGrants(request); } @SdkInternalApi final ListDistributedGrantsResult executeListDistributedGrants(ListDistributedGrantsRequest listDistributedGrantsRequest) { ExecutionContext executionContext = createExecutionContext(listDistributedGrantsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the license configuration operations that failed. *
* * @param listFailuresForLicenseConfigurationOperationsRequest * @return Result of the ListFailuresForLicenseConfigurationOperations operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListFailuresForLicenseConfigurationOperations * @see AWS API Documentation */ @Override public ListFailuresForLicenseConfigurationOperationsResult listFailuresForLicenseConfigurationOperations( ListFailuresForLicenseConfigurationOperationsRequest request) { request = beforeClientExecution(request); return executeListFailuresForLicenseConfigurationOperations(request); } @SdkInternalApi final ListFailuresForLicenseConfigurationOperationsResult executeListFailuresForLicenseConfigurationOperations( ListFailuresForLicenseConfigurationOperationsRequest listFailuresForLicenseConfigurationOperationsRequest) { ExecutionContext executionContext = createExecutionContext(listFailuresForLicenseConfigurationOperationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the license configurations for your account. *
* * @param listLicenseConfigurationsRequest * @return Result of the ListLicenseConfigurations operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws FilterLimitExceededException * The request uses too many filters or too many filter values. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListLicenseConfigurations * @see AWS API Documentation */ @Override public ListLicenseConfigurationsResult listLicenseConfigurations(ListLicenseConfigurationsRequest request) { request = beforeClientExecution(request); return executeListLicenseConfigurations(request); } @SdkInternalApi final ListLicenseConfigurationsResult executeListLicenseConfigurations(ListLicenseConfigurationsRequest listLicenseConfigurationsRequest) { ExecutionContext executionContext = createExecutionContext(listLicenseConfigurationsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the license type conversion tasks for your account. *
* * @param listLicenseConversionTasksRequest * @return Result of the ListLicenseConversionTasks operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListLicenseConversionTasks * @see AWS API Documentation */ @Override public ListLicenseConversionTasksResult listLicenseConversionTasks(ListLicenseConversionTasksRequest request) { request = beforeClientExecution(request); return executeListLicenseConversionTasks(request); } @SdkInternalApi final ListLicenseConversionTasksResult executeListLicenseConversionTasks(ListLicenseConversionTasksRequest listLicenseConversionTasksRequest) { ExecutionContext executionContext = createExecutionContext(listLicenseConversionTasksRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the report generators for your account. *
* * @param listLicenseManagerReportGeneratorsRequest * @return Result of the ListLicenseManagerReportGenerators operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws AccessDeniedException * Access to resource denied. * @throws ResourceNotFoundException * The resource cannot be found. * @sample AWSLicenseManager.ListLicenseManagerReportGenerators * @see AWS API Documentation */ @Override public ListLicenseManagerReportGeneratorsResult listLicenseManagerReportGenerators(ListLicenseManagerReportGeneratorsRequest request) { request = beforeClientExecution(request); return executeListLicenseManagerReportGenerators(request); } @SdkInternalApi final ListLicenseManagerReportGeneratorsResult executeListLicenseManagerReportGenerators( ListLicenseManagerReportGeneratorsRequest listLicenseManagerReportGeneratorsRequest) { ExecutionContext executionContext = createExecutionContext(listLicenseManagerReportGeneratorsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Describes the license configurations for the specified resource. *
* * @param listLicenseSpecificationsForResourceRequest * @return Result of the ListLicenseSpecificationsForResource operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListLicenseSpecificationsForResource * @see AWS API Documentation */ @Override public ListLicenseSpecificationsForResourceResult listLicenseSpecificationsForResource(ListLicenseSpecificationsForResourceRequest request) { request = beforeClientExecution(request); return executeListLicenseSpecificationsForResource(request); } @SdkInternalApi final ListLicenseSpecificationsForResourceResult executeListLicenseSpecificationsForResource( ListLicenseSpecificationsForResourceRequest listLicenseSpecificationsForResourceRequest) { ExecutionContext executionContext = createExecutionContext(listLicenseSpecificationsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists all versions of the specified license. *
* * @param listLicenseVersionsRequest * @return Result of the ListLicenseVersions operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.ListLicenseVersions * @see AWS API Documentation */ @Override public ListLicenseVersionsResult listLicenseVersions(ListLicenseVersionsRequest request) { request = beforeClientExecution(request); return executeListLicenseVersions(request); } @SdkInternalApi final ListLicenseVersionsResult executeListLicenseVersions(ListLicenseVersionsRequest listLicenseVersionsRequest) { ExecutionContext executionContext = createExecutionContext(listLicenseVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the licenses for your account. *
* * @param listLicensesRequest * @return Result of the ListLicenses operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.ListLicenses * @see AWS * API Documentation */ @Override public ListLicensesResult listLicenses(ListLicensesRequest request) { request = beforeClientExecution(request); return executeListLicenses(request); } @SdkInternalApi final ListLicensesResult executeListLicenses(ListLicensesRequest listLicensesRequest) { ExecutionContext executionContext = createExecutionContext(listLicensesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists grants that are received. Received grants are grants created while specifying the recipient as this Amazon * Web Services account, your organization, or an organizational unit (OU) to which this member account belongs. *
* * @param listReceivedGrantsRequest * @return Result of the ListReceivedGrants operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListReceivedGrants * @see AWS API Documentation */ @Override public ListReceivedGrantsResult listReceivedGrants(ListReceivedGrantsRequest request) { request = beforeClientExecution(request); return executeListReceivedGrants(request); } @SdkInternalApi final ListReceivedGrantsResult executeListReceivedGrants(ListReceivedGrantsRequest listReceivedGrantsRequest) { ExecutionContext executionContext = createExecutionContext(listReceivedGrantsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the grants received for all accounts in the organization. *
* * @param listReceivedGrantsForOrganizationRequest * @return Result of the ListReceivedGrantsForOrganization operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListReceivedGrantsForOrganization * @see AWS API Documentation */ @Override public ListReceivedGrantsForOrganizationResult listReceivedGrantsForOrganization(ListReceivedGrantsForOrganizationRequest request) { request = beforeClientExecution(request); return executeListReceivedGrantsForOrganization(request); } @SdkInternalApi final ListReceivedGrantsForOrganizationResult executeListReceivedGrantsForOrganization( ListReceivedGrantsForOrganizationRequest listReceivedGrantsForOrganizationRequest) { ExecutionContext executionContext = createExecutionContext(listReceivedGrantsForOrganizationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists received licenses. *
* * @param listReceivedLicensesRequest * @return Result of the ListReceivedLicenses operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListReceivedLicenses * @see AWS API Documentation */ @Override public ListReceivedLicensesResult listReceivedLicenses(ListReceivedLicensesRequest request) { request = beforeClientExecution(request); return executeListReceivedLicenses(request); } @SdkInternalApi final ListReceivedLicensesResult executeListReceivedLicenses(ListReceivedLicensesRequest listReceivedLicensesRequest) { ExecutionContext executionContext = createExecutionContext(listReceivedLicensesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the licenses received for all accounts in the organization. *
* * @param listReceivedLicensesForOrganizationRequest * @return Result of the ListReceivedLicensesForOrganization operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListReceivedLicensesForOrganization * @see AWS API Documentation */ @Override public ListReceivedLicensesForOrganizationResult listReceivedLicensesForOrganization(ListReceivedLicensesForOrganizationRequest request) { request = beforeClientExecution(request); return executeListReceivedLicensesForOrganization(request); } @SdkInternalApi final ListReceivedLicensesForOrganizationResult executeListReceivedLicensesForOrganization( ListReceivedLicensesForOrganizationRequest listReceivedLicensesForOrganizationRequest) { ExecutionContext executionContext = createExecutionContext(listReceivedLicensesForOrganizationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists resources managed using Systems Manager inventory. *
* * @param listResourceInventoryRequest * @return Result of the ListResourceInventory operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws FilterLimitExceededException * The request uses too many filters or too many filter values. * @throws FailedDependencyException * A dependency required to run the API is missing. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListResourceInventory * @see AWS API Documentation */ @Override public ListResourceInventoryResult listResourceInventory(ListResourceInventoryRequest request) { request = beforeClientExecution(request); return executeListResourceInventory(request); } @SdkInternalApi final ListResourceInventoryResult executeListResourceInventory(ListResourceInventoryRequest listResourceInventoryRequest) { ExecutionContext executionContext = createExecutionContext(listResourceInventoryRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the tags for the specified license configuration. *
* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListTagsForResource * @see AWS API Documentation */ @Override public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { request = beforeClientExecution(request); return executeListTagsForResource(request); } @SdkInternalApi final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists your tokens. *
* * @param listTokensRequest * @return Result of the ListTokens operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.ListTokens * @see AWS API * Documentation */ @Override public ListTokensResult listTokens(ListTokensRequest request) { request = beforeClientExecution(request); return executeListTokens(request); } @SdkInternalApi final ListTokensResult executeListTokens(ListTokensRequest listTokensRequest) { ExecutionContext executionContext = createExecutionContext(listTokensRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); 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. *
* * @param listUsageForLicenseConfigurationRequest * @return Result of the ListUsageForLicenseConfiguration operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws FilterLimitExceededException * The request uses too many filters or too many filter values. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.ListUsageForLicenseConfiguration * @see AWS API Documentation */ @Override public ListUsageForLicenseConfigurationResult listUsageForLicenseConfiguration(ListUsageForLicenseConfigurationRequest request) { request = beforeClientExecution(request); return executeListUsageForLicenseConfiguration(request); } @SdkInternalApi final ListUsageForLicenseConfigurationResult executeListUsageForLicenseConfiguration( ListUsageForLicenseConfigurationRequest listUsageForLicenseConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(listUsageForLicenseConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Rejects the specified grant. *
* * @param rejectGrantRequest * @return Result of the RejectGrant operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @throws ServerInternalException * The server experienced an internal error. Try again. * @sample AWSLicenseManager.RejectGrant * @see AWS * API Documentation */ @Override public RejectGrantResult rejectGrant(RejectGrantRequest request) { request = beforeClientExecution(request); return executeRejectGrant(request); } @SdkInternalApi final RejectGrantResult executeRejectGrant(RejectGrantRequest rejectGrantRequest) { ExecutionContext executionContext = createExecutionContext(rejectGrantRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Adds the specified tags to the specified license configuration. *
* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.TagResource * @see AWS * API Documentation */ @Override public TagResourceResult tagResource(TagResourceRequest request) { request = beforeClientExecution(request); return executeTagResource(request); } @SdkInternalApi final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { ExecutionContext executionContext = createExecutionContext(tagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Removes the specified tags from the specified license configuration. *
* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @sample AWSLicenseManager.UntagResource * @see AWS * API Documentation */ @Override public UntagResourceResult untagResource(UntagResourceRequest request) { request = beforeClientExecution(request); return executeUntagResource(request); } @SdkInternalApi final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { ExecutionContext executionContext = createExecutionContext(untagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Modifies the attributes of an existing license configuration. *
* * @param updateLicenseConfigurationRequest * @return Result of the UpdateLicenseConfiguration operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @sample AWSLicenseManager.UpdateLicenseConfiguration * @see AWS API Documentation */ @Override public UpdateLicenseConfigurationResult updateLicenseConfiguration(UpdateLicenseConfigurationRequest request) { request = beforeClientExecution(request); return executeUpdateLicenseConfiguration(request); } @SdkInternalApi final UpdateLicenseConfigurationResult executeUpdateLicenseConfiguration(UpdateLicenseConfigurationRequest updateLicenseConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(updateLicenseConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates a report generator. *
** After you make changes to a report generator, it starts generating new reports within 60 minutes of being * updated. *
* * @param updateLicenseManagerReportGeneratorRequest * @return Result of the UpdateLicenseManagerReportGenerator operation returned by the service. * @throws ValidationException * The provided input is not valid. Try your request again. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws RateLimitExceededException * Too many requests have been submitted. Try again after a brief wait. * @throws ServerInternalException * The server experienced an internal error. Try again. * @throws AuthorizationException * The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy * associated with this account. * @throws AccessDeniedException * Access to resource denied. * @throws ResourceNotFoundException * The resource cannot be found. * @throws ResourceLimitExceededException * Your resource limits have been exceeded. * @sample AWSLicenseManager.UpdateLicenseManagerReportGenerator * @see AWS API Documentation */ @Override public UpdateLicenseManagerReportGeneratorResult updateLicenseManagerReportGenerator(UpdateLicenseManagerReportGeneratorRequest request) { request = beforeClientExecution(request); return executeUpdateLicenseManagerReportGenerator(request); } @SdkInternalApi final UpdateLicenseManagerReportGeneratorResult executeUpdateLicenseManagerReportGenerator( UpdateLicenseManagerReportGeneratorRequest updateLicenseManagerReportGeneratorRequest) { ExecutionContext executionContext = createExecutionContext(updateLicenseManagerReportGeneratorRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* 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. *
* * @param updateLicenseSpecificationsForResourceRequest * @return Result of the UpdateLicenseSpecificationsForResource operation returned by the service. * @throws InvalidParameterValueException * One or more parameter values are not valid. * @throws 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.
* @throws LicenseUsageException
* You do not have enough licenses available to support a new resource launch.
* @throws ServerInternalException
* The server experienced an internal error. Try again.
* @throws AuthorizationException
* The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy
* associated with this account.
* @throws AccessDeniedException
* Access to resource denied.
* @throws RateLimitExceededException
* Too many requests have been submitted. Try again after a brief wait.
* @sample AWSLicenseManager.UpdateLicenseSpecificationsForResource
* @see AWS API Documentation
*/
@Override
public UpdateLicenseSpecificationsForResourceResult updateLicenseSpecificationsForResource(UpdateLicenseSpecificationsForResourceRequest request) {
request = beforeClientExecution(request);
return executeUpdateLicenseSpecificationsForResource(request);
}
@SdkInternalApi
final UpdateLicenseSpecificationsForResourceResult executeUpdateLicenseSpecificationsForResource(
UpdateLicenseSpecificationsForResourceRequest updateLicenseSpecificationsForResourceRequest) {
ExecutionContext executionContext = createExecutionContext(updateLicenseSpecificationsForResourceRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request
* Updates License Manager settings for the current Region.
*
* 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.
*
* @param request
* The originally executed request
*
* @return The response metadata for the specified request, or null if none is available.
*/
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return client.getResponseMetadataForRequest(request);
}
/**
* Normal invoke with authentication. Credentials are required and may be overriden at the request level.
**/
private