deleteAccountCustomization method

Future<DeleteAccountCustomizationResponse> deleteAccountCustomization({
  1. required String awsAccountId,
  2. String? namespace,
})

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

May throw AccessDeniedException. May throw InvalidParameterValueException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalFailureException. May throw ResourceUnavailableException.

Parameter awsAccountId : The ID for the AWS account that you want to delete QuickSight customizations from in this AWS Region.

Parameter namespace : The QuickSight namespace that you're deleting the customizations from.

Implementation

Future<DeleteAccountCustomizationResponse> deleteAccountCustomization({
  required String awsAccountId,
  String? namespace,
}) async {
  ArgumentError.checkNotNull(awsAccountId, 'awsAccountId');
  _s.validateStringLength(
    'awsAccountId',
    awsAccountId,
    12,
    12,
    isRequired: true,
  );
  _s.validateStringLength(
    'namespace',
    namespace,
    0,
    64,
  );
  final $query = <String, List<String>>{
    if (namespace != null) 'namespace': [namespace],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/accounts/${Uri.encodeComponent(awsAccountId)}/customizations',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return DeleteAccountCustomizationResponse.fromJson(response);
}