
com.amazonaws.services.quicksight.AmazonQuickSightClient Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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());
}
/**
*
* Creates new reviewed answers for a Q Topic.
*
*
* @param batchCreateTopicReviewedAnswerRequest
* @return Result of the BatchCreateTopicReviewedAnswer 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
* credentials.
* @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.BatchCreateTopicReviewedAnswer
* @see AWS API Documentation
*/
@Override
public BatchCreateTopicReviewedAnswerResult batchCreateTopicReviewedAnswer(BatchCreateTopicReviewedAnswerRequest request) {
request = beforeClientExecution(request);
return executeBatchCreateTopicReviewedAnswer(request);
}
@SdkInternalApi
final BatchCreateTopicReviewedAnswerResult executeBatchCreateTopicReviewedAnswer(BatchCreateTopicReviewedAnswerRequest batchCreateTopicReviewedAnswerRequest) {
ExecutionContext executionContext = createExecutionContext(batchCreateTopicReviewedAnswerRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new BatchCreateTopicReviewedAnswerRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(batchCreateTopicReviewedAnswerRequest));
// 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, "BatchCreateTopicReviewedAnswer");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new BatchCreateTopicReviewedAnswerResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Deletes reviewed answers for Q Topic.
*
*
* @param batchDeleteTopicReviewedAnswerRequest
* @return Result of the BatchDeleteTopicReviewedAnswer 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
* credentials.
* @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 ConflictException
* Updating or deleting a resource can cause an inconsistent state.
* @throws InternalFailureException
* An internal failure occurred.
* @sample AmazonQuickSight.BatchDeleteTopicReviewedAnswer
* @see AWS API Documentation
*/
@Override
public BatchDeleteTopicReviewedAnswerResult batchDeleteTopicReviewedAnswer(BatchDeleteTopicReviewedAnswerRequest request) {
request = beforeClientExecution(request);
return executeBatchDeleteTopicReviewedAnswer(request);
}
@SdkInternalApi
final BatchDeleteTopicReviewedAnswerResult executeBatchDeleteTopicReviewedAnswer(BatchDeleteTopicReviewedAnswerRequest batchDeleteTopicReviewedAnswerRequest) {
ExecutionContext executionContext = createExecutionContext(batchDeleteTopicReviewedAnswerRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new BatchDeleteTopicReviewedAnswerRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(batchDeleteTopicReviewedAnswerRequest));
// 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, "BatchDeleteTopicReviewedAnswer");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new BatchDeleteTopicReviewedAnswerResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* 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
* credentials.
* @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
* credentials.
* @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.
*
*
* 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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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 Amazon Web Services
* 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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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 refresh schedule for a dataset. You can create up to 5 different schedules for a single dataset.
*
*
* @param createRefreshScheduleRequest
* @return Result of the CreateRefreshSchedule 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
* credentials.
* @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.
* @sample AmazonQuickSight.CreateRefreshSchedule
* @see AWS API Documentation
*/
@Override
public CreateRefreshScheduleResult createRefreshSchedule(CreateRefreshScheduleRequest request) {
request = beforeClientExecution(request);
return executeCreateRefreshSchedule(request);
}
@SdkInternalApi
final CreateRefreshScheduleResult executeCreateRefreshSchedule(CreateRefreshScheduleRequest createRefreshScheduleRequest) {
ExecutionContext executionContext = createExecutionContext(createRefreshScheduleRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateRefreshScheduleRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createRefreshScheduleRequest));
// 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, "CreateRefreshSchedule");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateRefreshScheduleResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Use CreateRoleMembership
to add an existing Amazon QuickSight group to an existing role.
*
*
* @param createRoleMembershipRequest
* @return Result of the CreateRoleMembership 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
* credentials.
* @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.CreateRoleMembership
* @see AWS API Documentation
*/
@Override
public CreateRoleMembershipResult createRoleMembership(CreateRoleMembershipRequest request) {
request = beforeClientExecution(request);
return executeCreateRoleMembership(request);
}
@SdkInternalApi
final CreateRoleMembershipResult executeCreateRoleMembership(CreateRoleMembershipRequest createRoleMembershipRequest) {
ExecutionContext executionContext = createExecutionContext(createRoleMembershipRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateRoleMembershipRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createRoleMembershipRequest));
// 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, "CreateRoleMembership");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateRoleMembershipResultJsonUnmarshaller());
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
* credentials.
* @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
* credentials.
* @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);
}
}
/**
*
* Creates a new Q topic.
*
*
* @param createTopicRequest
* @return Result of the CreateTopic 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
* credentials.
* @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.CreateTopic
* @see AWS API
* Documentation
*/
@Override
public CreateTopicResult createTopic(CreateTopicRequest request) {
request = beforeClientExecution(request);
return executeCreateTopic(request);
}
@SdkInternalApi
final CreateTopicResult executeCreateTopic(CreateTopicRequest createTopicRequest) {
ExecutionContext executionContext = createExecutionContext(createTopicRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateTopicRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createTopicRequest));
// 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, "CreateTopic");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateTopicResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Creates a topic refresh schedule.
*
*
* @param createTopicRefreshScheduleRequest
* @return Result of the CreateTopicRefreshSchedule 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
* credentials.
* @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.CreateTopicRefreshSchedule
* @see AWS API Documentation
*/
@Override
public CreateTopicRefreshScheduleResult createTopicRefreshSchedule(CreateTopicRefreshScheduleRequest request) {
request = beforeClientExecution(request);
return executeCreateTopicRefreshSchedule(request);
}
@SdkInternalApi
final CreateTopicRefreshScheduleResult executeCreateTopicRefreshSchedule(CreateTopicRefreshScheduleRequest createTopicRefreshScheduleRequest) {
ExecutionContext executionContext = createExecutionContext(createTopicRefreshScheduleRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateTopicRefreshScheduleRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(createTopicRefreshScheduleRequest));
// 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, "CreateTopicRefreshSchedule");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new CreateTopicRefreshScheduleResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Creates a new VPC connection.
*
*
* @param createVPCConnectionRequest
* @return Result of the CreateVPCConnection 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
* credentials.
* @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 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.CreateVPCConnection
* @see AWS
* API Documentation
*/
@Override
public CreateVPCConnectionResult createVPCConnection(CreateVPCConnectionRequest request) {
request = beforeClientExecution(request);
return executeCreateVPCConnection(request);
}
@SdkInternalApi
final CreateVPCConnectionResult executeCreateVPCConnection(CreateVPCConnectionRequest createVPCConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(createVPCConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new CreateVPCConnectionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createVPCConnectionRequest));
// 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, "CreateVPCConnection");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateVPCConnectionResultJsonUnmarshaller());
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
* credentials.
* @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 LimitExceededException
* A limit is exceeded.
* @throws PreconditionNotMetException
* One or more preconditions aren't met.
* @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
* credentials.
* @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
* credentials.
* @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 dataset refresh properties of the dataset.
*
*
* @param deleteDataSetRefreshPropertiesRequest
* @return Result of the DeleteDataSetRefreshProperties 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
* credentials.
* @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 ConflictException
* Updating or deleting a resource can cause an inconsistent state.
* @throws InternalFailureException
* An internal failure occurred.
* @sample AmazonQuickSight.DeleteDataSetRefreshProperties
* @see AWS API Documentation
*/
@Override
public DeleteDataSetRefreshPropertiesResult deleteDataSetRefreshProperties(DeleteDataSetRefreshPropertiesRequest request) {
request = beforeClientExecution(request);
return executeDeleteDataSetRefreshProperties(request);
}
@SdkInternalApi
final DeleteDataSetRefreshPropertiesResult executeDeleteDataSetRefreshProperties(DeleteDataSetRefreshPropertiesRequest deleteDataSetRefreshPropertiesRequest) {
ExecutionContext executionContext = createExecutionContext(deleteDataSetRefreshPropertiesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteDataSetRefreshPropertiesRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(deleteDataSetRefreshPropertiesRequest));
// 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, "DeleteDataSetRefreshProperties");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteDataSetRefreshPropertiesResultJsonUnmarshaller());
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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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 all access scopes and authorized targets that are associated with a service from the Amazon QuickSight
* IAM Identity Center application.
*
*
* This operation is only supported for Amazon QuickSight accounts that use IAM Identity Center.
*
*
* @param deleteIdentityPropagationConfigRequest
* @return Result of the DeleteIdentityPropagationConfig 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
* credentials.
* @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.DeleteIdentityPropagationConfig
* @see AWS API Documentation
*/
@Override
public DeleteIdentityPropagationConfigResult deleteIdentityPropagationConfig(DeleteIdentityPropagationConfigRequest request) {
request = beforeClientExecution(request);
return executeDeleteIdentityPropagationConfig(request);
}
@SdkInternalApi
final DeleteIdentityPropagationConfigResult executeDeleteIdentityPropagationConfig(
DeleteIdentityPropagationConfigRequest deleteIdentityPropagationConfigRequest) {
ExecutionContext executionContext = createExecutionContext(deleteIdentityPropagationConfigRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteIdentityPropagationConfigRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(deleteIdentityPropagationConfigRequest));
// 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, "DeleteIdentityPropagationConfig");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteIdentityPropagationConfigResultJsonUnmarshaller());
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
* credentials.
* @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 refresh schedule from a dataset.
*
*
* @param deleteRefreshScheduleRequest
* @return Result of the DeleteRefreshSchedule 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
* credentials.
* @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 InternalFailureException
* An internal failure occurred.
* @sample AmazonQuickSight.DeleteRefreshSchedule
* @see AWS API Documentation
*/
@Override
public DeleteRefreshScheduleResult deleteRefreshSchedule(DeleteRefreshScheduleRequest request) {
request = beforeClientExecution(request);
return executeDeleteRefreshSchedule(request);
}
@SdkInternalApi
final DeleteRefreshScheduleResult executeDeleteRefreshSchedule(DeleteRefreshScheduleRequest deleteRefreshScheduleRequest) {
ExecutionContext executionContext = createExecutionContext(deleteRefreshScheduleRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteRefreshScheduleRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteRefreshScheduleRequest));
// 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, "DeleteRefreshSchedule");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory
.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteRefreshScheduleResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Removes custom permissions from the role.
*
*
* @param deleteRoleCustomPermissionRequest
* @return Result of the DeleteRoleCustomPermission 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
* credentials.
* @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.DeleteRoleCustomPermission
* @see AWS API Documentation
*/
@Override
public DeleteRoleCustomPermissionResult deleteRoleCustomPermission(DeleteRoleCustomPermissionRequest request) {
request = beforeClientExecution(request);
return executeDeleteRoleCustomPermission(request);
}
@SdkInternalApi
final DeleteRoleCustomPermissionResult executeDeleteRoleCustomPermission(DeleteRoleCustomPermissionRequest deleteRoleCustomPermissionRequest) {
ExecutionContext executionContext = createExecutionContext(deleteRoleCustomPermissionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteRoleCustomPermissionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(deleteRoleCustomPermissionRequest));
// 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, "DeleteRoleCustomPermission");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteRoleCustomPermissionResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Removes a group from a role.
*
*
* @param deleteRoleMembershipRequest
* @return Result of the DeleteRoleMembership 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
* credentials.
* @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.DeleteRoleMembership
* @see AWS API Documentation
*/
@Override
public DeleteRoleMembershipResult deleteRoleMembership(DeleteRoleMembershipRequest request) {
request = beforeClientExecution(request);
return executeDeleteRoleMembership(request);
}
@SdkInternalApi
final DeleteRoleMembershipResult executeDeleteRoleMembership(DeleteRoleMembershipRequest deleteRoleMembershipRequest) {
ExecutionContext executionContext = createExecutionContext(deleteRoleMembershipRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteRoleMembershipRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteRoleMembershipRequest));
// 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, "DeleteRoleMembership");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteRoleMembershipResultJsonUnmarshaller());
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
* credentials.
* @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 a topic.
*
*
* @param deleteTopicRequest
* @return Result of the DeleteTopic 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
* credentials.
* @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 ConflictException
* Updating or deleting a resource can cause an inconsistent state.
* @throws InternalFailureException
* An internal failure occurred.
* @sample AmazonQuickSight.DeleteTopic
* @see AWS API
* Documentation
*/
@Override
public DeleteTopicResult deleteTopic(DeleteTopicRequest request) {
request = beforeClientExecution(request);
return executeDeleteTopic(request);
}
@SdkInternalApi
final DeleteTopicResult executeDeleteTopic(DeleteTopicRequest deleteTopicRequest) {
ExecutionContext executionContext = createExecutionContext(deleteTopicRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteTopicRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteTopicRequest));
// 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, "DeleteTopic");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteTopicResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Deletes a topic refresh schedule.
*
*
* @param deleteTopicRefreshScheduleRequest
* @return Result of the DeleteTopicRefreshSchedule 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
* credentials.
* @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.DeleteTopicRefreshSchedule
* @see AWS API Documentation
*/
@Override
public DeleteTopicRefreshScheduleResult deleteTopicRefreshSchedule(DeleteTopicRefreshScheduleRequest request) {
request = beforeClientExecution(request);
return executeDeleteTopicRefreshSchedule(request);
}
@SdkInternalApi
final DeleteTopicRefreshScheduleResult executeDeleteTopicRefreshSchedule(DeleteTopicRefreshScheduleRequest deleteTopicRefreshScheduleRequest) {
ExecutionContext executionContext = createExecutionContext(deleteTopicRefreshScheduleRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteTopicRefreshScheduleRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(deleteTopicRefreshScheduleRequest));
// 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, "DeleteTopicRefreshSchedule");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DeleteTopicRefreshScheduleResultJsonUnmarshaller());
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 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
* credentials.
* @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
* credentials.
* @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);
}
}
/**
*
* Deletes a VPC connection.
*
*
* @param deleteVPCConnectionRequest
* @return Result of the DeleteVPCConnection 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
* credentials.
* @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 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.DeleteVPCConnection
* @see AWS
* API Documentation
*/
@Override
public DeleteVPCConnectionResult deleteVPCConnection(DeleteVPCConnectionRequest request) {
request = beforeClientExecution(request);
return executeDeleteVPCConnection(request);
}
@SdkInternalApi
final DeleteVPCConnectionResult executeDeleteVPCConnection(DeleteVPCConnectionRequest deleteVPCConnectionRequest) {
ExecutionContext executionContext = createExecutionContext(deleteVPCConnectionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DeleteVPCConnectionRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteVPCConnectionRequest));
// 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, "DeleteVPCConnection");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteVPCConnectionResultJsonUnmarshaller());
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:
*
*
* -
*
* Use command line
* options.
*
*
* -
*
* Use named profiles.
*
*
* -
*
* Run aws configure
to change your default Amazon Web Services Region. Use Enter to key the same
* settings for your keys. For more information, see Configuring the CLI.
*
*
*
*
* -
*
* Namespace
- A QuickSight namespace is a partition that contains users and assets (data sources,
* datasets, dashboards, and so on). To access assets that are in a specific namespace, users and groups must also
* be part of the same namespace. People who share a namespace are completely isolated from users and assets in
* other namespaces, even if they are in the same 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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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);
}
}
/**
*
* Describes an existing export job.
*
*
* Poll job descriptions after a job starts to know the status of the job. When a job succeeds, a URL is provided to
* download the exported assets' data from. Download URLs are valid for five minutes after they are generated. You
* can call the DescribeAssetBundleExportJob
API for a new download URL as needed.
*
*
* Job descriptions are available for 14 days after the job starts.
*
*
* @param describeAssetBundleExportJobRequest
* @return Result of the DescribeAssetBundleExportJob operation returned by the service.
* @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 ThrottlingException
* Access is throttled.
* @throws ResourceNotFoundException
* One or more resources can't be found.
* @sample AmazonQuickSight.DescribeAssetBundleExportJob
* @see AWS API Documentation
*/
@Override
public DescribeAssetBundleExportJobResult describeAssetBundleExportJob(DescribeAssetBundleExportJobRequest request) {
request = beforeClientExecution(request);
return executeDescribeAssetBundleExportJob(request);
}
@SdkInternalApi
final DescribeAssetBundleExportJobResult executeDescribeAssetBundleExportJob(DescribeAssetBundleExportJobRequest describeAssetBundleExportJobRequest) {
ExecutionContext executionContext = createExecutionContext(describeAssetBundleExportJobRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeAssetBundleExportJobRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeAssetBundleExportJobRequest));
// 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, "DescribeAssetBundleExportJob");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeAssetBundleExportJobResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes an existing import job.
*
*
* Poll job descriptions after starting a job to know when it has succeeded or failed. Job descriptions are
* available for 14 days after job starts.
*
*
* @param describeAssetBundleImportJobRequest
* @return Result of the DescribeAssetBundleImportJob operation returned by the service.
* @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 ThrottlingException
* Access is throttled.
* @throws ResourceNotFoundException
* One or more resources can't be found.
* @sample AmazonQuickSight.DescribeAssetBundleImportJob
* @see AWS API Documentation
*/
@Override
public DescribeAssetBundleImportJobResult describeAssetBundleImportJob(DescribeAssetBundleImportJobRequest request) {
request = beforeClientExecution(request);
return executeDescribeAssetBundleImportJob(request);
}
@SdkInternalApi
final DescribeAssetBundleImportJobResult executeDescribeAssetBundleImportJob(DescribeAssetBundleImportJobRequest describeAssetBundleImportJobRequest) {
ExecutionContext executionContext = createExecutionContext(describeAssetBundleImportJobRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeAssetBundleImportJobRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeAssetBundleImportJobRequest));
// 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, "DescribeAssetBundleImportJob");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeAssetBundleImportJobResultJsonUnmarshaller());
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
* credentials.
* @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
* credentials.
* @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 an existing snapshot job.
*
*
* Poll job descriptions after a job starts to know the status of the job. For information on available status
* codes, see JobStatus
.
*
*
* @param describeDashboardSnapshotJobRequest
* @return Result of the DescribeDashboardSnapshotJob 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
* credentials.
* @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.DescribeDashboardSnapshotJob
* @see AWS API Documentation
*/
@Override
public DescribeDashboardSnapshotJobResult describeDashboardSnapshotJob(DescribeDashboardSnapshotJobRequest request) {
request = beforeClientExecution(request);
return executeDescribeDashboardSnapshotJob(request);
}
@SdkInternalApi
final DescribeDashboardSnapshotJobResult executeDescribeDashboardSnapshotJob(DescribeDashboardSnapshotJobRequest describeDashboardSnapshotJobRequest) {
ExecutionContext executionContext = createExecutionContext(describeDashboardSnapshotJobRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeDashboardSnapshotJobRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeDashboardSnapshotJobRequest));
// 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, "DescribeDashboardSnapshotJob");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeDashboardSnapshotJobResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes the result of an existing snapshot job that has finished running.
*
*
* A finished snapshot job will return a COMPLETED
or FAILED
status when you poll the job
* with a DescribeDashboardSnapshotJob
API call.
*
*
* If the job has not finished running, this operation returns a message that says
* Dashboard Snapshot Job with id <SnapshotjobId> has not reached a terminal state.
.
*
*
* @param describeDashboardSnapshotJobResultRequest
* @return Result of the DescribeDashboardSnapshotJobResult 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
* credentials.
* @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 PreconditionNotMetException
* One or more preconditions aren't met.
* @throws InternalFailureException
* An internal failure occurred.
* @sample AmazonQuickSight.DescribeDashboardSnapshotJobResult
* @see AWS API Documentation
*/
@Override
public DescribeDashboardSnapshotJobResultResult describeDashboardSnapshotJobResult(DescribeDashboardSnapshotJobResultRequest request) {
request = beforeClientExecution(request);
return executeDescribeDashboardSnapshotJobResult(request);
}
@SdkInternalApi
final DescribeDashboardSnapshotJobResultResult executeDescribeDashboardSnapshotJobResult(
DescribeDashboardSnapshotJobResultRequest describeDashboardSnapshotJobResultRequest) {
ExecutionContext executionContext = createExecutionContext(describeDashboardSnapshotJobResultRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeDashboardSnapshotJobResultRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeDashboardSnapshotJobResultRequest));
// 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, "DescribeDashboardSnapshotJobResult");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeDashboardSnapshotJobResultResultJsonUnmarshaller());
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
* credentials.
* @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
* credentials.
* @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 the refresh properties of a dataset.
*
*
* @param describeDataSetRefreshPropertiesRequest
* @return Result of the DescribeDataSetRefreshProperties 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
* credentials.
* @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 PreconditionNotMetException
* One or more preconditions aren't met.
* @throws InternalFailureException
* An internal failure occurred.
* @sample AmazonQuickSight.DescribeDataSetRefreshProperties
* @see AWS API Documentation
*/
@Override
public DescribeDataSetRefreshPropertiesResult describeDataSetRefreshProperties(DescribeDataSetRefreshPropertiesRequest request) {
request = beforeClientExecution(request);
return executeDescribeDataSetRefreshProperties(request);
}
@SdkInternalApi
final DescribeDataSetRefreshPropertiesResult executeDescribeDataSetRefreshProperties(
DescribeDataSetRefreshPropertiesRequest describeDataSetRefreshPropertiesRequest) {
ExecutionContext executionContext = createExecutionContext(describeDataSetRefreshPropertiesRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeDataSetRefreshPropertiesRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeDataSetRefreshPropertiesRequest));
// 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, "DescribeDataSetRefreshProperties");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeDataSetRefreshPropertiesResultJsonUnmarshaller());
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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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.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
* credentials.
* @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.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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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
* credentials.
* @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 all customer managed key registrations in a Amazon QuickSight account.
*
*
* @param describeKeyRegistrationRequest
* @return Result of the DescribeKeyRegistration 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
* credentials.
* @throws InvalidParameterValueException
* One or more parameters has a value that isn't valid.
* @throws ThrottlingException
* Access is throttled.
* @throws InternalFailureException
* An internal failure occurred.
* @sample AmazonQuickSight.DescribeKeyRegistration
* @see AWS API Documentation
*/
@Override
public DescribeKeyRegistrationResult describeKeyRegistration(DescribeKeyRegistrationRequest request) {
request = beforeClientExecution(request);
return executeDescribeKeyRegistration(request);
}
@SdkInternalApi
final DescribeKeyRegistrationResult executeDescribeKeyRegistration(DescribeKeyRegistrationRequest describeKeyRegistrationRequest) {
ExecutionContext executionContext = createExecutionContext(describeKeyRegistrationRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeKeyRegistrationRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeKeyRegistrationRequest));
// 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, "DescribeKeyRegistration");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeKeyRegistrationResultJsonUnmarshaller());
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
* credentials.
* @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);
}
}
/**
*
* Provides a summary of a refresh schedule.
*
*
* @param describeRefreshScheduleRequest
* @return Result of the DescribeRefreshSchedule 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
* credentials.
* @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 InternalFailureException
* An internal failure occurred.
* @sample AmazonQuickSight.DescribeRefreshSchedule
* @see AWS API Documentation
*/
@Override
public DescribeRefreshScheduleResult describeRefreshSchedule(DescribeRefreshScheduleRequest request) {
request = beforeClientExecution(request);
return executeDescribeRefreshSchedule(request);
}
@SdkInternalApi
final DescribeRefreshScheduleResult executeDescribeRefreshSchedule(DescribeRefreshScheduleRequest describeRefreshScheduleRequest) {
ExecutionContext executionContext = createExecutionContext(describeRefreshScheduleRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeRefreshScheduleRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeRefreshScheduleRequest));
// 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, "DescribeRefreshSchedule");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeRefreshScheduleResultJsonUnmarshaller());
response = invoke(request, responseHandler, executionContext);
return response.getAwsResponse();
} finally {
endClientExecution(awsRequestMetrics, request, response);
}
}
/**
*
* Describes all custom permissions that are mapped to a role.
*
*
* @param describeRoleCustomPermissionRequest
* @return Result of the DescribeRoleCustomPermission 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
* credentials.
* @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.DescribeRoleCustomPermission
* @see AWS API Documentation
*/
@Override
public DescribeRoleCustomPermissionResult describeRoleCustomPermission(DescribeRoleCustomPermissionRequest request) {
request = beforeClientExecution(request);
return executeDescribeRoleCustomPermission(request);
}
@SdkInternalApi
final DescribeRoleCustomPermissionResult executeDescribeRoleCustomPermission(DescribeRoleCustomPermissionRequest describeRoleCustomPermissionRequest) {
ExecutionContext executionContext = createExecutionContext(describeRoleCustomPermissionRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request request = null;
Response response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new DescribeRoleCustomPermissionRequestProtocolMarshaller(protocolFactory).marshall(super
.beforeMarshalling(describeRoleCustomPermissionRequest));
// 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, "DescribeRoleCustomPermission");
request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
new DescribeRoleCustomPermissionResultJsonUnmarshaller());
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
* credentials.
* @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.
*
*
*