AWS S3 for Workflows

Latest Dynatrace

Copy object

Creates a copy of an object that is already stored in Amazon S3.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The name of the destination bucket.
required
CopySource
string
Specifies the source object for the copy operation.
required
Key
string
The key of the destination object.
required
ExpectedSourceBucketOwner
string
The account ID of the expected source bucket owner.
optional
ExpectedBucketOwner
string
The account ID of the expected destination bucket owner.
optional

Output

Returns fields as described in CopyObject.

Create bucket

Creates a new S3 bucket.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The name of the bucket to create.
required
ACL
Enum
The canned ACL to apply to the bucket. Possible values: authenticated-read, private, public-read, public-read-write.
optional

Output

Returns fields as described in CreateBucket.

Delete bucket

Deletes the S3 bucket.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
Specifies the bucket being deleted.
required
ExpectedBucketOwner
string
The account ID of the expected bucket owner.
optional

Output

Returns fields as described in DeleteBucket.

Delete object

Removes an object from a bucket.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The bucket name of the bucket containing the object.
required
Key
string
Key name of the object to delete.
required
VersionId
string
Version ID used to reference a specific version of the object.
optional
ExpectedBucketOwner
string
The account ID of the expected bucket owner.
optional

Output

Returns fields as described in DeleteObject.

Get bucket encryption

Returns the default encryption configuration for an Amazon S3 bucket.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The name of the bucket from which the server-side encryption configuration is retrieved.
required

Output

Returns fields as described in GetBucketEncryption.

Get bucket logging

Returns the logging status of a bucket and the permissions users have to view and modify that status.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The bucket name for which to get the logging information.
required

Output

Returns fields as described in GetBucketLogging.

Get object

Retrieves an object from Amazon S3.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The bucket name containing the object.
required
Key
string
Key of the object to get.
required
VersionId
string
Version ID used to reference a specific version of the object.
optional
ExpectedBucketOwner
string
The account ID of the expected bucket owner.
optional

Output

Returns fields as described in GetObject.

Get object attributes

Retrieves all the metadata from an object without returning the object itself.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The name of the bucket that contains the object.
required
Key
string
The object key.
required
ObjectAttributes
Enum array
Specifies the fields at the root level that you want returned in the response. Possible values: Checksum, ETag, ObjectParts, ObjectSize, StorageClass.
required
VersionId
string
The version ID used to reference a specific version of the object.
optional
ExpectedBucketOwner
string
The account ID of the expected bucket owner.
optional

Output

Returns fields as described in GetObjectAttributes.

List buckets

Returns a list of all buckets owned by the authenticated sender of the request.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required

Output

Returns fields as described in ListBuckets.

List objects

Returns some or all (up to 1,000) of the objects in a bucket with each request.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The name of the bucket containing the objects.
required
Prefix
string
Limits the response to keys that begin with the specified prefix.
optional
StartAfter
string
StartAfter is where you want Amazon S3 to start listing from.
optional
ExpectedBucketOwner
string
The account ID of the expected bucket owner.
optional
MaxKeys
string
Sets the maximum number of keys returned in the response.
optional

Output

Returns fields as described in ListObjectsV2.

Move object

Moves an S3 object to another location in S3.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
SourceBucket
string
The bucket to move from.
required
DestinationBucket
string
The bucket to move to.
required
Key
string
The key of the object to move.
required

Output

Note

There is no AWS API for this action. Due to how the action is implemented, the output of this action is the same as the CopyObject API.

Returns fields as described in CopyObject.

Put bucket ACL

