@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.448Z") @Stability(value=Stable) public interface CallAwsServiceProps extends software.amazon.jsii.JsiiSerializable, 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() |
String |
getAction()
The API action to call.
|
default 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.
|
List<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 Map<String,Object> |
getParameters()
Parameters for the API action call.
|
String |
getService()
The AWS service to call.
|
getComment, getHeartbeat, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getTimeout@Stability(value=Stable) @NotNull String getAction()
Use camelCase.
@Stability(value=Stable) @NotNull List<String> getIamResources()
By default the action for this IAM statement will be service:action.
@Stability(value=Stable) @NotNull String getService()
@Stability(value=Stable) @Nullable default 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
@Stability(value=Stable) @Nullable default Map<String,Object> getParameters()
Use PascalCase for the parameter names.
Default: - no parameters
@Stability(value=Stable) static CallAwsServiceProps.Builder builder()
builder in interface TaskStateBasePropsCallAwsServiceProps.Builder of CallAwsServicePropsCopyright © 2022. All rights reserved.