
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:
*
*
* -
*
* Use command line
* options.
*
*
* -
*
* Use named profiles.
*
*
* -
*
* Run aws configure
to change your default AWS Region. Use Enter to key the same settings for your
* keys. For more information, see Configuring the AWS CLI.
*
*
*
*
* -
*
* 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