Interface CallAwsServiceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,TaskStateBaseProps
- All Known Implementing Classes:
CallAwsServiceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:17.660Z")
@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();
- See Also:
-
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 List<PolicyStatement>
Additional IAM statements that will be added to the state machine role's policy.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, 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 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.- 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
-
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
-