putAccountDataRetention method

Future<PutAccountDataRetentionResponse> putAccountDataRetention({
  1. required DataRetentionMode mode,
})

Sets the account-wide data retention mode for Amazon Bedrock.

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

Parameter mode : The data retention mode to set for the account.

Implementation

Future<PutAccountDataRetentionResponse> putAccountDataRetention({
  required DataRetentionMode mode,
}) async {
  final $payload = <String, dynamic>{
    'mode': mode.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/data-retention',
    exceptionFnMap: _exceptionFns,
  );
  return PutAccountDataRetentionResponse.fromJson(response);
}