All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.quicksight.DefaultQuickSightClient Maven / Gradle / Ivy

/*
 * Copyright 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 software.amazon.awssdk.services.quicksight;

import java.util.Collections;
import java.util.List;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkInternalApi;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.ApiName;
import software.amazon.awssdk.core.RequestOverrideConfiguration;
import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
import software.amazon.awssdk.core.client.config.SdkClientOption;
import software.amazon.awssdk.core.client.handler.ClientExecutionParams;
import software.amazon.awssdk.core.client.handler.SyncClientHandler;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.core.http.HttpResponseHandler;
import software.amazon.awssdk.core.metrics.CoreMetric;
import software.amazon.awssdk.core.util.VersionInfo;
import software.amazon.awssdk.metrics.MetricCollector;
import software.amazon.awssdk.metrics.MetricPublisher;
import software.amazon.awssdk.metrics.NoOpMetricCollector;
import software.amazon.awssdk.protocols.core.ExceptionMetadata;
import software.amazon.awssdk.protocols.json.AwsJsonProtocol;
import software.amazon.awssdk.protocols.json.AwsJsonProtocolFactory;
import software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory;
import software.amazon.awssdk.protocols.json.JsonOperationMetadata;
import software.amazon.awssdk.services.quicksight.model.AccessDeniedException;
import software.amazon.awssdk.services.quicksight.model.CancelIngestionRequest;
import software.amazon.awssdk.services.quicksight.model.CancelIngestionResponse;
import software.amazon.awssdk.services.quicksight.model.ConcurrentUpdatingException;
import software.amazon.awssdk.services.quicksight.model.ConflictException;
import software.amazon.awssdk.services.quicksight.model.CreateAccountCustomizationRequest;
import software.amazon.awssdk.services.quicksight.model.CreateAccountCustomizationResponse;
import software.amazon.awssdk.services.quicksight.model.CreateAnalysisRequest;
import software.amazon.awssdk.services.quicksight.model.CreateAnalysisResponse;
import software.amazon.awssdk.services.quicksight.model.CreateDashboardRequest;
import software.amazon.awssdk.services.quicksight.model.CreateDashboardResponse;
import software.amazon.awssdk.services.quicksight.model.CreateDataSetRequest;
import software.amazon.awssdk.services.quicksight.model.CreateDataSetResponse;
import software.amazon.awssdk.services.quicksight.model.CreateDataSourceRequest;
import software.amazon.awssdk.services.quicksight.model.CreateDataSourceResponse;
import software.amazon.awssdk.services.quicksight.model.CreateGroupMembershipRequest;
import software.amazon.awssdk.services.quicksight.model.CreateGroupMembershipResponse;
import software.amazon.awssdk.services.quicksight.model.CreateGroupRequest;
import software.amazon.awssdk.services.quicksight.model.CreateGroupResponse;
import software.amazon.awssdk.services.quicksight.model.CreateIamPolicyAssignmentRequest;
import software.amazon.awssdk.services.quicksight.model.CreateIamPolicyAssignmentResponse;
import software.amazon.awssdk.services.quicksight.model.CreateIngestionRequest;
import software.amazon.awssdk.services.quicksight.model.CreateIngestionResponse;
import software.amazon.awssdk.services.quicksight.model.CreateNamespaceRequest;
import software.amazon.awssdk.services.quicksight.model.CreateNamespaceResponse;
import software.amazon.awssdk.services.quicksight.model.CreateTemplateAliasRequest;
import software.amazon.awssdk.services.quicksight.model.CreateTemplateAliasResponse;
import software.amazon.awssdk.services.quicksight.model.CreateTemplateRequest;
import software.amazon.awssdk.services.quicksight.model.CreateTemplateResponse;
import software.amazon.awssdk.services.quicksight.model.CreateThemeAliasRequest;
import software.amazon.awssdk.services.quicksight.model.CreateThemeAliasResponse;
import software.amazon.awssdk.services.quicksight.model.CreateThemeRequest;
import software.amazon.awssdk.services.quicksight.model.CreateThemeResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteAccountCustomizationRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteAccountCustomizationResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteAnalysisRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteAnalysisResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteDashboardRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteDashboardResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteDataSetRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteDataSetResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteDataSourceRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteDataSourceResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteGroupMembershipRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteGroupMembershipResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteGroupRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteGroupResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteIamPolicyAssignmentRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteIamPolicyAssignmentResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteNamespaceRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteNamespaceResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteTemplateAliasRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteTemplateAliasResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteTemplateRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteTemplateResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteThemeAliasRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteThemeAliasResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteThemeRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteThemeResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteUserByPrincipalIdRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteUserByPrincipalIdResponse;
import software.amazon.awssdk.services.quicksight.model.DeleteUserRequest;
import software.amazon.awssdk.services.quicksight.model.DeleteUserResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeAccountCustomizationRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeAccountCustomizationResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeAccountSettingsRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeAccountSettingsResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeAnalysisPermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeAnalysisPermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeAnalysisRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeAnalysisResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeDashboardPermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeDashboardPermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeDashboardRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeDashboardResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeDataSetPermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeDataSetPermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeDataSetRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeDataSetResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeDataSourcePermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeDataSourcePermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeDataSourceRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeDataSourceResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeGroupRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeGroupResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeIamPolicyAssignmentRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeIamPolicyAssignmentResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeIngestionRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeIngestionResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeNamespaceRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeNamespaceResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeTemplateAliasRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeTemplateAliasResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeTemplatePermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeTemplatePermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeTemplateRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeTemplateResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeThemeAliasRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeThemeAliasResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeThemePermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeThemePermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeThemeRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeThemeResponse;
import software.amazon.awssdk.services.quicksight.model.DescribeUserRequest;
import software.amazon.awssdk.services.quicksight.model.DescribeUserResponse;
import software.amazon.awssdk.services.quicksight.model.DomainNotWhitelistedException;
import software.amazon.awssdk.services.quicksight.model.GetDashboardEmbedUrlRequest;
import software.amazon.awssdk.services.quicksight.model.GetDashboardEmbedUrlResponse;
import software.amazon.awssdk.services.quicksight.model.GetSessionEmbedUrlRequest;
import software.amazon.awssdk.services.quicksight.model.GetSessionEmbedUrlResponse;
import software.amazon.awssdk.services.quicksight.model.IdentityTypeNotSupportedException;
import software.amazon.awssdk.services.quicksight.model.InternalFailureException;
import software.amazon.awssdk.services.quicksight.model.InvalidNextTokenException;
import software.amazon.awssdk.services.quicksight.model.InvalidParameterValueException;
import software.amazon.awssdk.services.quicksight.model.LimitExceededException;
import software.amazon.awssdk.services.quicksight.model.ListAnalysesRequest;
import software.amazon.awssdk.services.quicksight.model.ListAnalysesResponse;
import software.amazon.awssdk.services.quicksight.model.ListDashboardVersionsRequest;
import software.amazon.awssdk.services.quicksight.model.ListDashboardVersionsResponse;
import software.amazon.awssdk.services.quicksight.model.ListDashboardsRequest;
import software.amazon.awssdk.services.quicksight.model.ListDashboardsResponse;
import software.amazon.awssdk.services.quicksight.model.ListDataSetsRequest;
import software.amazon.awssdk.services.quicksight.model.ListDataSetsResponse;
import software.amazon.awssdk.services.quicksight.model.ListDataSourcesRequest;
import software.amazon.awssdk.services.quicksight.model.ListDataSourcesResponse;
import software.amazon.awssdk.services.quicksight.model.ListGroupMembershipsRequest;
import software.amazon.awssdk.services.quicksight.model.ListGroupMembershipsResponse;
import software.amazon.awssdk.services.quicksight.model.ListGroupsRequest;
import software.amazon.awssdk.services.quicksight.model.ListGroupsResponse;
import software.amazon.awssdk.services.quicksight.model.ListIamPolicyAssignmentsForUserRequest;
import software.amazon.awssdk.services.quicksight.model.ListIamPolicyAssignmentsForUserResponse;
import software.amazon.awssdk.services.quicksight.model.ListIamPolicyAssignmentsRequest;
import software.amazon.awssdk.services.quicksight.model.ListIamPolicyAssignmentsResponse;
import software.amazon.awssdk.services.quicksight.model.ListIngestionsRequest;
import software.amazon.awssdk.services.quicksight.model.ListIngestionsResponse;
import software.amazon.awssdk.services.quicksight.model.ListNamespacesRequest;
import software.amazon.awssdk.services.quicksight.model.ListNamespacesResponse;
import software.amazon.awssdk.services.quicksight.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.quicksight.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.quicksight.model.ListTemplateAliasesRequest;
import software.amazon.awssdk.services.quicksight.model.ListTemplateAliasesResponse;
import software.amazon.awssdk.services.quicksight.model.ListTemplateVersionsRequest;
import software.amazon.awssdk.services.quicksight.model.ListTemplateVersionsResponse;
import software.amazon.awssdk.services.quicksight.model.ListTemplatesRequest;
import software.amazon.awssdk.services.quicksight.model.ListTemplatesResponse;
import software.amazon.awssdk.services.quicksight.model.ListThemeAliasesRequest;
import software.amazon.awssdk.services.quicksight.model.ListThemeAliasesResponse;
import software.amazon.awssdk.services.quicksight.model.ListThemeVersionsRequest;
import software.amazon.awssdk.services.quicksight.model.ListThemeVersionsResponse;
import software.amazon.awssdk.services.quicksight.model.ListThemesRequest;
import software.amazon.awssdk.services.quicksight.model.ListThemesResponse;
import software.amazon.awssdk.services.quicksight.model.ListUserGroupsRequest;
import software.amazon.awssdk.services.quicksight.model.ListUserGroupsResponse;
import software.amazon.awssdk.services.quicksight.model.ListUsersRequest;
import software.amazon.awssdk.services.quicksight.model.ListUsersResponse;
import software.amazon.awssdk.services.quicksight.model.PreconditionNotMetException;
import software.amazon.awssdk.services.quicksight.model.QuickSightException;
import software.amazon.awssdk.services.quicksight.model.QuickSightRequest;
import software.amazon.awssdk.services.quicksight.model.QuickSightUserNotFoundException;
import software.amazon.awssdk.services.quicksight.model.RegisterUserRequest;
import software.amazon.awssdk.services.quicksight.model.RegisterUserResponse;
import software.amazon.awssdk.services.quicksight.model.ResourceExistsException;
import software.amazon.awssdk.services.quicksight.model.ResourceNotFoundException;
import software.amazon.awssdk.services.quicksight.model.ResourceUnavailableException;
import software.amazon.awssdk.services.quicksight.model.RestoreAnalysisRequest;
import software.amazon.awssdk.services.quicksight.model.RestoreAnalysisResponse;
import software.amazon.awssdk.services.quicksight.model.SearchAnalysesRequest;
import software.amazon.awssdk.services.quicksight.model.SearchAnalysesResponse;
import software.amazon.awssdk.services.quicksight.model.SearchDashboardsRequest;
import software.amazon.awssdk.services.quicksight.model.SearchDashboardsResponse;
import software.amazon.awssdk.services.quicksight.model.SessionLifetimeInMinutesInvalidException;
import software.amazon.awssdk.services.quicksight.model.TagResourceRequest;
import software.amazon.awssdk.services.quicksight.model.TagResourceResponse;
import software.amazon.awssdk.services.quicksight.model.ThrottlingException;
import software.amazon.awssdk.services.quicksight.model.UnsupportedPricingPlanException;
import software.amazon.awssdk.services.quicksight.model.UnsupportedUserEditionException;
import software.amazon.awssdk.services.quicksight.model.UntagResourceRequest;
import software.amazon.awssdk.services.quicksight.model.UntagResourceResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateAccountCustomizationRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateAccountCustomizationResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateAccountSettingsRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateAccountSettingsResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateAnalysisPermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateAnalysisPermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateAnalysisRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateAnalysisResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateDashboardPermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateDashboardPermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateDashboardPublishedVersionRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateDashboardPublishedVersionResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateDashboardRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateDashboardResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateDataSetPermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateDataSetPermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateDataSetRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateDataSetResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateDataSourcePermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateDataSourcePermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateDataSourceRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateDataSourceResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateGroupRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateGroupResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateIamPolicyAssignmentRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateIamPolicyAssignmentResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateTemplateAliasRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateTemplateAliasResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateTemplatePermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateTemplatePermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateTemplateRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateTemplateResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateThemeAliasRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateThemeAliasResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateThemePermissionsRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateThemePermissionsResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateThemeRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateThemeResponse;
import software.amazon.awssdk.services.quicksight.model.UpdateUserRequest;
import software.amazon.awssdk.services.quicksight.model.UpdateUserResponse;
import software.amazon.awssdk.services.quicksight.paginators.ListAnalysesIterable;
import software.amazon.awssdk.services.quicksight.paginators.ListDashboardVersionsIterable;
import software.amazon.awssdk.services.quicksight.paginators.ListDashboardsIterable;
import software.amazon.awssdk.services.quicksight.paginators.ListDataSetsIterable;
import software.amazon.awssdk.services.quicksight.paginators.ListDataSourcesIterable;
import software.amazon.awssdk.services.quicksight.paginators.ListIngestionsIterable;
import software.amazon.awssdk.services.quicksight.paginators.ListNamespacesIterable;
import software.amazon.awssdk.services.quicksight.paginators.ListTemplateAliasesIterable;
import software.amazon.awssdk.services.quicksight.paginators.ListTemplateVersionsIterable;
import software.amazon.awssdk.services.quicksight.paginators.ListTemplatesIterable;
import software.amazon.awssdk.services.quicksight.paginators.SearchAnalysesIterable;
import software.amazon.awssdk.services.quicksight.paginators.SearchDashboardsIterable;
import software.amazon.awssdk.services.quicksight.transform.CancelIngestionRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateAccountCustomizationRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateAnalysisRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateDashboardRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateDataSetRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateDataSourceRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateGroupMembershipRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateGroupRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateIamPolicyAssignmentRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateIngestionRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateNamespaceRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateTemplateAliasRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateTemplateRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateThemeAliasRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.CreateThemeRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteAccountCustomizationRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteAnalysisRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteDashboardRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteDataSetRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteDataSourceRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteGroupMembershipRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteGroupRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteIamPolicyAssignmentRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteNamespaceRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteTemplateAliasRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteTemplateRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteThemeAliasRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteThemeRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteUserByPrincipalIdRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DeleteUserRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeAccountCustomizationRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeAccountSettingsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeAnalysisPermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeAnalysisRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeDashboardPermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeDashboardRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeDataSetPermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeDataSetRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeDataSourcePermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeDataSourceRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeGroupRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeIamPolicyAssignmentRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeIngestionRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeNamespaceRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeTemplateAliasRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeTemplatePermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeTemplateRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeThemeAliasRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeThemePermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeThemeRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.DescribeUserRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.GetDashboardEmbedUrlRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.GetSessionEmbedUrlRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListAnalysesRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListDashboardVersionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListDashboardsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListDataSetsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListDataSourcesRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListGroupMembershipsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListGroupsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListIamPolicyAssignmentsForUserRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListIamPolicyAssignmentsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListIngestionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListNamespacesRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListTagsForResourceRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListTemplateAliasesRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListTemplateVersionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListTemplatesRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListThemeAliasesRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListThemeVersionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListThemesRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListUserGroupsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.ListUsersRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.RegisterUserRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.RestoreAnalysisRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.SearchAnalysesRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.SearchDashboardsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.TagResourceRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UntagResourceRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateAccountCustomizationRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateAccountSettingsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateAnalysisPermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateAnalysisRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateDashboardPermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateDashboardPublishedVersionRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateDashboardRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateDataSetPermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateDataSetRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateDataSourcePermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateDataSourceRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateGroupRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateIamPolicyAssignmentRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateTemplateAliasRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateTemplatePermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateTemplateRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateThemeAliasRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateThemePermissionsRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateThemeRequestMarshaller;
import software.amazon.awssdk.services.quicksight.transform.UpdateUserRequestMarshaller;
import software.amazon.awssdk.utils.Logger;

/**
 * Internal implementation of {@link QuickSightClient}.
 *
 * @see QuickSightClient#builder()
 */
