preview
We're still working on this feature, but we'd love for you to try it out!
This feature is currently provided as part of a preview program pursuant to our pre-release policies.
This page provides a comprehensive reference for aws s3 actions available in the workflow automation actions catalog. These actions enable you to s3 bucket and object operations.
Prerequisites
Before using AWS actions in workflow automation, ensure you have:
- An AWS account with appropriate permissions.
- AWS credentials configured (IAM user credentials, IAM role ARN, or session credentials).
- The necessary IAM permissions for the specific AWS services you plan to use.
See Set up AWS credentials for information on how to create IAM users and IAM roles, and set up static and session AWS credentials for integration with workflow automation AWS actions.
The listObjectsV2 method returns some or all (up to 1,000) of the objects in a bucket. It is a more modern and recommended version of list_objects.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
bucket | Required | String | " |
prefix | Optional | String | " |
maxKeys | Optional | Integer |
|
continuationToken | Optional | String |
|
parameters | Optional | Map | |
selectors | Optional | List |
|
Input Field | Type |
|---|---|
EncodingType | String |
FetchOwner | Boolean |
StartAfter | String |
RequestPayer | String |
ExpectedBucketOwner | String |
OptionalObjectAttributes | List |
Delimiter | String |
Output Field | Type | Example |
|---|---|---|
response | object | Response syntax can be referred to in the list_objects_v2 - Boto3 1.40.52 documentation |
success | Boolean |
|
errorMessage | String |
|
Workflow example |
|---|
|
The deleteObject method permanently removes a single object from a bucket. For versioned buckets, this operation inserts a delete marker, which hides the object without permanently deleting it unless a VersionId is specified.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
bucket | Required | String | " |
key | Required | String | " |
parameters | Optional | Map | |
selectors | Optional | List |
|
Input Field | Type |
|---|---|
RequestPayer | String |
BypassGovernanceRetention | Boolean |
ExpectedBucketOwner | String |
IfMatch | String |
IfMatchLastModifiedTime | Map |
IfMatchSize | Int |
VersionId | String |
MFA | String |
Output Field | Type | Example |
|---|---|---|
response | object | Response syntax can be referred delete_object - Boto3 1.40.55 documentation |
success | Boolean |
|
errorMessage | String |
|
Workflow example |
|---|
|
Adds an object to a bucket. Amazon S3 is a distributed system. If it receives multiple write requests for the same object simultaneously, it overwrites all but the last object written.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
bucket | Required | String | " |
key | Required | String | " |
body | Required | String |
|
contentType | Required | String | " |
tagging | Optional | String |
|
parameters | Optional | Map | |
selectors | Optional | List |
|
Input Field | Type |
|---|---|
RequestPayer | String |
ACL | String |
CacheControl | String |
ContentDisposition | String |
ContentEncoding | String |
ContentLanguage | String |
ContentLength | Int |
ContentMD5 | String |
ChecksumAlgorithm | String |
ChecksumCRC32 | String |
ChecksumCRC32C | String |
ChecksumCRC64NVME | String |
ChecksumSHA1 | String |
ChecksumSHA256 | String |
Expires | Map |
IfMatch | String |
IfNoneMatch | String |
GrantFullControl | String |
GrantRead | String |
GrantReadACP | String |
GrantWriteACP | String |
WriteOffsetBytes | Int |
ServerSideEncryption | String |
StorageClass | String |
WebsiteRedirectLocation | String |
SSECustomerAlgorithm | String |
SSECustomerKey | String |
SSEKMSKeyId | String |
SSEKMSEncryptionContext | String |
BucketKeyEnabled | Boolean |
RequestPayer | String |
ObjectLockMode | String |
ObjectLockRetainUntilDate | Map |
ObjectLockLegalHoldStatus | String |
ExpectedBucketOwner | String |
Metadata | Map |
Output Field | Type | Example |
|---|---|---|
response | object | Response syntax can be referred put_object - Boto3 1.40.59 documentation |
success | Boolean |
|
errorMessage | String |
|
Workflow example |
|---|
|
In the GetObject request, specify the full key name for the object.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
bucket | Required | String | " |
key | Required | String | " |
versionId | Optional | String |
|
range | Optional | String |
|
parameters | Optional | Map | |
selectors | Optional | List |
|
중요
The action will fail if the object is more than 100kb.
Input Field | Type |
|---|---|
IfMatch | String |
IfModifiedSince | Map |
IfNoneMatch | String |
IfUnmodifiedSince | Map |
ResponseCacheControl | String |
ResponseContentDisposition | String |
ResponseContentEncoding | String |
ResponseContentLanguage | String |
ResponseContentType | String |
ResponseExpires | Map |
SSECustomerAlgorithm | String |
SSECustomerKey | String |
RequestPayer | String |
PartNumber | Int |
ExpectedBucketOwner | String |
ChecksumMode | String |
Output Field | Type | Example |
|---|---|---|
response | object | Response syntax can be referred to in the get_object - Boto3 1.40.59 documentation |
success | Boolean |
|
errorMessage | String |
|
name: s3-get-object description: 'Get an AWS S3 Object'
steps: - name: aws_s3_getObject_1 type: action action: aws.s3.getObject version: '1' inputs: awsRoleArn: "arn:aws:iam::123456789012:role/my-workflow-role" region: "us-east-2" bucket: "examplebucket" key: "path/to/object.txt" next: end