deleteProtectionGroup method

Future<void> deleteProtectionGroup({
  1. required String protectionGroupId,
})

Removes the specified protection group.

May throw InternalErrorException. May throw OptimisticLockException. May throw ResourceNotFoundException.

Parameter protectionGroupId : The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.

Implementation

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