@Generated("software.amazon.awssdk:codegen")
@SdkInternalApi
final class DefaultQuickSightClient implements QuickSightClient {
    private static final Logger log = Logger.loggerFor(DefaultQuickSightClient.class);

    private final SyncClientHandler clientHandler;

    private final AwsJsonProtocolFactory protocolFactory;

    private final SdkClientConfiguration clientConfiguration;

    protected DefaultQuickSightClient(SdkClientConfiguration clientConfiguration) {
        this.clientHandler = new AwsSyncClientHandler(clientConfiguration);
        this.clientConfiguration = clientConfiguration;
        this.protocolFactory = init(AwsJsonProtocolFactory.builder()).build();
    }

    @Override
    public final String serviceName() {
        return SERVICE_NAME;
    }

    /**
     * 

* Cancels an ongoing ingestion of data into SPICE. *

* * @param cancelIngestionRequest * @return Result of the CancelIngestion operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ResourceExistsException * The resource specified already exists. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CancelIngestion * @see AWS API * Documentation */ @Override public CancelIngestionResponse cancelIngestion(CancelIngestionRequest cancelIngestionRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, ResourceExistsException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CancelIngestionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, cancelIngestionRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CancelIngestion"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CancelIngestion").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(cancelIngestionRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CancelIngestionRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates Amazon QuickSight customizations the current AWS Region. Currently, you can add a custom default theme by * using the CreateAccountCustomization or UpdateAccountCustomization API operation. To * further customize QuickSight by removing QuickSight sample assets and videos for all new users, see Customizing QuickSight * in the Amazon QuickSight User Guide. *

*

* You can create customizations for your AWS account or, if you specify a namespace, for a QuickSight namespace * instead. Customizations that apply to a namespace always override customizations that apply to an AWS account. To * find out which customizations apply, use the DescribeAccountCustomization API operation. *

*

* Before you use the CreateAccountCustomization API operation to add a theme as the namespace default, * make sure that you first share the theme with the namespace. If you don't share it with the namespace, the theme * isn't visible to your users even if you make it the default theme. To check if the theme is shared, view the * current permissions by using the DescribeThemePermissions API operation. To share the * theme, grant permissions by using the UpdateThemePermissions API operation. *

* * @param createAccountCustomizationRequest * @return Result of the CreateAccountCustomization operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateAccountCustomization * @see AWS API Documentation */ @Override public CreateAccountCustomizationResponse createAccountCustomization( CreateAccountCustomizationRequest createAccountCustomizationRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateAccountCustomizationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createAccountCustomizationRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateAccountCustomization"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateAccountCustomization").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createAccountCustomizationRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateAccountCustomizationRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates an analysis in Amazon QuickSight. *

* * @param createAnalysisRequest * @return Result of the CreateAnalysis operation returned by the service. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceExistsException * The resource specified already exists. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateAnalysis * @see AWS API * Documentation */ @Override public CreateAnalysisResponse createAnalysis(CreateAnalysisRequest createAnalysisRequest) throws ResourceNotFoundException, InvalidParameterValueException, ThrottlingException, ResourceExistsException, ConflictException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateAnalysisResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createAnalysisRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateAnalysis"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateAnalysis").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createAnalysisRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateAnalysisRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates a dashboard from a template. To first create a template, see the CreateTemplate API * operation. *

*

* A dashboard is an entity in QuickSight that identifies QuickSight reports, created from analyses. You can share * QuickSight dashboards. With the right permissions, you can create scheduled email reports from them. If you have * the correct permissions, you can create a dashboard from a template that exists in a different AWS account. *

* * @param createDashboardRequest * @return Result of the CreateDashboard operation returned by the service. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceExistsException * The resource specified already exists. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateDashboard * @see AWS API * Documentation */ @Override public CreateDashboardResponse createDashboard(CreateDashboardRequest createDashboardRequest) throws ResourceNotFoundException, InvalidParameterValueException, ThrottlingException, ResourceExistsException, ConflictException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateDashboardResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createDashboardRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateDashboard"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateDashboard").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createDashboardRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateDashboardRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates a dataset. *

* * @param createDataSetRequest * @return Result of the CreateDataSet operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws LimitExceededException * A limit is exceeded. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateDataSet * @see AWS API * Documentation */ @Override public CreateDataSetResponse createDataSet(CreateDataSetRequest createDataSetRequest) throws AccessDeniedException, ConflictException, InvalidParameterValueException, LimitExceededException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateDataSetResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createDataSetRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateDataSet"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateDataSet").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createDataSetRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateDataSetRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates a data source. *

* * @param createDataSourceRequest * @return Result of the CreateDataSource operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws LimitExceededException * A limit is exceeded. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ResourceExistsException * The resource specified already exists. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateDataSource * @see AWS * API Documentation */ @Override public CreateDataSourceResponse createDataSource(CreateDataSourceRequest createDataSourceRequest) throws AccessDeniedException, ConflictException, InvalidParameterValueException, LimitExceededException, ResourceNotFoundException, ResourceExistsException, ThrottlingException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateDataSourceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createDataSourceRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateDataSource"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateDataSource").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createDataSourceRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateDataSourceRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates an Amazon QuickSight group. *

*

* The permissions resource is * arn:aws:quicksight:us-east-1:<relevant-aws-account-id>:group/default/<group-name> * . *

*

* The response is a group object. *

* * @param createGroupRequest * The request object for this operation. * @return Result of the CreateGroup operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws LimitExceededException * A limit is exceeded. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateGroup * @see AWS API * Documentation */ @Override public CreateGroupResponse createGroup(CreateGroupRequest createGroupRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, LimitExceededException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateGroupResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createGroupRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateGroup"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateGroup").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createGroupRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateGroupRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Adds an Amazon QuickSight user to an Amazon QuickSight group. *

* * @param createGroupMembershipRequest * @return Result of the CreateGroupMembership operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateGroupMembership * @see AWS API Documentation */ @Override public CreateGroupMembershipResponse createGroupMembership(CreateGroupMembershipRequest createGroupMembershipRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateGroupMembershipResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createGroupMembershipRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateGroupMembership"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateGroupMembership").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createGroupMembershipRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateGroupMembershipRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates an assignment with one specified IAM policy, identified by its Amazon Resource Name (ARN). This policy * assignment is attached to the specified groups or users of Amazon QuickSight. Assignment names are unique per AWS * account. To avoid overwriting rules in other namespaces, use assignment names that are unique. *

