Interface CallAwsServiceCrossRegionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,TaskStateBaseProps
- All Known Implementing Classes:
CallAwsServiceCrossRegionProps.Jsii$Proxy
Example:
Bucket myBucket; CallAwsServiceCrossRegion getObject = CallAwsServiceCrossRegion.Builder.create(this, "GetObject") .region("ap-northeast-1") .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 forCallAwsServiceCrossRegionProps
static final class
An implementation forCallAwsServiceCrossRegionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The API action to call.default List<PolicyStatement>
Additional IAM statements that will be added to the state machine role's policy.default String
The AWS API endpoint.default String
The action for the IAM statement that will be added to the Lambda function 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 Lambda function role's policy to allow the state machine to make the API call.Parameters for the API action call in AWS SDK for JavaScript v3 format.The AWS region to call this AWS API for.default Boolean
Whether to retry on the backend Lambda service exceptions.The AWS service to call in AWS SDK for JavaScript v3 format.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps
getComment, getCredentials, getHeartbeat, getHeartbeatTimeout, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getStateName, getTaskTimeout, getTimeout
-
Method Details
-
getAction
The API action to call.Use camelCase.
-
getIamResources
The resources for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call. -
getRegion
The AWS region to call this AWS API for.Example:
"us-east-1";
-
getService
The AWS service to call in AWS SDK for JavaScript v3 format.Example:
"s3";
- See Also:
-
getAdditionalIamStatements
Additional IAM statements that will be added to the state machine role's policy.Use in the case where the call requires more than a single statement to be executed, e.g.
rekognition:detectLabels
requires also S3 permissions to read the object on which it must act.Default: - no additional statements are added
-
getEndpoint
The AWS API endpoint.Default: Do not override API endpoint.
-
getIamAction
The action for the IAM statement that will be added to the Lambda function 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
.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 in AWS SDK for JavaScript v3 format.Default: - no parameters
-
getRetryOnServiceExceptions
Whether to retry on the backend Lambda service exceptions.This handles
Lambda.ServiceException
,Lambda.AWSLambdaException
,Lambda.SdkClientException
, andLambda.ClientExecutionTimeoutException
with an interval of 2 seconds, a back-off rate of 2 and 6 maximum attempts.Default: true
- See Also:
-
builder
-