disassociateDistributionWebACL method

Future<DisassociateDistributionWebACLResult> disassociateDistributionWebACL({
  1. required String id,
  2. String? ifMatch,
})

Disassociates a distribution from the WAF web ACL.

May throw AccessDenied. May throw EntityNotFound. May throw InvalidArgument. May throw InvalidIfMatchVersion. May throw PreconditionFailed.

Parameter id : The ID of the distribution.

Parameter ifMatch : The value of the ETag header that you received when retrieving the distribution that you're disassociating from the WAF web ACL.

Implementation

Future<DisassociateDistributionWebACLResult> disassociateDistributionWebACL({
  required String id,
  String? ifMatch,
}) async {
  final headers = <String, String>{
    if (ifMatch != null) 'If-Match': ifMatch.toString(),
  };
  final $result = await _protocol.sendRaw(
    method: 'PUT',
    requestUri:
        '/2020-05-31/distribution/${Uri.encodeComponent(id)}/disassociate-web-acl',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return DisassociateDistributionWebACLResult(
    id: _s.extractXmlStringValue($elem, 'Id'),
    eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
  );
}