* * @param createIamPolicyAssignmentRequest * @return Result of the CreateIAMPolicyAssignment operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ConcurrentUpdatingException * A resource is already in a state that indicates an operation is happening that must complete before a new * update can be applied. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateIAMPolicyAssignment * @see AWS API Documentation */ @Override public CreateIamPolicyAssignmentResponse createIAMPolicyAssignment( CreateIamPolicyAssignmentRequest createIamPolicyAssignmentRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, ConcurrentUpdatingException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateIamPolicyAssignmentResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createIamPolicyAssignmentRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateIAMPolicyAssignment"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("CreateIAMPolicyAssignment").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createIamPolicyAssignmentRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateIamPolicyAssignmentRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates and starts a new SPICE ingestion on a dataset *

*

* Any ingestions operating on tagged datasets inherit the same tags automatically for use in access control. For an * example, see How do I * create an IAM policy to control access to Amazon EC2 resources using tags? in the AWS Knowledge Center. Tags * are visible on the tagged dataset, but not on the ingestion resource. *

* * @param createIngestionRequest * @return Result of the CreateIngestion operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws LimitExceededException * A limit is exceeded. * @throws ResourceExistsException * The resource specified already exists. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateIngestion * @see AWS API * Documentation */ @Override public CreateIngestionResponse createIngestion(CreateIngestionRequest createIngestionRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, LimitExceededException, ResourceExistsException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateIngestionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createIngestionRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateIngestion"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateIngestion").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createIngestionRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateIngestionRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* (Enterprise edition only) Creates a new namespace for you to use with Amazon QuickSight. *

*

* A namespace allows you to isolate the QuickSight users and groups that are registered for that namespace. Users * that access the namespace can share assets only with other users or groups in the same namespace. They can't see * users and groups in other namespaces. You can create a namespace after your AWS account is subscribed to * QuickSight. The namespace must be unique within the AWS account. By default, there is a limit of 100 namespaces * per AWS account. To increase your limit, create a ticket with AWS Support. *

* * @param createNamespaceRequest * @return Result of the CreateNamespace operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws LimitExceededException * A limit is exceeded. * @throws ResourceExistsException * The resource specified already exists. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateNamespace * @see AWS API * Documentation */ @Override public CreateNamespaceResponse createNamespace(CreateNamespaceRequest createNamespaceRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, LimitExceededException, ResourceExistsException, PreconditionNotMetException, ConflictException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateNamespaceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createNamespaceRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateNamespace"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateNamespace").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createNamespaceRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateNamespaceRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates a template from an existing QuickSight analysis or template. You can use the resulting template to create * a dashboard. *

*

* A template is an entity in QuickSight that encapsulates the metadata required to create an analysis and * that you can use to create s dashboard. A template adds a layer of abstraction by using placeholders to replace * the dataset associated with the analysis. You can use templates to create dashboards by replacing dataset * placeholders with datasets that follow the same schema that was used to create the source analysis and template. *

* * @param createTemplateRequest * @return Result of the CreateTemplate operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws LimitExceededException * A limit is exceeded. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateTemplate * @see AWS API * Documentation */ @Override public CreateTemplateResponse createTemplate(CreateTemplateRequest createTemplateRequest) throws InvalidParameterValueException, AccessDeniedException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, LimitExceededException, UnsupportedUserEditionException, ConflictException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateTemplateResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createTemplateRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateTemplate"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateTemplate").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createTemplateRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateTemplateRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates a template alias for a template. *

* * @param createTemplateAliasRequest * @return Result of the CreateTemplateAlias operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws ResourceExistsException * The resource specified already exists. * @throws LimitExceededException * A limit is exceeded. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateTemplateAlias * @see AWS * API Documentation */ @Override public CreateTemplateAliasResponse createTemplateAlias(CreateTemplateAliasRequest createTemplateAliasRequest) throws ThrottlingException, ResourceNotFoundException, ConflictException, ResourceExistsException, LimitExceededException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, CreateTemplateAliasResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createTemplateAliasRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateTemplateAlias"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateTemplateAlias").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createTemplateAliasRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateTemplateAliasRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates a theme. *

*

* A theme is set of configuration options for color and layout. Themes apply to analyses and dashboards. For * more information, see Using Themes in Amazon * QuickSight in the Amazon QuickSight User Guide. *

* * @param createThemeRequest * @return Result of the CreateTheme operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws LimitExceededException * A limit is exceeded. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateTheme * @see AWS API * Documentation */ @Override public CreateThemeResponse createTheme(CreateThemeRequest createThemeRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, LimitExceededException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateThemeResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createThemeRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateTheme"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateTheme").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createThemeRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateThemeRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates a theme alias for a theme. *

* * @param createThemeAliasRequest * @return Result of the CreateThemeAlias operation returned by the service. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws LimitExceededException * A limit is exceeded. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.CreateThemeAlias * @see AWS * API Documentation */ @Override public CreateThemeAliasResponse createThemeAlias(CreateThemeAliasRequest createThemeAliasRequest) throws ConflictException, InvalidParameterValueException, LimitExceededException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, CreateThemeAliasResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, createThemeAliasRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "CreateThemeAlias"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("CreateThemeAlias").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(createThemeAliasRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new CreateThemeAliasRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes all Amazon QuickSight customizations in this AWS Region for the specified AWS account and QuickSight * namespace. *

* * @param deleteAccountCustomizationRequest * @return Result of the DeleteAccountCustomization operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteAccountCustomization * @see AWS API Documentation */ @Override public DeleteAccountCustomizationResponse deleteAccountCustomization( DeleteAccountCustomizationRequest deleteAccountCustomizationRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteAccountCustomizationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteAccountCustomizationRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteAccountCustomization"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteAccountCustomization").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteAccountCustomizationRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteAccountCustomizationRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes an analysis from Amazon QuickSight. You can optionally include a recovery window during which you can * restore the analysis. If you don't specify a recovery window value, the operation defaults to 30 days. QuickSight * attaches a DeletionTime stamp to the response that specifies the end of the recovery window. At the * end of the recovery window, QuickSight deletes the analysis permanently. *

*

* At any time before recovery window ends, you can use the RestoreAnalysis API operation to remove the * DeletionTime stamp and cancel the deletion of the analysis. The analysis remains visible in the API * until it's deleted, so you can describe it but you can't make a template from it. *

*

* An analysis that's scheduled for deletion isn't accessible in the QuickSight console. To access it in the * console, restore it. Deleting an analysis doesn't delete the dashboards that you publish from it. *

* * @param deleteAnalysisRequest * @return Result of the DeleteAnalysis operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteAnalysis * @see AWS API * Documentation */ @Override public DeleteAnalysisResponse deleteAnalysis(DeleteAnalysisRequest deleteAnalysisRequest) throws ThrottlingException, InvalidParameterValueException, ConflictException, ResourceNotFoundException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteAnalysisResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteAnalysisRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteAnalysis"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteAnalysis").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteAnalysisRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteAnalysisRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes a dashboard. *

* * @param deleteDashboardRequest * @return Result of the DeleteDashboard operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteDashboard * @see AWS API * Documentation */ @Override public DeleteDashboardResponse deleteDashboard(DeleteDashboardRequest deleteDashboardRequest) throws ThrottlingException, InvalidParameterValueException, ConflictException, ResourceNotFoundException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteDashboardResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteDashboardRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteDashboard"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteDashboard").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteDashboardRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteDashboardRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes a dataset. *

* * @param deleteDataSetRequest * @return Result of the DeleteDataSet operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteDataSet * @see AWS API * Documentation */ @Override public DeleteDataSetResponse deleteDataSet(DeleteDataSetRequest deleteDataSetRequest) throws AccessDeniedException, InvalidParameterValueException, ThrottlingException, ResourceNotFoundException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteDataSetResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteDataSetRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteDataSet"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteDataSet").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteDataSetRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteDataSetRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes the data source permanently. This operation breaks all the datasets that reference the deleted data * source. *

* * @param deleteDataSourceRequest * @return Result of the DeleteDataSource operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteDataSource * @see AWS * API Documentation */ @Override public DeleteDataSourceResponse deleteDataSource(DeleteDataSourceRequest deleteDataSourceRequest) throws AccessDeniedException, InvalidParameterValueException, ThrottlingException, ResourceNotFoundException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteDataSourceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteDataSourceRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteDataSource"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteDataSource").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteDataSourceRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteDataSourceRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Removes a user group from Amazon QuickSight. *

* * @param deleteGroupRequest * @return Result of the DeleteGroup operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteGroup * @see AWS API * Documentation */ @Override public DeleteGroupResponse deleteGroup(DeleteGroupRequest deleteGroupRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteGroupResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteGroupRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteGroup"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteGroup").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteGroupRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteGroupRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Removes a user from a group so that the user is no longer a member of the group. *

* * @param deleteGroupMembershipRequest * @return Result of the DeleteGroupMembership operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteGroupMembership * @see AWS API Documentation */ @Override public DeleteGroupMembershipResponse deleteGroupMembership(DeleteGroupMembershipRequest deleteGroupMembershipRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteGroupMembershipResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteGroupMembershipRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteGroupMembership"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteGroupMembership").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteGroupMembershipRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteGroupMembershipRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes an existing IAM policy assignment. *

* * @param deleteIamPolicyAssignmentRequest * @return Result of the DeleteIAMPolicyAssignment operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ConcurrentUpdatingException * A resource is already in a state that indicates an operation is happening that must complete before a new * update can be applied. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteIAMPolicyAssignment * @see AWS API Documentation */ @Override public DeleteIamPolicyAssignmentResponse deleteIAMPolicyAssignment( DeleteIamPolicyAssignmentRequest deleteIamPolicyAssignmentRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, ConcurrentUpdatingException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteIamPolicyAssignmentResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteIamPolicyAssignmentRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteIAMPolicyAssignment"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteIAMPolicyAssignment").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteIamPolicyAssignmentRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteIamPolicyAssignmentRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes a namespace and the users and groups that are associated with the namespace. This is an asynchronous * process. Assets including dashboards, analyses, datasets and data sources are not deleted. To delete these * assets, you use the API operations for the relevant asset. *

* * @param deleteNamespaceRequest * @return Result of the DeleteNamespace operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteNamespace * @see AWS API * Documentation */ @Override public DeleteNamespaceResponse deleteNamespace(DeleteNamespaceRequest deleteNamespaceRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteNamespaceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteNamespaceRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteNamespace"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteNamespace").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteNamespaceRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteNamespaceRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes a template. *

* * @param deleteTemplateRequest * @return Result of the DeleteTemplate operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws LimitExceededException * A limit is exceeded. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteTemplate * @see AWS API * Documentation */ @Override public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest deleteTemplateRequest) throws InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, ConflictException, LimitExceededException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteTemplateResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteTemplateRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteTemplate"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteTemplate").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteTemplateRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteTemplateRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes the item that the specified template alias points to. If you provide a specific alias, you delete the * version of the template that the alias points to. *

* * @param deleteTemplateAliasRequest * @return Result of the DeleteTemplateAlias operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteTemplateAlias * @see AWS * API Documentation */ @Override public DeleteTemplateAliasResponse deleteTemplateAlias(DeleteTemplateAliasRequest deleteTemplateAliasRequest) throws ThrottlingException, ResourceNotFoundException, UnsupportedUserEditionException, ConflictException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteTemplateAliasResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteTemplateAliasRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteTemplateAlias"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteTemplateAlias").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteTemplateAliasRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteTemplateAliasRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes a theme. *

* * @param deleteThemeRequest * @return Result of the DeleteTheme operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteTheme * @see AWS API * Documentation */ @Override public DeleteThemeResponse deleteTheme(DeleteThemeRequest deleteThemeRequest) throws AccessDeniedException, ConflictException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteThemeResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteThemeRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteTheme"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteTheme").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteThemeRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteThemeRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes the version of the theme that the specified theme alias points to. If you provide a specific alias, you * delete the version of the theme that the alias points to. *

* * @param deleteThemeAliasRequest * @return Result of the DeleteThemeAlias operation returned by the service. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteThemeAlias * @see AWS * API Documentation */ @Override public DeleteThemeAliasResponse deleteThemeAlias(DeleteThemeAliasRequest deleteThemeAliasRequest) throws ConflictException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteThemeAliasResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteThemeAliasRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteThemeAlias"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DeleteThemeAlias").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteThemeAliasRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteThemeAliasRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes the Amazon QuickSight user that is associated with the identity of the AWS Identity and Access Management * (IAM) user or role that's making the call. The IAM user isn't deleted as a result of this call. *

