java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IChainable, INextable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:17.656Z") @Stability(Stable) public class CallAwsService extends TaskStateBase
A StepFunctions task to call an AWS service API.

Example:

 Bucket myBucket;
 CallAwsService getObject = CallAwsService.Builder.create(this, "GetObject")
         .service("s3")
         .action("getObject")
         .parameters(Map.of(
                 "Bucket", myBucket.getBucketName(),
                 "Key", JsonPath.stringAt("$.key")))
         .iamResources(List.of(myBucket.arnForObjects("*")))
         .build();
 
  • Constructor Details

    • CallAwsService

      protected CallAwsService(software.amazon.jsii.JsiiObjectRef objRef)
    • CallAwsService

      protected CallAwsService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CallAwsService

      @Stability(Stable) public CallAwsService(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CallAwsServiceProps props)
      Parameters:
      scope - This parameter is required.
      id - Descriptive identifier for this chainable. This parameter is required.
      props - This parameter is required.
  • Method Details