Interface PartnerCentralAnalyticsClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.
Partner Central Analytics Service
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aPartnerCentralAnalyticsClient.create()Create aPartnerCentralAnalyticsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateDataSubscriptionResponsecreateDataSubscription(Consumer<CreateDataSubscriptionRequest.Builder> createDataSubscriptionRequest) Creates a data subscription that delivers a partner analytics dataset to an S3 bucket in the caller's AWS account on a schedule.default CreateDataSubscriptionResponsecreateDataSubscription(CreateDataSubscriptionRequest createDataSubscriptionRequest) Creates a data subscription that delivers a partner analytics dataset to an S3 bucket in the caller's AWS account on a schedule.default DeleteDataSubscriptionResponsedeleteDataSubscription(Consumer<DeleteDataSubscriptionRequest.Builder> deleteDataSubscriptionRequest) Deletes a data subscription owned by the calling account.default DeleteDataSubscriptionResponsedeleteDataSubscription(DeleteDataSubscriptionRequest deleteDataSubscriptionRequest) Deletes a data subscription owned by the calling account.default GetDataSubscriptionResponsegetDataSubscription(Consumer<GetDataSubscriptionRequest.Builder> getDataSubscriptionRequest) Returns the full details of a data subscription owned by the calling account, including its delivery status and how far delivery has progressed.default GetDataSubscriptionResponsegetDataSubscription(GetDataSubscriptionRequest getDataSubscriptionRequest) Returns the full details of a data subscription owned by the calling account, including its delivery status and how far delivery has progressed.default ListDataSubscriptionsResponselistDataSubscriptions(Consumer<ListDataSubscriptionsRequest.Builder> listDataSubscriptionsRequest) Lists the data subscriptions owned by the calling account in the given catalog.default ListDataSubscriptionsResponselistDataSubscriptions(ListDataSubscriptionsRequest listDataSubscriptionsRequest) Lists the data subscriptions owned by the calling account in the given catalog.default ListDataSubscriptionsIterablelistDataSubscriptionsPaginator(Consumer<ListDataSubscriptionsRequest.Builder> listDataSubscriptionsRequest) This is a variant oflistDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)operation.default ListDataSubscriptionsIterablelistDataSubscriptionsPaginator(ListDataSubscriptionsRequest listDataSubscriptionsRequest) This is a variant oflistDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags on a data subscription owned by the calling account.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags on a data subscription owned by the calling account.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or overwrites tags on a data subscription owned by the calling account.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds or overwrites tags on a data subscription owned by the calling account.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the named tag keys from a data subscription owned by the calling account.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes the named tag keys from a data subscription owned by the calling account.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
-
createDataSubscription
default CreateDataSubscriptionResponse createDataSubscription(CreateDataSubscriptionRequest createDataSubscriptionRequest) throws ServiceQuotaExceededException, TooManyRequestsException, InternalServerException, ConflictException, AccessDeniedException, BadRequestException, IdempotentParameterMismatchException, S3AccessException, KmsKeyAccessException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Creates a data subscription that delivers a partner analytics dataset to an S3 bucket in the caller's AWS account on a schedule. The delivery destination is validated before the subscription is created: the service performs a test write to the bucket as its delivery principal using the supplied KMS key. Subscriptions are immutable; delete and recreate to change one.
- Parameters:
createDataSubscriptionRequest-- Returns:
- Result of the CreateDataSubscription operation returned by the service.
- See Also:
-
createDataSubscription
default CreateDataSubscriptionResponse createDataSubscription(Consumer<CreateDataSubscriptionRequest.Builder> createDataSubscriptionRequest) throws ServiceQuotaExceededException, TooManyRequestsException, InternalServerException, ConflictException, AccessDeniedException, BadRequestException, IdempotentParameterMismatchException, S3AccessException, KmsKeyAccessException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Creates a data subscription that delivers a partner analytics dataset to an S3 bucket in the caller's AWS account on a schedule. The delivery destination is validated before the subscription is created: the service performs a test write to the bucket as its delivery principal using the supplied KMS key. Subscriptions are immutable; delete and recreate to change one.
This is a convenience which creates an instance of the
CreateDataSubscriptionRequest.Builderavoiding the need to create one manually viaCreateDataSubscriptionRequest.builder()- Parameters:
createDataSubscriptionRequest- AConsumerthat will call methods onCreateDataSubscriptionRequest.Builderto create a request.- Returns:
- Result of the CreateDataSubscription operation returned by the service.
- See Also:
-
deleteDataSubscription
default DeleteDataSubscriptionResponse deleteDataSubscription(DeleteDataSubscriptionRequest deleteDataSubscriptionRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Deletes a data subscription owned by the calling account. Delivery stops immediately; data already delivered stays in the caller's bucket. Deleting an already-deleted subscription succeeds.
- Parameters:
deleteDataSubscriptionRequest-- Returns:
- Result of the DeleteDataSubscription operation returned by the service.
- See Also:
-
deleteDataSubscription
default DeleteDataSubscriptionResponse deleteDataSubscription(Consumer<DeleteDataSubscriptionRequest.Builder> deleteDataSubscriptionRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Deletes a data subscription owned by the calling account. Delivery stops immediately; data already delivered stays in the caller's bucket. Deleting an already-deleted subscription succeeds.
This is a convenience which creates an instance of the
DeleteDataSubscriptionRequest.Builderavoiding the need to create one manually viaDeleteDataSubscriptionRequest.builder()- Parameters:
deleteDataSubscriptionRequest- AConsumerthat will call methods onDeleteDataSubscriptionRequest.Builderto create a request.- Returns:
- Result of the DeleteDataSubscription operation returned by the service.
- See Also:
-
getDataSubscription
default GetDataSubscriptionResponse getDataSubscription(GetDataSubscriptionRequest getDataSubscriptionRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Returns the full details of a data subscription owned by the calling account, including its delivery status and how far delivery has progressed.
- Parameters:
getDataSubscriptionRequest-- Returns:
- Result of the GetDataSubscription operation returned by the service.
- See Also:
-
getDataSubscription
default GetDataSubscriptionResponse getDataSubscription(Consumer<GetDataSubscriptionRequest.Builder> getDataSubscriptionRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Returns the full details of a data subscription owned by the calling account, including its delivery status and how far delivery has progressed.
This is a convenience which creates an instance of the
GetDataSubscriptionRequest.Builderavoiding the need to create one manually viaGetDataSubscriptionRequest.builder()- Parameters:
getDataSubscriptionRequest- AConsumerthat will call methods onGetDataSubscriptionRequest.Builderto create a request.- Returns:
- Result of the GetDataSubscription operation returned by the service.
- See Also:
-
listDataSubscriptions
default ListDataSubscriptionsResponse listDataSubscriptions(ListDataSubscriptionsRequest listDataSubscriptionsRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Lists the data subscriptions owned by the calling account in the given catalog. Deleted subscriptions are not listed; use GetDataSubscription to retrieve a deleted subscription by its ARN.
- Parameters:
listDataSubscriptionsRequest-- Returns:
- Result of the ListDataSubscriptions operation returned by the service.
- See Also:
-
listDataSubscriptions
default ListDataSubscriptionsResponse listDataSubscriptions(Consumer<ListDataSubscriptionsRequest.Builder> listDataSubscriptionsRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Lists the data subscriptions owned by the calling account in the given catalog. Deleted subscriptions are not listed; use GetDataSubscription to retrieve a deleted subscription by its ARN.
This is a convenience which creates an instance of the
ListDataSubscriptionsRequest.Builderavoiding the need to create one manually viaListDataSubscriptionsRequest.builder()- Parameters:
listDataSubscriptionsRequest- AConsumerthat will call methods onListDataSubscriptionsRequest.Builderto create a request.- Returns:
- Result of the ListDataSubscriptions operation returned by the service.
- See Also:
-
listDataSubscriptionsPaginator
default ListDataSubscriptionsIterable listDataSubscriptionsPaginator(ListDataSubscriptionsRequest listDataSubscriptionsRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException This is a variant of
listDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralanalytics.paginators.ListDataSubscriptionsIterable responses = client.listDataSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralanalytics.paginators.ListDataSubscriptionsIterable responses = client .listDataSubscriptionsPaginator(request); for (software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralanalytics.paginators.ListDataSubscriptionsIterable responses = client.listDataSubscriptionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)operation.- Parameters:
listDataSubscriptionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDataSubscriptionsPaginator
default ListDataSubscriptionsIterable listDataSubscriptionsPaginator(Consumer<ListDataSubscriptionsRequest.Builder> listDataSubscriptionsRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException This is a variant of
listDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralanalytics.paginators.ListDataSubscriptionsIterable responses = client.listDataSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralanalytics.paginators.ListDataSubscriptionsIterable responses = client .listDataSubscriptionsPaginator(request); for (software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralanalytics.paginators.ListDataSubscriptionsIterable responses = client.listDataSubscriptionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listDataSubscriptions(software.amazon.awssdk.services.partnercentralanalytics.model.ListDataSubscriptionsRequest)operation.
This is a convenience which creates an instance of the
ListDataSubscriptionsRequest.Builderavoiding the need to create one manually viaListDataSubscriptionsRequest.builder()- Parameters:
listDataSubscriptionsRequest- AConsumerthat will call methods onListDataSubscriptionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Lists the tags on a data subscription owned by the calling account.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Lists the tags on a data subscription owned by the calling account.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Adds or overwrites tags on a data subscription owned by the calling account.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Adds or overwrites tags on a data subscription owned by the calling account.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Removes the named tag keys from a data subscription owned by the calling account.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws TooManyRequestsException, InternalServerException, AccessDeniedException, BadRequestException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralAnalyticsException Removes the named tag keys from a data subscription owned by the calling account.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
create
Create aPartnerCentralAnalyticsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aPartnerCentralAnalyticsClient. -
serviceMetadata
-
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
-