* * @param deleteUserRequest * @return Result of the DeleteUser operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteUser * @see AWS API * Documentation */ @Override public DeleteUserResponse deleteUser(DeleteUserRequest deleteUserRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DeleteUserResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteUserRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteUser"); return clientHandler .execute(new ClientExecutionParams().withOperationName("DeleteUser") .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(deleteUserRequest).withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteUserRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Deletes a user identified by its principal ID. *

* * @param deleteUserByPrincipalIdRequest * @return Result of the DeleteUserByPrincipalId operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DeleteUserByPrincipalId * @see AWS API Documentation */ @Override public DeleteUserByPrincipalIdResponse deleteUserByPrincipalId(DeleteUserByPrincipalIdRequest deleteUserByPrincipalIdRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DeleteUserByPrincipalIdResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, deleteUserByPrincipalIdRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DeleteUserByPrincipalId"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DeleteUserByPrincipalId").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(deleteUserByPrincipalIdRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DeleteUserByPrincipalIdRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes the customizations associated with the provided AWS account and Amazon QuickSight namespace in an AWS * Region. The QuickSight console evaluates which customizations to apply by running this API operation with the * Resolved flag included. *

*

* To determine what customizations display when you run this command, it can help to visualize the relationship of * the entities involved. *

*
    *
  • *

    * AWS Account - The AWS account exists at the top of the hierarchy. It has the potential to use all of * the AWS Regions and AWS Services. When you subscribe to QuickSight, you choose one AWS Region to use as your home * Region. That's where your free SPICE capacity is located. You can use QuickSight in any supported AWS Region. *

    *
  • *
  • *

    * AWS Region - In each AWS Region where you sign in to QuickSight at least once, QuickSight acts as a * separate instance of the same service. If you have a user directory, it resides in us-east-1, which is the US * East (N. Virginia). Generally speaking, these users have access to QuickSight in any AWS Region, unless they are * constrained to a namespace. *

    *

    * To run the command in a different AWS Region, you change your Region settings. If you're using the AWS CLI, you * can use one of the following options: *

    * *
  • *
  • *

    * Namespace - A QuickSight namespace is a partition that contains users and assets (data sources, * datasets, dashboards, and so on). To access assets that are in a specific namespace, users and groups must also * be part of the same namespace. People who share a namespace are completely isolated from users and assets in * other namespaces, even if they are in the same AWS account and AWS Region. *

    *
  • *
  • *

    * Applied customizations - Within an AWS Region, a set of QuickSight customizations can apply to an * AWS account or to a namespace. Settings that you apply to a namespace override settings that you apply to an AWS * account. All settings are isolated to a single AWS Region. To apply them in other AWS Regions, run the * CreateAccountCustomization command in each AWS Region where you want to apply the same * customizations. *

    *
  • *
* * @param describeAccountCustomizationRequest * @return Result of the DescribeAccountCustomization operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeAccountCustomization * @see AWS API Documentation */ @Override public DescribeAccountCustomizationResponse describeAccountCustomization( DescribeAccountCustomizationRequest describeAccountCustomizationRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeAccountCustomizationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeAccountCustomizationRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeAccountCustomization"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeAccountCustomization").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeAccountCustomizationRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeAccountCustomizationRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes the settings that were used when your QuickSight subscription was first created in this AWS account. *

* * @param describeAccountSettingsRequest * @return Result of the DescribeAccountSettings operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeAccountSettings * @see AWS API Documentation */ @Override public DescribeAccountSettingsResponse describeAccountSettings(DescribeAccountSettingsRequest describeAccountSettingsRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeAccountSettingsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeAccountSettingsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeAccountSettings"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeAccountSettings").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeAccountSettingsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeAccountSettingsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Provides a summary of the metadata for an analysis. *

* * @param describeAnalysisRequest * @return Result of the DescribeAnalysis operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeAnalysis * @see AWS * API Documentation */ @Override public DescribeAnalysisResponse describeAnalysis(DescribeAnalysisRequest describeAnalysisRequest) throws InvalidParameterValueException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DescribeAnalysisResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeAnalysisRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeAnalysis"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeAnalysis").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeAnalysisRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeAnalysisRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Provides the read and write permissions for an analysis. *

* * @param describeAnalysisPermissionsRequest * @return Result of the DescribeAnalysisPermissions operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeAnalysisPermissions * @see AWS API Documentation */ @Override public DescribeAnalysisPermissionsResponse describeAnalysisPermissions( DescribeAnalysisPermissionsRequest describeAnalysisPermissionsRequest) throws InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeAnalysisPermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeAnalysisPermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeAnalysisPermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeAnalysisPermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeAnalysisPermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeAnalysisPermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Provides a summary for a dashboard. *

* * @param describeDashboardRequest * @return Result of the DescribeDashboard operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeDashboard * @see AWS * API Documentation */ @Override public DescribeDashboardResponse describeDashboard(DescribeDashboardRequest describeDashboardRequest) throws InvalidParameterValueException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DescribeDashboardResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeDashboardRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeDashboard"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeDashboard").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeDashboardRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeDashboardRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes read and write permissions for a dashboard. *

* * @param describeDashboardPermissionsRequest * @return Result of the DescribeDashboardPermissions operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeDashboardPermissions * @see AWS API Documentation */ @Override public DescribeDashboardPermissionsResponse describeDashboardPermissions( DescribeDashboardPermissionsRequest describeDashboardPermissionsRequest) throws InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeDashboardPermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeDashboardPermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeDashboardPermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeDashboardPermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeDashboardPermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeDashboardPermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes a dataset. *

* * @param describeDataSetRequest * @return Result of the DescribeDataSet operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeDataSet * @see AWS API * Documentation */ @Override public DescribeDataSetResponse describeDataSet(DescribeDataSetRequest describeDataSetRequest) throws AccessDeniedException, InvalidParameterValueException, ThrottlingException, ResourceNotFoundException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DescribeDataSetResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeDataSetRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeDataSet"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeDataSet").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeDataSetRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeDataSetRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes the permissions on a dataset. *

*

* The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/data-set-id. *

* * @param describeDataSetPermissionsRequest * @return Result of the DescribeDataSetPermissions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeDataSetPermissions * @see AWS API Documentation */ @Override public DescribeDataSetPermissionsResponse describeDataSetPermissions( DescribeDataSetPermissionsRequest describeDataSetPermissionsRequest) throws AccessDeniedException, InvalidParameterValueException, ThrottlingException, ResourceNotFoundException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeDataSetPermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeDataSetPermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeDataSetPermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeDataSetPermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeDataSetPermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeDataSetPermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes a data source. *

* * @param describeDataSourceRequest * @return Result of the DescribeDataSource operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeDataSource * @see AWS * API Documentation */ @Override public DescribeDataSourceResponse describeDataSource(DescribeDataSourceRequest describeDataSourceRequest) throws AccessDeniedException, InvalidParameterValueException, ThrottlingException, ResourceNotFoundException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeDataSourceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeDataSourceRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeDataSource"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeDataSource").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeDataSourceRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeDataSourceRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes the resource permissions for a data source. *

* * @param describeDataSourcePermissionsRequest * @return Result of the DescribeDataSourcePermissions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeDataSourcePermissions * @see AWS API Documentation */ @Override public DescribeDataSourcePermissionsResponse describeDataSourcePermissions( DescribeDataSourcePermissionsRequest describeDataSourcePermissionsRequest) throws AccessDeniedException, InvalidParameterValueException, ThrottlingException, ResourceNotFoundException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeDataSourcePermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeDataSourcePermissionsRequest.overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeDataSourcePermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeDataSourcePermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeDataSourcePermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeDataSourcePermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Returns an Amazon QuickSight group's description and Amazon Resource Name (ARN). *

* * @param describeGroupRequest * @return Result of the DescribeGroup operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeGroup * @see AWS API * Documentation */ @Override public DescribeGroupResponse describeGroup(DescribeGroupRequest describeGroupRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DescribeGroupResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeGroupRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeGroup"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeGroup").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeGroupRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeGroupRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes an existing IAM policy assignment, as specified by the assignment name. *

* * @param describeIamPolicyAssignmentRequest * @return Result of the DescribeIAMPolicyAssignment operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeIAMPolicyAssignment * @see AWS API Documentation */ @Override public DescribeIamPolicyAssignmentResponse describeIAMPolicyAssignment( DescribeIamPolicyAssignmentRequest describeIamPolicyAssignmentRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeIamPolicyAssignmentResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeIamPolicyAssignmentRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeIAMPolicyAssignment"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeIAMPolicyAssignment").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeIamPolicyAssignmentRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeIamPolicyAssignmentRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes a SPICE ingestion. *

* * @param describeIngestionRequest * @return Result of the DescribeIngestion operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ResourceExistsException * The resource specified already exists. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeIngestion * @see AWS * API Documentation */ @Override public DescribeIngestionResponse describeIngestion(DescribeIngestionRequest describeIngestionRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, ResourceExistsException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DescribeIngestionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeIngestionRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeIngestion"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeIngestion").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeIngestionRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeIngestionRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes the current namespace. *

* * @param describeNamespaceRequest * @return Result of the DescribeNamespace operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeNamespace * @see AWS * API Documentation */ @Override public DescribeNamespaceResponse describeNamespace(DescribeNamespaceRequest describeNamespaceRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DescribeNamespaceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeNamespaceRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeNamespace"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeNamespace").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeNamespaceRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeNamespaceRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes a template's metadata. *

* * @param describeTemplateRequest * @return Result of the DescribeTemplate operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeTemplate * @see AWS * API Documentation */ @Override public DescribeTemplateResponse describeTemplate(DescribeTemplateRequest describeTemplateRequest) throws InvalidParameterValueException, AccessDeniedException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, ConflictException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DescribeTemplateResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeTemplateRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeTemplate"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeTemplate").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeTemplateRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeTemplateRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes the template alias for a template. *

* * @param describeTemplateAliasRequest * @return Result of the DescribeTemplateAlias operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeTemplateAlias * @see AWS API Documentation */ @Override public DescribeTemplateAliasResponse describeTemplateAlias(DescribeTemplateAliasRequest describeTemplateAliasRequest) throws ThrottlingException, ResourceNotFoundException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeTemplateAliasResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeTemplateAliasRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeTemplateAlias"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeTemplateAlias").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeTemplateAliasRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeTemplateAliasRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes read and write permissions on a template. *

* * @param describeTemplatePermissionsRequest * @return Result of the DescribeTemplatePermissions operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeTemplatePermissions * @see AWS API Documentation */ @Override public DescribeTemplatePermissionsResponse describeTemplatePermissions( DescribeTemplatePermissionsRequest describeTemplatePermissionsRequest) throws ThrottlingException, InvalidParameterValueException, ConflictException, ResourceNotFoundException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeTemplatePermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeTemplatePermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeTemplatePermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeTemplatePermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeTemplatePermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeTemplatePermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes a theme. *

* * @param describeThemeRequest * @return Result of the DescribeTheme operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeTheme * @see AWS API * Documentation */ @Override public DescribeThemeResponse describeTheme(DescribeThemeRequest describeThemeRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DescribeThemeResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeThemeRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeTheme"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeTheme").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeThemeRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeThemeRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes the alias for a theme. *

* * @param describeThemeAliasRequest * @return Result of the DescribeThemeAlias operation returned by the service. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeThemeAlias * @see AWS * API Documentation */ @Override public DescribeThemeAliasResponse describeThemeAlias(DescribeThemeAliasRequest describeThemeAliasRequest) throws ConflictException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeThemeAliasResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeThemeAliasRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeThemeAlias"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeThemeAlias").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeThemeAliasRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeThemeAliasRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Describes the read and write permissions for a theme. *

