associateProactiveEngagementDetails method

Future<void> associateProactiveEngagementDetails({
  1. required List<EmergencyContact> emergencyContactList,
})

Initializes proactive engagement and sets the list of contacts for the DDoS Response Team (DRT) to use. You must provide at least one phone number in the emergency contact list.

After you have initialized proactive engagement using this call, to disable or enable proactive engagement, use the calls DisableProactiveEngagement and EnableProactiveEngagement.

The contacts that you provide in the request replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings and then provide it to this call.

May throw InternalErrorException. May throw InvalidOperationException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw OptimisticLockException.

Parameter emergencyContactList : A list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you for escalations to the DRT and to initiate proactive customer support.

To enable proactive engagement, the contact list must include at least one phone number.

Implementation

Future<void> associateProactiveEngagementDetails({
  required List<EmergencyContact> emergencyContactList,
}) async {
  ArgumentError.checkNotNull(emergencyContactList, 'emergencyContactList');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSShield_20160616.AssociateProactiveEngagementDetails'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'EmergencyContactList': emergencyContactList,
    },
  );
}