@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:50.162Z") public interface CallAwsServiceProps extends TaskStateBaseProps
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CallAwsServiceProps.Builder
A builder for
CallAwsServiceProps |
static class |
CallAwsServiceProps.Jsii$Proxy
An implementation for
CallAwsServiceProps |
Modifier and Type | Method and Description |
---|---|
static CallAwsServiceProps.Builder |
builder() |
java.lang.String |
getAction()
The API action to call.
|
default java.lang.String |
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.
|
java.util.List<java.lang.String> |
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.
|
default java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Parameters for the API action call.
|
java.lang.String |
getService()
The AWS service to call.
|
getComment, getHeartbeat, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getTimeout
java.lang.String getAction()
Use camelCase.
java.util.List<java.lang.String> getIamResources()
By default the action for this IAM statement will be service:action
.
java.lang.String getService()
default java.lang.String getIamAction()
Use in the case where the IAM action name does not match with the
API service/action name, e.g. s3:ListBuckets
requires s3:ListAllMyBuckets
.
Default: - service:action
default java.util.Map<java.lang.String,java.lang.Object> getParameters()
Use PascalCase for the parameter names.
Default: - no parameters
static CallAwsServiceProps.Builder builder()
builder
in interface TaskStateBaseProps
CallAwsServiceProps.Builder
of CallAwsServiceProps