updateMember method

Future<void> updateMember({
  1. required String memberId,
  2. required String networkId,
  3. MemberLogPublishingConfiguration? logPublishingConfiguration,
})

Updates a member configuration with new parameters.

Applies only to Hyperledger Fabric.

May throw InvalidRequestException. May throw AccessDeniedException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceErrorException.

Parameter memberId : The unique identifier of the member.

Parameter networkId : The unique identifier of the Managed Blockchain network to which the member belongs.

Parameter logPublishingConfiguration : Configuration properties for publishing to Amazon CloudWatch Logs.

Implementation

Future<void> updateMember({
  required String memberId,
  required String networkId,
  MemberLogPublishingConfiguration? logPublishingConfiguration,
}) async {
  ArgumentError.checkNotNull(memberId, 'memberId');
  _s.validateStringLength(
    'memberId',
    memberId,
    1,
    32,
    isRequired: true,
  );
  ArgumentError.checkNotNull(networkId, 'networkId');
  _s.validateStringLength(
    'networkId',
    networkId,
    1,
    32,
    isRequired: true,
  );
  final $payload = <String, dynamic>{
    if (logPublishingConfiguration != null)
      'LogPublishingConfiguration': logPublishingConfiguration,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri:
        '/networks/${Uri.encodeComponent(networkId)}/members/${Uri.encodeComponent(memberId)}',
    exceptionFnMap: _exceptionFns,
  );
}