What to include for stepfunctions in newer AWS Java SDK 2.x for Maven?

0

Hello.

I'm working on porting from the 1.x to the 2.x AWS Java SDK library. Most of the porting (sns, sqs, secretsmanager, etc.) has been straightforward. However, I'm having trouble finding anything for the stepfunctions client.

I've added:
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sfn</artifactId>
</dependency>

but then, I'm at a loss for finding the new[er] equivalent for the AWSStepFunctions.java class. Oddly enough, there isn't much examples or references out there for this either. The AWS Java SDK 2.x does not have any examples either.

Thanks!

demandé il y a 4 ans560 vues
1 réponse
0

Answer my own question, it looks something like this:

SfnClient stepFunctionsClient = SfnClient.builder().region(Region.US_EAST_1).build();

répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions