/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.finspacedata; 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.finspacedata.AWSFinSpaceDataClientBuilder; import com.amazonaws.AmazonServiceException; import com.amazonaws.services.finspacedata.model.*; import com.amazonaws.services.finspacedata.model.transform.*; /** * Client for accessing FinSpace Data. All service calls made using this client are blocking, and will not return until * the service call completes. *
*
* The FinSpace APIs let you take actions inside the FinSpace. *
*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSFinSpaceDataClient extends AmazonWebServiceClient implements AWSFinSpaceData { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AWSFinSpaceData.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "finspace-api"; /** 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.1") .withSupportsCbor(false) .withSupportsIon(false) .withContentTypeOverride("application/json") .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ThrottlingException").withExceptionUnmarshaller( com.amazonaws.services.finspacedata.model.transform.ThrottlingExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InternalServerException").withExceptionUnmarshaller( com.amazonaws.services.finspacedata.model.transform.InternalServerExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("LimitExceededException").withExceptionUnmarshaller( com.amazonaws.services.finspacedata.model.transform.LimitExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.finspacedata.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.finspacedata.model.transform.ConflictExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.finspacedata.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ValidationException").withExceptionUnmarshaller( com.amazonaws.services.finspacedata.model.transform.ValidationExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.finspacedata.model.AWSFinSpaceDataException.class)); public static AWSFinSpaceDataClientBuilder builder() { return AWSFinSpaceDataClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on FinSpace Data 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. */ AWSFinSpaceDataClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on FinSpace Data 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. */ AWSFinSpaceDataClient(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("finspace-api.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/finspacedata/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/finspacedata/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *
* Adds a user account to a permission group to grant permissions for actions a user can perform in FinSpace. *
* * @param associateUserToPermissionGroupRequest * @return Result of the AssociateUserToPermissionGroup operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.AssociateUserToPermissionGroup * @see AWS API Documentation */ @Override public AssociateUserToPermissionGroupResult associateUserToPermissionGroup(AssociateUserToPermissionGroupRequest request) { request = beforeClientExecution(request); return executeAssociateUserToPermissionGroup(request); } @SdkInternalApi final AssociateUserToPermissionGroupResult executeAssociateUserToPermissionGroup(AssociateUserToPermissionGroupRequest associateUserToPermissionGroupRequest) { ExecutionContext executionContext = createExecutionContext(associateUserToPermissionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a new Changeset in a FinSpace Dataset. *
* * @param createChangesetRequest * The request for a CreateChangeset operation. * @return Result of the CreateChangeset operation returned by the service. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws LimitExceededException * A limit has exceeded. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.CreateChangeset * @see AWS API * Documentation */ @Override public CreateChangesetResult createChangeset(CreateChangesetRequest request) { request = beforeClientExecution(request); return executeCreateChangeset(request); } @SdkInternalApi final CreateChangesetResult executeCreateChangeset(CreateChangesetRequest createChangesetRequest) { ExecutionContext executionContext = createExecutionContext(createChangesetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a Dataview for a Dataset. *
* * @param createDataViewRequest * Request for creating a data view. * @return Result of the CreateDataView operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws LimitExceededException * A limit has exceeded. * @throws ConflictException * The request conflicts with an existing resource. * @throws ResourceNotFoundException * One or more resources can't be found. * @sample AWSFinSpaceData.CreateDataView * @see AWS API * Documentation */ @Override public CreateDataViewResult createDataView(CreateDataViewRequest request) { request = beforeClientExecution(request); return executeCreateDataView(request); } @SdkInternalApi final CreateDataViewResult executeCreateDataView(CreateDataViewRequest createDataViewRequest) { ExecutionContext executionContext = createExecutionContext(createDataViewRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a new FinSpace Dataset. *
* * @param createDatasetRequest * The request for a CreateDataset operation * @return Result of the CreateDataset operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws LimitExceededException * A limit has exceeded. * @throws ConflictException * The request conflicts with an existing resource. * @throws ResourceNotFoundException * One or more resources can't be found. * @sample AWSFinSpaceData.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* Creates a group of permissions for various actions that a user can perform in FinSpace. *
* * @param createPermissionGroupRequest * @return Result of the CreatePermissionGroup operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws LimitExceededException * A limit has exceeded. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.CreatePermissionGroup * @see AWS * API Documentation */ @Override public CreatePermissionGroupResult createPermissionGroup(CreatePermissionGroupRequest request) { request = beforeClientExecution(request); return executeCreatePermissionGroup(request); } @SdkInternalApi final CreatePermissionGroupResult executeCreatePermissionGroup(CreatePermissionGroupRequest createPermissionGroupRequest) { ExecutionContext executionContext = createExecutionContext(createPermissionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a new user in FinSpace. *
* * @param createUserRequest * @return Result of the CreateUser operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws LimitExceededException * A limit has exceeded. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.CreateUser * @see AWS API * Documentation */ @Override public CreateUserResult createUser(CreateUserRequest request) { request = beforeClientExecution(request); return executeCreateUser(request); } @SdkInternalApi final CreateUserResult executeCreateUser(CreateUserRequest createUserRequest) { ExecutionContext executionContext = createExecutionContext(createUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes a FinSpace Dataset. *
* * @param deleteDatasetRequest * The request for a DeleteDataset operation. * @return Result of the DeleteDataset operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws LimitExceededException * A limit has exceeded. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.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* Deletes a permission group. This action is irreversible. *
* * @param deletePermissionGroupRequest * @return Result of the DeletePermissionGroup operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws LimitExceededException * A limit has exceeded. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.DeletePermissionGroup * @see AWS * API Documentation */ @Override public DeletePermissionGroupResult deletePermissionGroup(DeletePermissionGroupRequest request) { request = beforeClientExecution(request); return executeDeletePermissionGroup(request); } @SdkInternalApi final DeletePermissionGroupResult executeDeletePermissionGroup(DeletePermissionGroupRequest deletePermissionGroupRequest) { ExecutionContext executionContext = createExecutionContext(deletePermissionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Denies access to the FinSpace web application and API for the specified user. *
* * @param disableUserRequest * @return Result of the DisableUser operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.DisableUser * @see AWS API * Documentation */ @Override public DisableUserResult disableUser(DisableUserRequest request) { request = beforeClientExecution(request); return executeDisableUser(request); } @SdkInternalApi final DisableUserResult executeDisableUser(DisableUserRequest disableUserRequest) { ExecutionContext executionContext = createExecutionContext(disableUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Removes a user account from a permission group. *
* * @param disassociateUserFromPermissionGroupRequest * @return Result of the DisassociateUserFromPermissionGroup operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.DisassociateUserFromPermissionGroup * @see AWS API Documentation */ @Override public DisassociateUserFromPermissionGroupResult disassociateUserFromPermissionGroup(DisassociateUserFromPermissionGroupRequest request) { request = beforeClientExecution(request); return executeDisassociateUserFromPermissionGroup(request); } @SdkInternalApi final DisassociateUserFromPermissionGroupResult executeDisassociateUserFromPermissionGroup( DisassociateUserFromPermissionGroupRequest disassociateUserFromPermissionGroupRequest) { ExecutionContext executionContext = createExecutionContext(disassociateUserFromPermissionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Allows the specified user to access the FinSpace web application and API. *
* * @param enableUserRequest * @return Result of the EnableUser operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws LimitExceededException * A limit has exceeded. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.EnableUser * @see AWS API * Documentation */ @Override public EnableUserResult enableUser(EnableUserRequest request) { request = beforeClientExecution(request); return executeEnableUser(request); } @SdkInternalApi final EnableUserResult executeEnableUser(EnableUserRequest enableUserRequest) { ExecutionContext executionContext = createExecutionContext(enableUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Get information about a Changeset. *
* * @param getChangesetRequest * Request to describe a changeset. * @return Result of the GetChangeset operation returned by the service. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.GetChangeset * @see AWS API * Documentation */ @Override public GetChangesetResult getChangeset(GetChangesetRequest request) { request = beforeClientExecution(request); return executeGetChangeset(request); } @SdkInternalApi final GetChangesetResult executeGetChangeset(GetChangesetRequest getChangesetRequest) { ExecutionContext executionContext = createExecutionContext(getChangesetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets information about a Dataview. *
* * @param getDataViewRequest * Request for retrieving a data view detail. Grouped / accessible within a dataset by its dataset id. * @return Result of the GetDataView operation returned by the service. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.GetDataView * @see AWS API * Documentation */ @Override public GetDataViewResult getDataView(GetDataViewRequest request) { request = beforeClientExecution(request); return executeGetDataView(request); } @SdkInternalApi final GetDataViewResult executeGetDataView(GetDataViewRequest getDataViewRequest) { ExecutionContext executionContext = createExecutionContext(getDataViewRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Returns information about a Dataset. *
* * @param getDatasetRequest * Request for the GetDataset operation. * @return Result of the GetDataset operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.GetDataset * @see AWS API * Documentation */ @Override public GetDatasetResult getDataset(GetDatasetRequest request) { request = beforeClientExecution(request); return executeGetDataset(request); } @SdkInternalApi final GetDatasetResult executeGetDataset(GetDatasetRequest getDatasetRequest) { ExecutionContext executionContext = createExecutionContext(getDatasetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Returns the credentials to access the external Dataview from an S3 location. To call this API: *
** You must retrieve the programmatic credentials. *
*
* You must be a member of a FinSpace user group, where the dataset that you want to access has
* Read Dataset Data
permissions.
*
* Retrieves the details of a specific permission group. *
* * @param getPermissionGroupRequest * @return Result of the GetPermissionGroup operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @sample AWSFinSpaceData.GetPermissionGroup * @see AWS * API Documentation */ @Override public GetPermissionGroupResult getPermissionGroup(GetPermissionGroupRequest request) { request = beforeClientExecution(request); return executeGetPermissionGroup(request); } @SdkInternalApi final GetPermissionGroupResult executeGetPermissionGroup(GetPermissionGroupRequest getPermissionGroupRequest) { ExecutionContext executionContext = createExecutionContext(getPermissionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Request programmatic credentials to use with FinSpace SDK. *
* * @param getProgrammaticAccessCredentialsRequest * Request for GetProgrammaticAccessCredentials operation * @return Result of the GetProgrammaticAccessCredentials operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AWSFinSpaceData.GetProgrammaticAccessCredentials * @see AWS API Documentation */ @Override public GetProgrammaticAccessCredentialsResult getProgrammaticAccessCredentials(GetProgrammaticAccessCredentialsRequest request) { request = beforeClientExecution(request); return executeGetProgrammaticAccessCredentials(request); } @SdkInternalApi final GetProgrammaticAccessCredentialsResult executeGetProgrammaticAccessCredentials( GetProgrammaticAccessCredentialsRequest getProgrammaticAccessCredentialsRequest) { ExecutionContext executionContext = createExecutionContext(getProgrammaticAccessCredentialsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Retrieves details for a specific user. *
* * @param getUserRequest * @return Result of the GetUser operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @sample AWSFinSpaceData.GetUser * @see AWS API * Documentation */ @Override public GetUserResult getUser(GetUserRequest request) { request = beforeClientExecution(request); return executeGetUser(request); } @SdkInternalApi final GetUserResult executeGetUser(GetUserRequest getUserRequest) { ExecutionContext executionContext = createExecutionContext(getUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* A temporary Amazon S3 location, where you can copy your files from a source location to stage or use as a scratch * space in FinSpace notebook. *
* * @param getWorkingLocationRequest * @return Result of the GetWorkingLocation operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @sample AWSFinSpaceData.GetWorkingLocation * @see AWS * API Documentation */ @Override public GetWorkingLocationResult getWorkingLocation(GetWorkingLocationRequest request) { request = beforeClientExecution(request); return executeGetWorkingLocation(request); } @SdkInternalApi final GetWorkingLocationResult executeGetWorkingLocation(GetWorkingLocationRequest getWorkingLocationRequest) { ExecutionContext executionContext = createExecutionContext(getWorkingLocationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the FinSpace Changesets for a Dataset. *
* * @param listChangesetsRequest * Request to ListChangesetsRequest. It exposes minimal query filters. * @return Result of the ListChangesets operation returned by the service. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.ListChangesets * @see AWS API * Documentation */ @Override public ListChangesetsResult listChangesets(ListChangesetsRequest request) { request = beforeClientExecution(request); return executeListChangesets(request); } @SdkInternalApi final ListChangesetsResult executeListChangesets(ListChangesetsRequest listChangesetsRequest) { ExecutionContext executionContext = createExecutionContext(listChangesetsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists all available Dataviews for a Dataset. *
* * @param listDataViewsRequest * Request for a list data views. * @return Result of the ListDataViews operation returned by the service. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.ListDataViews * @see AWS API * Documentation */ @Override public ListDataViewsResult listDataViews(ListDataViewsRequest request) { request = beforeClientExecution(request); return executeListDataViews(request); } @SdkInternalApi final ListDataViewsResult executeListDataViews(ListDataViewsRequest listDataViewsRequest) { ExecutionContext executionContext = createExecutionContext(listDataViewsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists all of the active Datasets that a user has access to. *
* * @param listDatasetsRequest * Request for the ListDatasets operation. * @return Result of the ListDatasets operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ThrottlingException * The request was denied due to request throttling. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ConflictException * The request conflicts with an existing resource. * @throws ResourceNotFoundException * One or more resources can't be found. * @sample AWSFinSpaceData.ListDatasets * @see AWS API * Documentation */ @Override public ListDatasetsResult listDatasets(ListDatasetsRequest request) { request = beforeClientExecution(request); return executeListDatasets(request); } @SdkInternalApi final ListDatasetsResult executeListDatasets(ListDatasetsRequest listDatasetsRequest) { ExecutionContext executionContext = createExecutionContext(listDatasetsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists all available permission groups in FinSpace. *
* * @param listPermissionGroupsRequest * @return Result of the ListPermissionGroups operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AWSFinSpaceData.ListPermissionGroups * @see AWS * API Documentation */ @Override public ListPermissionGroupsResult listPermissionGroups(ListPermissionGroupsRequest request) { request = beforeClientExecution(request); return executeListPermissionGroups(request); } @SdkInternalApi final ListPermissionGroupsResult executeListPermissionGroups(ListPermissionGroupsRequest listPermissionGroupsRequest) { ExecutionContext executionContext = createExecutionContext(listPermissionGroupsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists all the permission groups that are associated with a specific user account. *
* * @param listPermissionGroupsByUserRequest * @return Result of the ListPermissionGroupsByUser operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @sample AWSFinSpaceData.ListPermissionGroupsByUser * @see AWS API Documentation */ @Override public ListPermissionGroupsByUserResult listPermissionGroupsByUser(ListPermissionGroupsByUserRequest request) { request = beforeClientExecution(request); return executeListPermissionGroupsByUser(request); } @SdkInternalApi final ListPermissionGroupsByUserResult executeListPermissionGroupsByUser(ListPermissionGroupsByUserRequest listPermissionGroupsByUserRequest) { ExecutionContext executionContext = createExecutionContext(listPermissionGroupsByUserRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists all available user accounts in FinSpace. *
* * @param listUsersRequest * @return Result of the ListUsers operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @sample AWSFinSpaceData.ListUsers * @see AWS API * Documentation */ @Override public ListUsersResult listUsers(ListUsersRequest request) { request = beforeClientExecution(request); return executeListUsers(request); } @SdkInternalApi final ListUsersResult executeListUsers(ListUsersRequest listUsersRequest) { ExecutionContext executionContext = createExecutionContext(listUsersRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists details of all the users in a specific permission group. *
* * @param listUsersByPermissionGroupRequest * @return Result of the ListUsersByPermissionGroup operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @sample AWSFinSpaceData.ListUsersByPermissionGroup * @see AWS API Documentation */ @Override public ListUsersByPermissionGroupResult listUsersByPermissionGroup(ListUsersByPermissionGroupRequest request) { request = beforeClientExecution(request); return executeListUsersByPermissionGroup(request); } @SdkInternalApi final ListUsersByPermissionGroupResult executeListUsersByPermissionGroup(ListUsersByPermissionGroupRequest listUsersByPermissionGroupRequest) { ExecutionContext executionContext = createExecutionContext(listUsersByPermissionGroupRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Resets the password for a specified user ID and generates a temporary one. Only a superuser can reset password * for other users. Resetting the password immediately invalidates the previous password associated with the user. *
* * @param resetUserPasswordRequest * @return Result of the ResetUserPassword operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.ResetUserPassword * @see AWS API * Documentation */ @Override public ResetUserPasswordResult resetUserPassword(ResetUserPasswordRequest request) { request = beforeClientExecution(request); return executeResetUserPassword(request); } @SdkInternalApi final ResetUserPasswordResult executeResetUserPassword(ResetUserPasswordRequest resetUserPasswordRequest) { ExecutionContext executionContext = createExecutionContext(resetUserPasswordRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates a FinSpace Changeset. *
* * @param updateChangesetRequest * Request to update an existing changeset. * @return Result of the UpdateChangeset operation returned by the service. * @throws ResourceNotFoundException * One or more resources can't be found. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ConflictException * The request conflicts with an existing resource. * @sample AWSFinSpaceData.UpdateChangeset * @see AWS API * Documentation */ @Override public UpdateChangesetResult updateChangeset(UpdateChangesetRequest request) { request = beforeClientExecution(request); return executeUpdateChangeset(request); } @SdkInternalApi final UpdateChangesetResult executeUpdateChangeset(UpdateChangesetRequest updateChangesetRequest) { ExecutionContext executionContext = createExecutionContext(updateChangesetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates a FinSpace Dataset. *
* * @param updateDatasetRequest * The request for an UpdateDataset operation * @return Result of the UpdateDataset operation returned by the service. * @throws InternalServerException * The request processing has failed because of an unknown error, exception or failure. * @throws ValidationException * The input fails to satisfy the constraints specified by an AWS service. * @throws ThrottlingException * The request was denied due to request throttling. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ConflictException * The request conflicts with an existing resource. * @throws ResourceNotFoundException * One or more resources can't be found. * @sample AWSFinSpaceData.UpdateDataset * @see AWS API * Documentation */ @Override public UpdateDatasetResult updateDataset(UpdateDatasetRequest request) { request = beforeClientExecution(request); return executeUpdateDataset(request); } @SdkInternalApi final UpdateDatasetResult executeUpdateDataset(UpdateDatasetRequest updateDatasetRequest) { ExecutionContext executionContext = createExecutionContext(updateDatasetRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request
* Modifies the details of a permission group. You cannot modify a permissionGroupID
.
*
* Modifies the details of the specified user account. You cannot update the userId
for a user.
*
* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic
* information for an executed request, you should use this method to retrieve it as soon as possible after
* executing the request.
*
* @param request
* The originally executed request
*
* @return The response metadata for the specified request, or null if none is available.
*/
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return client.getResponseMetadataForRequest(request);
}
/**
* Normal invoke with authentication. Credentials are required and may be overriden at the request level.
**/
private