* * @param describeThemePermissionsRequest * @return Result of the DescribeThemePermissions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeThemePermissions * @see AWS API Documentation */ @Override public DescribeThemePermissionsResponse describeThemePermissions( DescribeThemePermissionsRequest describeThemePermissionsRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, DescribeThemePermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeThemePermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeThemePermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("DescribeThemePermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeThemePermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeThemePermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Returns information about a user, given the user name. *

* * @param describeUserRequest * @return Result of the DescribeUser operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.DescribeUser * @see AWS API * Documentation */ @Override public DescribeUserResponse describeUser(DescribeUserRequest describeUserRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, DescribeUserResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, describeUserRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "DescribeUser"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("DescribeUser").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(describeUserRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new DescribeUserRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Generates a session URL and authorization code that you can use to embed an Amazon QuickSight read-only dashboard * in your web server code. Before you use this command, make sure that you have configured the dashboards and * permissions. *

*

* Currently, you can use GetDashboardEmbedURL only from the server, not from the user's browser. The * following rules apply to the combination of URL and authorization code: *

*
    *
  • *

    * They must be used together. *

    *
  • *
  • *

    * They can be used one time only. *

    *
  • *
  • *

    * They are valid for 5 minutes after you run this command. *

    *
  • *
  • *

    * The resulting user session is valid for 10 hours. *

    *
  • *
*

* For more information, see Embedding Amazon * QuickSight in the Amazon QuickSight User Guide . *

* * @param getDashboardEmbedUrlRequest * Parameter input for the GetDashboardEmbedUrl operation. * @return Result of the GetDashboardEmbedUrl operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws DomainNotWhitelistedException * The domain specified isn't on the allow list. All domains for embedded dashboards must be added to the * approved list by an Amazon QuickSight admin. * @throws QuickSightUserNotFoundException * The user with the provided name isn't found. This error can happen in any operation that requires finding * a user based on a provided user name, such as DeleteUser, DescribeUser, and so * on. * @throws IdentityTypeNotSupportedException * The identity type specified isn't supported. Supported identity types include IAM and * QUICKSIGHT. * @throws SessionLifetimeInMinutesInvalidException * The number of minutes specified for the lifetime of a session isn't valid. The session lifetime must be * 15-600 minutes. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws UnsupportedPricingPlanException * This error indicates that you are calling an embedding operation in Amazon QuickSight without the * required pricing plan on your AWS account. Before you can use anonymous embedding, a QuickSight * administrator needs to add capacity pricing to QuickSight. You can do this on the Manage * QuickSight page.

*

* After capacity pricing is added, you can enable anonymous embedding by using the * GetDashboardEmbedUrl API operation with the --identity-type ANONYMOUS * option. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.GetDashboardEmbedUrl * @see AWS API Documentation */ @Override public GetDashboardEmbedUrlResponse getDashboardEmbedUrl(GetDashboardEmbedUrlRequest getDashboardEmbedUrlRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, DomainNotWhitelistedException, QuickSightUserNotFoundException, IdentityTypeNotSupportedException, SessionLifetimeInMinutesInvalidException, UnsupportedUserEditionException, UnsupportedPricingPlanException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetDashboardEmbedUrlResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, getDashboardEmbedUrlRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GetDashboardEmbedUrl"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("GetDashboardEmbedUrl").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getDashboardEmbedUrlRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new GetDashboardEmbedUrlRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Generates a session URL and authorization code that you can use to embed the Amazon QuickSight console in your * web server code. Use GetSessionEmbedUrl where you want to provide an authoring portal that allows * users to create data sources, datasets, analyses, and dashboards. The users who access an embedded QuickSight * console need belong to the author or admin security cohort. If you want to restrict permissions to some of these * features, add a custom permissions profile to the user with the UpdateUser API operation. * Use RegisterUser API operation to add a new user with a custom permission profile attached. * For more information, see the following sections in the Amazon QuickSight User Guide: *

* * * @param getSessionEmbedUrlRequest * @return Result of the GetSessionEmbedUrl operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws QuickSightUserNotFoundException * The user with the provided name isn't found. This error can happen in any operation that requires finding * a user based on a provided user name, such as DeleteUser, DescribeUser, and so * on. * @throws SessionLifetimeInMinutesInvalidException * The number of minutes specified for the lifetime of a session isn't valid. The session lifetime must be * 15-600 minutes. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.GetSessionEmbedUrl * @see AWS * API Documentation */ @Override public GetSessionEmbedUrlResponse getSessionEmbedUrl(GetSessionEmbedUrlRequest getSessionEmbedUrlRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, QuickSightUserNotFoundException, SessionLifetimeInMinutesInvalidException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, GetSessionEmbedUrlResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, getSessionEmbedUrlRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "GetSessionEmbedUrl"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("GetSessionEmbedUrl").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(getSessionEmbedUrlRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new GetSessionEmbedUrlRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists Amazon QuickSight analyses that exist in the specified AWS account. *

* * @param listAnalysesRequest * @return Result of the ListAnalyses operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListAnalyses * @see AWS API * Documentation */ @Override public ListAnalysesResponse listAnalyses(ListAnalysesRequest listAnalysesRequest) throws ThrottlingException, InvalidNextTokenException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListAnalysesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listAnalysesRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListAnalyses"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListAnalyses").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listAnalysesRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListAnalysesRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists Amazon QuickSight analyses that exist in the specified AWS account. *

*
*

* This is a variant of {@link #listAnalyses(software.amazon.awssdk.services.quicksight.model.ListAnalysesRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListAnalysesIterable responses = client.listAnalysesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.ListAnalysesIterable responses = client.listAnalysesPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.ListAnalysesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListAnalysesIterable responses = client.listAnalysesPaginator(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 * {@link #listAnalyses(software.amazon.awssdk.services.quicksight.model.ListAnalysesRequest)} operation. *

* * @param listAnalysesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListAnalyses * @see AWS API * Documentation */ @Override public ListAnalysesIterable listAnalysesPaginator(ListAnalysesRequest listAnalysesRequest) throws ThrottlingException, InvalidNextTokenException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new ListAnalysesIterable(this, applyPaginatorUserAgent(listAnalysesRequest)); } /** *

* Lists all the versions of the dashboards in the QuickSight subscription. *

* * @param listDashboardVersionsRequest * @return Result of the ListDashboardVersions operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListDashboardVersions * @see AWS API Documentation */ @Override public ListDashboardVersionsResponse listDashboardVersions(ListDashboardVersionsRequest listDashboardVersionsRequest) throws InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InvalidNextTokenException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListDashboardVersionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listDashboardVersionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListDashboardVersions"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListDashboardVersions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listDashboardVersionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListDashboardVersionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists all the versions of the dashboards in the QuickSight subscription. *

*
*

* This is a variant of * {@link #listDashboardVersions(software.amazon.awssdk.services.quicksight.model.ListDashboardVersionsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListDashboardVersionsIterable responses = client.listDashboardVersionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.ListDashboardVersionsIterable responses = client
     *             .listDashboardVersionsPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.ListDashboardVersionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListDashboardVersionsIterable responses = client.listDashboardVersionsPaginator(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 * {@link #listDashboardVersions(software.amazon.awssdk.services.quicksight.model.ListDashboardVersionsRequest)} * operation. *

* * @param listDashboardVersionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListDashboardVersions * @see AWS API Documentation */ @Override public ListDashboardVersionsIterable listDashboardVersionsPaginator(ListDashboardVersionsRequest listDashboardVersionsRequest) throws InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InvalidNextTokenException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new ListDashboardVersionsIterable(this, applyPaginatorUserAgent(listDashboardVersionsRequest)); } /** *

* Lists dashboards in an AWS account. *

* * @param listDashboardsRequest * @return Result of the ListDashboards operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListDashboards * @see AWS API * Documentation */ @Override public ListDashboardsResponse listDashboards(ListDashboardsRequest listDashboardsRequest) throws ThrottlingException, InvalidNextTokenException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListDashboardsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listDashboardsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListDashboards"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListDashboards").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listDashboardsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListDashboardsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists dashboards in an AWS account. *

*
*

* This is a variant of * {@link #listDashboards(software.amazon.awssdk.services.quicksight.model.ListDashboardsRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListDashboardsIterable responses = client.listDashboardsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.ListDashboardsIterable responses = client
     *             .listDashboardsPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.ListDashboardsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListDashboardsIterable responses = client.listDashboardsPaginator(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 * {@link #listDashboards(software.amazon.awssdk.services.quicksight.model.ListDashboardsRequest)} operation. *

* * @param listDashboardsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListDashboards * @see AWS API * Documentation */ @Override public ListDashboardsIterable listDashboardsPaginator(ListDashboardsRequest listDashboardsRequest) throws ThrottlingException, InvalidNextTokenException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new ListDashboardsIterable(this, applyPaginatorUserAgent(listDashboardsRequest)); } /** *

* Lists all of the datasets belonging to the current AWS account in an AWS Region. *

*

* The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/*. *

* * @param listDataSetsRequest * @return Result of the ListDataSets operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListDataSets * @see AWS API * Documentation */ @Override public ListDataSetsResponse listDataSets(ListDataSetsRequest listDataSetsRequest) throws AccessDeniedException, InvalidParameterValueException, ThrottlingException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListDataSetsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listDataSetsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListDataSets"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListDataSets").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listDataSetsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListDataSetsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists all of the datasets belonging to the current AWS account in an AWS Region. *

*

* The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/*. *

*
*

* This is a variant of {@link #listDataSets(software.amazon.awssdk.services.quicksight.model.ListDataSetsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.ListDataSetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListDataSetsIterable responses = client.listDataSetsPaginator(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 * {@link #listDataSets(software.amazon.awssdk.services.quicksight.model.ListDataSetsRequest)} operation. *

* * @param listDataSetsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListDataSets * @see AWS API * Documentation */ @Override public ListDataSetsIterable listDataSetsPaginator(ListDataSetsRequest listDataSetsRequest) throws AccessDeniedException, InvalidParameterValueException, ThrottlingException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new ListDataSetsIterable(this, applyPaginatorUserAgent(listDataSetsRequest)); } /** *

* Lists data sources in current AWS Region that belong to this AWS account. *

* * @param listDataSourcesRequest * @return Result of the ListDataSources operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListDataSources * @see AWS API * Documentation */ @Override public ListDataSourcesResponse listDataSources(ListDataSourcesRequest listDataSourcesRequest) throws AccessDeniedException, InvalidParameterValueException, ThrottlingException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListDataSourcesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listDataSourcesRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListDataSources"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListDataSources").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listDataSourcesRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListDataSourcesRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists data sources in current AWS Region that belong to this AWS account. *

*
*

* This is a variant of * {@link #listDataSources(software.amazon.awssdk.services.quicksight.model.ListDataSourcesRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListDataSourcesIterable responses = client.listDataSourcesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.ListDataSourcesIterable responses = client
     *             .listDataSourcesPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.ListDataSourcesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListDataSourcesIterable responses = client.listDataSourcesPaginator(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 * {@link #listDataSources(software.amazon.awssdk.services.quicksight.model.ListDataSourcesRequest)} operation. *

* * @param listDataSourcesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListDataSources * @see AWS API * Documentation */ @Override public ListDataSourcesIterable listDataSourcesPaginator(ListDataSourcesRequest listDataSourcesRequest) throws AccessDeniedException, InvalidParameterValueException, ThrottlingException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new ListDataSourcesIterable(this, applyPaginatorUserAgent(listDataSourcesRequest)); } /** *

* Lists member users in a group. *

* * @param listGroupMembershipsRequest * @return Result of the ListGroupMemberships operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListGroupMemberships * @see AWS API Documentation */ @Override public ListGroupMembershipsResponse listGroupMemberships(ListGroupMembershipsRequest listGroupMembershipsRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InvalidNextTokenException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListGroupMembershipsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listGroupMembershipsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListGroupMemberships"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListGroupMemberships").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listGroupMembershipsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListGroupMembershipsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists all user groups in Amazon QuickSight. *

* * @param listGroupsRequest * @return Result of the ListGroups operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListGroups * @see AWS API * Documentation */ @Override public ListGroupsResponse listGroups(ListGroupsRequest listGroupsRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InvalidNextTokenException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListGroupsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listGroupsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListGroups"); return clientHandler .execute(new ClientExecutionParams().withOperationName("ListGroups") .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(listGroupsRequest).withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListGroupsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists IAM policy assignments in the current Amazon QuickSight account. *

* * @param listIamPolicyAssignmentsRequest * @return Result of the ListIAMPolicyAssignments operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListIAMPolicyAssignments * @see AWS API Documentation */ @Override public ListIamPolicyAssignmentsResponse listIAMPolicyAssignments( ListIamPolicyAssignmentsRequest listIamPolicyAssignmentsRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListIamPolicyAssignmentsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listIamPolicyAssignmentsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListIAMPolicyAssignments"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("ListIAMPolicyAssignments").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listIamPolicyAssignmentsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListIamPolicyAssignmentsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists all the IAM policy assignments, including the Amazon Resource Names (ARNs) for the IAM policies assigned to * the specified user and group or groups that the user belongs to. *

* * @param listIamPolicyAssignmentsForUserRequest * @return Result of the ListIAMPolicyAssignmentsForUser operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ConcurrentUpdatingException * A resource is already in a state that indicates an operation is happening that must complete before a new * update can be applied. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListIAMPolicyAssignmentsForUser * @see AWS API Documentation */ @Override public ListIamPolicyAssignmentsForUserResponse listIAMPolicyAssignmentsForUser( ListIamPolicyAssignmentsForUserRequest listIamPolicyAssignmentsForUserRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, ConcurrentUpdatingException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListIamPolicyAssignmentsForUserResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listIamPolicyAssignmentsForUserRequest.overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListIAMPolicyAssignmentsForUser"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("ListIAMPolicyAssignmentsForUser").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listIamPolicyAssignmentsForUserRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListIamPolicyAssignmentsForUserRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists the history of SPICE ingestions for a dataset. *

* * @param listIngestionsRequest * @return Result of the ListIngestions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ResourceExistsException * The resource specified already exists. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListIngestions * @see AWS API * Documentation */ @Override public ListIngestionsResponse listIngestions(ListIngestionsRequest listIngestionsRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, ResourceExistsException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListIngestionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listIngestionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListIngestions"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListIngestions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listIngestionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListIngestionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists the history of SPICE ingestions for a dataset. *

*
*

* This is a variant of * {@link #listIngestions(software.amazon.awssdk.services.quicksight.model.ListIngestionsRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListIngestionsIterable responses = client.listIngestionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.ListIngestionsIterable responses = client
     *             .listIngestionsPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.ListIngestionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListIngestionsIterable responses = client.listIngestionsPaginator(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 * {@link #listIngestions(software.amazon.awssdk.services.quicksight.model.ListIngestionsRequest)} operation. *

* * @param listIngestionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ResourceExistsException * The resource specified already exists. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListIngestions * @see AWS API * Documentation */ @Override public ListIngestionsIterable listIngestionsPaginator(ListIngestionsRequest listIngestionsRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, ResourceExistsException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new ListIngestionsIterable(this, applyPaginatorUserAgent(listIngestionsRequest)); } /** *

* Lists the namespaces for the specified AWS account. *

* * @param listNamespacesRequest * @return Result of the ListNamespaces operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListNamespaces * @see AWS API * Documentation */ @Override public ListNamespacesResponse listNamespaces(ListNamespacesRequest listNamespacesRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InvalidNextTokenException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListNamespacesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listNamespacesRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListNamespaces"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListNamespaces").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listNamespacesRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListNamespacesRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists the namespaces for the specified AWS account. *

*
*

* This is a variant of * {@link #listNamespaces(software.amazon.awssdk.services.quicksight.model.ListNamespacesRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListNamespacesIterable responses = client.listNamespacesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.ListNamespacesIterable responses = client
     *             .listNamespacesPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.ListNamespacesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListNamespacesIterable responses = client.listNamespacesPaginator(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 * {@link #listNamespaces(software.amazon.awssdk.services.quicksight.model.ListNamespacesRequest)} operation. *

* * @param listNamespacesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListNamespaces * @see AWS API * Documentation */ @Override public ListNamespacesIterable listNamespacesPaginator(ListNamespacesRequest listNamespacesRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InvalidNextTokenException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { return new ListNamespacesIterable(this, applyPaginatorUserAgent(listNamespacesRequest)); } /** *

* Lists the tags assigned to a resource. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListTagsForResource * @see AWS * API Documentation */ @Override public ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListTagsForResourceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listTagsForResourceRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListTagsForResource"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListTagsForResource").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listTagsForResourceRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListTagsForResourceRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists all the aliases of a template. *

* * @param listTemplateAliasesRequest * @return Result of the ListTemplateAliases operation returned by the service. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListTemplateAliases * @see AWS * API Documentation */ @Override public ListTemplateAliasesResponse listTemplateAliases(ListTemplateAliasesRequest listTemplateAliasesRequest) throws InvalidNextTokenException, ThrottlingException, ResourceNotFoundException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListTemplateAliasesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listTemplateAliasesRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListTemplateAliases"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListTemplateAliases").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listTemplateAliasesRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListTemplateAliasesRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists all the aliases of a template. *

*
*

* This is a variant of * {@link #listTemplateAliases(software.amazon.awssdk.services.quicksight.model.ListTemplateAliasesRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListTemplateAliasesIterable responses = client.listTemplateAliasesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.ListTemplateAliasesIterable responses = client
     *             .listTemplateAliasesPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.ListTemplateAliasesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListTemplateAliasesIterable responses = client.listTemplateAliasesPaginator(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 * {@link #listTemplateAliases(software.amazon.awssdk.services.quicksight.model.ListTemplateAliasesRequest)} * operation. *

* * @param listTemplateAliasesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListTemplateAliases * @see AWS * API Documentation */ @Override public ListTemplateAliasesIterable listTemplateAliasesPaginator(ListTemplateAliasesRequest listTemplateAliasesRequest) throws InvalidNextTokenException, ThrottlingException, ResourceNotFoundException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new ListTemplateAliasesIterable(this, applyPaginatorUserAgent(listTemplateAliasesRequest)); } /** *

* Lists all the versions of the templates in the current Amazon QuickSight account. *

* * @param listTemplateVersionsRequest * @return Result of the ListTemplateVersions operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListTemplateVersions * @see AWS API Documentation */ @Override public ListTemplateVersionsResponse listTemplateVersions(ListTemplateVersionsRequest listTemplateVersionsRequest) throws ThrottlingException, InvalidParameterValueException, ResourceNotFoundException, InvalidNextTokenException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, ListTemplateVersionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listTemplateVersionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListTemplateVersions"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListTemplateVersions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listTemplateVersionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListTemplateVersionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists all the versions of the templates in the current Amazon QuickSight account. *

*
*

* This is a variant of * {@link #listTemplateVersions(software.amazon.awssdk.services.quicksight.model.ListTemplateVersionsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListTemplateVersionsIterable responses = client.listTemplateVersionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.ListTemplateVersionsIterable responses = client
     *             .listTemplateVersionsPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.ListTemplateVersionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListTemplateVersionsIterable responses = client.listTemplateVersionsPaginator(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 * {@link #listTemplateVersions(software.amazon.awssdk.services.quicksight.model.ListTemplateVersionsRequest)} * operation. *

* * @param listTemplateVersionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListTemplateVersions * @see AWS API Documentation */ @Override public ListTemplateVersionsIterable listTemplateVersionsPaginator(ListTemplateVersionsRequest listTemplateVersionsRequest) throws ThrottlingException, InvalidParameterValueException, ResourceNotFoundException, InvalidNextTokenException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new ListTemplateVersionsIterable(this, applyPaginatorUserAgent(listTemplateVersionsRequest)); } /** *

* Lists all the templates in the current Amazon QuickSight account. *

* * @param listTemplatesRequest * @return Result of the ListTemplates operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListTemplates * @see AWS API * Documentation */ @Override public ListTemplatesResponse listTemplates(ListTemplatesRequest listTemplatesRequest) throws ThrottlingException, InvalidParameterValueException, ResourceNotFoundException, InvalidNextTokenException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListTemplatesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listTemplatesRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListTemplates"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListTemplates").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listTemplatesRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListTemplatesRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists all the templates in the current Amazon QuickSight account. *

*
*

* This is a variant of * {@link #listTemplates(software.amazon.awssdk.services.quicksight.model.ListTemplatesRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListTemplatesIterable responses = client.listTemplatesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.ListTemplatesIterable responses = client
     *             .listTemplatesPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.ListTemplatesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.ListTemplatesIterable responses = client.listTemplatesPaginator(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 * {@link #listTemplates(software.amazon.awssdk.services.quicksight.model.ListTemplatesRequest)} operation. *

* * @param listTemplatesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListTemplates * @see AWS API * Documentation */ @Override public ListTemplatesIterable listTemplatesPaginator(ListTemplatesRequest listTemplatesRequest) throws ThrottlingException, InvalidParameterValueException, ResourceNotFoundException, InvalidNextTokenException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new ListTemplatesIterable(this, applyPaginatorUserAgent(listTemplatesRequest)); } /** *

* Lists all the aliases of a theme. *

* * @param listThemeAliasesRequest * @return Result of the ListThemeAliases operation returned by the service. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListThemeAliases * @see AWS * API Documentation */ @Override public ListThemeAliasesResponse listThemeAliases(ListThemeAliasesRequest listThemeAliasesRequest) throws ConflictException, InvalidNextTokenException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListThemeAliasesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listThemeAliasesRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListThemeAliases"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListThemeAliases").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listThemeAliasesRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListThemeAliasesRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists all the versions of the themes in the current AWS account. *

* * @param listThemeVersionsRequest * @return Result of the ListThemeVersions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListThemeVersions * @see AWS * API Documentation */ @Override public ListThemeVersionsResponse listThemeVersions(ListThemeVersionsRequest listThemeVersionsRequest) throws AccessDeniedException, InvalidNextTokenException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListThemeVersionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listThemeVersionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListThemeVersions"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListThemeVersions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listThemeVersionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListThemeVersionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists all the themes in the current AWS account. *

* * @param listThemesRequest * @return Result of the ListThemes operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListThemes * @see AWS API * Documentation */ @Override public ListThemesResponse listThemes(ListThemesRequest listThemesRequest) throws AccessDeniedException, InvalidParameterValueException, InvalidNextTokenException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListThemesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listThemesRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListThemes"); return clientHandler .execute(new ClientExecutionParams().withOperationName("ListThemes") .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(listThemesRequest).withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListThemesRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Lists the Amazon QuickSight groups that an Amazon QuickSight user is a member of. *

* * @param listUserGroupsRequest * @return Result of the ListUserGroups operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListUserGroups * @see AWS API * Documentation */ @Override public ListUserGroupsResponse listUserGroups(ListUserGroupsRequest listUserGroupsRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListUserGroupsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listUserGroupsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListUserGroups"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListUserGroups").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listUserGroupsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new ListUserGroupsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Returns a list of all of the Amazon QuickSight users belonging to this account. *

* * @param listUsersRequest * @return Result of the ListUsers operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.ListUsers * @see AWS API * Documentation */ @Override public ListUsersResponse listUsers(ListUsersRequest listUsersRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InvalidNextTokenException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, ListUsersResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, listUsersRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "ListUsers"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("ListUsers").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(listUsersRequest) .withMetricCollector(apiCallMetricCollector).withMarshaller(new ListUsersRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Creates an Amazon QuickSight user, whose identity is associated with the AWS Identity and Access Management (IAM) * identity or role specified in the request. *

* * @param registerUserRequest * @return Result of the RegisterUser operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws LimitExceededException * A limit is exceeded. * @throws ResourceExistsException * The resource specified already exists. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.RegisterUser * @see AWS API * Documentation */ @Override public RegisterUserResponse registerUser(RegisterUserRequest registerUserRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, LimitExceededException, ResourceExistsException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, RegisterUserResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, registerUserRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "RegisterUser"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("RegisterUser").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(registerUserRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new RegisterUserRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Restores an analysis. *

* * @param restoreAnalysisRequest * @return Result of the RestoreAnalysis operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.RestoreAnalysis * @see AWS API * Documentation */ @Override public RestoreAnalysisResponse restoreAnalysis(RestoreAnalysisRequest restoreAnalysisRequest) throws ThrottlingException, InvalidParameterValueException, ConflictException, ResourceNotFoundException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, RestoreAnalysisResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, restoreAnalysisRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "RestoreAnalysis"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("RestoreAnalysis").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(restoreAnalysisRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new RestoreAnalysisRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Searches for analyses that belong to the user specified in the filter. *

* * @param searchAnalysesRequest * @return Result of the SearchAnalyses operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.SearchAnalyses * @see AWS API * Documentation */ @Override public SearchAnalysesResponse searchAnalyses(SearchAnalysesRequest searchAnalysesRequest) throws ThrottlingException, ResourceNotFoundException, InvalidParameterValueException, UnsupportedUserEditionException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, SearchAnalysesResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, searchAnalysesRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "SearchAnalyses"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("SearchAnalyses").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(searchAnalysesRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new SearchAnalysesRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Searches for analyses that belong to the user specified in the filter. *

*
*

* This is a variant of * {@link #searchAnalyses(software.amazon.awssdk.services.quicksight.model.SearchAnalysesRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.SearchAnalysesIterable responses = client.searchAnalysesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.SearchAnalysesIterable responses = client
     *             .searchAnalysesPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.SearchAnalysesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.SearchAnalysesIterable responses = client.searchAnalysesPaginator(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 * {@link #searchAnalyses(software.amazon.awssdk.services.quicksight.model.SearchAnalysesRequest)} operation. *

* * @param searchAnalysesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.SearchAnalyses * @see AWS API * Documentation */ @Override public SearchAnalysesIterable searchAnalysesPaginator(SearchAnalysesRequest searchAnalysesRequest) throws ThrottlingException, ResourceNotFoundException, InvalidParameterValueException, UnsupportedUserEditionException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new SearchAnalysesIterable(this, applyPaginatorUserAgent(searchAnalysesRequest)); } /** *

* Searches for dashboards that belong to a user. *

* * @param searchDashboardsRequest * @return Result of the SearchDashboards operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.SearchDashboards * @see AWS * API Documentation */ @Override public SearchDashboardsResponse searchDashboards(SearchDashboardsRequest searchDashboardsRequest) throws ThrottlingException, ResourceNotFoundException, InvalidParameterValueException, UnsupportedUserEditionException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, SearchDashboardsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, searchDashboardsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "SearchDashboards"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("SearchDashboards").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(searchDashboardsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new SearchDashboardsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Searches for dashboards that belong to a user. *

*
*

* This is a variant of * {@link #searchDashboards(software.amazon.awssdk.services.quicksight.model.SearchDashboardsRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.SearchDashboardsIterable responses = client.searchDashboardsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.quicksight.paginators.SearchDashboardsIterable responses = client
     *             .searchDashboardsPaginator(request);
     *     for (software.amazon.awssdk.services.quicksight.model.SearchDashboardsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.quicksight.paginators.SearchDashboardsIterable responses = client.searchDashboardsPaginator(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 * {@link #searchDashboards(software.amazon.awssdk.services.quicksight.model.SearchDashboardsRequest)} * operation. *

* * @param searchDashboardsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.SearchDashboards * @see AWS * API Documentation */ @Override public SearchDashboardsIterable searchDashboardsPaginator(SearchDashboardsRequest searchDashboardsRequest) throws ThrottlingException, ResourceNotFoundException, InvalidParameterValueException, UnsupportedUserEditionException, InvalidNextTokenException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { return new SearchDashboardsIterable(this, applyPaginatorUserAgent(searchDashboardsRequest)); } /** *

* Assigns one or more tags (key-value pairs) to the specified QuickSight resource. *

*

* Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by * granting a user permission to access or change only resources with certain tag values. You can use the * TagResource operation with a resource that already has tags. If you specify a new tag key for the * resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is * already associated with the resource, the new tag value that you specify replaces the previous value for that * tag. *

*

* You can associate as many as 50 tags with a resource. QuickSight supports tagging on data set, data source, * dashboard, and template. *

*

* Tagging for QuickSight works in a similar way to tagging for other AWS services, except for the following: *

*
    *
  • *

    * You can't use tags to track AWS costs for QuickSight. This restriction is because QuickSight costs are based on * users and SPICE capacity, which aren't taggable resources. *

    *
  • *
  • *

    * QuickSight doesn't currently support the Tag Editor for AWS Resource Groups. *

    *
  • *
* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws LimitExceededException * A limit is exceeded. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.TagResource * @see AWS API * Documentation */ @Override public TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws LimitExceededException, AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, TagResourceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, tagResourceRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "TagResource"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("TagResource").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(tagResourceRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new TagResourceRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Removes a tag or tags from a resource. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UntagResource * @see AWS API * Documentation */ @Override public UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UntagResourceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, untagResourceRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UntagResource"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UntagResource").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(untagResourceRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UntagResourceRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates Amazon QuickSight customizations the current AWS Region. Currently, the only customization you can use is * a theme. *

*

* You can use customizations for your AWS account or, if you specify a namespace, for a QuickSight namespace * instead. Customizations that apply to a namespace override customizations that apply to an AWS account. To find * out which customizations apply, use the DescribeAccountCustomization API operation. *

* * @param updateAccountCustomizationRequest * @return Result of the UpdateAccountCustomization operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateAccountCustomization * @see AWS API Documentation */ @Override public UpdateAccountCustomizationResponse updateAccountCustomization( UpdateAccountCustomizationRequest updateAccountCustomizationRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateAccountCustomizationResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateAccountCustomizationRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateAccountCustomization"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateAccountCustomization").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateAccountCustomizationRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateAccountCustomizationRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates the Amazon QuickSight settings in your AWS account. *

* * @param updateAccountSettingsRequest * @return Result of the UpdateAccountSettings operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateAccountSettings * @see AWS API Documentation */ @Override public UpdateAccountSettingsResponse updateAccountSettings(UpdateAccountSettingsRequest updateAccountSettingsRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateAccountSettingsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateAccountSettingsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateAccountSettings"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UpdateAccountSettings").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateAccountSettingsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateAccountSettingsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates an analysis in Amazon QuickSight *

* * @param updateAnalysisRequest * @return Result of the UpdateAnalysis operation returned by the service. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceExistsException * The resource specified already exists. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateAnalysis * @see AWS API * Documentation */ @Override public UpdateAnalysisResponse updateAnalysis(UpdateAnalysisRequest updateAnalysisRequest) throws ResourceNotFoundException, InvalidParameterValueException, ThrottlingException, ResourceExistsException, ConflictException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateAnalysisResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateAnalysisRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateAnalysis"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UpdateAnalysis").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateAnalysisRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateAnalysisRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates the read and write permissions for an analysis. *

* * @param updateAnalysisPermissionsRequest * @return Result of the UpdateAnalysisPermissions operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateAnalysisPermissions * @see AWS API Documentation */ @Override public UpdateAnalysisPermissionsResponse updateAnalysisPermissions( UpdateAnalysisPermissionsRequest updateAnalysisPermissionsRequest) throws ThrottlingException, InvalidParameterValueException, ResourceNotFoundException, UnsupportedUserEditionException, ConflictException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateAnalysisPermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateAnalysisPermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateAnalysisPermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateAnalysisPermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateAnalysisPermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateAnalysisPermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates a dashboard in an AWS account. *

* * @param updateDashboardRequest * @return Result of the UpdateDashboard operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws LimitExceededException * A limit is exceeded. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateDashboard * @see AWS API * Documentation */ @Override public UpdateDashboardResponse updateDashboard(UpdateDashboardRequest updateDashboardRequest) throws ThrottlingException, InvalidParameterValueException, ResourceNotFoundException, ConflictException, LimitExceededException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateDashboardResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateDashboardRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateDashboard"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UpdateDashboard").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateDashboardRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateDashboardRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates read and write permissions on a dashboard. *

* * @param updateDashboardPermissionsRequest * @return Result of the UpdateDashboardPermissions operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateDashboardPermissions * @see AWS API Documentation */ @Override public UpdateDashboardPermissionsResponse updateDashboardPermissions( UpdateDashboardPermissionsRequest updateDashboardPermissionsRequest) throws ThrottlingException, InvalidParameterValueException, ResourceNotFoundException, UnsupportedUserEditionException, ConflictException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateDashboardPermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateDashboardPermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateDashboardPermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateDashboardPermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateDashboardPermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateDashboardPermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates the published version of a dashboard. *

* * @param updateDashboardPublishedVersionRequest * @return Result of the UpdateDashboardPublishedVersion operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateDashboardPublishedVersion * @see AWS API Documentation */ @Override public UpdateDashboardPublishedVersionResponse updateDashboardPublishedVersion( UpdateDashboardPublishedVersionRequest updateDashboardPublishedVersionRequest) throws InvalidParameterValueException, ThrottlingException, ConflictException, ResourceNotFoundException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateDashboardPublishedVersionResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateDashboardPublishedVersionRequest.overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateDashboardPublishedVersion"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateDashboardPublishedVersion").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateDashboardPublishedVersionRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateDashboardPublishedVersionRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates a dataset. *

* * @param updateDataSetRequest * @return Result of the UpdateDataSet operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws LimitExceededException * A limit is exceeded. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateDataSet * @see AWS API * Documentation */ @Override public UpdateDataSetResponse updateDataSet(UpdateDataSetRequest updateDataSetRequest) throws AccessDeniedException, ConflictException, InvalidParameterValueException, LimitExceededException, ThrottlingException, ResourceNotFoundException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateDataSetResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateDataSetRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateDataSet"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UpdateDataSet").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateDataSetRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateDataSetRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates the permissions on a dataset. *

*

* The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/data-set-id. *

* * @param updateDataSetPermissionsRequest * @return Result of the UpdateDataSetPermissions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateDataSetPermissions * @see AWS API Documentation */ @Override public UpdateDataSetPermissionsResponse updateDataSetPermissions( UpdateDataSetPermissionsRequest updateDataSetPermissionsRequest) throws AccessDeniedException, ConflictException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateDataSetPermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateDataSetPermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateDataSetPermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateDataSetPermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateDataSetPermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateDataSetPermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates a data source. *

* * @param updateDataSourceRequest * @return Result of the UpdateDataSource operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateDataSource * @see AWS * API Documentation */ @Override public UpdateDataSourceResponse updateDataSource(UpdateDataSourceRequest updateDataSourceRequest) throws AccessDeniedException, ConflictException, InvalidParameterValueException, ThrottlingException, ResourceNotFoundException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateDataSourceResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateDataSourceRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateDataSource"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UpdateDataSource").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateDataSourceRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateDataSourceRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates the permissions to a data source. *

* * @param updateDataSourcePermissionsRequest * @return Result of the UpdateDataSourcePermissions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateDataSourcePermissions * @see AWS API Documentation */ @Override public UpdateDataSourcePermissionsResponse updateDataSourcePermissions( UpdateDataSourcePermissionsRequest updateDataSourcePermissionsRequest) throws AccessDeniedException, ConflictException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateDataSourcePermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateDataSourcePermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateDataSourcePermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateDataSourcePermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateDataSourcePermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateDataSourcePermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Changes a group description. *

* * @param updateGroupRequest * @return Result of the UpdateGroup operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateGroup * @see AWS API * Documentation */ @Override public UpdateGroupResponse updateGroup(UpdateGroupRequest updateGroupRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateGroupResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateGroupRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateGroup"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UpdateGroup").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateGroupRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateGroupRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates an existing IAM policy assignment. This operation updates only the optional parameter or parameters that * are specified in the request. This overwrites all of the users included in Identities. *

* * @param updateIamPolicyAssignmentRequest * @return Result of the UpdateIAMPolicyAssignment operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ConcurrentUpdatingException * A resource is already in a state that indicates an operation is happening that must complete before a new * update can be applied. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateIAMPolicyAssignment * @see AWS API Documentation */ @Override public UpdateIamPolicyAssignmentResponse updateIAMPolicyAssignment( UpdateIamPolicyAssignmentRequest updateIamPolicyAssignmentRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, ConcurrentUpdatingException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateIamPolicyAssignmentResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateIamPolicyAssignmentRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateIAMPolicyAssignment"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateIAMPolicyAssignment").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateIamPolicyAssignmentRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateIamPolicyAssignmentRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates a template from an existing Amazon QuickSight analysis or another template. *

* * @param updateTemplateRequest * @return Result of the UpdateTemplate operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws LimitExceededException * A limit is exceeded. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateTemplate * @see AWS API * Documentation */ @Override public UpdateTemplateResponse updateTemplate(UpdateTemplateRequest updateTemplateRequest) throws InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, ConflictException, LimitExceededException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateTemplateResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateTemplateRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateTemplate"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UpdateTemplate").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateTemplateRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateTemplateRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates the template alias of a template. *

* * @param updateTemplateAliasRequest * @return Result of the UpdateTemplateAlias operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateTemplateAlias * @see AWS * API Documentation */ @Override public UpdateTemplateAliasResponse updateTemplateAlias(UpdateTemplateAliasRequest updateTemplateAliasRequest) throws ThrottlingException, ResourceNotFoundException, ConflictException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateTemplateAliasResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateTemplateAliasRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateTemplateAlias"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UpdateTemplateAlias").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateTemplateAliasRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateTemplateAliasRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates the resource permissions for a template. *

* * @param updateTemplatePermissionsRequest * @return Result of the UpdateTemplatePermissions operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateTemplatePermissions * @see AWS API Documentation */ @Override public UpdateTemplatePermissionsResponse updateTemplatePermissions( UpdateTemplatePermissionsRequest updateTemplatePermissionsRequest) throws ThrottlingException, InvalidParameterValueException, ConflictException, ResourceNotFoundException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateTemplatePermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateTemplatePermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateTemplatePermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateTemplatePermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateTemplatePermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateTemplatePermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates a theme. *

* * @param updateThemeRequest * @return Result of the UpdateTheme operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws LimitExceededException * A limit is exceeded. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateTheme * @see AWS API * Documentation */ @Override public UpdateThemeResponse updateTheme(UpdateThemeRequest updateThemeRequest) throws AccessDeniedException, InvalidParameterValueException, LimitExceededException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateThemeResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateThemeRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateTheme"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UpdateTheme").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateThemeRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateThemeRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates an alias of a theme. *

* * @param updateThemeAliasRequest * @return Result of the UpdateThemeAlias operation returned by the service. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateThemeAlias * @see AWS * API Documentation */ @Override public UpdateThemeAliasResponse updateThemeAlias(UpdateThemeAliasRequest updateThemeAliasRequest) throws ConflictException, InvalidParameterValueException, ResourceExistsException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateThemeAliasResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateThemeAliasRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateThemeAlias"); return clientHandler.execute(new ClientExecutionParams() .withOperationName("UpdateThemeAlias").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateThemeAliasRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateThemeAliasRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates the resource permissions for a theme. Permissions apply to the action to grant or revoke permissions on, * for example "quicksight:DescribeTheme". *

*

* Theme permissions apply in groupings. Valid groupings include the following for the three levels of permissions, * which are user, owner, or no permissions: *

*
    *
  • *

    * User *

    *
      *
    • *

      * "quicksight:DescribeTheme" *

      *
    • *
    • *

      * "quicksight:DescribeThemeAlias" *

      *
    • *
    • *

      * "quicksight:ListThemeAliases" *

      *
    • *
    • *

      * "quicksight:ListThemeVersions" *

      *
    • *
    *
  • *
  • *

    * Owner *

    *
      *
    • *

      * "quicksight:DescribeTheme" *

      *
    • *
    • *

      * "quicksight:DescribeThemeAlias" *

      *
    • *
    • *

      * "quicksight:ListThemeAliases" *

      *
    • *
    • *

      * "quicksight:ListThemeVersions" *

      *
    • *
    • *

      * "quicksight:DeleteTheme" *

      *
    • *
    • *

      * "quicksight:UpdateTheme" *

      *
    • *
    • *

      * "quicksight:CreateThemeAlias" *

      *
    • *
    • *

      * "quicksight:DeleteThemeAlias" *

      *
    • *
    • *

      * "quicksight:UpdateThemeAlias" *

      *
    • *
    • *

      * "quicksight:UpdateThemePermissions" *

      *
    • *
    • *

      * "quicksight:DescribeThemePermissions" *

      *
    • *
    *
  • *
  • *

    * To specify no permissions, omit the permissions list. *

    *
  • *
* * @param updateThemePermissionsRequest * @return Result of the UpdateThemePermissions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon QuickSight currently has Standard Edition and * Enterprise Edition. Not every operation and capability is available in every edition. * @throws InternalFailureException * An internal failure occurred. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateThemePermissions * @see AWS API Documentation */ @Override public UpdateThemePermissionsResponse updateThemePermissions(UpdateThemePermissionsRequest updateThemePermissionsRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, UnsupportedUserEditionException, InternalFailureException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler( operationMetadata, UpdateThemePermissionsResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateThemePermissionsRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateThemePermissions"); return clientHandler .execute(new ClientExecutionParams() .withOperationName("UpdateThemePermissions").withResponseHandler(responseHandler) .withErrorResponseHandler(errorResponseHandler).withInput(updateThemePermissionsRequest) .withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateThemePermissionsRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } /** *

* Updates an Amazon QuickSight user. *

* * @param updateUserRequest * @return Result of the UpdateUser operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws QuickSightException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample QuickSightClient.UpdateUser * @see AWS API * Documentation */ @Override public UpdateUserResponse updateUser(UpdateUserRequest updateUserRequest) throws AccessDeniedException, InvalidParameterValueException, ResourceNotFoundException, ThrottlingException, PreconditionNotMetException, InternalFailureException, ResourceUnavailableException, AwsServiceException, SdkClientException, QuickSightException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler responseHandler = protocolFactory.createResponseHandler(operationMetadata, UpdateUserResponse::builder); HttpResponseHandler errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); List metricPublishers = resolveMetricPublishers(clientConfiguration, updateUserRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QuickSight"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "UpdateUser"); return clientHandler .execute(new ClientExecutionParams().withOperationName("UpdateUser") .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withInput(updateUserRequest).withMetricCollector(apiCallMetricCollector) .withMarshaller(new UpdateUserRequestMarshaller(protocolFactory))); } finally { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); } } private static List resolveMetricPublishers(SdkClientConfiguration clientConfiguration, RequestOverrideConfiguration requestOverrideConfiguration) { List publishers = null; if (requestOverrideConfiguration != null) { publishers = requestOverrideConfiguration.metricPublishers(); } if (publishers == null || publishers.isEmpty()) { publishers = clientConfiguration.option(SdkClientOption.METRIC_PUBLISHERS); } if (publishers == null) { publishers = Collections.emptyList(); } return publishers; } private HttpResponseHandler createErrorResponseHandler(BaseAwsJsonProtocolFactory protocolFactory, JsonOperationMetadata operationMetadata) { return protocolFactory.createErrorResponseHandler(operationMetadata); } private > T init(T builder) { return builder .clientConfiguration(clientConfiguration) .defaultServiceExceptionSupplier(QuickSightException::builder) .protocol(AwsJsonProtocol.REST_JSON) .protocolVersion("1.0") .registerModeledException( ExceptionMetadata.builder().errorCode("QuickSightUserNotFoundException") .exceptionBuilderSupplier(QuickSightUserNotFoundException::builder).httpStatusCode(404).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("InternalFailureException") .exceptionBuilderSupplier(InternalFailureException::builder).httpStatusCode(500).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("IdentityTypeNotSupportedException") .exceptionBuilderSupplier(IdentityTypeNotSupportedException::builder).httpStatusCode(403).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("SessionLifetimeInMinutesInvalidException") .exceptionBuilderSupplier(SessionLifetimeInMinutesInvalidException::builder).httpStatusCode(400) .build()) .registerModeledException( ExceptionMetadata.builder().errorCode("InvalidNextTokenException") .exceptionBuilderSupplier(InvalidNextTokenException::builder).httpStatusCode(400).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("LimitExceededException") .exceptionBuilderSupplier(LimitExceededException::builder).httpStatusCode(409).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("UnsupportedPricingPlanException") .exceptionBuilderSupplier(UnsupportedPricingPlanException::builder).httpStatusCode(403).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ResourceNotFoundException") .exceptionBuilderSupplier(ResourceNotFoundException::builder).httpStatusCode(404).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ResourceUnavailableException") .exceptionBuilderSupplier(ResourceUnavailableException::builder).httpStatusCode(503).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ResourceExistsException") .exceptionBuilderSupplier(ResourceExistsException::builder).httpStatusCode(409).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("DomainNotWhitelistedException") .exceptionBuilderSupplier(DomainNotWhitelistedException::builder).httpStatusCode(403).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("InvalidParameterValueException") .exceptionBuilderSupplier(InvalidParameterValueException::builder).httpStatusCode(400).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ThrottlingException") .exceptionBuilderSupplier(ThrottlingException::builder).httpStatusCode(429).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("PreconditionNotMetException") .exceptionBuilderSupplier(PreconditionNotMetException::builder).httpStatusCode(400).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ConcurrentUpdatingException") .exceptionBuilderSupplier(ConcurrentUpdatingException::builder).httpStatusCode(500).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("AccessDeniedException") .exceptionBuilderSupplier(AccessDeniedException::builder).httpStatusCode(401).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("ConflictException") .exceptionBuilderSupplier(ConflictException::builder).httpStatusCode(409).build()) .registerModeledException( ExceptionMetadata.builder().errorCode("UnsupportedUserEditionException") .exceptionBuilderSupplier(UnsupportedUserEditionException::builder).httpStatusCode(403).build()); } @Override public void close() { clientHandler.close(); } private T applyPaginatorUserAgent(T request) { Consumer userAgentApplier = b -> b.addApiName(ApiName.builder() .version(VersionInfo.SDK_VERSION).name("PAGINATED").build()); AwsRequestOverrideConfiguration overrideConfiguration = request.overrideConfiguration() .map(c -> c.toBuilder().applyMutation(userAgentApplier).build()) .orElse((AwsRequestOverrideConfiguration.builder().applyMutation(userAgentApplier).build())); return (T) request.toBuilder().overrideConfiguration(overrideConfiguration).build(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy