getDataAutomationProject method

Future<GetDataAutomationProjectResponse> getDataAutomationProject({
  1. required String projectArn,
  2. DataAutomationProjectStage? projectStage,
})

Gets an existing Amazon Bedrock Data Automation Project

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

Parameter projectArn : ARN generated at the server side when a DataAutomationProject is created

Parameter projectStage : Optional field to delete a specific DataAutomationProject stage

Implementation

Future<GetDataAutomationProjectResponse> getDataAutomationProject({
  required String projectArn,
  DataAutomationProjectStage? projectStage,
}) async {
  final $payload = <String, dynamic>{
    if (projectStage != null) 'projectStage': projectStage.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/data-automation-projects/${Uri.encodeComponent(projectArn)}/',
    exceptionFnMap: _exceptionFns,
  );
  return GetDataAutomationProjectResponse.fromJson(response);
}