/* * 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.licensemanagerusersubscriptions; import javax.annotation.Generated; import com.amazonaws.*; import com.amazonaws.regions.*; import com.amazonaws.services.licensemanagerusersubscriptions.model.*; /** * Interface for accessing AWS License Manager User Subscriptions. *

* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.licensemanagerusersubscriptions.AbstractAWSLicenseManagerUserSubscriptions} instead. *

*

*

* With License Manager, you can create user-based subscriptions to utilize licensed software with a per user * subscription fee on Amazon EC2 instances. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AWSLicenseManagerUserSubscriptions { /** * The region metadata service name for computing region endpoints. You can use this value to retrieve metadata * (such as supported regions) of the service. * * @see RegionUtils#getRegionsForService(String) */ String ENDPOINT_PREFIX = "license-manager-user-subscriptions"; /** *

* Associates the user to an EC2 instance to utilize user-based subscriptions. *

* *

* Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing * periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more * information, see Viewing your * monthly charges in the Amazon Web Services Billing User Guide. *

*
* * @param associateUserRequest * @return Result of the AssociateUser operation returned by the service. * @throws ServiceQuotaExceededException * The request failed because a service quota is exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.AssociateUser * @see AWS API Documentation */ AssociateUserResult associateUser(AssociateUserRequest associateUserRequest); /** *

* Deregisters the identity provider from providing user-based subscriptions. *

* * @param deregisterIdentityProviderRequest * @return Result of the DeregisterIdentityProvider operation returned by the service. * @throws ServiceQuotaExceededException * The request failed because a service quota is exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.DeregisterIdentityProvider * @see AWS API Documentation */ DeregisterIdentityProviderResult deregisterIdentityProvider(DeregisterIdentityProviderRequest deregisterIdentityProviderRequest); /** *

* Disassociates the user from an EC2 instance providing user-based subscriptions. *

* * @param disassociateUserRequest * @return Result of the DisassociateUser operation returned by the service. * @throws ServiceQuotaExceededException * The request failed because a service quota is exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.DisassociateUser * @see AWS API Documentation */ DisassociateUserResult disassociateUser(DisassociateUserRequest disassociateUserRequest); /** *

* Lists the identity providers for user-based subscriptions. *

* * @param listIdentityProvidersRequest * @return Result of the ListIdentityProviders operation returned by the service. * @throws ServiceQuotaExceededException * The request failed because a service quota is exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.ListIdentityProviders * @see AWS API Documentation */ ListIdentityProvidersResult listIdentityProviders(ListIdentityProvidersRequest listIdentityProvidersRequest); /** *

* Lists the EC2 instances providing user-based subscriptions. *

* * @param listInstancesRequest * @return Result of the ListInstances operation returned by the service. * @throws ServiceQuotaExceededException * The request failed because a service quota is exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.ListInstances * @see AWS API Documentation */ ListInstancesResult listInstances(ListInstancesRequest listInstancesRequest); /** *

* Lists the user-based subscription products available from an identity provider. *

* * @param listProductSubscriptionsRequest * @return Result of the ListProductSubscriptions operation returned by the service. * @throws ServiceQuotaExceededException * The request failed because a service quota is exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.ListProductSubscriptions * @see AWS API Documentation */ ListProductSubscriptionsResult listProductSubscriptions(ListProductSubscriptionsRequest listProductSubscriptionsRequest); /** *

* Lists user associations for an identity provider. *

* * @param listUserAssociationsRequest * @return Result of the ListUserAssociations operation returned by the service. * @throws ServiceQuotaExceededException * The request failed because a service quota is exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.ListUserAssociations * @see AWS API Documentation */ ListUserAssociationsResult listUserAssociations(ListUserAssociationsRequest listUserAssociationsRequest); /** *

* Registers an identity provider for user-based subscriptions. *

* * @param registerIdentityProviderRequest * @return Result of the RegisterIdentityProvider operation returned by the service. * @throws ServiceQuotaExceededException * The request failed because a service quota is exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.RegisterIdentityProvider * @see AWS API Documentation */ RegisterIdentityProviderResult registerIdentityProvider(RegisterIdentityProviderRequest registerIdentityProviderRequest); /** *

* Starts a product subscription for a user with the specified identity provider. *

* *

* Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing * periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more * information, see Viewing your * monthly charges in the Amazon Web Services Billing User Guide. *

*
* * @param startProductSubscriptionRequest * @return Result of the StartProductSubscription operation returned by the service. * @throws ServiceQuotaExceededException * The request failed because a service quota is exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.StartProductSubscription * @see AWS API Documentation */ StartProductSubscriptionResult startProductSubscription(StartProductSubscriptionRequest startProductSubscriptionRequest); /** *

* Stops a product subscription for a user with the specified identity provider. *

* * @param stopProductSubscriptionRequest * @return Result of the StopProductSubscription operation returned by the service. * @throws ServiceQuotaExceededException * The request failed because a service quota is exceeded. * @throws ConflictException * The request couldn't be completed because it conflicted with the current state of the resource. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws ResourceNotFoundException * The resource couldn't be found. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.StopProductSubscription * @see AWS API Documentation */ StopProductSubscriptionResult stopProductSubscription(StopProductSubscriptionRequest stopProductSubscriptionRequest); /** *

* Updates additional product configuration settings for the registered identity provider. *

* * @param updateIdentityProviderSettingsRequest * @return Result of the UpdateIdentityProviderSettings operation returned by the service. * @throws ValidationException * A parameter is not valid. * @throws ThrottlingException * The request was denied because of request throttling. Retry the request. * @throws InternalServerException * An exception occurred with the service. * @throws AccessDeniedException * You don't have sufficient access to perform this action. * @sample AWSLicenseManagerUserSubscriptions.UpdateIdentityProviderSettings * @see AWS API Documentation */ UpdateIdentityProviderSettingsResult updateIdentityProviderSettings(UpdateIdentityProviderSettingsRequest updateIdentityProviderSettingsRequest); /** * Shuts down this client object, releasing any resources that might be held open. This is an optional method, and * callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client * has been shutdown, it should not be used to make any more requests. */ void shutdown(); /** * Returns additional metadata for a previously executed successful request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. *

* 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 a request. * * @param request * The originally executed request. * * @return The response metadata for the specified request, or null if none is available. */ ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request); }