updateConnector method

Future<UpdateConnectorResponse> updateConnector({
  1. required String connectorArn,
  2. String? description,
  3. ProviderDetailUpdate? providerDetail,
})

Updates the description or provider-specific configuration details of an existing connector.

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

Parameter connectorArn : The Amazon Resource Name (ARN) of the connector to update.

Parameter description : The updated description of the connector.

Parameter providerDetail : The updated provider-specific configuration details for the connector.

Implementation

Future<UpdateConnectorResponse> updateConnector({
  required String connectorArn,
  String? description,
  ProviderDetailUpdate? providerDetail,
}) async {
  final $payload = <String, dynamic>{
    'connectorArn': connectorArn,
    if (description != null) 'description': description,
    if (providerDetail != null) 'providerDetail': providerDetail,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/connector/update',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateConnectorResponse.fromJson(response);
}