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

com.amazonaws.services.quicksight.AmazonQuickSightClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon QuickSight module holds the client classes that are used for communicating with Amazon QuickSight Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.quicksight;

import org.w3c.dom.*;

import java.net.*;
import java.util.*;

import javax.annotation.Generated;

import org.apache.commons.logging.*;

import com.amazonaws.*;
import com.amazonaws.annotation.SdkInternalApi;
import com.amazonaws.auth.*;

import com.amazonaws.handlers.*;
import com.amazonaws.http.*;
import com.amazonaws.internal.*;
import com.amazonaws.internal.auth.*;
import com.amazonaws.metrics.*;
import com.amazonaws.regions.*;
import com.amazonaws.transform.*;
import com.amazonaws.util.*;
import com.amazonaws.protocol.json.*;
import com.amazonaws.util.AWSRequestMetrics.Field;
import com.amazonaws.annotation.ThreadSafe;
import com.amazonaws.client.AwsSyncClientParams;
import com.amazonaws.client.builder.AdvancedConfig;

import com.amazonaws.services.quicksight.AmazonQuickSightClientBuilder;

import com.amazonaws.AmazonServiceException;

import com.amazonaws.services.quicksight.model.*;
import com.amazonaws.services.quicksight.model.transform.*;

/**
 * Client for accessing Amazon QuickSight. All service calls made using this client are blocking, and will not return
 * until the service call completes.
 * 

* Amazon QuickSight API Reference *

* Amazon QuickSight is a fully managed, serverless business intelligence service for the Amazon Web Services Cloud that * makes it easy to extend data and insights to every user in your organization. This API reference contains * documentation for a programming interface that you can use to manage Amazon QuickSight. *

*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AmazonQuickSightClient extends AmazonWebServiceClient implements AmazonQuickSight { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AmazonQuickSight.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "quicksight"; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory( new JsonClientMetadata() .withProtocolVersion("1.0") .withSupportsCbor(false) .withSupportsIon(false) .withContentTypeOverride("application/json") .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("QuickSightUserNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.QuickSightUserNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("SessionLifetimeInMinutesInvalidException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.SessionLifetimeInMinutesInvalidExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidNextTokenException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.InvalidNextTokenExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceUnavailableException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.ResourceUnavailableExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.ConflictExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidRequestException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.InvalidRequestExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceExistsException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.ResourceExistsExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InvalidParameterValueException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.InvalidParameterValueExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConcurrentUpdatingException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.ConcurrentUpdatingExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InternalFailureException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.InternalFailureExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("LimitExceededException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.LimitExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("DomainNotWhitelistedException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.DomainNotWhitelistedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ThrottlingException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.ThrottlingExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("IdentityTypeNotSupportedException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.IdentityTypeNotSupportedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("UnsupportedPricingPlanException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.UnsupportedPricingPlanExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("PreconditionNotMetException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.PreconditionNotMetExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("UnsupportedUserEditionException").withExceptionUnmarshaller( com.amazonaws.services.quicksight.model.transform.UnsupportedUserEditionExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.quicksight.model.AmazonQuickSightException.class)); public static AmazonQuickSightClientBuilder builder() { return AmazonQuickSightClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on Amazon QuickSight using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AmazonQuickSightClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on Amazon QuickSight using the specified parameters. * *

* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AmazonQuickSightClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly setEndpoint("quicksight.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/quicksight/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/quicksight/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *

* 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. * @sample AmazonQuickSight.CancelIngestion * @see AWS API * Documentation */ @Override public CancelIngestionResult cancelIngestion(CancelIngestionRequest request) { request = beforeClientExecution(request); return executeCancelIngestion(request); } @SdkInternalApi final CancelIngestionResult executeCancelIngestion(CancelIngestionRequest cancelIngestionRequest) { ExecutionContext executionContext = createExecutionContext(cancelIngestionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CancelIngestionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(cancelIngestionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CancelIngestion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CancelIngestionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

*

* You can create customizations for your Amazon Web Services 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 Amazon Web Services 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 ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @sample AmazonQuickSight.CreateAccountCustomization * @see AWS API Documentation */ @Override public CreateAccountCustomizationResult createAccountCustomization(CreateAccountCustomizationRequest request) { request = beforeClientExecution(request); return executeCreateAccountCustomization(request); } @SdkInternalApi final CreateAccountCustomizationResult executeCreateAccountCustomization(CreateAccountCustomizationRequest createAccountCustomizationRequest) { ExecutionContext executionContext = createExecutionContext(createAccountCustomizationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAccountCustomizationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createAccountCustomizationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAccountCustomization"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAccountCustomizationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Amazon QuickSight account, or subscribes to Amazon QuickSight Q. *

*

* The Amazon Web Services Region for the account is derived from what is configured in the CLI or SDK. This * operation isn't supported in the US East (Ohio) Region, South America (Sao Paulo) Region, or Asia Pacific * (Singapore) Region. *

*

* Before you use this operation, make sure that you can connect to an existing Amazon Web Services account. If you * don't have an Amazon Web Services account, see Sign up for Amazon Web * Services in the Amazon QuickSight User Guide. The person who signs up for Amazon QuickSight needs to * have the correct Identity and Access Management (IAM) permissions. For more information, see IAM Policy Examples for Amazon * QuickSight in the Amazon QuickSight User Guide. *

*

* If your IAM policy includes both the Subscribe and CreateAccountSubscription actions, * make sure that both actions are set to Allow. If either action is set to Deny, the * Deny action prevails and your API call fails. *

*

* You can't pass an existing IAM role to access other Amazon Web Services services using this API operation. To * pass your existing IAM role to Amazon QuickSight, see Passing IAM roles to Amazon QuickSight in the Amazon QuickSight User Guide. *

*

* You can't set default resource access on the new account from the Amazon QuickSight API. Instead, add default * resource access from the Amazon QuickSight console. For more information about setting default resource access to * Amazon Web Services services, see Setting default resource * access to Amazon Web Services services in the Amazon QuickSight User Guide. *

* * @param createAccountSubscriptionRequest * @return Result of the CreateAccountSubscription 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 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. * @sample AmazonQuickSight.CreateAccountSubscription * @see AWS API Documentation */ @Override public CreateAccountSubscriptionResult createAccountSubscription(CreateAccountSubscriptionRequest request) { request = beforeClientExecution(request); return executeCreateAccountSubscription(request); } @SdkInternalApi final CreateAccountSubscriptionResult executeCreateAccountSubscription(CreateAccountSubscriptionRequest createAccountSubscriptionRequest) { ExecutionContext executionContext = createExecutionContext(createAccountSubscriptionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAccountSubscriptionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createAccountSubscriptionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAccountSubscription"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAccountSubscriptionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an analysis in Amazon QuickSight. Analyses can be created either from a template or from an * AnalysisDefinition. *

* * @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 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. * @sample AmazonQuickSight.CreateAnalysis * @see AWS API * Documentation */ @Override public CreateAnalysisResult createAnalysis(CreateAnalysisRequest request) { request = beforeClientExecution(request); return executeCreateAnalysis(request); } @SdkInternalApi final CreateAnalysisResult executeCreateAnalysis(CreateAnalysisRequest createAnalysisRequest) { ExecutionContext executionContext = createExecutionContext(createAnalysisRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateAnalysisRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createAnalysisRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAnalysis"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateAnalysisResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a dashboard from either a template or directly with a DashboardDefinition. To first create a * template, see the * CreateTemplate * API operation. *

*

* A dashboard is an entity in Amazon QuickSight that identifies Amazon QuickSight reports, created from analyses. * You can share Amazon 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 Amazon Web Services 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 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. * @sample AmazonQuickSight.CreateDashboard * @see AWS API * Documentation */ @Override public CreateDashboardResult createDashboard(CreateDashboardRequest request) { request = beforeClientExecution(request); return executeCreateDashboard(request); } @SdkInternalApi final CreateDashboardResult executeCreateDashboard(CreateDashboardRequest createDashboardRequest) { ExecutionContext executionContext = createExecutionContext(createDashboardRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateDashboardRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createDashboardRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDashboard"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateDashboardResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a dataset. This operation doesn't support datasets that include uploaded files as a source. *

* * @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 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. * @sample AmazonQuickSight.CreateDataSet * @see AWS API * Documentation */ @Override public CreateDataSetResult createDataSet(CreateDataSetRequest request) { request = beforeClientExecution(request); return executeCreateDataSet(request); } @SdkInternalApi final CreateDataSetResult executeCreateDataSet(CreateDataSetRequest createDataSetRequest) { ExecutionContext executionContext = createExecutionContext(createDataSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateDataSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createDataSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDataSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateDataSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.CreateDataSource * @see AWS * API Documentation */ @Override public CreateDataSourceResult createDataSource(CreateDataSourceRequest request) { request = beforeClientExecution(request); return executeCreateDataSource(request); } @SdkInternalApi final CreateDataSourceResult executeCreateDataSource(CreateDataSourceRequest createDataSourceRequest) { ExecutionContext executionContext = createExecutionContext(createDataSourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateDataSourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createDataSourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDataSource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateDataSourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an empty shared folder. *

* * @param createFolderRequest * @return Result of the CreateFolder 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 Amazon QuickSight currently has Standard * Edition and Enterprise Edition. Not every operation and capability is available in every edition. * @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 LimitExceededException * A limit is exceeded. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.CreateFolder * @see AWS API * Documentation */ @Override public CreateFolderResult createFolder(CreateFolderRequest request) { request = beforeClientExecution(request); return executeCreateFolder(request); } @SdkInternalApi final CreateFolderResult executeCreateFolder(CreateFolderRequest createFolderRequest) { ExecutionContext executionContext = createExecutionContext(createFolderRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateFolderRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createFolderRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateFolder"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateFolderResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Adds an asset, such as a dashboard, analysis, or dataset into a folder. *

* * @param createFolderMembershipRequest * @return Result of the CreateFolderMembership 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 ResourceExistsException * The resource specified already exists. * @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 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. * @sample AmazonQuickSight.CreateFolderMembership * @see AWS API Documentation */ @Override public CreateFolderMembershipResult createFolderMembership(CreateFolderMembershipRequest request) { request = beforeClientExecution(request); return executeCreateFolderMembership(request); } @SdkInternalApi final CreateFolderMembershipResult executeCreateFolderMembership(CreateFolderMembershipRequest createFolderMembershipRequest) { ExecutionContext executionContext = createExecutionContext(createFolderMembershipRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateFolderMembershipRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createFolderMembershipRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateFolderMembership"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateFolderMembershipResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use the CreateGroup operation to create a group in Amazon QuickSight. You can create up to 10,000 * groups in a namespace. If you want to create more than 10,000 groups in a namespace, contact AWS Support. *

*

* The permissions resource is * arn:aws:quicksight:<your-region>:<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. * @sample AmazonQuickSight.CreateGroup * @see AWS API * Documentation */ @Override public CreateGroupResult createGroup(CreateGroupRequest request) { request = beforeClientExecution(request); return executeCreateGroup(request); } @SdkInternalApi final CreateGroupResult executeCreateGroup(CreateGroupRequest createGroupRequest) { ExecutionContext executionContext = createExecutionContext(createGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.CreateGroupMembership * @see AWS API Documentation */ @Override public CreateGroupMembershipResult createGroupMembership(CreateGroupMembershipRequest request) { request = beforeClientExecution(request); return executeCreateGroupMembership(request); } @SdkInternalApi final CreateGroupMembershipResult executeCreateGroupMembership(CreateGroupMembershipRequest createGroupMembershipRequest) { ExecutionContext executionContext = createExecutionContext(createGroupMembershipRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateGroupMembershipRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createGroupMembershipRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateGroupMembership"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateGroupMembershipResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 * Amazon Web Services 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. * @sample AmazonQuickSight.CreateIAMPolicyAssignment * @see AWS API Documentation */ @Override public CreateIAMPolicyAssignmentResult createIAMPolicyAssignment(CreateIAMPolicyAssignmentRequest request) { request = beforeClientExecution(request); return executeCreateIAMPolicyAssignment(request); } @SdkInternalApi final CreateIAMPolicyAssignmentResult executeCreateIAMPolicyAssignment(CreateIAMPolicyAssignmentRequest createIAMPolicyAssignmentRequest) { ExecutionContext executionContext = createExecutionContext(createIAMPolicyAssignmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateIAMPolicyAssignmentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(createIAMPolicyAssignmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateIAMPolicyAssignment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateIAMPolicyAssignmentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates and starts a new SPICE ingestion for a dataset. You can manually refresh datasets in an Enterprise * edition account 32 times in a 24-hour period. You can manually refresh datasets in a Standard edition account 8 * times in a 24-hour period. Each 24-hour period is measured starting 24 hours before the current date and time. *

*

* 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 Amazon Web Services * 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. * @sample AmazonQuickSight.CreateIngestion * @see AWS API * Documentation */ @Override public CreateIngestionResult createIngestion(CreateIngestionRequest request) { request = beforeClientExecution(request); return executeCreateIngestion(request); } @SdkInternalApi final CreateIngestionResult executeCreateIngestion(CreateIngestionRequest createIngestionRequest) { ExecutionContext executionContext = createExecutionContext(createIngestionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateIngestionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createIngestionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateIngestion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateIngestionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

*

* A namespace allows you to isolate the Amazon 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 Amazon Web Services account * is subscribed to Amazon QuickSight. The namespace must be unique within the Amazon Web Services account. By * default, there is a limit of 100 namespaces per Amazon Web Services account. To increase your limit, create a * ticket with Amazon Web Services 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. * @sample AmazonQuickSight.CreateNamespace * @see AWS API * Documentation */ @Override public CreateNamespaceResult createNamespace(CreateNamespaceRequest request) { request = beforeClientExecution(request); return executeCreateNamespace(request); } @SdkInternalApi final CreateNamespaceResult executeCreateNamespace(CreateNamespaceRequest createNamespaceRequest) { ExecutionContext executionContext = createExecutionContext(createNamespaceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateNamespaceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createNamespaceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateNamespace"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateNamespaceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates a template either from a TemplateDefinition or from an existing Amazon QuickSight analysis * or template. You can use the resulting template to create additional dashboards, templates, or analyses. *

*

* A template is an entity in Amazon 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 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. * @sample AmazonQuickSight.CreateTemplate * @see AWS API * Documentation */ @Override public CreateTemplateResult createTemplate(CreateTemplateRequest request) { request = beforeClientExecution(request); return executeCreateTemplate(request); } @SdkInternalApi final CreateTemplateResult executeCreateTemplate(CreateTemplateRequest createTemplateRequest) { ExecutionContext executionContext = createExecutionContext(createTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateTemplateRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createTemplateRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateTemplate"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateTemplateResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.CreateTemplateAlias * @see AWS * API Documentation */ @Override public CreateTemplateAliasResult createTemplateAlias(CreateTemplateAliasRequest request) { request = beforeClientExecution(request); return executeCreateTemplateAlias(request); } @SdkInternalApi final CreateTemplateAliasResult executeCreateTemplateAlias(CreateTemplateAliasRequest createTemplateAliasRequest) { ExecutionContext executionContext = createExecutionContext(createTemplateAliasRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateTemplateAliasRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createTemplateAliasRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateTemplateAlias"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateTemplateAliasResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.CreateTheme * @see AWS API * Documentation */ @Override public CreateThemeResult createTheme(CreateThemeRequest request) { request = beforeClientExecution(request); return executeCreateTheme(request); } @SdkInternalApi final CreateThemeResult executeCreateTheme(CreateThemeRequest createThemeRequest) { ExecutionContext executionContext = createExecutionContext(createThemeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateThemeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createThemeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateTheme"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateThemeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.CreateThemeAlias * @see AWS * API Documentation */ @Override public CreateThemeAliasResult createThemeAlias(CreateThemeAliasRequest request) { request = beforeClientExecution(request); return executeCreateThemeAlias(request); } @SdkInternalApi final CreateThemeAliasResult executeCreateThemeAlias(CreateThemeAliasRequest createThemeAliasRequest) { ExecutionContext executionContext = createExecutionContext(createThemeAliasRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new CreateThemeAliasRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createThemeAliasRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateThemeAlias"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateThemeAliasResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes all Amazon QuickSight customizations in this Amazon Web Services Region for the specified Amazon Web * Services account and Amazon 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 ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @sample AmazonQuickSight.DeleteAccountCustomization * @see AWS API Documentation */ @Override public DeleteAccountCustomizationResult deleteAccountCustomization(DeleteAccountCustomizationRequest request) { request = beforeClientExecution(request); return executeDeleteAccountCustomization(request); } @SdkInternalApi final DeleteAccountCustomizationResult executeDeleteAccountCustomization(DeleteAccountCustomizationRequest deleteAccountCustomizationRequest) { ExecutionContext executionContext = createExecutionContext(deleteAccountCustomizationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAccountCustomizationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteAccountCustomizationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAccountCustomization"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAccountCustomizationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use the DeleteAccountSubscription operation to delete an Amazon QuickSight account. This operation * will result in an error message if you have configured your account termination protection settings to * True. To change this setting and delete your account, call the UpdateAccountSettings * API and set the value of the TerminationProtectionEnabled parameter to False, then make * another call to the DeleteAccountSubscription API. *

* * @param deleteAccountSubscriptionRequest * @return Result of the DeleteAccountSubscription 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. * @sample AmazonQuickSight.DeleteAccountSubscription * @see AWS API Documentation */ @Override public DeleteAccountSubscriptionResult deleteAccountSubscription(DeleteAccountSubscriptionRequest request) { request = beforeClientExecution(request); return executeDeleteAccountSubscription(request); } @SdkInternalApi final DeleteAccountSubscriptionResult executeDeleteAccountSubscription(DeleteAccountSubscriptionRequest deleteAccountSubscriptionRequest) { ExecutionContext executionContext = createExecutionContext(deleteAccountSubscriptionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAccountSubscriptionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteAccountSubscriptionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAccountSubscription"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAccountSubscriptionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. Amazon * QuickSight attaches a DeletionTime stamp to the response that specifies the end of the recovery * window. At the end of the recovery window, Amazon 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 Amazon 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 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. * @sample AmazonQuickSight.DeleteAnalysis * @see AWS API * Documentation */ @Override public DeleteAnalysisResult deleteAnalysis(DeleteAnalysisRequest request) { request = beforeClientExecution(request); return executeDeleteAnalysis(request); } @SdkInternalApi final DeleteAnalysisResult executeDeleteAnalysis(DeleteAnalysisRequest deleteAnalysisRequest) { ExecutionContext executionContext = createExecutionContext(deleteAnalysisRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteAnalysisRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteAnalysisRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAnalysis"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteAnalysisResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DeleteDashboard * @see AWS API * Documentation */ @Override public DeleteDashboardResult deleteDashboard(DeleteDashboardRequest request) { request = beforeClientExecution(request); return executeDeleteDashboard(request); } @SdkInternalApi final DeleteDashboardResult executeDeleteDashboard(DeleteDashboardRequest deleteDashboardRequest) { ExecutionContext executionContext = createExecutionContext(deleteDashboardRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteDashboardRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteDashboardRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDashboard"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDashboardResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DeleteDataSet * @see AWS API * Documentation */ @Override public DeleteDataSetResult deleteDataSet(DeleteDataSetRequest request) { request = beforeClientExecution(request); return executeDeleteDataSet(request); } @SdkInternalApi final DeleteDataSetResult executeDeleteDataSet(DeleteDataSetRequest deleteDataSetRequest) { ExecutionContext executionContext = createExecutionContext(deleteDataSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteDataSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteDataSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDataSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDataSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DeleteDataSource * @see AWS * API Documentation */ @Override public DeleteDataSourceResult deleteDataSource(DeleteDataSourceRequest request) { request = beforeClientExecution(request); return executeDeleteDataSource(request); } @SdkInternalApi final DeleteDataSourceResult executeDeleteDataSource(DeleteDataSourceRequest deleteDataSourceRequest) { ExecutionContext executionContext = createExecutionContext(deleteDataSourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteDataSourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteDataSourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDataSource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDataSourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes an empty folder. *

* * @param deleteFolderRequest * @return Result of the DeleteFolder operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @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 ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @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 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. * @sample AmazonQuickSight.DeleteFolder * @see AWS API * Documentation */ @Override public DeleteFolderResult deleteFolder(DeleteFolderRequest request) { request = beforeClientExecution(request); return executeDeleteFolder(request); } @SdkInternalApi final DeleteFolderResult executeDeleteFolder(DeleteFolderRequest deleteFolderRequest) { ExecutionContext executionContext = createExecutionContext(deleteFolderRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteFolderRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteFolderRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteFolder"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteFolderResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Removes an asset, such as a dashboard, analysis, or dataset, from a folder. *

* * @param deleteFolderMembershipRequest * @return Result of the DeleteFolderMembership 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 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. * @sample AmazonQuickSight.DeleteFolderMembership * @see AWS API Documentation */ @Override public DeleteFolderMembershipResult deleteFolderMembership(DeleteFolderMembershipRequest request) { request = beforeClientExecution(request); return executeDeleteFolderMembership(request); } @SdkInternalApi final DeleteFolderMembershipResult executeDeleteFolderMembership(DeleteFolderMembershipRequest deleteFolderMembershipRequest) { ExecutionContext executionContext = createExecutionContext(deleteFolderMembershipRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteFolderMembershipRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteFolderMembershipRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteFolderMembership"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteFolderMembershipResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DeleteGroup * @see AWS API * Documentation */ @Override public DeleteGroupResult deleteGroup(DeleteGroupRequest request) { request = beforeClientExecution(request); return executeDeleteGroup(request); } @SdkInternalApi final DeleteGroupResult executeDeleteGroup(DeleteGroupRequest deleteGroupRequest) { ExecutionContext executionContext = createExecutionContext(deleteGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DeleteGroupMembership * @see AWS API Documentation */ @Override public DeleteGroupMembershipResult deleteGroupMembership(DeleteGroupMembershipRequest request) { request = beforeClientExecution(request); return executeDeleteGroupMembership(request); } @SdkInternalApi final DeleteGroupMembershipResult executeDeleteGroupMembership(DeleteGroupMembershipRequest deleteGroupMembershipRequest) { ExecutionContext executionContext = createExecutionContext(deleteGroupMembershipRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteGroupMembershipRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteGroupMembershipRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteGroupMembership"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteGroupMembershipResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DeleteIAMPolicyAssignment * @see AWS API Documentation */ @Override public DeleteIAMPolicyAssignmentResult deleteIAMPolicyAssignment(DeleteIAMPolicyAssignmentRequest request) { request = beforeClientExecution(request); return executeDeleteIAMPolicyAssignment(request); } @SdkInternalApi final DeleteIAMPolicyAssignmentResult executeDeleteIAMPolicyAssignment(DeleteIAMPolicyAssignmentRequest deleteIAMPolicyAssignmentRequest) { ExecutionContext executionContext = createExecutionContext(deleteIAMPolicyAssignmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteIAMPolicyAssignmentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteIAMPolicyAssignmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteIAMPolicyAssignment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteIAMPolicyAssignmentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DeleteNamespace * @see AWS API * Documentation */ @Override public DeleteNamespaceResult deleteNamespace(DeleteNamespaceRequest request) { request = beforeClientExecution(request); return executeDeleteNamespace(request); } @SdkInternalApi final DeleteNamespaceResult executeDeleteNamespace(DeleteNamespaceRequest deleteNamespaceRequest) { ExecutionContext executionContext = createExecutionContext(deleteNamespaceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteNamespaceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteNamespaceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteNamespace"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteNamespaceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DeleteTemplate * @see AWS API * Documentation */ @Override public DeleteTemplateResult deleteTemplate(DeleteTemplateRequest request) { request = beforeClientExecution(request); return executeDeleteTemplate(request); } @SdkInternalApi final DeleteTemplateResult executeDeleteTemplate(DeleteTemplateRequest deleteTemplateRequest) { ExecutionContext executionContext = createExecutionContext(deleteTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteTemplateRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteTemplateRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteTemplate"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteTemplateResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DeleteTemplateAlias * @see AWS * API Documentation */ @Override public DeleteTemplateAliasResult deleteTemplateAlias(DeleteTemplateAliasRequest request) { request = beforeClientExecution(request); return executeDeleteTemplateAlias(request); } @SdkInternalApi final DeleteTemplateAliasResult executeDeleteTemplateAlias(DeleteTemplateAliasRequest deleteTemplateAliasRequest) { ExecutionContext executionContext = createExecutionContext(deleteTemplateAliasRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteTemplateAliasRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteTemplateAliasRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteTemplateAlias"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteTemplateAliasResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DeleteTheme * @see AWS API * Documentation */ @Override public DeleteThemeResult deleteTheme(DeleteThemeRequest request) { request = beforeClientExecution(request); return executeDeleteTheme(request); } @SdkInternalApi final DeleteThemeResult executeDeleteTheme(DeleteThemeRequest deleteThemeRequest) { ExecutionContext executionContext = createExecutionContext(deleteThemeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteThemeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteThemeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteTheme"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteThemeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DeleteThemeAlias * @see AWS * API Documentation */ @Override public DeleteThemeAliasResult deleteThemeAlias(DeleteThemeAliasRequest request) { request = beforeClientExecution(request); return executeDeleteThemeAlias(request); } @SdkInternalApi final DeleteThemeAliasResult executeDeleteThemeAlias(DeleteThemeAliasRequest deleteThemeAliasRequest) { ExecutionContext executionContext = createExecutionContext(deleteThemeAliasRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteThemeAliasRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteThemeAliasRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteThemeAlias"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteThemeAliasResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Deletes the Amazon QuickSight user that is associated with the identity of the 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. * @sample AmazonQuickSight.DeleteUser * @see AWS API * Documentation */ @Override public DeleteUserResult deleteUser(DeleteUserRequest request) { request = beforeClientExecution(request); return executeDeleteUser(request); } @SdkInternalApi final DeleteUserResult executeDeleteUser(DeleteUserRequest deleteUserRequest) { ExecutionContext executionContext = createExecutionContext(deleteUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteUserRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteUserRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteUser"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteUserResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DeleteUserByPrincipalId * @see AWS API Documentation */ @Override public DeleteUserByPrincipalIdResult deleteUserByPrincipalId(DeleteUserByPrincipalIdRequest request) { request = beforeClientExecution(request); return executeDeleteUserByPrincipalId(request); } @SdkInternalApi final DeleteUserByPrincipalIdResult executeDeleteUserByPrincipalId(DeleteUserByPrincipalIdRequest deleteUserByPrincipalIdRequest) { ExecutionContext executionContext = createExecutionContext(deleteUserByPrincipalIdRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DeleteUserByPrincipalIdRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(deleteUserByPrincipalIdRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteUserByPrincipalId"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteUserByPrincipalIdResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the customizations associated with the provided Amazon Web Services account and Amazon Amazon * QuickSight namespace in an Amazon Web Services Region. The Amazon 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. *

*
    *
  • *

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

    *
  • *
  • *

    * Amazon Web Services Region - In each Amazon Web Services Region where you sign in to Amazon * QuickSight at least once, Amazon 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 Amazon QuickSight in any Amazon Web Services Region, unless they are constrained to a namespace. *

    *

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

    * *
  • *
  • *

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

    *
  • *
  • *

    * Applied customizations - Within an Amazon Web Services Region, a set of Amazon QuickSight * customizations can apply to an Amazon Web Services account or to a namespace. Settings that you apply to a * namespace override settings that you apply to an Amazon Web Services account. All settings are isolated to a * single Amazon Web Services Region. To apply them in other Amazon Web Services Regions, run the * CreateAccountCustomization command in each Amazon Web Services 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. * @sample AmazonQuickSight.DescribeAccountCustomization * @see AWS API Documentation */ @Override public DescribeAccountCustomizationResult describeAccountCustomization(DescribeAccountCustomizationRequest request) { request = beforeClientExecution(request); return executeDescribeAccountCustomization(request); } @SdkInternalApi final DescribeAccountCustomizationResult executeDescribeAccountCustomization(DescribeAccountCustomizationRequest describeAccountCustomizationRequest) { ExecutionContext executionContext = createExecutionContext(describeAccountCustomizationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAccountCustomizationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeAccountCustomizationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAccountCustomization"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAccountCustomizationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the settings that were used when your Amazon QuickSight subscription was first created in this Amazon * Web Services 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. * @sample AmazonQuickSight.DescribeAccountSettings * @see AWS API Documentation */ @Override public DescribeAccountSettingsResult describeAccountSettings(DescribeAccountSettingsRequest request) { request = beforeClientExecution(request); return executeDescribeAccountSettings(request); } @SdkInternalApi final DescribeAccountSettingsResult executeDescribeAccountSettings(DescribeAccountSettingsRequest describeAccountSettingsRequest) { ExecutionContext executionContext = createExecutionContext(describeAccountSettingsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAccountSettingsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeAccountSettingsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAccountSettings"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAccountSettingsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use the DescribeAccountSubscription operation to receive a description of an Amazon QuickSight account's * subscription. A successful API call returns an AccountInfo object that includes an account's name, * subscription status, authentication type, edition, and notification email address. *

* * @param describeAccountSubscriptionRequest * @return Result of the DescribeAccountSubscription 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. * @sample AmazonQuickSight.DescribeAccountSubscription * @see AWS API Documentation */ @Override public DescribeAccountSubscriptionResult describeAccountSubscription(DescribeAccountSubscriptionRequest request) { request = beforeClientExecution(request); return executeDescribeAccountSubscription(request); } @SdkInternalApi final DescribeAccountSubscriptionResult executeDescribeAccountSubscription(DescribeAccountSubscriptionRequest describeAccountSubscriptionRequest) { ExecutionContext executionContext = createExecutionContext(describeAccountSubscriptionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAccountSubscriptionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeAccountSubscriptionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAccountSubscription"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAccountSubscriptionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DescribeAnalysis * @see AWS * API Documentation */ @Override public DescribeAnalysisResult describeAnalysis(DescribeAnalysisRequest request) { request = beforeClientExecution(request); return executeDescribeAnalysis(request); } @SdkInternalApi final DescribeAnalysisResult executeDescribeAnalysis(DescribeAnalysisRequest describeAnalysisRequest) { ExecutionContext executionContext = createExecutionContext(describeAnalysisRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAnalysisRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeAnalysisRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAnalysis"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAnalysisResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Provides a detailed description of the definition of an analysis. *

* *

* If you do not need to know details about the content of an Analysis, for instance if you are trying to check the * status of a recently created or updated Analysis, use the * DescribeAnalysis instead. *

*
* * @param describeAnalysisDefinitionRequest * @return Result of the DescribeAnalysisDefinition 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 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. * @sample AmazonQuickSight.DescribeAnalysisDefinition * @see AWS API Documentation */ @Override public DescribeAnalysisDefinitionResult describeAnalysisDefinition(DescribeAnalysisDefinitionRequest request) { request = beforeClientExecution(request); return executeDescribeAnalysisDefinition(request); } @SdkInternalApi final DescribeAnalysisDefinitionResult executeDescribeAnalysisDefinition(DescribeAnalysisDefinitionRequest describeAnalysisDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(describeAnalysisDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAnalysisDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeAnalysisDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAnalysisDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAnalysisDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DescribeAnalysisPermissions * @see AWS API Documentation */ @Override public DescribeAnalysisPermissionsResult describeAnalysisPermissions(DescribeAnalysisPermissionsRequest request) { request = beforeClientExecution(request); return executeDescribeAnalysisPermissions(request); } @SdkInternalApi final DescribeAnalysisPermissionsResult executeDescribeAnalysisPermissions(DescribeAnalysisPermissionsRequest describeAnalysisPermissionsRequest) { ExecutionContext executionContext = createExecutionContext(describeAnalysisPermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeAnalysisPermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeAnalysisPermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAnalysisPermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeAnalysisPermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DescribeDashboard * @see AWS * API Documentation */ @Override public DescribeDashboardResult describeDashboard(DescribeDashboardRequest request) { request = beforeClientExecution(request); return executeDescribeDashboard(request); } @SdkInternalApi final DescribeDashboardResult executeDescribeDashboard(DescribeDashboardRequest describeDashboardRequest) { ExecutionContext executionContext = createExecutionContext(describeDashboardRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDashboardRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeDashboardRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDashboard"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDashboardResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Provides a detailed description of the definition of a dashboard. *

* *

* If you do not need to know details about the content of a dashboard, for instance if you are trying to check the * status of a recently created or updated dashboard, use the * DescribeDashboard instead. *

*
* * @param describeDashboardDefinitionRequest * @return Result of the DescribeDashboardDefinition 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 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. * @sample AmazonQuickSight.DescribeDashboardDefinition * @see AWS API Documentation */ @Override public DescribeDashboardDefinitionResult describeDashboardDefinition(DescribeDashboardDefinitionRequest request) { request = beforeClientExecution(request); return executeDescribeDashboardDefinition(request); } @SdkInternalApi final DescribeDashboardDefinitionResult executeDescribeDashboardDefinition(DescribeDashboardDefinitionRequest describeDashboardDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(describeDashboardDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDashboardDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeDashboardDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDashboardDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDashboardDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DescribeDashboardPermissions * @see AWS API Documentation */ @Override public DescribeDashboardPermissionsResult describeDashboardPermissions(DescribeDashboardPermissionsRequest request) { request = beforeClientExecution(request); return executeDescribeDashboardPermissions(request); } @SdkInternalApi final DescribeDashboardPermissionsResult executeDescribeDashboardPermissions(DescribeDashboardPermissionsRequest describeDashboardPermissionsRequest) { ExecutionContext executionContext = createExecutionContext(describeDashboardPermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDashboardPermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeDashboardPermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDashboardPermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDashboardPermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes a dataset. This operation doesn't support datasets that include uploaded files as a source. *

* * @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. * @sample AmazonQuickSight.DescribeDataSet * @see AWS API * Documentation */ @Override public DescribeDataSetResult describeDataSet(DescribeDataSetRequest request) { request = beforeClientExecution(request); return executeDescribeDataSet(request); } @SdkInternalApi final DescribeDataSetResult executeDescribeDataSet(DescribeDataSetRequest describeDataSetRequest) { ExecutionContext executionContext = createExecutionContext(describeDataSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDataSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeDataSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDataSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDataSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DescribeDataSetPermissions * @see AWS API Documentation */ @Override public DescribeDataSetPermissionsResult describeDataSetPermissions(DescribeDataSetPermissionsRequest request) { request = beforeClientExecution(request); return executeDescribeDataSetPermissions(request); } @SdkInternalApi final DescribeDataSetPermissionsResult executeDescribeDataSetPermissions(DescribeDataSetPermissionsRequest describeDataSetPermissionsRequest) { ExecutionContext executionContext = createExecutionContext(describeDataSetPermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDataSetPermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeDataSetPermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDataSetPermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDataSetPermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DescribeDataSource * @see AWS * API Documentation */ @Override public DescribeDataSourceResult describeDataSource(DescribeDataSourceRequest request) { request = beforeClientExecution(request); return executeDescribeDataSource(request); } @SdkInternalApi final DescribeDataSourceResult executeDescribeDataSource(DescribeDataSourceRequest describeDataSourceRequest) { ExecutionContext executionContext = createExecutionContext(describeDataSourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDataSourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeDataSourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDataSource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDataSourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DescribeDataSourcePermissions * @see AWS API Documentation */ @Override public DescribeDataSourcePermissionsResult describeDataSourcePermissions(DescribeDataSourcePermissionsRequest request) { request = beforeClientExecution(request); return executeDescribeDataSourcePermissions(request); } @SdkInternalApi final DescribeDataSourcePermissionsResult executeDescribeDataSourcePermissions(DescribeDataSourcePermissionsRequest describeDataSourcePermissionsRequest) { ExecutionContext executionContext = createExecutionContext(describeDataSourcePermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeDataSourcePermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeDataSourcePermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDataSourcePermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeDataSourcePermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes a folder. *

* * @param describeFolderRequest * @return Result of the DescribeFolder 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 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 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. * @sample AmazonQuickSight.DescribeFolder * @see AWS API * Documentation */ @Override public DescribeFolderResult describeFolder(DescribeFolderRequest request) { request = beforeClientExecution(request); return executeDescribeFolder(request); } @SdkInternalApi final DescribeFolderResult executeDescribeFolder(DescribeFolderRequest describeFolderRequest) { ExecutionContext executionContext = createExecutionContext(describeFolderRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeFolderRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeFolderRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeFolder"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeFolderResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes permissions for a folder. *

* * @param describeFolderPermissionsRequest * @return Result of the DescribeFolderPermissions 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 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 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. * @sample AmazonQuickSight.DescribeFolderPermissions * @see AWS API Documentation */ @Override public DescribeFolderPermissionsResult describeFolderPermissions(DescribeFolderPermissionsRequest request) { request = beforeClientExecution(request); return executeDescribeFolderPermissions(request); } @SdkInternalApi final DescribeFolderPermissionsResult executeDescribeFolderPermissions(DescribeFolderPermissionsRequest describeFolderPermissionsRequest) { ExecutionContext executionContext = createExecutionContext(describeFolderPermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeFolderPermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeFolderPermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeFolderPermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeFolderPermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Describes the folder resolved permissions. Permissions consists of both folder direct permissions and the * inherited permissions from the ancestor folders. *

* * @param describeFolderResolvedPermissionsRequest * @return Result of the DescribeFolderResolvedPermissions 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 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 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. * @sample AmazonQuickSight.DescribeFolderResolvedPermissions * @see AWS API Documentation */ @Override public DescribeFolderResolvedPermissionsResult describeFolderResolvedPermissions(DescribeFolderResolvedPermissionsRequest request) { request = beforeClientExecution(request); return executeDescribeFolderResolvedPermissions(request); } @SdkInternalApi final DescribeFolderResolvedPermissionsResult executeDescribeFolderResolvedPermissions( DescribeFolderResolvedPermissionsRequest describeFolderResolvedPermissionsRequest) { ExecutionContext executionContext = createExecutionContext(describeFolderResolvedPermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeFolderResolvedPermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeFolderResolvedPermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeFolderResolvedPermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeFolderResolvedPermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DescribeGroup * @see AWS API * Documentation */ @Override public DescribeGroupResult describeGroup(DescribeGroupRequest request) { request = beforeClientExecution(request); return executeDescribeGroup(request); } @SdkInternalApi final DescribeGroupResult executeDescribeGroup(DescribeGroupRequest describeGroupRequest) { ExecutionContext executionContext = createExecutionContext(describeGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use the DescribeGroupMembership operation to determine if a user is a member of the specified group. * If the user exists and is a member of the specified group, an associated GroupMember object is * returned. *

* * @param describeGroupMembershipRequest * @return Result of the DescribeGroupMembership 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. * @sample AmazonQuickSight.DescribeGroupMembership * @see AWS API Documentation */ @Override public DescribeGroupMembershipResult describeGroupMembership(DescribeGroupMembershipRequest request) { request = beforeClientExecution(request); return executeDescribeGroupMembership(request); } @SdkInternalApi final DescribeGroupMembershipResult executeDescribeGroupMembership(DescribeGroupMembershipRequest describeGroupMembershipRequest) { ExecutionContext executionContext = createExecutionContext(describeGroupMembershipRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeGroupMembershipRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeGroupMembershipRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeGroupMembership"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeGroupMembershipResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DescribeIAMPolicyAssignment * @see AWS API Documentation */ @Override public DescribeIAMPolicyAssignmentResult describeIAMPolicyAssignment(DescribeIAMPolicyAssignmentRequest request) { request = beforeClientExecution(request); return executeDescribeIAMPolicyAssignment(request); } @SdkInternalApi final DescribeIAMPolicyAssignmentResult executeDescribeIAMPolicyAssignment(DescribeIAMPolicyAssignmentRequest describeIAMPolicyAssignmentRequest) { ExecutionContext executionContext = createExecutionContext(describeIAMPolicyAssignmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeIAMPolicyAssignmentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeIAMPolicyAssignmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeIAMPolicyAssignment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeIAMPolicyAssignmentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DescribeIngestion * @see AWS * API Documentation */ @Override public DescribeIngestionResult describeIngestion(DescribeIngestionRequest request) { request = beforeClientExecution(request); return executeDescribeIngestion(request); } @SdkInternalApi final DescribeIngestionResult executeDescribeIngestion(DescribeIngestionRequest describeIngestionRequest) { ExecutionContext executionContext = createExecutionContext(describeIngestionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeIngestionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeIngestionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeIngestion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeIngestionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Provides a summary and status of IP rules. *

* * @param describeIpRestrictionRequest * @return Result of the DescribeIpRestriction 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. * @sample AmazonQuickSight.DescribeIpRestriction * @see AWS API Documentation */ @Override public DescribeIpRestrictionResult describeIpRestriction(DescribeIpRestrictionRequest request) { request = beforeClientExecution(request); return executeDescribeIpRestriction(request); } @SdkInternalApi final DescribeIpRestrictionResult executeDescribeIpRestriction(DescribeIpRestrictionRequest describeIpRestrictionRequest) { ExecutionContext executionContext = createExecutionContext(describeIpRestrictionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeIpRestrictionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeIpRestrictionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeIpRestriction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeIpRestrictionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DescribeNamespace * @see AWS * API Documentation */ @Override public DescribeNamespaceResult describeNamespace(DescribeNamespaceRequest request) { request = beforeClientExecution(request); return executeDescribeNamespace(request); } @SdkInternalApi final DescribeNamespaceResult executeDescribeNamespace(DescribeNamespaceRequest describeNamespaceRequest) { ExecutionContext executionContext = createExecutionContext(describeNamespaceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeNamespaceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeNamespaceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeNamespace"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeNamespaceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DescribeTemplate * @see AWS * API Documentation */ @Override public DescribeTemplateResult describeTemplate(DescribeTemplateRequest request) { request = beforeClientExecution(request); return executeDescribeTemplate(request); } @SdkInternalApi final DescribeTemplateResult executeDescribeTemplate(DescribeTemplateRequest describeTemplateRequest) { ExecutionContext executionContext = createExecutionContext(describeTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeTemplateRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeTemplateRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeTemplate"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeTemplateResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DescribeTemplateAlias * @see AWS API Documentation */ @Override public DescribeTemplateAliasResult describeTemplateAlias(DescribeTemplateAliasRequest request) { request = beforeClientExecution(request); return executeDescribeTemplateAlias(request); } @SdkInternalApi final DescribeTemplateAliasResult executeDescribeTemplateAlias(DescribeTemplateAliasRequest describeTemplateAliasRequest) { ExecutionContext executionContext = createExecutionContext(describeTemplateAliasRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeTemplateAliasRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeTemplateAliasRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeTemplateAlias"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeTemplateAliasResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Provides a detailed description of the definition of a template. *

* *

* If you do not need to know details about the content of a template, for instance if you are trying to check the * status of a recently created or updated template, use the * DescribeTemplate instead. *

*
* * @param describeTemplateDefinitionRequest * @return Result of the DescribeTemplateDefinition 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 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. * @sample AmazonQuickSight.DescribeTemplateDefinition * @see AWS API Documentation */ @Override public DescribeTemplateDefinitionResult describeTemplateDefinition(DescribeTemplateDefinitionRequest request) { request = beforeClientExecution(request); return executeDescribeTemplateDefinition(request); } @SdkInternalApi final DescribeTemplateDefinitionResult executeDescribeTemplateDefinition(DescribeTemplateDefinitionRequest describeTemplateDefinitionRequest) { ExecutionContext executionContext = createExecutionContext(describeTemplateDefinitionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeTemplateDefinitionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeTemplateDefinitionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeTemplateDefinition"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeTemplateDefinitionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DescribeTemplatePermissions * @see AWS API Documentation */ @Override public DescribeTemplatePermissionsResult describeTemplatePermissions(DescribeTemplatePermissionsRequest request) { request = beforeClientExecution(request); return executeDescribeTemplatePermissions(request); } @SdkInternalApi final DescribeTemplatePermissionsResult executeDescribeTemplatePermissions(DescribeTemplatePermissionsRequest describeTemplatePermissionsRequest) { ExecutionContext executionContext = createExecutionContext(describeTemplatePermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeTemplatePermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeTemplatePermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeTemplatePermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeTemplatePermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DescribeTheme * @see AWS API * Documentation */ @Override public DescribeThemeResult describeTheme(DescribeThemeRequest request) { request = beforeClientExecution(request); return executeDescribeTheme(request); } @SdkInternalApi final DescribeThemeResult executeDescribeTheme(DescribeThemeRequest describeThemeRequest) { ExecutionContext executionContext = createExecutionContext(describeThemeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeThemeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeThemeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeTheme"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeThemeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DescribeThemeAlias * @see AWS * API Documentation */ @Override public DescribeThemeAliasResult describeThemeAlias(DescribeThemeAliasRequest request) { request = beforeClientExecution(request); return executeDescribeThemeAlias(request); } @SdkInternalApi final DescribeThemeAliasResult executeDescribeThemeAlias(DescribeThemeAliasRequest describeThemeAliasRequest) { ExecutionContext executionContext = createExecutionContext(describeThemeAliasRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeThemeAliasRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeThemeAliasRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeThemeAlias"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeThemeAliasResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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 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. * @sample AmazonQuickSight.DescribeThemePermissions * @see AWS API Documentation */ @Override public DescribeThemePermissionsResult describeThemePermissions(DescribeThemePermissionsRequest request) { request = beforeClientExecution(request); return executeDescribeThemePermissions(request); } @SdkInternalApi final DescribeThemePermissionsResult executeDescribeThemePermissions(DescribeThemePermissionsRequest describeThemePermissionsRequest) { ExecutionContext executionContext = createExecutionContext(describeThemePermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeThemePermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(describeThemePermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeThemePermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeThemePermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.DescribeUser * @see AWS API * Documentation */ @Override public DescribeUserResult describeUser(DescribeUserRequest request) { request = beforeClientExecution(request); return executeDescribeUser(request); } @SdkInternalApi final DescribeUserResult executeDescribeUser(DescribeUserRequest describeUserRequest) { ExecutionContext executionContext = createExecutionContext(describeUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new DescribeUserRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeUserRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeUser"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeUserResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Generates an embed URL that you can use to embed an Amazon QuickSight dashboard or visual in your website, * without having to register any reader users. Before you use this action, make sure that you have configured the * dashboards and permissions. *

*

* The following rules apply to the generated URL: *

*
    *
  • *

    * It contains a temporary bearer token. It is valid for 5 minutes after it is generated. Once redeemed within this * period, it cannot be re-used again. *

    *
  • *
  • *

    * The URL validity period should not be confused with the actual session lifetime that can be customized using the * SessionLifetimeInMinutes * parameter. The resulting user session is valid for 15 minutes (minimum) to 10 hours (maximum). The default * session duration is 10 hours. *

    *
  • *
  • *

    * You are charged only when the URL is used or there is interaction with Amazon QuickSight. *

    *
  • *
*

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

*

* For more information about the high-level steps for embedding and for an interactive demo of the ways you can * customize embedding, visit the Amazon QuickSight Developer * Portal. *

* * @param generateEmbedUrlForAnonymousUserRequest * @return Result of the GenerateEmbedUrlForAnonymousUser 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 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 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 Amazon Web Services account. Before you can use embedding for anonymous * users, a QuickSight administrator needs to add capacity pricing to Amazon QuickSight. You can do this on * the Manage Amazon QuickSight page.

*

* After capacity pricing is added, you can use the * GetDashboardEmbedUrl * API operation with the --identity-type ANONYMOUS option. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.GenerateEmbedUrlForAnonymousUser * @see AWS API Documentation */ @Override public GenerateEmbedUrlForAnonymousUserResult generateEmbedUrlForAnonymousUser(GenerateEmbedUrlForAnonymousUserRequest request) { request = beforeClientExecution(request); return executeGenerateEmbedUrlForAnonymousUser(request); } @SdkInternalApi final GenerateEmbedUrlForAnonymousUserResult executeGenerateEmbedUrlForAnonymousUser( GenerateEmbedUrlForAnonymousUserRequest generateEmbedUrlForAnonymousUserRequest) { ExecutionContext executionContext = createExecutionContext(generateEmbedUrlForAnonymousUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GenerateEmbedUrlForAnonymousUserRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(generateEmbedUrlForAnonymousUserRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GenerateEmbedUrlForAnonymousUser"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GenerateEmbedUrlForAnonymousUserResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Generates an embed URL that you can use to embed an Amazon QuickSight experience in your website. This action can * be used for any type of user registered in an Amazon QuickSight account. Before you use this action, make sure * that you have configured the relevant Amazon QuickSight resource and permissions. *

*

* The following rules apply to the generated URL: *

*
    *
  • *

    * It contains a temporary bearer token. It is valid for 5 minutes after it is generated. Once redeemed within this * period, it cannot be re-used again. *

    *
  • *
  • *

    * The URL validity period should not be confused with the actual session lifetime that can be customized using the * SessionLifetimeInMinutes * parameter. *

    *

    * The resulting user session is valid for 15 minutes (minimum) to 10 hours (maximum). The default session duration * is 10 hours. *

    *
  • *
  • *

    * You are charged only when the URL is used or there is interaction with Amazon QuickSight. *

    *
  • *
*

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

*

* For more information about the high-level steps for embedding and for an interactive demo of the ways you can * customize embedding, visit the Amazon QuickSight Developer * Portal. *

* * @param generateEmbedUrlForRegisteredUserRequest * @return Result of the GenerateEmbedUrlForRegisteredUser 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 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 ResourceNotFoundException * One or more resources can't be found. * @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 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 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 Amazon Web Services account. Before you can use embedding for anonymous * users, a QuickSight administrator needs to add capacity pricing to Amazon QuickSight. You can do this on * the Manage Amazon QuickSight page.

*

* After capacity pricing is added, you can use the * GetDashboardEmbedUrl * API operation with the --identity-type ANONYMOUS option. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.GenerateEmbedUrlForRegisteredUser * @see AWS API Documentation */ @Override public GenerateEmbedUrlForRegisteredUserResult generateEmbedUrlForRegisteredUser(GenerateEmbedUrlForRegisteredUserRequest request) { request = beforeClientExecution(request); return executeGenerateEmbedUrlForRegisteredUser(request); } @SdkInternalApi final GenerateEmbedUrlForRegisteredUserResult executeGenerateEmbedUrlForRegisteredUser( GenerateEmbedUrlForRegisteredUserRequest generateEmbedUrlForRegisteredUserRequest) { ExecutionContext executionContext = createExecutionContext(generateEmbedUrlForRegisteredUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GenerateEmbedUrlForRegisteredUserRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(generateEmbedUrlForRegisteredUserRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GenerateEmbedUrlForRegisteredUser"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GenerateEmbedUrlForRegisteredUserResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Generates a temporary session URL and authorization code(bearer token) that you can use to embed an Amazon * QuickSight read-only dashboard in your website or application. 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 generated URL: *

*
    *
  • *

    * They must be used together. *

    *
  • *
  • *

    * They can be used one time only. *

    *
  • *
  • *

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

    *
  • *
  • *

    * You are charged only when the URL is used or there is interaction with Amazon QuickSight. *

    *
  • *
  • *

    * The resulting user session is valid for 15 minutes (default) up to 10 hours (maximum). You can use the optional * SessionLifetimeInMinutes parameter to customize session duration. *

    *
  • *
*

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

*

* For more information about the high-level steps for embedding and for an interactive demo of the ways you can * customize embedding, visit the Amazon QuickSight Developer * Portal. *

* * @param getDashboardEmbedUrlRequest * @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 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 Amazon Web Services account. Before you can use embedding for anonymous * users, a QuickSight administrator needs to add capacity pricing to Amazon QuickSight. You can do this on * the Manage Amazon QuickSight page.

*

* After capacity pricing is added, you can use the * GetDashboardEmbedUrl * API operation with the --identity-type ANONYMOUS option. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.GetDashboardEmbedUrl * @see AWS API Documentation */ @Override public GetDashboardEmbedUrlResult getDashboardEmbedUrl(GetDashboardEmbedUrlRequest request) { request = beforeClientExecution(request); return executeGetDashboardEmbedUrl(request); } @SdkInternalApi final GetDashboardEmbedUrlResult executeGetDashboardEmbedUrl(GetDashboardEmbedUrlRequest getDashboardEmbedUrlRequest) { ExecutionContext executionContext = createExecutionContext(getDashboardEmbedUrlRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetDashboardEmbedUrlRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getDashboardEmbedUrlRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDashboardEmbedUrl"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetDashboardEmbedUrlResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Generates a session URL and authorization code that you can use to embed the Amazon 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 Amazon * 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 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. * @sample AmazonQuickSight.GetSessionEmbedUrl * @see AWS * API Documentation */ @Override public GetSessionEmbedUrlResult getSessionEmbedUrl(GetSessionEmbedUrlRequest request) { request = beforeClientExecution(request); return executeGetSessionEmbedUrl(request); } @SdkInternalApi final GetSessionEmbedUrlResult executeGetSessionEmbedUrl(GetSessionEmbedUrlRequest getSessionEmbedUrlRequest) { ExecutionContext executionContext = createExecutionContext(getSessionEmbedUrlRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new GetSessionEmbedUrlRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getSessionEmbedUrlRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSessionEmbedUrl"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetSessionEmbedUrlResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists Amazon QuickSight analyses that exist in the specified Amazon Web Services 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 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. * @sample AmazonQuickSight.ListAnalyses * @see AWS API * Documentation */ @Override public ListAnalysesResult listAnalyses(ListAnalysesRequest request) { request = beforeClientExecution(request); return executeListAnalyses(request); } @SdkInternalApi final ListAnalysesResult executeListAnalyses(ListAnalysesRequest listAnalysesRequest) { ExecutionContext executionContext = createExecutionContext(listAnalysesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListAnalysesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listAnalysesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAnalyses"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListAnalysesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all the versions of the dashboards in the Amazon 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 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. * @sample AmazonQuickSight.ListDashboardVersions * @see AWS API Documentation */ @Override public ListDashboardVersionsResult listDashboardVersions(ListDashboardVersionsRequest request) { request = beforeClientExecution(request); return executeListDashboardVersions(request); } @SdkInternalApi final ListDashboardVersionsResult executeListDashboardVersions(ListDashboardVersionsRequest listDashboardVersionsRequest) { ExecutionContext executionContext = createExecutionContext(listDashboardVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDashboardVersionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDashboardVersionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDashboardVersions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDashboardVersionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists dashboards in an Amazon Web Services 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 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. * @sample AmazonQuickSight.ListDashboards * @see AWS API * Documentation */ @Override public ListDashboardsResult listDashboards(ListDashboardsRequest request) { request = beforeClientExecution(request); return executeListDashboards(request); } @SdkInternalApi final ListDashboardsResult executeListDashboards(ListDashboardsRequest listDashboardsRequest) { ExecutionContext executionContext = createExecutionContext(listDashboardsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDashboardsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDashboardsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDashboards"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDashboardsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all of the datasets belonging to the current Amazon Web Services account in an Amazon Web Services 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. * @sample AmazonQuickSight.ListDataSets * @see AWS API * Documentation */ @Override public ListDataSetsResult listDataSets(ListDataSetsRequest request) { request = beforeClientExecution(request); return executeListDataSets(request); } @SdkInternalApi final ListDataSetsResult executeListDataSets(ListDataSetsRequest listDataSetsRequest) { ExecutionContext executionContext = createExecutionContext(listDataSetsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDataSetsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDataSetsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDataSets"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDataSetsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists data sources in current Amazon Web Services Region that belong to this Amazon Web Services 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. * @sample AmazonQuickSight.ListDataSources * @see AWS API * Documentation */ @Override public ListDataSourcesResult listDataSources(ListDataSourcesRequest request) { request = beforeClientExecution(request); return executeListDataSources(request); } @SdkInternalApi final ListDataSourcesResult executeListDataSources(ListDataSourcesRequest listDataSourcesRequest) { ExecutionContext executionContext = createExecutionContext(listDataSourcesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListDataSourcesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDataSourcesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDataSources"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDataSourcesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* List all assets (DASHBOARD, ANALYSIS, and DATASET) in a folder. *

* * @param listFolderMembersRequest * @return Result of the ListFolderMembers 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 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 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. * @sample AmazonQuickSight.ListFolderMembers * @see AWS * API Documentation */ @Override public ListFolderMembersResult listFolderMembers(ListFolderMembersRequest request) { request = beforeClientExecution(request); return executeListFolderMembers(request); } @SdkInternalApi final ListFolderMembersResult executeListFolderMembers(ListFolderMembersRequest listFolderMembersRequest) { ExecutionContext executionContext = createExecutionContext(listFolderMembersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListFolderMembersRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listFolderMembersRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListFolderMembers"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListFolderMembersResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all folders in an account. *

* * @param listFoldersRequest * @return Result of the ListFolders 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 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 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. * @sample AmazonQuickSight.ListFolders * @see AWS API * Documentation */ @Override public ListFoldersResult listFolders(ListFoldersRequest request) { request = beforeClientExecution(request); return executeListFolders(request); } @SdkInternalApi final ListFoldersResult executeListFolders(ListFoldersRequest listFoldersRequest) { ExecutionContext executionContext = createExecutionContext(listFoldersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListFoldersRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listFoldersRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListFolders"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListFoldersResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.ListGroupMemberships * @see AWS API Documentation */ @Override public ListGroupMembershipsResult listGroupMemberships(ListGroupMembershipsRequest request) { request = beforeClientExecution(request); return executeListGroupMemberships(request); } @SdkInternalApi final ListGroupMembershipsResult executeListGroupMemberships(ListGroupMembershipsRequest listGroupMembershipsRequest) { ExecutionContext executionContext = createExecutionContext(listGroupMembershipsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListGroupMembershipsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listGroupMembershipsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListGroupMemberships"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListGroupMembershipsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.ListGroups * @see AWS API * Documentation */ @Override public ListGroupsResult listGroups(ListGroupsRequest request) { request = beforeClientExecution(request); return executeListGroups(request); } @SdkInternalApi final ListGroupsResult executeListGroups(ListGroupsRequest listGroupsRequest) { ExecutionContext executionContext = createExecutionContext(listGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListGroupsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listGroupsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListGroups"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListGroupsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.ListIAMPolicyAssignments * @see AWS API Documentation */ @Override public ListIAMPolicyAssignmentsResult listIAMPolicyAssignments(ListIAMPolicyAssignmentsRequest request) { request = beforeClientExecution(request); return executeListIAMPolicyAssignments(request); } @SdkInternalApi final ListIAMPolicyAssignmentsResult executeListIAMPolicyAssignments(ListIAMPolicyAssignmentsRequest listIAMPolicyAssignmentsRequest) { ExecutionContext executionContext = createExecutionContext(listIAMPolicyAssignmentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListIAMPolicyAssignmentsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listIAMPolicyAssignmentsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListIAMPolicyAssignments"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListIAMPolicyAssignmentsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.ListIAMPolicyAssignmentsForUser * @see AWS API Documentation */ @Override public ListIAMPolicyAssignmentsForUserResult listIAMPolicyAssignmentsForUser(ListIAMPolicyAssignmentsForUserRequest request) { request = beforeClientExecution(request); return executeListIAMPolicyAssignmentsForUser(request); } @SdkInternalApi final ListIAMPolicyAssignmentsForUserResult executeListIAMPolicyAssignmentsForUser( ListIAMPolicyAssignmentsForUserRequest listIAMPolicyAssignmentsForUserRequest) { ExecutionContext executionContext = createExecutionContext(listIAMPolicyAssignmentsForUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListIAMPolicyAssignmentsForUserRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(listIAMPolicyAssignmentsForUserRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListIAMPolicyAssignmentsForUser"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListIAMPolicyAssignmentsForUserResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* 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. * @sample AmazonQuickSight.ListIngestions * @see AWS API * Documentation */ @Override public ListIngestionsResult listIngestions(ListIngestionsRequest request) { request = beforeClientExecution(request); return executeListIngestions(request); } @SdkInternalApi final ListIngestionsResult executeListIngestions(ListIngestionsRequest listIngestionsRequest) { ExecutionContext executionContext = createExecutionContext(listIngestionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListIngestionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listIngestionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListIngestions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListIngestionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the namespaces for the specified Amazon Web Services account. This operation doesn't list deleted * namespaces. *

* * @param listNamespacesRequest * @return Result of the ListNamespaces operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @sample AmazonQuickSight.ListNamespaces * @see AWS API * Documentation */ @Override public ListNamespacesResult listNamespaces(ListNamespacesRequest request) { request = beforeClientExecution(request); return executeListNamespaces(request); } @SdkInternalApi final ListNamespacesResult executeListNamespaces(ListNamespacesRequest listNamespacesRequest) { ExecutionContext executionContext = createExecutionContext(listNamespacesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListNamespacesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listNamespacesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListNamespaces"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListNamespacesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists the tags assigned to a resource. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.ListTagsForResource * @see AWS * API Documentation */ @Override public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { request = beforeClientExecution(request); return executeListTagsForResource(request); } @SdkInternalApi final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all the aliases of a template. *

* * @param listTemplateAliasesRequest * @return Result of the ListTemplateAliases operation returned by the service. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.ListTemplateAliases * @see AWS * API Documentation */ @Override public ListTemplateAliasesResult listTemplateAliases(ListTemplateAliasesRequest request) { request = beforeClientExecution(request); return executeListTemplateAliases(request); } @SdkInternalApi final ListTemplateAliasesResult executeListTemplateAliases(ListTemplateAliasesRequest listTemplateAliasesRequest) { ExecutionContext executionContext = createExecutionContext(listTemplateAliasesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTemplateAliasesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTemplateAliasesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTemplateAliases"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTemplateAliasesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

* * @param listTemplateVersionsRequest * @return Result of the ListTemplateVersions operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.ListTemplateVersions * @see AWS API Documentation */ @Override public ListTemplateVersionsResult listTemplateVersions(ListTemplateVersionsRequest request) { request = beforeClientExecution(request); return executeListTemplateVersions(request); } @SdkInternalApi final ListTemplateVersionsResult executeListTemplateVersions(ListTemplateVersionsRequest listTemplateVersionsRequest) { ExecutionContext executionContext = createExecutionContext(listTemplateVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTemplateVersionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTemplateVersionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTemplateVersions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTemplateVersionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

* * @param listTemplatesRequest * @return Result of the ListTemplates operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.ListTemplates * @see AWS API * Documentation */ @Override public ListTemplatesResult listTemplates(ListTemplatesRequest request) { request = beforeClientExecution(request); return executeListTemplates(request); } @SdkInternalApi final ListTemplatesResult executeListTemplates(ListTemplatesRequest listTemplatesRequest) { ExecutionContext executionContext = createExecutionContext(listTemplatesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListTemplatesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTemplatesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTemplates"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTemplatesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all the aliases of a theme. *

* * @param listThemeAliasesRequest * @return Result of the ListThemeAliases operation returned by the service. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.ListThemeAliases * @see AWS * API Documentation */ @Override public ListThemeAliasesResult listThemeAliases(ListThemeAliasesRequest request) { request = beforeClientExecution(request); return executeListThemeAliases(request); } @SdkInternalApi final ListThemeAliasesResult executeListThemeAliases(ListThemeAliasesRequest listThemeAliasesRequest) { ExecutionContext executionContext = createExecutionContext(listThemeAliasesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListThemeAliasesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listThemeAliasesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListThemeAliases"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListThemeAliasesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all the versions of the themes in the current Amazon Web Services account. *

* * @param listThemeVersionsRequest * @return Result of the ListThemeVersions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.ListThemeVersions * @see AWS * API Documentation */ @Override public ListThemeVersionsResult listThemeVersions(ListThemeVersionsRequest request) { request = beforeClientExecution(request); return executeListThemeVersions(request); } @SdkInternalApi final ListThemeVersionsResult executeListThemeVersions(ListThemeVersionsRequest listThemeVersionsRequest) { ExecutionContext executionContext = createExecutionContext(listThemeVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListThemeVersionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listThemeVersionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListThemeVersions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListThemeVersionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Lists all the themes in the current Amazon Web Services account. *

* * @param listThemesRequest * @return Result of the ListThemes operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.ListThemes * @see AWS API * Documentation */ @Override public ListThemesResult listThemes(ListThemesRequest request) { request = beforeClientExecution(request); return executeListThemes(request); } @SdkInternalApi final ListThemesResult executeListThemes(ListThemesRequest listThemesRequest) { ExecutionContext executionContext = createExecutionContext(listThemesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListThemesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listThemesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListThemes"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListThemesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

* * @param listUserGroupsRequest * @return Result of the ListUserGroups operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @sample AmazonQuickSight.ListUserGroups * @see AWS API * Documentation */ @Override public ListUserGroupsResult listUserGroups(ListUserGroupsRequest request) { request = beforeClientExecution(request); return executeListUserGroups(request); } @SdkInternalApi final ListUserGroupsResult executeListUserGroups(ListUserGroupsRequest listUserGroupsRequest) { ExecutionContext executionContext = createExecutionContext(listUserGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListUserGroupsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listUserGroupsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListUserGroups"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListUserGroupsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

* * @param listUsersRequest * @return Result of the ListUsers operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @sample AmazonQuickSight.ListUsers * @see AWS API * Documentation */ @Override public ListUsersResult listUsers(ListUsersRequest request) { request = beforeClientExecution(request); return executeListUsers(request); } @SdkInternalApi final ListUsersResult executeListUsers(ListUsersRequest listUsersRequest) { ExecutionContext executionContext = createExecutionContext(listUsersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new ListUsersRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listUsersRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListUsers"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListUsersResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Creates an Amazon QuickSight user whose identity is associated with the Identity and Access Management (IAM) * identity or role specified in the request. When you register a new user from the Amazon QuickSight API, Amazon * QuickSight generates a registration URL. The user accesses this registration URL to create their account. Amazon * QuickSight doesn't send a registration email to users who are registered from the Amazon QuickSight API. If you * want new users to receive a registration email, then add those users in the Amazon QuickSight console. For more * information on registering a new user in the Amazon QuickSight console, see Inviting users to * access Amazon QuickSight. *

* * @param registerUserRequest * @return Result of the RegisterUser operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws LimitExceededException * A limit is exceeded. * @throws ResourceExistsException * The resource specified already exists. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @sample AmazonQuickSight.RegisterUser * @see AWS API * Documentation */ @Override public RegisterUserResult registerUser(RegisterUserRequest request) { request = beforeClientExecution(request); return executeRegisterUser(request); } @SdkInternalApi final RegisterUserResult executeRegisterUser(RegisterUserRequest registerUserRequest) { ExecutionContext executionContext = createExecutionContext(registerUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RegisterUserRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(registerUserRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterUser"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RegisterUserResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Restores an analysis. *

* * @param restoreAnalysisRequest * @return Result of the RestoreAnalysis operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.RestoreAnalysis * @see AWS API * Documentation */ @Override public RestoreAnalysisResult restoreAnalysis(RestoreAnalysisRequest request) { request = beforeClientExecution(request); return executeRestoreAnalysis(request); } @SdkInternalApi final RestoreAnalysisResult executeRestoreAnalysis(RestoreAnalysisRequest restoreAnalysisRequest) { ExecutionContext executionContext = createExecutionContext(restoreAnalysisRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new RestoreAnalysisRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(restoreAnalysisRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RestoreAnalysis"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new RestoreAnalysisResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

* *

* This operation is eventually consistent. The results are best effort and may not reflect very recent updates and * changes. *

*
* * @param searchAnalysesRequest * @return Result of the SearchAnalyses operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon Amazon QuickSight currently has Standard * Edition and Enterprise Edition. Not every operation and capability is available in every edition. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.SearchAnalyses * @see AWS API * Documentation */ @Override public SearchAnalysesResult searchAnalyses(SearchAnalysesRequest request) { request = beforeClientExecution(request); return executeSearchAnalyses(request); } @SdkInternalApi final SearchAnalysesResult executeSearchAnalyses(SearchAnalysesRequest searchAnalysesRequest) { ExecutionContext executionContext = createExecutionContext(searchAnalysesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchAnalysesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchAnalysesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SearchAnalyses"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchAnalysesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Searches for dashboards that belong to a user. *

* *

* This operation is eventually consistent. The results are best effort and may not reflect very recent updates and * changes. *

*
* * @param searchDashboardsRequest * @return Result of the SearchDashboards operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon Amazon QuickSight currently has Standard * Edition and Enterprise Edition. Not every operation and capability is available in every edition. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.SearchDashboards * @see AWS * API Documentation */ @Override public SearchDashboardsResult searchDashboards(SearchDashboardsRequest request) { request = beforeClientExecution(request); return executeSearchDashboards(request); } @SdkInternalApi final SearchDashboardsResult executeSearchDashboards(SearchDashboardsRequest searchDashboardsRequest) { ExecutionContext executionContext = createExecutionContext(searchDashboardsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchDashboardsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchDashboardsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SearchDashboards"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchDashboardsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use the SearchDataSets operation to search for datasets that belong to an account. *

* * @param searchDataSetsRequest * @return Result of the SearchDataSets operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.SearchDataSets * @see AWS API * Documentation */ @Override public SearchDataSetsResult searchDataSets(SearchDataSetsRequest request) { request = beforeClientExecution(request); return executeSearchDataSets(request); } @SdkInternalApi final SearchDataSetsResult executeSearchDataSets(SearchDataSetsRequest searchDataSetsRequest) { ExecutionContext executionContext = createExecutionContext(searchDataSetsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchDataSetsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchDataSetsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SearchDataSets"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchDataSetsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use the SearchDataSources operation to search for data sources that belong to an account. *

* * @param searchDataSourcesRequest * @return Result of the SearchDataSources operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidNextTokenException * The NextToken value isn't valid. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.SearchDataSources * @see AWS * API Documentation */ @Override public SearchDataSourcesResult searchDataSources(SearchDataSourcesRequest request) { request = beforeClientExecution(request); return executeSearchDataSources(request); } @SdkInternalApi final SearchDataSourcesResult executeSearchDataSources(SearchDataSourcesRequest searchDataSourcesRequest) { ExecutionContext executionContext = createExecutionContext(searchDataSourcesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchDataSourcesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchDataSourcesRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SearchDataSources"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchDataSourcesResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Searches the subfolders in a folder. *

* * @param searchFoldersRequest * @return Result of the SearchFolders 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 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 Amazon QuickSight currently has Standard * Edition and Enterprise Edition. Not every operation and capability is available in every edition. * @throws InvalidRequestException * You don't have this feature activated for your account. To fix this issue, contact Amazon Web Services * support. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.SearchFolders * @see AWS API * Documentation */ @Override public SearchFoldersResult searchFolders(SearchFoldersRequest request) { request = beforeClientExecution(request); return executeSearchFolders(request); } @SdkInternalApi final SearchFoldersResult executeSearchFolders(SearchFoldersRequest searchFoldersRequest) { ExecutionContext executionContext = createExecutionContext(searchFoldersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchFoldersRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchFoldersRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SearchFolders"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchFoldersResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use the SearchGroups operation to search groups in a specified Amazon QuickSight namespace using the * supplied filters. *

* * @param searchGroupsRequest * @return Result of the SearchGroups 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. * @sample AmazonQuickSight.SearchGroups * @see AWS API * Documentation */ @Override public SearchGroupsResult searchGroups(SearchGroupsRequest request) { request = beforeClientExecution(request); return executeSearchGroups(request); } @SdkInternalApi final SearchGroupsResult executeSearchGroups(SearchGroupsRequest searchGroupsRequest) { ExecutionContext executionContext = createExecutionContext(searchGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new SearchGroupsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(searchGroupsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "SearchGroups"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new SearchGroupsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

*

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

*

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

*

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

*
    *
  • *

    * You can't use tags to track costs for Amazon QuickSight. This isn't possible because you can't tag the resources * that Amazon QuickSight costs are based on, for example Amazon QuickSight storage capacity (SPICE), number of * users, type of users, and usage metrics. *

    *
  • *
  • *

    * Amazon QuickSight doesn't currently support the tag editor for Resource Groups. *

    *
  • *
* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws LimitExceededException * A limit is exceeded. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.TagResource * @see AWS API * Documentation */ @Override public TagResourceResult tagResource(TagResourceRequest request) { request = beforeClientExecution(request); return executeTagResource(request); } @SdkInternalApi final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { ExecutionContext executionContext = createExecutionContext(tagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Removes a tag or tags from a resource. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.UntagResource * @see AWS API * Documentation */ @Override public UntagResourceResult untagResource(UntagResourceRequest request) { request = beforeClientExecution(request); return executeUntagResource(request); } @SdkInternalApi final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { ExecutionContext executionContext = createExecutionContext(untagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates Amazon QuickSight customizations for the current Amazon Web Services Region. Currently, the only * customization that you can use is a theme. *

*

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

* * @param updateAccountCustomizationRequest * @return Result of the UpdateAccountCustomization operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @sample AmazonQuickSight.UpdateAccountCustomization * @see AWS API Documentation */ @Override public UpdateAccountCustomizationResult updateAccountCustomization(UpdateAccountCustomizationRequest request) { request = beforeClientExecution(request); return executeUpdateAccountCustomization(request); } @SdkInternalApi final UpdateAccountCustomizationResult executeUpdateAccountCustomization(UpdateAccountCustomizationRequest updateAccountCustomizationRequest) { ExecutionContext executionContext = createExecutionContext(updateAccountCustomizationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateAccountCustomizationRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateAccountCustomizationRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAccountCustomization"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateAccountCustomizationResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the Amazon QuickSight settings in your Amazon Web Services account. *

* * @param updateAccountSettingsRequest * @return Result of the UpdateAccountSettings operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @sample AmazonQuickSight.UpdateAccountSettings * @see AWS API Documentation */ @Override public UpdateAccountSettingsResult updateAccountSettings(UpdateAccountSettingsRequest request) { request = beforeClientExecution(request); return executeUpdateAccountSettings(request); } @SdkInternalApi final UpdateAccountSettingsResult executeUpdateAccountSettings(UpdateAccountSettingsRequest updateAccountSettingsRequest) { ExecutionContext executionContext = createExecutionContext(updateAccountSettingsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateAccountSettingsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateAccountSettingsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAccountSettings"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateAccountSettingsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an analysis in Amazon QuickSight *

* * @param updateAnalysisRequest * @return Result of the UpdateAnalysis operation returned by the service. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceExistsException * The resource specified already exists. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.UpdateAnalysis * @see AWS API * Documentation */ @Override public UpdateAnalysisResult updateAnalysis(UpdateAnalysisRequest request) { request = beforeClientExecution(request); return executeUpdateAnalysis(request); } @SdkInternalApi final UpdateAnalysisResult executeUpdateAnalysis(UpdateAnalysisRequest updateAnalysisRequest) { ExecutionContext executionContext = createExecutionContext(updateAnalysisRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateAnalysisRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateAnalysisRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAnalysis"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateAnalysisResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

* * @param updateAnalysisPermissionsRequest * @return Result of the UpdateAnalysisPermissions operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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 LimitExceededException * A limit is exceeded. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.UpdateAnalysisPermissions * @see AWS API Documentation */ @Override public UpdateAnalysisPermissionsResult updateAnalysisPermissions(UpdateAnalysisPermissionsRequest request) { request = beforeClientExecution(request); return executeUpdateAnalysisPermissions(request); } @SdkInternalApi final UpdateAnalysisPermissionsResult executeUpdateAnalysisPermissions(UpdateAnalysisPermissionsRequest updateAnalysisPermissionsRequest) { ExecutionContext executionContext = createExecutionContext(updateAnalysisPermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateAnalysisPermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateAnalysisPermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAnalysisPermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateAnalysisPermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a dashboard in an Amazon Web Services account. *

* *

* Updating a Dashboard creates a new dashboard version but does not immediately publish the new version. You can * update the published version of a dashboard by using the * UpdateDashboardPublishedVersion * API operation. *

*
* * @param updateDashboardRequest * @return Result of the UpdateDashboard operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws LimitExceededException * A limit is exceeded. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.UpdateDashboard * @see AWS API * Documentation */ @Override public UpdateDashboardResult updateDashboard(UpdateDashboardRequest request) { request = beforeClientExecution(request); return executeUpdateDashboard(request); } @SdkInternalApi final UpdateDashboardResult executeUpdateDashboard(UpdateDashboardRequest updateDashboardRequest) { ExecutionContext executionContext = createExecutionContext(updateDashboardRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDashboardRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDashboardRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDashboard"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDashboardResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates read and write permissions on a dashboard. *

* * @param updateDashboardPermissionsRequest * @return Result of the UpdateDashboardPermissions operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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 LimitExceededException * A limit is exceeded. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.UpdateDashboardPermissions * @see AWS API Documentation */ @Override public UpdateDashboardPermissionsResult updateDashboardPermissions(UpdateDashboardPermissionsRequest request) { request = beforeClientExecution(request); return executeUpdateDashboardPermissions(request); } @SdkInternalApi final UpdateDashboardPermissionsResult executeUpdateDashboardPermissions(UpdateDashboardPermissionsRequest updateDashboardPermissionsRequest) { ExecutionContext executionContext = createExecutionContext(updateDashboardPermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDashboardPermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateDashboardPermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDashboardPermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDashboardPermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the published version of a dashboard. *

* * @param updateDashboardPublishedVersionRequest * @return Result of the UpdateDashboardPublishedVersion operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.UpdateDashboardPublishedVersion * @see AWS API Documentation */ @Override public UpdateDashboardPublishedVersionResult updateDashboardPublishedVersion(UpdateDashboardPublishedVersionRequest request) { request = beforeClientExecution(request); return executeUpdateDashboardPublishedVersion(request); } @SdkInternalApi final UpdateDashboardPublishedVersionResult executeUpdateDashboardPublishedVersion( UpdateDashboardPublishedVersionRequest updateDashboardPublishedVersionRequest) { ExecutionContext executionContext = createExecutionContext(updateDashboardPublishedVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDashboardPublishedVersionRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateDashboardPublishedVersionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDashboardPublishedVersion"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDashboardPublishedVersionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a dataset. This operation doesn't support datasets that include uploaded files as a source. Partial * updates are not supported by this operation. *

* * @param updateDataSetRequest * @return Result of the UpdateDataSet operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws LimitExceededException * A limit is exceeded. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.UpdateDataSet * @see AWS API * Documentation */ @Override public UpdateDataSetResult updateDataSet(UpdateDataSetRequest request) { request = beforeClientExecution(request); return executeUpdateDataSet(request); } @SdkInternalApi final UpdateDataSetResult executeUpdateDataSet(UpdateDataSetRequest updateDataSetRequest) { ExecutionContext executionContext = createExecutionContext(updateDataSetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDataSetRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDataSetRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDataSet"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDataSetResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the permissions on a dataset. *

*

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

* * @param updateDataSetPermissionsRequest * @return Result of the UpdateDataSetPermissions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.UpdateDataSetPermissions * @see AWS API Documentation */ @Override public UpdateDataSetPermissionsResult updateDataSetPermissions(UpdateDataSetPermissionsRequest request) { request = beforeClientExecution(request); return executeUpdateDataSetPermissions(request); } @SdkInternalApi final UpdateDataSetPermissionsResult executeUpdateDataSetPermissions(UpdateDataSetPermissionsRequest updateDataSetPermissionsRequest) { ExecutionContext executionContext = createExecutionContext(updateDataSetPermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDataSetPermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateDataSetPermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDataSetPermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDataSetPermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a data source. *

* * @param updateDataSourceRequest * @return Result of the UpdateDataSource operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.UpdateDataSource * @see AWS * API Documentation */ @Override public UpdateDataSourceResult updateDataSource(UpdateDataSourceRequest request) { request = beforeClientExecution(request); return executeUpdateDataSource(request); } @SdkInternalApi final UpdateDataSourceResult executeUpdateDataSource(UpdateDataSourceRequest updateDataSourceRequest) { ExecutionContext executionContext = createExecutionContext(updateDataSourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDataSourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateDataSourceRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDataSource"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDataSourceResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the permissions to a data source. *

* * @param updateDataSourcePermissionsRequest * @return Result of the UpdateDataSourcePermissions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.UpdateDataSourcePermissions * @see AWS API Documentation */ @Override public UpdateDataSourcePermissionsResult updateDataSourcePermissions(UpdateDataSourcePermissionsRequest request) { request = beforeClientExecution(request); return executeUpdateDataSourcePermissions(request); } @SdkInternalApi final UpdateDataSourcePermissionsResult executeUpdateDataSourcePermissions(UpdateDataSourcePermissionsRequest updateDataSourcePermissionsRequest) { ExecutionContext executionContext = createExecutionContext(updateDataSourcePermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateDataSourcePermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateDataSourcePermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateDataSourcePermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateDataSourcePermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the name of a folder. *

* * @param updateFolderRequest * @return Result of the UpdateFolder 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 ConflictException * Updating or deleting a resource can cause an inconsistent state. * @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 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. * @sample AmazonQuickSight.UpdateFolder * @see AWS API * Documentation */ @Override public UpdateFolderResult updateFolder(UpdateFolderRequest request) { request = beforeClientExecution(request); return executeUpdateFolder(request); } @SdkInternalApi final UpdateFolderResult executeUpdateFolder(UpdateFolderRequest updateFolderRequest) { ExecutionContext executionContext = createExecutionContext(updateFolderRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateFolderRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateFolderRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateFolder"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateFolderResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates permissions of a folder. *

* * @param updateFolderPermissionsRequest * @return Result of the UpdateFolderPermissions 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 LimitExceededException * A limit is exceeded. * @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 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. * @sample AmazonQuickSight.UpdateFolderPermissions * @see AWS API Documentation */ @Override public UpdateFolderPermissionsResult updateFolderPermissions(UpdateFolderPermissionsRequest request) { request = beforeClientExecution(request); return executeUpdateFolderPermissions(request); } @SdkInternalApi final UpdateFolderPermissionsResult executeUpdateFolderPermissions(UpdateFolderPermissionsRequest updateFolderPermissionsRequest) { ExecutionContext executionContext = createExecutionContext(updateFolderPermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateFolderPermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateFolderPermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateFolderPermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateFolderPermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Changes a group description. *

* * @param updateGroupRequest * @return Result of the UpdateGroup operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @sample AmazonQuickSight.UpdateGroup * @see AWS API * Documentation */ @Override public UpdateGroupResult updateGroup(UpdateGroupRequest request) { request = beforeClientExecution(request); return executeUpdateGroup(request); } @SdkInternalApi final UpdateGroupResult executeUpdateGroup(UpdateGroupRequest updateGroupRequest) { ExecutionContext executionContext = createExecutionContext(updateGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateGroupRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateGroupRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateGroup"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateGroupResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

* * @param updateIAMPolicyAssignmentRequest * @return Result of the UpdateIAMPolicyAssignment operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ConcurrentUpdatingException * A resource is already in a state that indicates an operation is happening that must complete before a new * update can be applied. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.UpdateIAMPolicyAssignment * @see AWS API Documentation */ @Override public UpdateIAMPolicyAssignmentResult updateIAMPolicyAssignment(UpdateIAMPolicyAssignmentRequest request) { request = beforeClientExecution(request); return executeUpdateIAMPolicyAssignment(request); } @SdkInternalApi final UpdateIAMPolicyAssignmentResult executeUpdateIAMPolicyAssignment(UpdateIAMPolicyAssignmentRequest updateIAMPolicyAssignmentRequest) { ExecutionContext executionContext = createExecutionContext(updateIAMPolicyAssignmentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateIAMPolicyAssignmentRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateIAMPolicyAssignmentRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateIAMPolicyAssignment"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateIAMPolicyAssignmentResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the content and status of IP rules. To use this operation, you need to provide the entire map of rules. * You can use the DescribeIpRestriction operation to get the current rule map. *

* * @param updateIpRestrictionRequest * @return Result of the UpdateIpRestriction operation returned by the service. * @throws LimitExceededException * A limit is exceeded. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.UpdateIpRestriction * @see AWS * API Documentation */ @Override public UpdateIpRestrictionResult updateIpRestriction(UpdateIpRestrictionRequest request) { request = beforeClientExecution(request); return executeUpdateIpRestriction(request); } @SdkInternalApi final UpdateIpRestrictionResult executeUpdateIpRestriction(UpdateIpRestrictionRequest updateIpRestrictionRequest) { ExecutionContext executionContext = createExecutionContext(updateIpRestrictionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateIpRestrictionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateIpRestrictionRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateIpRestriction"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateIpRestrictionResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Use the UpdatePublicSharingSettings operation to turn on or turn off the public sharing settings of * an Amazon QuickSight dashboard. *

*

* To use this operation, turn on session capacity pricing for your Amazon QuickSight account. *

*

* Before you can turn on public sharing on your account, make sure to give public sharing permissions to an * administrative user in the Identity and Access Management (IAM) console. For more information on using IAM with * Amazon QuickSight, see Using Amazon * QuickSight with IAM in the Amazon QuickSight User Guide. *

* * @param updatePublicSharingSettingsRequest * @return Result of the UpdatePublicSharingSettings 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 UnsupportedPricingPlanException * This error indicates that you are calling an embedding operation in Amazon QuickSight without the * required pricing plan on your Amazon Web Services account. Before you can use embedding for anonymous * users, a QuickSight administrator needs to add capacity pricing to Amazon QuickSight. You can do this on * the Manage Amazon QuickSight page.

*

* After capacity pricing is added, you can use the * GetDashboardEmbedUrl * API operation with the --identity-type ANONYMOUS option. * @throws InternalFailureException * An internal failure occurred. * @sample AmazonQuickSight.UpdatePublicSharingSettings * @see AWS API Documentation */ @Override public UpdatePublicSharingSettingsResult updatePublicSharingSettings(UpdatePublicSharingSettingsRequest request) { request = beforeClientExecution(request); return executeUpdatePublicSharingSettings(request); } @SdkInternalApi final UpdatePublicSharingSettingsResult executeUpdatePublicSharingSettings(UpdatePublicSharingSettingsRequest updatePublicSharingSettingsRequest) { ExecutionContext executionContext = createExecutionContext(updatePublicSharingSettingsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdatePublicSharingSettingsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updatePublicSharingSettingsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdatePublicSharingSettings"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdatePublicSharingSettingsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

* * @param updateTemplateRequest * @return Result of the UpdateTemplate operation returned by the service. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws LimitExceededException * A limit is exceeded. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.UpdateTemplate * @see AWS API * Documentation */ @Override public UpdateTemplateResult updateTemplate(UpdateTemplateRequest request) { request = beforeClientExecution(request); return executeUpdateTemplate(request); } @SdkInternalApi final UpdateTemplateResult executeUpdateTemplate(UpdateTemplateRequest updateTemplateRequest) { ExecutionContext executionContext = createExecutionContext(updateTemplateRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateTemplateRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateTemplateRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateTemplate"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateTemplateResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the template alias of a template. *

* * @param updateTemplateAliasRequest * @return Result of the UpdateTemplateAlias operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.UpdateTemplateAlias * @see AWS * API Documentation */ @Override public UpdateTemplateAliasResult updateTemplateAlias(UpdateTemplateAliasRequest request) { request = beforeClientExecution(request); return executeUpdateTemplateAlias(request); } @SdkInternalApi final UpdateTemplateAliasResult executeUpdateTemplateAlias(UpdateTemplateAliasRequest updateTemplateAliasRequest) { ExecutionContext executionContext = createExecutionContext(updateTemplateAliasRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateTemplateAliasRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateTemplateAliasRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateTemplateAlias"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateTemplateAliasResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates the resource permissions for a template. *

* * @param updateTemplatePermissionsRequest * @return Result of the UpdateTemplatePermissions operation returned by the service. * @throws ThrottlingException * Access is throttled. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.UpdateTemplatePermissions * @see AWS API Documentation */ @Override public UpdateTemplatePermissionsResult updateTemplatePermissions(UpdateTemplatePermissionsRequest request) { request = beforeClientExecution(request); return executeUpdateTemplatePermissions(request); } @SdkInternalApi final UpdateTemplatePermissionsResult executeUpdateTemplatePermissions(UpdateTemplatePermissionsRequest updateTemplatePermissionsRequest) { ExecutionContext executionContext = createExecutionContext(updateTemplatePermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateTemplatePermissionsRequestProtocolMarshaller(protocolFactory).marshall(super .beforeMarshalling(updateTemplatePermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateTemplatePermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateTemplatePermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates a theme. *

* * @param updateThemeRequest * @return Result of the UpdateTheme operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws LimitExceededException * A limit is exceeded. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.UpdateTheme * @see AWS API * Documentation */ @Override public UpdateThemeResult updateTheme(UpdateThemeRequest request) { request = beforeClientExecution(request); return executeUpdateTheme(request); } @SdkInternalApi final UpdateThemeResult executeUpdateTheme(UpdateThemeRequest updateThemeRequest) { ExecutionContext executionContext = createExecutionContext(updateThemeRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateThemeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateThemeRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateTheme"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateThemeResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an alias of a theme. *

* * @param updateThemeAliasRequest * @return Result of the UpdateThemeAlias operation returned by the service. * @throws ConflictException * Updating or deleting a resource can cause an inconsistent state. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceExistsException * The resource specified already exists. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.UpdateThemeAlias * @see AWS * API Documentation */ @Override public UpdateThemeAliasResult updateThemeAlias(UpdateThemeAliasRequest request) { request = beforeClientExecution(request); return executeUpdateThemeAlias(request); } @SdkInternalApi final UpdateThemeAliasResult executeUpdateThemeAlias(UpdateThemeAliasRequest updateThemeAliasRequest) { ExecutionContext executionContext = createExecutionContext(updateThemeAliasRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateThemeAliasRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateThemeAliasRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateThemeAlias"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateThemeAliasResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

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

*

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

*
    *
  • *

    * User *

    *
      *
    • *

      * "quicksight:DescribeTheme" *

      *
    • *
    • *

      * "quicksight:DescribeThemeAlias" *

      *
    • *
    • *

      * "quicksight:ListThemeAliases" *

      *
    • *
    • *

      * "quicksight:ListThemeVersions" *

      *
    • *
    *
  • *
  • *

    * Owner *

    *
      *
    • *

      * "quicksight:DescribeTheme" *

      *
    • *
    • *

      * "quicksight:DescribeThemeAlias" *

      *
    • *
    • *

      * "quicksight:ListThemeAliases" *

      *
    • *
    • *

      * "quicksight:ListThemeVersions" *

      *
    • *
    • *

      * "quicksight:DeleteTheme" *

      *
    • *
    • *

      * "quicksight:UpdateTheme" *

      *
    • *
    • *

      * "quicksight:CreateThemeAlias" *

      *
    • *
    • *

      * "quicksight:DeleteThemeAlias" *

      *
    • *
    • *

      * "quicksight:UpdateThemeAlias" *

      *
    • *
    • *

      * "quicksight:UpdateThemePermissions" *

      *
    • *
    • *

      * "quicksight:DescribeThemePermissions" *

      *
    • *
    *
  • *
  • *

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

    *
  • *
* * @param updateThemePermissionsRequest * @return Result of the UpdateThemePermissions operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws UnsupportedUserEditionException * This error indicates that you are calling an operation on an Amazon QuickSight subscription where the * edition doesn't include support for that operation. Amazon 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. * @sample AmazonQuickSight.UpdateThemePermissions * @see AWS API Documentation */ @Override public UpdateThemePermissionsResult updateThemePermissions(UpdateThemePermissionsRequest request) { request = beforeClientExecution(request); return executeUpdateThemePermissions(request); } @SdkInternalApi final UpdateThemePermissionsResult executeUpdateThemePermissions(UpdateThemePermissionsRequest updateThemePermissionsRequest) { ExecutionContext executionContext = createExecutionContext(updateThemePermissionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateThemePermissionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateThemePermissionsRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateThemePermissions"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateThemePermissionsResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** *

* Updates an Amazon QuickSight user. *

* * @param updateUserRequest * @return Result of the UpdateUser operation returned by the service. * @throws AccessDeniedException * You don't have access to this item. The provided credentials couldn't be validated. You might not be * authorized to carry out the request. Make sure that your account is authorized to use the Amazon * QuickSight service, that your policies have the correct permissions, and that you are using the correct * access keys. * @throws InvalidParameterValueException * One or more parameters has a value that isn't valid. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ThrottlingException * Access is throttled. * @throws PreconditionNotMetException * One or more preconditions aren't met. * @throws InternalFailureException * An internal failure occurred. * @throws ResourceUnavailableException * This resource is currently unavailable. * @sample AmazonQuickSight.UpdateUser * @see AWS API * Documentation */ @Override public UpdateUserResult updateUser(UpdateUserRequest request) { request = beforeClientExecution(request); return executeUpdateUser(request); } @SdkInternalApi final UpdateUserResult executeUpdateUser(UpdateUserRequest updateUserRequest) { ExecutionContext executionContext = createExecutionContext(updateUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request request = null; Response response = null; try { awsRequestMetrics.startEvent(Field.RequestMarshallTime); try { request = new UpdateUserRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateUserRequest)); // Binds the request metrics to the current request. request.setAWSRequestMetrics(awsRequestMetrics); request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); request.addHandlerContext(HandlerContextKey.SERVICE_ID, "QuickSight"); request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateUser"); request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); } finally { awsRequestMetrics.endEvent(Field.RequestMarshallTime); } HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata() .withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateUserResultJsonUnmarshaller()); response = invoke(request, responseHandler, executionContext); return response.getAwsResponse(); } finally { endClientExecution(awsRequestMetrics, request, response); } } /** * Returns additional metadata for a previously executed successful, request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. *

* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing the request. * * @param request * The originally executed request * * @return The response metadata for the specified request, or null if none is available. */ public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) { return client.getResponseMetadataForRequest(request); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return invoke(request, responseHandler, executionContext, null, null); } /** * Normal invoke with authentication. Credentials are required and may be overriden at the request level. **/ private Response invoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI cachedEndpoint, URI uriFromEndpointTrait) { executionContext.setCredentialsProvider(CredentialUtils.getCredentialsProvider(request.getOriginalRequest(), awsCredentialsProvider)); return doInvoke(request, responseHandler, executionContext, cachedEndpoint, uriFromEndpointTrait); } /** * Invoke with no authentication. Credentials are not required and any credentials set on the client or request will * be ignored for this operation. **/ private Response anonymousInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext) { return doInvoke(request, responseHandler, executionContext, null, null); } /** * Invoke the request using the http client. Assumes credentials (or lack thereof) have been configured in the * ExecutionContext beforehand. **/ private Response doInvoke(Request request, HttpResponseHandler> responseHandler, ExecutionContext executionContext, URI discoveredEndpoint, URI uriFromEndpointTrait) { if (discoveredEndpoint != null) { request.setEndpoint(discoveredEndpoint); request.getOriginalRequest().getRequestClientOptions().appendUserAgent("endpoint-discovery"); } else if (uriFromEndpointTrait != null) { request.setEndpoint(uriFromEndpointTrait); } else { request.setEndpoint(endpoint); } request.setTimeOffset(timeOffset); HttpResponseHandler errorResponseHandler = protocolFactory.createErrorResponseHandler(new JsonErrorResponseMetadata()); return client.execute(request, responseHandler, errorResponseHandler, executionContext); } @com.amazonaws.annotation.SdkInternalApi static com.amazonaws.protocol.json.SdkJsonProtocolFactory getProtocolFactory() { return protocolFactory; } @Override public void shutdown() { super.shutdown(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy