updateResponderGateway method

Future<UpdateResponderGatewayResponse> updateResponderGateway({
  1. required String gatewayId,
  2. required int port,
  3. required Protocol protocol,
  4. String? clientToken,
  5. String? description,
  6. String? domainName,
  7. ListenerConfig? listenerConfig,
  8. ManagedEndpointConfiguration? managedEndpointConfiguration,
  9. TrustStoreConfiguration? trustStoreConfiguration,
})

Updates a responder gateway.

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

Parameter gatewayId : The unique identifier of the gateway.

Parameter port : The networking port to use.

Parameter protocol : The networking protocol to use.

Parameter clientToken : The unique client token.

Parameter description : An optional description for the responder gateway.

Parameter domainName : The domain name for the responder gateway.

Parameter listenerConfig : The listener configuration for the responder gateway.

Parameter managedEndpointConfiguration : The configuration for the managed endpoint.

Parameter trustStoreConfiguration : The configuration of the trust store.

Implementation

Future<UpdateResponderGatewayResponse> updateResponderGateway({
  required String gatewayId,
  required int port,
  required Protocol protocol,
  String? clientToken,
  String? description,
  String? domainName,
  ListenerConfig? listenerConfig,
  ManagedEndpointConfiguration? managedEndpointConfiguration,
  TrustStoreConfiguration? trustStoreConfiguration,
}) async {
  final $payload = <String, dynamic>{
    'port': port,
    'protocol': protocol.value,
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
    if (description != null) 'description': description,
    if (domainName != null) 'domainName': domainName,
    if (listenerConfig != null) 'listenerConfig': listenerConfig,
    if (managedEndpointConfiguration != null)
      'managedEndpointConfiguration': managedEndpointConfiguration,
    if (trustStoreConfiguration != null)
      'trustStoreConfiguration': trustStoreConfiguration,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/responder-gateway/${Uri.encodeComponent(gatewayId)}/update',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateResponderGatewayResponse.fromJson(response);
}