Wählen Sie Ihre Cookie-Einstellungen aus

Wir verwenden essentielle Cookies und ähnliche Tools, die für die Bereitstellung unserer Website und Services erforderlich sind. Wir verwenden Performance-Cookies, um anonyme Statistiken zu sammeln, damit wir verstehen können, wie Kunden unsere Website nutzen, und Verbesserungen vornehmen können. Essentielle Cookies können nicht deaktiviert werden, aber Sie können auf „Anpassen“ oder „Ablehnen“ klicken, um Performance-Cookies abzulehnen.

Wenn Sie damit einverstanden sind, verwenden AWS und zugelassene Drittanbieter auch Cookies, um nützliche Features der Website bereitzustellen, Ihre Präferenzen zu speichern und relevante Inhalte, einschließlich relevanter Werbung, anzuzeigen. Um alle nicht notwendigen Cookies zu akzeptieren oder abzulehnen, klicken Sie auf „Akzeptieren“ oder „Ablehnen“. Um detailliertere Entscheidungen zu treffen, klicken Sie auf „Anpassen“.

CreateMatchingWorkflowMit einem AWS SDK verwenden

Fokusmodus
CreateMatchingWorkflowMit einem AWS SDK verwenden - AWS SDK-Codebeispiele

Weitere AWS SDK-Beispiele sind im Repo AWS Doc SDK Examples GitHub verfügbar.

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

Weitere AWS SDK-Beispiele sind im Repo AWS Doc SDK Examples GitHub verfügbar.

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

Das folgende Codebeispiel zeigt, wie es verwendet wirdCreateMatchingWorkflow.

Java
SDK für Java 2.x
Anmerkung

Es gibt noch mehr dazu GitHub. Sie sehen das vollständige Beispiel und erfahren, wie Sie das AWS -Code-Beispiel-Repository einrichten und ausführen.

/** * Creates an asynchronous CompletableFuture to manage the creation of a matching workflow. * * @param roleARN the AWS IAM role ARN to be used for the workflow execution * @param workflowName the name of the workflow to be created * @param outputBucket the S3 bucket path where the workflow output will be stored * @param jsonGlueTableArn the ARN of the Glue Data Catalog table to be used as the input source * @param jsonErSchemaMappingName the name of the schema to be used for the input source * @return a CompletableFuture that, when completed, will return the ARN of the created workflow */ public CompletableFuture<String> createMatchingWorkflowAsync( String roleARN , String workflowName , String outputBucket , String jsonGlueTableArn , String jsonErSchemaMappingName , String csvGlueTableArn , String csvErSchemaMappingName) { InputSource jsonInputSource = InputSource.builder() .inputSourceARN(jsonGlueTableArn) .schemaName(jsonErSchemaMappingName) .applyNormalization(false) .build(); InputSource csvInputSource = InputSource.builder() .inputSourceARN(csvGlueTableArn) .schemaName(csvErSchemaMappingName) .applyNormalization(false) .build(); OutputAttribute idOutputAttribute = OutputAttribute.builder() .name("id") .build(); OutputAttribute nameOutputAttribute = OutputAttribute.builder() .name("name") .build(); OutputAttribute emailOutputAttribute = OutputAttribute.builder() .name("email") .build(); OutputAttribute phoneOutputAttribute = OutputAttribute.builder() .name("phone") .build(); OutputSource outputSource = OutputSource.builder() .outputS3Path("s3://" + outputBucket + "/eroutput") .output(idOutputAttribute, nameOutputAttribute, emailOutputAttribute, phoneOutputAttribute) .applyNormalization(false) .build(); ResolutionTechniques resolutionType = ResolutionTechniques.builder() .resolutionType(ResolutionType.ML_MATCHING) .build(); CreateMatchingWorkflowRequest workflowRequest = CreateMatchingWorkflowRequest.builder() .roleArn(roleARN) .description("Created by using the AWS SDK for Java") .workflowName(workflowName) .inputSourceConfig(List.of(jsonInputSource, csvInputSource)) .outputSourceConfig(List.of(outputSource)) .resolutionTechniques(resolutionType) .build(); return getResolutionAsyncClient().createMatchingWorkflow(workflowRequest) .whenComplete((response, exception) -> { if (response != null) { logger.info("Workflow created successfully."); } else { Throwable cause = exception.getCause(); if (cause instanceof ValidationException) { throw new CompletionException("Invalid request: Please check input parameters.", cause); } if (cause instanceof ConflictException) { throw new CompletionException("A conflicting workflow already exists. Resolve conflicts before proceeding.", cause); } throw new CompletionException("Failed to create workflow: " + exception.getMessage(), exception); } }) .thenApply(CreateMatchingWorkflowResponse::workflowArn); }
SDK für Java 2.x
Anmerkung

