createBrand method

Future<CreateBrandResponse> createBrand({
  1. required String awsAccountId,
  2. required String brandId,
  3. BrandDefinition? brandDefinition,
  4. List<Tag>? tags,
})

Creates an Quick Sight brand.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw InvalidRequestException. May throw LimitExceededException. May throw ThrottlingException.

Parameter awsAccountId : The ID of the Amazon Web Services account that owns the brand.

Parameter brandId : The ID of the Quick brand.

Parameter brandDefinition : The definition of the brand.

Parameter tags : A map of the key-value pairs that are assigned to the brand.

Implementation

Future<CreateBrandResponse> createBrand({
  required String awsAccountId,
  required String brandId,
  BrandDefinition? brandDefinition,
  List<Tag>? tags,
}) async {
  final $payload = <String, dynamic>{
    if (brandDefinition != null) 'BrandDefinition': brandDefinition,
    if (tags != null) 'Tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/accounts/${Uri.encodeComponent(awsAccountId)}/brands/${Uri.encodeComponent(brandId)}',
    exceptionFnMap: _exceptionFns,
  );
  return CreateBrandResponse.fromJson(response);
}