confirmCustomerAgreement method

Future<ConfirmCustomerAgreementResponse> confirmCustomerAgreement({
  1. String? agreementName,
})

The confirmation of the terms of agreement when creating the connection/link aggregation group (LAG).

May throw DirectConnectClientException. May throw DirectConnectServerException.

Parameter agreementName : The name of the customer agreement.

Implementation

Future<ConfirmCustomerAgreementResponse> confirmCustomerAgreement({
  String? agreementName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'OvertureService.ConfirmCustomerAgreement'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (agreementName != null) 'agreementName': agreementName,
    },
  );

  return ConfirmCustomerAgreementResponse.fromJson(jsonResponse.body);
}