Es gibt noch mehr dazu GitHub. Sie sehen das vollständige Beispiel und erfahren, wie Sie das AWS -Code-Beispiel-Repository einrichten und ausführen.

/** * Creates an asynchronous CompletableFuture to manage the creation of a matching workflow. * * @param roleARN the AWS IAM role ARN to be used for the workflow execution * @param workflowName the name of the workflow to be created * @param outputBucket the S3 bucket path where the workflow output will be stored * @param jsonGlueTableArn the ARN of the Glue Data Catalog table to be used as the input source * @param jsonErSchemaMappingName the name of the schema to be used for the input source * @return a CompletableFuture that, when completed, will return the ARN of the created workflow */ public CompletableFuture<String> createMatchingWorkflowAsync( String roleARN , String workflowName , String outputBucket , String jsonGlueTableArn , String jsonErSchemaMappingName , String csvGlueTableArn , String csvErSchemaMappingName) { InputSource jsonInputSource = InputSource.builder() .inputSourceARN(jsonGlueTableArn) .schemaName(jsonErSchemaMappingName) .applyNormalization(false) .build(); InputSource csvInputSource = InputSource.builder() .inputSourceARN(csvGlueTableArn) .schemaName(csvErSchemaMappingName) .applyNormalization(false) .build(); OutputAttribute idOutputAttribute = OutputAttribute.builder() .name("id") .build(); OutputAttribute nameOutputAttribute = OutputAttribute.builder() .name("name") .build(); OutputAttribute emailOutputAttribute = OutputAttribute.builder() .name("email") .build(); OutputAttribute phoneOutputAttribute = OutputAttribute.builder() .name("phone") .build(); OutputSource outputSource = OutputSource.builder() .outputS3Path("s3://" + outputBucket + "/eroutput") .output(idOutputAttribute, nameOutputAttribute, emailOutputAttribute, phoneOutputAttribute) .applyNormalization(false) .build(); ResolutionTechniques resolutionType = ResolutionTechniques.builder() .resolutionType(ResolutionType.ML_MATCHING) .build(); CreateMatchingWorkflowRequest workflowRequest = CreateMatchingWorkflowRequest.builder() .roleArn(roleARN) .description("Created by using the AWS SDK for Java") .workflowName(workflowName) .inputSourceConfig(List.of(jsonInputSource, csvInputSource)) .outputSourceConfig(List.of(outputSource)) .resolutionTechniques(resolutionType) .build(); return getResolutionAsyncClient().createMatchingWorkflow(workflowRequest) .whenComplete((response, exception) -> { if (response != null) { logger.info("Workflow created successfully."); } else { Throwable cause = exception.getCause(); if (cause instanceof ValidationException) { throw new CompletionException("Invalid request: Please check input parameters.", cause); } if (cause instanceof ConflictException) { throw new CompletionException("A conflicting workflow already exists. Resolve conflicts before proceeding.", cause); } throw new CompletionException("Failed to create workflow: " + exception.getMessage(), exception); } }) .thenApply(CreateMatchingWorkflowResponse::workflowArn); }
DatenschutzNutzungsbedingungen für die WebsiteCookie-Einstellungen
© 2025, Amazon Web Services, Inc. oder Tochtergesellschaften. Alle Rechte vorbehalten.