deleteRetentionConfiguration method

Future<void> deleteRetentionConfiguration({
  1. required String retentionConfigurationName,
})

Deletes the retention configuration.

May throw InvalidParameterValueException. May throw NoSuchRetentionConfigurationException.

Parameter retentionConfigurationName : The name of the retention configuration to delete.

Implementation

Future<void> deleteRetentionConfiguration({
  required String retentionConfigurationName,
}) async {
  ArgumentError.checkNotNull(
      retentionConfigurationName, 'retentionConfigurationName');
  _s.validateStringLength(
    'retentionConfigurationName',
    retentionConfigurationName,
    1,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'StarlingDoveService.DeleteRetentionConfiguration'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'RetentionConfigurationName': retentionConfigurationName,
    },
  );
}