createBlueprint method

Future<CreateBlueprintResponse> createBlueprint({
  1. required String blueprintName,
  2. required String schema,
  3. required Type type,
  4. BlueprintStage? blueprintStage,
  5. String? clientToken,
  6. EncryptionConfiguration? encryptionConfiguration,
  7. List<Tag>? tags,
})

Creates an Amazon Bedrock Data Automation Blueprint

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

Implementation

Future<CreateBlueprintResponse> createBlueprint({
  required String blueprintName,
  required String schema,
  required Type type,
  BlueprintStage? blueprintStage,
  String? clientToken,
  EncryptionConfiguration? encryptionConfiguration,
  List<Tag>? tags,
}) async {
  final $payload = <String, dynamic>{
    'blueprintName': blueprintName,
    'schema': schema,
    'type': type.value,
    if (blueprintStage != null) 'blueprintStage': blueprintStage.value,
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
    if (encryptionConfiguration != null)
      'encryptionConfiguration': encryptionConfiguration,
    if (tags != null) 'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/blueprints/',
    exceptionFnMap: _exceptionFns,
  );
  return CreateBlueprintResponse.fromJson(response);
}