associateWirelessGatewayWithCertificate method
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);
}