getBlueprint method

Future<GetBlueprintResponse> getBlueprint({
  1. required String blueprintArn,
  2. BlueprintStage? blueprintStage,
  3. String? blueprintVersion,
})

Gets an existing Amazon Bedrock Data Automation Blueprint

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

Parameter blueprintArn : ARN generated at the server side when a Blueprint is created

Parameter blueprintStage : Optional field to get a specific Blueprint stage

Parameter blueprintVersion : Optional field to get a specific Blueprint version

Implementation

Future<GetBlueprintResponse> getBlueprint({
  required String blueprintArn,
  BlueprintStage? blueprintStage,
  String? blueprintVersion,
}) async {
  final $payload = <String, dynamic>{
    if (blueprintStage != null) 'blueprintStage': blueprintStage.value,
    if (blueprintVersion != null) 'blueprintVersion': blueprintVersion,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/blueprints/${Uri.encodeComponent(blueprintArn)}/',
    exceptionFnMap: _exceptionFns,
  );
  return GetBlueprintResponse.fromJson(response);
}