associateWirelessGatewayWithCertificate method

Future<AssociateWirelessGatewayWithCertificateResponse> associateWirelessGatewayWithCertificate({
  1. required String id,
  2. required String iotCertificateId,
})

Associates a wireless gateway with a certificate.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter id : The ID of the resource to update.

Parameter iotCertificateId : The ID of the certificate to associate with the wireless gateway.

Implementation

Future<AssociateWirelessGatewayWithCertificateResponse>
    associateWirelessGatewayWithCertificate({
  required String id,
  required String iotCertificateId,
}) async {
  final $payload = <String, dynamic>{
    'IotCertificateId': iotCertificateId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/wireless-gateways/${Uri.encodeComponent(id)}/certificate',
    exceptionFnMap: _exceptionFns,
  );
  return AssociateWirelessGatewayWithCertificateResponse.fromJson(response);
}