putInboundDmarcSettings method

Future<void> putInboundDmarcSettings({
  1. required bool enforced,
  2. required String organizationId,
})

Enables or disables a DMARC policy for a given organization.

May throw OrganizationNotFoundException. May throw OrganizationStateException.

Parameter enforced : Enforces or suspends a policy after it's applied.

Parameter organizationId : The ID of the organization that you are applying the DMARC policy to.

Implementation

Future<void> putInboundDmarcSettings({
  required bool enforced,
  required String organizationId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkMailService.PutInboundDmarcSettings'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Enforced': enforced,
      'OrganizationId': organizationId,
    },
  );
}