Interface CallAwsServiceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,TaskStateBaseProps
- All Known Implementing Classes:
CallAwsServiceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.895Z")
@Stability(Stable)
public interface CallAwsServiceProps
extends software.amazon.jsii.JsiiSerializable, TaskStateBaseProps
Properties for calling an AWS service's API action from your state machine.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCallAwsServiceProps
static final class
An implementation forCallAwsServiceProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CallAwsServiceProps.Builder
builder()
The API action to call.default String
The action for the IAM statement that will be added to the state machine role's policy to allow the state machine to make the API call.The resources for the IAM statement that will be added to the state machine role's policy to allow the state machine to make the API call.Parameters for the API action call.The AWS service to call.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps
getComment, getHeartbeat, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getTimeout
-
Method Details
-
getAction
The API action to call.Use camelCase.
-
getIamResources
The resources for the IAM statement that will be added to the state machine role's policy to allow the state machine to make the API call.By default the action for this IAM statement will be
service:action
. -
getService
The AWS service to call. -
getIamAction
The action for the IAM statement that will be added to the state machine role's policy to allow the state machine to make the API call.Use in the case where the IAM action name does not match with the API service/action name, e.g.
s3:ListBuckets
requiress3:ListAllMyBuckets
.Default: - service:action
-
getParameters
Parameters for the API action call.Use PascalCase for the parameter names.
Default: - no parameters
-
builder
- Returns:
- a
CallAwsServiceProps.Builder
ofCallAwsServiceProps
-