Interface PricingPlanManagerAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
Manages flat-rate pricing subscriptions for supported AWS services. Use this API to create, approve, update, and cancel subscriptions; associate and disassociate resources; and retrieve subscription details. With a flat-rate pricing subscription, you pay a fixed recurring fee for eligible resources instead of usage-based pricing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionapprovePaidSubscription(Consumer<ApprovePaidSubscriptionRequest.Builder> approvePaidSubscriptionRequest) Approves a subscription that is inPENDING_APPROVALstatus, activating it and starting billing.approvePaidSubscription(ApprovePaidSubscriptionRequest approvePaidSubscriptionRequest) Approves a subscription that is inPENDING_APPROVALstatus, activating it and starting billing.associateResourcesToSubscription(Consumer<AssociateResourcesToSubscriptionRequest.Builder> associateResourcesToSubscriptionRequest) Adds one or more resources to an existing subscription.associateResourcesToSubscription(AssociateResourcesToSubscriptionRequest associateResourcesToSubscriptionRequest) Adds one or more resources to an existing subscription.builder()Create a builder that can be used to configure and create aPricingPlanManagerAsyncClient.cancelSubscription(Consumer<CancelSubscriptionRequest.Builder> cancelSubscriptionRequest) Cancels a flat-rate pricing subscription.cancelSubscription(CancelSubscriptionRequest cancelSubscriptionRequest) Cancels a flat-rate pricing subscription.cancelSubscriptionChange(Consumer<CancelSubscriptionChangeRequest.Builder> cancelSubscriptionChangeRequest) Cancels a pending scheduled change on a subscription, such as a pending downgrade or cancellation.cancelSubscriptionChange(CancelSubscriptionChangeRequest cancelSubscriptionChangeRequest) Cancels a pending scheduled change on a subscription, such as a pending downgrade or cancellation.create()Create aPricingPlanManagerAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createSubscription(Consumer<CreateSubscriptionRequest.Builder> createSubscriptionRequest) Creates a flat-rate pricing subscription for the specified resources.createSubscription(CreateSubscriptionRequest createSubscriptionRequest) Creates a flat-rate pricing subscription for the specified resources.disassociateResourcesFromSubscription(Consumer<DisassociateResourcesFromSubscriptionRequest.Builder> disassociateResourcesFromSubscriptionRequest) Removes one or more resources from an existing subscription.disassociateResourcesFromSubscription(DisassociateResourcesFromSubscriptionRequest disassociateResourcesFromSubscriptionRequest) Removes one or more resources from an existing subscription.default CompletableFuture<GetSubscriptionResponse> getSubscription(Consumer<GetSubscriptionRequest.Builder> getSubscriptionRequest) Returns the details of a flat-rate pricing subscription, including its current status, associated resources, and any pending scheduled changes.default CompletableFuture<GetSubscriptionResponse> getSubscription(GetSubscriptionRequest getSubscriptionRequest) Returns the details of a flat-rate pricing subscription, including its current status, associated resources, and any pending scheduled changes.listSubscriptions(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) Returns a summary of all flat-rate pricing subscriptions in the calling account.listSubscriptions(ListSubscriptionsRequest listSubscriptionsRequest) Returns a summary of all flat-rate pricing subscriptions in the calling account.default ListSubscriptionsPublisherlistSubscriptionsPaginator(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) This is a variant oflistSubscriptions(software.amazon.awssdk.services.pricingplanmanager.model.ListSubscriptionsRequest)operation.default ListSubscriptionsPublisherlistSubscriptionsPaginator(ListSubscriptionsRequest listSubscriptionsRequest) This is a variant oflistSubscriptions(software.amazon.awssdk.services.pricingplanmanager.model.ListSubscriptionsRequest)operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationupdateSubscription(Consumer<UpdateSubscriptionRequest.Builder> updateSubscriptionRequest) Changes the plan tier of an existing subscription.updateSubscription(UpdateSubscriptionRequest updateSubscriptionRequest) Changes the plan tier of an existing subscription.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
approvePaidSubscription
default CompletableFuture<ApprovePaidSubscriptionResponse> approvePaidSubscription(ApprovePaidSubscriptionRequest approvePaidSubscriptionRequest) Approves a subscription that is in
PENDING_APPROVALstatus, activating it and starting billing.This operation requires the current
ETagvalue for concurrency control. Retrieve it from a previousGetSubscriptionorListSubscriptionsresponse.- Parameters:
approvePaidSubscriptionRequest-- Returns:
- A Java Future containing the result of the ApprovePaidSubscription operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
approvePaidSubscription
default CompletableFuture<ApprovePaidSubscriptionResponse> approvePaidSubscription(Consumer<ApprovePaidSubscriptionRequest.Builder> approvePaidSubscriptionRequest) Approves a subscription that is in
PENDING_APPROVALstatus, activating it and starting billing.This operation requires the current
ETagvalue for concurrency control. Retrieve it from a previousGetSubscriptionorListSubscriptionsresponse.
This is a convenience which creates an instance of the
ApprovePaidSubscriptionRequest.Builderavoiding the need to create one manually viaApprovePaidSubscriptionRequest.builder()- Parameters:
approvePaidSubscriptionRequest- AConsumerthat will call methods onApprovePaidSubscriptionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ApprovePaidSubscription operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateResourcesToSubscription
default CompletableFuture<AssociateResourcesToSubscriptionResponse> associateResourcesToSubscription(AssociateResourcesToSubscriptionRequest associateResourcesToSubscriptionRequest) Adds one or more resources to an existing subscription. The subscription must be in an active state that is not pending other changes.
For subscriptions in the CloudFront plan family, the associated resources must include exactly one Amazon CloudFront distribution and one AWS WAF web ACL. You can also include other supported resources, such as Amazon Route 53 hosted zones, and CloudFront KeyValueStores.
- Parameters:
associateResourcesToSubscriptionRequest-- Returns:
- A Java Future containing the result of the AssociateResourcesToSubscription operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateResourcesToSubscription
default CompletableFuture<AssociateResourcesToSubscriptionResponse> associateResourcesToSubscription(Consumer<AssociateResourcesToSubscriptionRequest.Builder> associateResourcesToSubscriptionRequest) Adds one or more resources to an existing subscription. The subscription must be in an active state that is not pending other changes.
For subscriptions in the CloudFront plan family, the associated resources must include exactly one Amazon CloudFront distribution and one AWS WAF web ACL. You can also include other supported resources, such as Amazon Route 53 hosted zones, and CloudFront KeyValueStores.
This is a convenience which creates an instance of the
AssociateResourcesToSubscriptionRequest.Builderavoiding the need to create one manually viaAssociateResourcesToSubscriptionRequest.builder()- Parameters:
associateResourcesToSubscriptionRequest- AConsumerthat will call methods onAssociateResourcesToSubscriptionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the AssociateResourcesToSubscription operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelSubscription
default CompletableFuture<CancelSubscriptionResponse> cancelSubscription(CancelSubscriptionRequest cancelSubscriptionRequest) Cancels a flat-rate pricing subscription.
For active subscriptions, the cancellation is scheduled to take effect at the end of the current billing period. The subscription remains active until that date. To revert a pending cancellation, use
CancelSubscriptionChange.For subscriptions in
PENDING_APPROVALstatus, the subscription is deleted immediately without scheduling.- Parameters:
cancelSubscriptionRequest-- Returns:
- A Java Future containing the result of the CancelSubscription operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelSubscription
default CompletableFuture<CancelSubscriptionResponse> cancelSubscription(Consumer<CancelSubscriptionRequest.Builder> cancelSubscriptionRequest) Cancels a flat-rate pricing subscription.
For active subscriptions, the cancellation is scheduled to take effect at the end of the current billing period. The subscription remains active until that date. To revert a pending cancellation, use
CancelSubscriptionChange.For subscriptions in
PENDING_APPROVALstatus, the subscription is deleted immediately without scheduling.
This is a convenience which creates an instance of the
CancelSubscriptionRequest.Builderavoiding the need to create one manually viaCancelSubscriptionRequest.builder()- Parameters:
cancelSubscriptionRequest- AConsumerthat will call methods onCancelSubscriptionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CancelSubscription operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelSubscriptionChange
default CompletableFuture<CancelSubscriptionChangeResponse> cancelSubscriptionChange(CancelSubscriptionChangeRequest cancelSubscriptionChangeRequest) Cancels a pending scheduled change on a subscription, such as a pending downgrade or cancellation. The subscription returns to its state before the change was scheduled.
You cannot cancel a scheduled change close to its effective date. If the change is within the processing window, this operation returns an error.
- Parameters:
cancelSubscriptionChangeRequest-- Returns:
- A Java Future containing the result of the CancelSubscriptionChange operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
cancelSubscriptionChange
default CompletableFuture<CancelSubscriptionChangeResponse> cancelSubscriptionChange(Consumer<CancelSubscriptionChangeRequest.Builder> cancelSubscriptionChangeRequest) Cancels a pending scheduled change on a subscription, such as a pending downgrade or cancellation. The subscription returns to its state before the change was scheduled.
You cannot cancel a scheduled change close to its effective date. If the change is within the processing window, this operation returns an error.
This is a convenience which creates an instance of the
CancelSubscriptionChangeRequest.Builderavoiding the need to create one manually viaCancelSubscriptionChangeRequest.builder()- Parameters:
cancelSubscriptionChangeRequest- AConsumerthat will call methods onCancelSubscriptionChangeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CancelSubscriptionChange operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSubscription
default CompletableFuture<CreateSubscriptionResponse> createSubscription(CreateSubscriptionRequest createSubscriptionRequest) Creates a flat-rate pricing subscription for the specified resources.
When
approvalModeis set toMANUAL, paid-tier subscriptions are created inPENDING_APPROVALstatus and require a separateApprovePaidSubscriptioncall before billing starts. Free-tier subscriptions are always activated immediately regardless of approval mode.When
approvalModeis set toIMMEDIATEor is not specified, the subscription is activated immediately.- Parameters:
createSubscriptionRequest-- Returns:
- A Java Future containing the result of the CreateSubscription operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ServiceQuotaExceededException The request would exceed a service limit. You have reached the maximum number of subscriptions allowed for your account.
- ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSubscription
default CompletableFuture<CreateSubscriptionResponse> createSubscription(Consumer<CreateSubscriptionRequest.Builder> createSubscriptionRequest) Creates a flat-rate pricing subscription for the specified resources.
When
approvalModeis set toMANUAL, paid-tier subscriptions are created inPENDING_APPROVALstatus and require a separateApprovePaidSubscriptioncall before billing starts. Free-tier subscriptions are always activated immediately regardless of approval mode.When
approvalModeis set toIMMEDIATEor is not specified, the subscription is activated immediately.
This is a convenience which creates an instance of the
CreateSubscriptionRequest.Builderavoiding the need to create one manually viaCreateSubscriptionRequest.builder()- Parameters:
createSubscriptionRequest- AConsumerthat will call methods onCreateSubscriptionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateSubscription operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ServiceQuotaExceededException The request would exceed a service limit. You have reached the maximum number of subscriptions allowed for your account.
- ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateResourcesFromSubscription
default CompletableFuture<DisassociateResourcesFromSubscriptionResponse> disassociateResourcesFromSubscription(DisassociateResourcesFromSubscriptionRequest disassociateResourcesFromSubscriptionRequest) Removes one or more resources from an existing subscription.
For subscriptions in the CloudFront plan family, the associated resources must always include exactly one Amazon CloudFront distribution and exactly one AWS WAF web ACL. You cannot remove these required resources.
- Parameters:
disassociateResourcesFromSubscriptionRequest-- Returns:
- A Java Future containing the result of the DisassociateResourcesFromSubscription operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateResourcesFromSubscription
default CompletableFuture<DisassociateResourcesFromSubscriptionResponse> disassociateResourcesFromSubscription(Consumer<DisassociateResourcesFromSubscriptionRequest.Builder> disassociateResourcesFromSubscriptionRequest) Removes one or more resources from an existing subscription.
For subscriptions in the CloudFront plan family, the associated resources must always include exactly one Amazon CloudFront distribution and exactly one AWS WAF web ACL. You cannot remove these required resources.
This is a convenience which creates an instance of the
DisassociateResourcesFromSubscriptionRequest.Builderavoiding the need to create one manually viaDisassociateResourcesFromSubscriptionRequest.builder()- Parameters:
disassociateResourcesFromSubscriptionRequest- AConsumerthat will call methods onDisassociateResourcesFromSubscriptionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DisassociateResourcesFromSubscription operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSubscription
default CompletableFuture<GetSubscriptionResponse> getSubscription(GetSubscriptionRequest getSubscriptionRequest) Returns the details of a flat-rate pricing subscription, including its current status, associated resources, and any pending scheduled changes.
- Parameters:
getSubscriptionRequest-- Returns:
- A Java Future containing the result of the GetSubscription operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getSubscription
default CompletableFuture<GetSubscriptionResponse> getSubscription(Consumer<GetSubscriptionRequest.Builder> getSubscriptionRequest) Returns the details of a flat-rate pricing subscription, including its current status, associated resources, and any pending scheduled changes.
This is a convenience which creates an instance of the
GetSubscriptionRequest.Builderavoiding the need to create one manually viaGetSubscriptionRequest.builder()- Parameters:
getSubscriptionRequest- AConsumerthat will call methods onGetSubscriptionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetSubscription operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscriptions
default CompletableFuture<ListSubscriptionsResponse> listSubscriptions(ListSubscriptionsRequest listSubscriptionsRequest) Returns a summary of all flat-rate pricing subscriptions in the calling account.
- Parameters:
listSubscriptionsRequest-- Returns:
- A Java Future containing the result of the ListSubscriptions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscriptions
default CompletableFuture<ListSubscriptionsResponse> listSubscriptions(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) Returns a summary of all flat-rate pricing subscriptions in the calling account.
This is a convenience which creates an instance of the
ListSubscriptionsRequest.Builderavoiding the need to create one manually viaListSubscriptionsRequest.builder()- Parameters:
listSubscriptionsRequest- AConsumerthat will call methods onListSubscriptionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListSubscriptions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscriptionsPaginator
default ListSubscriptionsPublisher listSubscriptionsPaginator(ListSubscriptionsRequest listSubscriptionsRequest) This is a variant of
listSubscriptions(software.amazon.awssdk.services.pricingplanmanager.model.ListSubscriptionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.pricingplanmanager.paginators.ListSubscriptionsPublisher publisher = client.listSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.pricingplanmanager.paginators.ListSubscriptionsPublisher publisher = client.listSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.pricingplanmanager.model.ListSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.pricingplanmanager.model.ListSubscriptionsResponse response) { //... }; });Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSubscriptions(software.amazon.awssdk.services.pricingplanmanager.model.ListSubscriptionsRequest)operation.- Parameters:
listSubscriptionsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscriptionsPaginator
default ListSubscriptionsPublisher listSubscriptionsPaginator(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) This is a variant of
listSubscriptions(software.amazon.awssdk.services.pricingplanmanager.model.ListSubscriptionsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.pricingplanmanager.paginators.ListSubscriptionsPublisher publisher = client.listSubscriptionsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.pricingplanmanager.paginators.ListSubscriptionsPublisher publisher = client.listSubscriptionsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.pricingplanmanager.model.ListSubscriptionsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.pricingplanmanager.model.ListSubscriptionsResponse response) { //... }; });Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSubscriptions(software.amazon.awssdk.services.pricingplanmanager.model.ListSubscriptionsRequest)operation.
This is a convenience which creates an instance of the
ListSubscriptionsRequest.Builderavoiding the need to create one manually viaListSubscriptionsRequest.builder()- Parameters:
listSubscriptionsRequest- AConsumerthat will call methods onListSubscriptionsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateSubscription
default CompletableFuture<UpdateSubscriptionResponse> updateSubscription(UpdateSubscriptionRequest updateSubscriptionRequest) Changes the plan tier of an existing subscription.
Upgrades take effect immediately. Downgrades are scheduled and the current tier remains unchanged until the end of the billing cycle (calendar month). You cannot update a subscription while a scheduled change is pending. To make a new change, first cancel the pending change using
CancelSubscriptionChange.This operation replaces the plan tier value. If you omit the optional
usageLevelfield, it is reset to the default.- Parameters:
updateSubscriptionRequest-- Returns:
- A Java Future containing the result of the UpdateSubscription operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ServiceQuotaExceededException The request would exceed a service limit. You have reached the maximum number of subscriptions allowed for your account.
- ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateSubscription
default CompletableFuture<UpdateSubscriptionResponse> updateSubscription(Consumer<UpdateSubscriptionRequest.Builder> updateSubscriptionRequest) Changes the plan tier of an existing subscription.
Upgrades take effect immediately. Downgrades are scheduled and the current tier remains unchanged until the end of the billing cycle (calendar month). You cannot update a subscription while a scheduled change is pending. To make a new change, first cancel the pending change using
CancelSubscriptionChange.This operation replaces the plan tier value. If you omit the optional
usageLevelfield, it is reset to the default.
This is a convenience which creates an instance of the
UpdateSubscriptionRequest.Builderavoiding the need to create one manually viaUpdateSubscriptionRequest.builder()- Parameters:
updateSubscriptionRequest- AConsumerthat will call methods onUpdateSubscriptionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateSubscription operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- AccessDeniedException You do not have the required permissions to perform this operation. Verify that your IAM policy grants access to this action.
- InternalServerException An unexpected error occurred on the server. Retry the request.
- ValidationException The request failed a business rule validation. For example, the specified resource might already be associated with another subscription, or the subscription might not be in the required state for this operation.
- ConflictException The request conflicts with the current state of the resource. This typically occurs
when the
ETagvalue in theIf-Matchheader does not match the current version of the subscription. Retrieve the latest version and retry. - ServiceQuotaExceededException The request would exceed a service limit. You have reached the maximum number of subscriptions allowed for your account.
- ResourceNotFoundException The specified subscription was not found. Verify that the ARN is correct and that the subscription belongs to your account.
- ThrottlingException The request rate exceeds the allowed limit. Wait briefly and retry the request.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- PricingPlanManagerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aPricingPlanManagerAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aPricingPlanManagerAsyncClient.
-