Sets the permissions on an existing bucket using access control lists (ACL).

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The bucket to which to apply the ACL.
required
AccessControlPolicy
string
It is a JSON string that contains the elements that set the ACL permissions for an object per grantee. If you use expressions, you might have problems escaping the string and making it valid JSON. You can use the tojson jinja method.
optional
ACL
string
The canned ACL to apply to the bucket.
optional
ChecksumAlgorithm
Enum
Indicates the algorithm used to create the checksum for the object when you use the SDK. Possible values: CRC32, CRC32C, SHA1, SHA256.
optional
ExpectedBucketOwner
string
The account ID of the expected bucket owner.
optional
GrantFullControl
string
Allows the grantee the read, write, read ACP, and write ACP permissions on the bucket.
optional
GrantRead
string
Allows the grantee to list the objects in the bucket.
optional
GrantReadACP
string
Allows grantee to read the bucket ACL.
optional
GrantWrite
string
Allows grantee to create new objects in the bucket.
optional
GrantWriteACP
string
Allows grantee to write the ACL for the applicable bucket.
optional

Output

None, except $metadata. It contains information related to the action execution.

Put bucket encryption

This action uses the encryption subresource to configure default encryption and Amazon S3 Bucket Keys for an existing bucket.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
Specifies default encryption for a bucket using server-side encryption with different key options.
required
ServerSideEncryptionConfiguration
string
It is a JSON string that specifies the default server-side encryption configuration. If you use expressions, you might have problems escaping the string and making it valid JSON. You can use the tojson jinja method.
required
ChecksumAlgorithm
Enum
Indicates the algorithm used to create the checksum for the object when you use the SDK. Possible values: CRC32, CRC32C, SHA1, SHA256.
optional
ExpectedBucketOwner
string
The account ID of the expected bucket owner.
optional

Output

None, except $metadata. It contains information related to the action execution.

Put bucket logging

Set the logging parameters for a bucket and specify permissions for who can view and modify the logging parameters.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The name of the bucket for which to set the logging parameters.
required
BucketLoggingStatus
string
It's a JSON string and a container for logging status information. If you use expressions, you might have problems with escaping the string and make it valid JSON. You can use the tojson jinja method.
required
ChecksumAlgorithm
Enum
Indicates the algorithm used to create the checksum for the object when you use the SDK. Possible values: CRC32, CRC32C, SHA1, SHA256.
optional
ExpectedBucketOwner
string
The account ID of the expected bucket owner.
optional

Output

None, except $metadata. It contains information related to the action execution.

Put object

Adds an object to a bucket.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The bucket name to which the PUT action was initiated.
required
Key
string
Object key for which the PUT action was initiated.
required
Body
string
Object data.
required
ACL
string
The canned ACL to apply to the object.
optional
ContentType
string
A standard MIME type describing the format of the contents.
optional
ServerSideEncryption
string
The server-side encryption algorithm that was used when you store this object in Amazon S3.
optional
StorageClass
string
By default, Amazon S3 uses the Standard Storage Class to store newly created objects.
optional
ExpectedBucketOwner
string
The account ID of the expected bucket owner.
optional

Output

Returns fields as described in PutObject.

Put public access block

Creates or modifies the PublicAccessBlock configuration for an Amazon S3 bucket.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want to set.
required
ChecksumAlgorithm
Enum
Indicates the algorithm used to create the checksum for the object when you use the SDK. Possible values: CRC32, CRC32C, SHA1, SHA256.
optional
ExpectedBucketOwner
string
The account ID of the expected bucket owner.
optional
BlockPublicAcls
boolean
Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket.
optional
BlockPublicPolicy
boolean
Specifies whether Amazon S3 should block public bucket policies for this bucket.
optional
IgnorePublicAcls
boolean
Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket.
optional
RestrictPublicBuckets
boolean
Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
optional

Output

None, except $metadata. It contains information related to the action execution.

Rename object

Renames an S3 object.

Inputs

Field
Type
Description
Required
Region
string
The region to use.
required
Bucket
string
The bucket to use.
required
OriginalKey
string
The key to be renamed.
required
NewKey
string
The name that the key will have after the rename.
required

Output

Note

There is no AWS API for this action. Due to how the action is implemented, the output of this action is the same as the CopyObject API.

Returns fields as described in CopyObject.