updateVariantStore method

Future<UpdateVariantStoreResponse> updateVariantStore({
  1. required String name,
  2. String? description,
})
Updates a variant store.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter name : A name for the store.

Parameter description : A description for the store.

Implementation

Future<UpdateVariantStoreResponse> updateVariantStore({
  required String name,
  String? description,
}) async {
  final $payload = <String, dynamic>{
    if (description != null) 'description': description,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/variantStore/${Uri.encodeComponent(name)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateVariantStoreResponse.fromJson(response);
}