Skip to main content
Skip table of contents

AWS S3

LAST UPDATED: NOVEMBER 10, 2025

Overview

Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance. Customers of all sizes and industries can use it to store and protect any amount of data for a range of use cases including data lakes, websites, mobile applications, backup and restore, archive, enterprise applications, IoT devices, and big data analytics.

D3 SOAR is providing REST operations to function with AWS S3.

AWS S3 is available for use in:

D3 SOAR

V12.7.241+

Category

ITSM

Deployment Options

Option II, Option IV

Known Limitations

  • After a bucket is created, its owner, name, and region in AWS S3 or D3 cannot be modified.

  • By default, each AWS account supports up to 100 buckets.

    • If additional buckets are required, the limit can be increased to a maximum of 1,000 by requesting a service limit increase in AWS S3.

    • The performance remains the same regardless of the number of buckets used.

Refer to Amazon Bucket restrictions and limitations for detailed information.

Connection

To connect to AWS S3 from D3 SOAR, follow this part to collect the required information below:

Parameter

Description

Example

Default Region Name

The AWS region name.

US East (N. Virginia): us-east-1

Access Key

The access key used for authentication.

*****

Secret Key

The secret key used for authentication.

*****

Default Role ARN

The Amazon Resource Name (ARN) of the IAM role to assume. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::*****:role/awsflows3

Default Role Session Name

A unique identifier for the assumed role session. Use it to distinguish sessions when the same role is assumed by different principals or for different purposes. Only include upper- and lower-case alphanumeric characters and the symbols =,.@-. If this parameter is not provided while the Default Role ARN parameter is defined, D3 automatically generates a role session name.

awsflows3_Session1

Default Session Duration Time

The duration of the assumed role session, in seconds. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour). By default, the Default Session Duration Time is set to 3600 seconds.

1800

READER NOTE

The values for Default Region Name, Default Role ARN, Default Role Session Name, and Default Session Duration Time can be overridden at the command level. Refer to x for details.

Permission Requirements

Each endpoint in the AWS S3 API requires a certain permission scope. The following are required scopes for the commands in this integration:

Command

Policy

Service

Access level (Actions)

Create Buckets

S3

CreateBucket

Delete Bucket Objects

DeleteBucket

Delete Buckets

DeleteObject + ListBucket

Download Files

GetObject + ListBucket

Get Bucket Policy

GetBucketPolicy

Get Bucket Public Access Block

GetBucketPublicAccessBlock

List Bucket Objects

ListBucket

List Buckets

ListAllMyBuckets

Move Files

DeleteObject + DeleteObjectVersion + GetObject

Put Bucket Policy

PutBucketPolicy

Put Bucket Public Access Block

PutBucketPublicAccessBlock

Upload Files

PutObject

Test Connection

ListAllMyBuckets

Configuring AWS S3 to Work with D3 SOAR

D3 can connect to AWS S3 using one of two methods:

  • IAM User (Access Key and Secret Key Only)

  • IAM Role (Assumed Role with Access Key, Secret Key, and Role ARN)

The role-based method allows defining a session duration so the assumed role expires after a specified period. The appropriate connection method depends on the use case and organizational policy.

Regardless of the selected connection method, users must have access to the AWS Management Console or request assistance from an administrator to create credentials and assign permissions.

Option 1: IAM User (Access Key and Secret Key Only)

READER NOTE

This section explains how to create a policy, user group, and user to assign permissions defining allowed actions and resources for IAM users.

Users who already have those configured can create their own access key and secret key by performing the following steps.

  1. Click the account icon at the upper-right corner of the AWS Management Console, then select the Security credentials option.

  2. Proceed to step 2 of Obtaining the Access Key and Secret Key to create the access key and secret key.

Creating a Policy
  1. Create a policy in IAM.

    1. Click the (Services) button.

    2. Select the IAM option.

    3. Click the Policies menu item.

    4. Click the Create policy button.

  2. Click the Choose a service dropdown and select the S3 option.

  3. Search for and select the allowed actions according to the Permission Requirements table.

    For example, search for and enable the DeleteObject and ListBucket actions to run the Delete Buckets command

  4. Select the resource ARNs for the specified permissions.

    1. Expand the Resources section.

    2. Select either the All option or the specific AWS resources to which the permissions apply.

    3. Click the Next button.

  5. Enter a name for the policy, then click the Create policy button to finalize.

Creating a User Group

READER NOTE

Using a user group is one approach to managing identity-based policies. Administrators can choose the method that best aligns with their structure and operational needs.

  1. Navigate to the User groups menu item, then click the Create group button.

  2. Name the group.

  3. Attach the previously created policy to the group.

    1. Search for the policy in the Attach permissions policies - Optional section.

    2. Select it.

    3. Click the Create user group button to finalize.

Creating a User
  1. Navigate to the Users menu item, then click the Create user button.

  2. Create a username, then click the Next button.

  3. Add the user to the previously configured user group.

    1. Ensure that the Add user to group option is checked.

    2. Select the user group.

    3. Click the Next button.

  4. Click the button to finalize.

    The user will automatically inherit the permissions defined in the policy assigned to the user group.

Obtaining the Access Key and Secret Key
  1. Navigate to Users > [user-name] to open the user details and create the access key and secret key.

    Frame 134 (1).png
  2. Click the Create access key link.

  3. Select the appropriate use case (i.e., Third-party service), check the confirmation checkbox, then click the Next button.

  4. Click the Create access key button, then click the Download .csv file button to save the credentials to the device.


    Refer to steps 3.i.1 and 3.i.2 in Configuring D3 SOAR to Work with AWS S3.

READER NOTE

  • The secret access key can only be viewed or downloaded once. Save the csv file in a secure location promptly. If lost, create a new access key and deactivate the old one.

  • A maximum of two access keys (active or inactive) are allowed per account.

Option 2: IAM Role (Assumed Role with Access Key, Secret Key, and Role ARN)

This section guides administrators to create a role that an IAM user can assume for temporary and secure access through a role session.

READER NOTE

Permissions are not cumulative. When a user assumes a role, their original permissions are temporarily replaced by those granted through the assumed role.

Creating a Role
  1. Create a role in IAM.

    1. Click the (Services) button.

    2. Select the IAM option.

    3. Click the Roles menu item.

    4. Click the Create role button.

  2. Select the AWS account option, then choose the account that will use this role (i.e., the current account or another AWS account).

  3. (Another AWS account only) Enter the Account ID of the AWS account that will assume this role.


    Administrators can obtain a user's Account ID by navigating to Users > [user-name], then referencing the numeric portion of the ARN that appears after IAM::.

  4. Click the button.

  5. Select the appropriate permissions policy to attach to the role, then click the Next button.


    Refer to Creating a Policy for instructions on creating a new policy.

  6. Enter a name for the role, then click the

    button.

Editing the Trust Policy

All manually created AWS roles must establish a trust relationship with AWS Directory Service by editing the role’s trust policy.

  1. Search for and select the role that was just created.

  2. Open the Trust relationships tab, then click the Edit trust policy button.

  3. Paste the following code in the editor.

    JSON
    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "",
          "Effect": "Allow",
          "Principal": {
            "AWS": "<paste-the-user-ARN>",
            "Service": "s3.amazonaws.com"
          },
          "Action": "sts:AssumeRole"
        }
      ]
    }
  4. Duplicate the current tab, then navigate to Users > [user-name] and copy the ARN of the user intended for role assumption.

  5. Replace the placeholder value (i.e., <paste-the-user-ARN>) under the AWS key with the copied user ARN to allow them to assume the role, then click the Update policy button.

READER NOTE

Users can also include multiple user ARNs in the trust policy under the AWS key.

Obtaining the Role ARN, Access Key, and Secret Key
  1. Copy the Role ARN and save it in a secure location.


    Refer to 3.i.4 in Configuring D3 SOAR to Work with AWS S3.

  2. Navigate to Users > [user-name] to open the user details.


    Refer to Creating a User for instructions on creating a new IAM user.

  3. Create an access key and secret key if they have not been created already.


    Refer to steps 2 to 4 in Obtaining the Access Key and Secret Key for more information.

READER NOTE

Users can configure the assumed role parameters (in addition to the AWS region name) in the connection form or at the command level. When command-level values are specified, they override the corresponding defaults in the connection form.

Frame 146 (2).png

Left: Configuration at the command level. Right: Configuration in the connection form.

  • Role ARN: The role to assume configured at the command level and overrides Default Role ARN when specified.

  • Role Session Name: The name of the assumed role session configured at the command level and overrides Default Role Session Name when specified.

  • Session Duration Time: The session validity period in seconds configured at the command level and overrides Default Session Duration Time when specified.

Detailed descriptions for each command-level role setting are available in the input section of every command.

Configuring D3 SOAR to Work with AWS S3

  1. Log in to D3 SOAR.

  2. Find the AWS S3 integration.

    1. Navigate to Configuration on the top header menu.

    2. Click on the Integration icon on the left sidebar.

    3. Type AWS S3 in the search box to find the integration, then click it to select it.

    4. Click + Connection, on the right side of the Connections section. A new connection window will appear.

  3. Configure the following fields to create a connection to AWS S3.

    1. Connection Name: The desired name for the connection.

    2. Site: The site on which to use the integration connection. Use the drop-down menu to select the site. The Share to Internal Sites option enables all internal sites to use the connection. Selecting a specific site will only enable that site to use the connection.

    3. Recipient site for events from connections Shared to Internal Sites: This field is displayed when Share to Internal Sites is selected for the Site field, allowing selection of the internal site for deploying the integration connection.

    4. Agent Name (Optional): The proxy agent required to build the connection. Use the dropdown menu to select the proxy agent from a list of previously configured proxy agents.

    5. Description (Optional): The description for the connection.

    6. Tenant (Optional): When configuring the connection from a master tenant site, users can choose the specific tenant sites with which to share the connection. Once this setting is enabled, users can filter and select the desired tenant sites from the dropdowns to share the connection.

    7. Configure User Permissions: Defines which users have access to the connection.

    8. Active: The checkbox that enables the connection to be used when selected.

    9. System: This section contains the parameters defined specifically for the integration. These parameters must be configured to create the integration connection.

      1. Input the AWS Default Region Name. By default, the value is set to US East (N.Virginia): us-east-1.

      2. Input the Access Key obtained from the AWS console. Refer to Obtaining the Access Key and Secret Key.

      3. Input the Secret Key obtained from the AWS console. Refer to Obtaining the Access Key and Secret Key.

      4. (Optional) Input the Default Role ARN obtained from the AWS console. Refer to step 1 of Obtaining the Role ARN, Access Key, and Secret Key.

      This parameter is required for the user associated with the access key and secret key to assume a role for the connection, overriding any previously assigned permissions.

      5. (Optional) Input the Default Role Session Name. By default, a name is automatically created if Default Role ARN is specified.

      6. (Optional) Input the Default Session Duration Time. By default, the value is 3,600 (seconds), or 1 hour.

    10. Enable Password Vault: An optional feature that allows users to take the stored credentials from their own password vault. Refer to the password vault connection guide if needed.

    11. Connection Health Check: Periodically checks the connection status by scheduling the Test Connection command at the specified interval (in minutes). Available only for active connections, this feature also allows configuring email notifications for failed attempts.

  4. Test the connection.

    1. Click on the Test Connection button to verify credentials and connectivity. A success alert displays Passed with a green checkmark. If the connection fails, review the parameters and retry.

    2. Click OK to close the alert window.

    3. Click + Add to create and add the configured connection.

Commands

AWS S3 includes the following executable commands for users to set up schedules or create playbook workflows. With the Test Command, users can execute these commands independently for playbook troubleshooting.

Integration API Note

For more information about the AWS S3 API, refer to the AWS S3 API reference.

READER NOTE

Certain permissions are required for each command. Refer to the Permission Requirements and Configuring AWS S3 to Work with D3 SOAR for details.

Create Buckets

Creates AWS S3 buckets.

READER NOTE

Input

Input Parameter

Required/Optional

Description

Example

Bucket Names

Required

The names of the buckets to be created. Bucket Name must be unique and must not contain spaces or uppercase letters. Bucket Name can be obtained using the List Buckets command.

JSON
[
  "mybucketbbb"
]

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Create Buckets failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: An error occurred (TooManyBuckets) when calling the CreateBucket operation: You have attempted to create more buckets than allowed.

Error Sample Data

Create Buckets failed.

Status Code: 403.

Message: An error occurred (TooManyBuckets) when calling the CreateBucket operation: You have attempted to create more buckets than allowed.

Delete Bucket Objects

Deletes objects in an AWS S3 bucket. When Bucket Versioning is enabled, previous versions of objects and delete markers (records indicating that an object was deleted) remain unless the Enable All Versions Deletion parameter is set to True, which removes them as well. Retaining versions or delete markers can cause a BucketNotEmpty error when deleting the bucket using the Delete Buckets command. Deletions are denied for objects with Object Lock enabled or restricted permissions.

READER NOTE

Bucket Name and File Paths are required parameters to run this command.

  • Run the List Buckets command to obtain the Bucket Name. Bucket Names can be found in the raw data at $.Buckets[*].Name.

  • Run the List Bucket Objects command to obtain the File Paths. File Paths can be found in the raw data at $.Contents[*].Key.

The file path must reference a file in the specified bucket. Run List Bucket Objects for the target bucket to locate the file to delete, then use that bucket–file pair with this command.

Input

Input Parameter

Required/Optional

Description

Example

Bucket Name

Required

The name of the bucket that contains the objects to be deleted. Bucket Name can be obtained using the List Buckets command.

mybucketbbb

File Paths

Required

The file path in the bucket of the object to delete. File Paths can be obtained using the List Bucket Objects command. The file path includes the folder name if the file is located within a folder (e.g., temp/tests3.txt).

JSON
[
  "temp/tests3.txt"
]

Enable All Versions Deletion

Optional

Indicates whether to remove all object versions and delete markers in buckets with Bucket Versioning enabled.

  • When set to True, all versions and markers are deleted.

  • When set to False, only the current object is removed.

This parameter has no effect if Bucket Versioning is disabled.

True

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Delete Bucket Objects failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied.

Error Sample Data

Delete Bucket Objects failed.

Status Code: 403.

Message: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied.

Delete Buckets

Deletes the specified S3 buckets. All objects (including all object versions and delete markers) in the bucket must be deleted before the bucket can be deleted with this command.

WARNING

Empty the bucket before running this command to avoid errors. Follow the recommended procedure below.

  1. Run the List Bucket Objects command on the target buckets to retrieve the object keys.

  2. Run the Delete Bucket Objects command to remove all objects from the buckets.

  3. Run this command to delete the specified buckets.

READER NOTE

Bucket Names is a required parameter to run this command.

  • Run the List Buckets command to obtain the Bucket Names. Bucket Names can be found in the raw data at $.Buckets[*].Name.

Input

Input Parameter

Required/Optional

Description

Example

Bucket Names

Required

The names of the buckets to be deleted. Bucket Names can be obtained using the List Buckets command.

JSON
[
  "demobucket1005b"
]

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Delete Buckets failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Delete bucket \"***\" failed: An error occurred (NoSuchBucket) when calling the DeleteBucket operation: The specified bucket does not exist.

Error Sample Data

Delete Buckets failed.

Status Code: 403.

Message: Delete bucket \"***\" failed: An error occurred (NoSuchBucket) when calling the DeleteBucket operation: The specified bucket does not exist.

Download Files

Downloads files from an AWS S3 bucket.

READER NOTE

Bucket Name and File Paths are required parameters to run this command.

  • Run the List Buckets command to obtain the Bucket Name. Bucket Names can be found in the raw data at $.Buckets[*].Name.

  • Run the List Bucket Objects command to obtain File Paths. File Paths can be found in the raw data at $.Contents[*].Key.

Ensure that the input bucket name and file path match; the file must exist in the specified bucket. Run List Bucket Objects on the target bucket to locate the file to delete, then use that bucket–file pair with this command.

Input

Input Parameter

Required/Optional

Description

Example

Bucket Name

Required

The name of the bucket from which the files are downloaded. Bucket Name can be obtained using the List Buckets command.

mybucketbbb

File Paths

Required

The file path in the bucket of the file to download. File Paths can be obtained using the List Bucket Objects command. The file path includes the name of the folder if the file is located in a folder (e.g.temp/tests3.txt).

JSON
[
  "tmp/S3test.txt",
  "temp/sub/S3test2.txt"
]

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Download Files failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Download file \"***\" in bucket \"***\" failed: An error occurred (NoSuchBucket) when calling the GetObject operation: The specified bucket does not exist.

Error Sample Data

Download Files failed.

Status Code: 403.

Message: Download file \"***\" in bucket \"***\" failed: An error occurred (NoSuchBucket) when calling the GetObject operation: The specified bucket does not exist.

Get Bucket Policy

Retrieves the access policy of a specified AWS S3 bucket.

READER NOTE

Bucket Name is a required parameter to run this command.

  • Run the List Buckets command to obtain the Bucket Name. Bucket Names can be found in the raw data at $.Buckets[*].Name.

If the error message “The bucket policy does not exist” appears, it indicates that the specified bucket has no policy configured. To add one, run the Put Bucket Policy command.

Input

Input Parameter

Required/Optional

Description

Example

Bucket Name

Required

The name of the bucket for which to retrieve the policy. Bucket Name can be obtained using the List Buckets command.

Mybucketbbb

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Get Bucket Policy failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: An error occurred (AccessDenied) when calling the GetBucketPolicy operation: Access Denied', 'The access to the specified bucket is denied, please check bucket permission setting'.

Error Sample Data

Get Bucket Policy failed.

Status Code: 403.

Message: An error occurred (AccessDenied) when calling the GetBucketPolicy operation: Access Denied', 'The access to the specified bucket is denied, please check bucket permission setting'.

Get Bucket Public Access Block

Retrieves the Public Access Block configuration of a specified AWS S3 bucket.

READER NOTE

Bucket Name is a required parameter to run this command.

  • Run the List Buckets command to obtain the Bucket Name. Bucket Names can be found in the raw data at $.Buckets[*].Name.

Input

Input Parameter

Required/Optional

Description

Example

Bucket Name

Required

The name of the bucket whose Public Access Block configuration is retrieved. Bucket Name can be obtained using the List Buckets command.

Mybucketbbb

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Get Bucket Public Access Block failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: An error occurred (AccessDenied) when calling the GetPublicAccessBlock operation: Access Denied.

Error Sample Data

Get Bucket Public Access Block failed.

Status Code: 403.

Message: An error occurred (AccessDenied) when calling the GetPublicAccessBlock operation: Access Denied.

List Bucket Objects

Lists objects stored in an AWS S3 bucket. Object versions are not included if bucket versioning is enabled.

READER NOTE

Bucket Name is a required parameter to run this command.

  • Run the List Buckets command to obtain the Bucket Name. Bucket Names can be found in the raw data at $.Buckets[*].Name.

Input

Input Parameter

Required/Optional

Description

Example

Bucket Name

Required

The name of the bucket for which to list objects. Bucket Name can be obtained using the List Buckets command.

mybucketbbb

Maximum Objects

Optional

The maximum number of objects to return (up to 1,000).

10

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

List Bucket Objects failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Invalid length for parameter RoleArn, value: *, valid min length: 20

Invalid value for parameter DurationSeconds, value: **, valid min value: 900.

Error Sample Data

List Bucket Objects failed.

Status Code: 403.

Message: Invalid length for parameter RoleArn, value: *, valid min length: 20

Invalid value for parameter DurationSeconds, value: **, valid min value: 900.

List Buckets

Returns all buckets owned by the authenticated AWS account.

Input

Input Parameter

Required/Optional

Description

Example

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

List Buckets failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Invalid length for parameter RoleArn, value: *, valid min length: 20

Invalid value for parameter DurationSeconds, value: **, valid min value: 900.

Error Sample Data

List Buckets failed.

Status Code: 403.

Message: Invalid length for parameter RoleArn, value: *, valid min length: 20

Invalid value for parameter DurationSeconds, value: **, valid min value: 900.

Move Files

Moves objects within an AWS S3 bucket from a source path to a destination path. This command does not support copying objects across regions, as cross-region transfers incur bandwidth charges.

READER NOTE

Source Bucket Name, Source File Paths and Destination Bucket Name are required parameters to run this command.

  • Run the List Buckets command to obtain the Source Bucket Name and Destination Bucket Name. Source Bucket Names and Destination Bucket Names can be found in the raw data at $.Buckets[*].Name.

  • Run the List Bucket Objects command to obtain the Source File Paths. Source File Paths can be found in the raw data at $.Contents[*].Key.

Input

Input Parameter

Required/Optional

Description

Example

Source Bucket Name

Required

The name of the bucket containing the objects to move. Source Bucket Name can be obtained using the List Buckets command.

sourceBucket

Source File Paths

Required

The full path of the objects to move within the source bucket. Source File Paths can be obtained using the List Bucket Objects command. The file path includes the folder name if the file is located within a folder (e.g., temp/tests3.txt).

JSON
[
  "temp/tests3.txt"
]

Destination Bucket Name

Required

The name of the bucket to which the objects will be moved. Destination Bucket Name can be obtained using the List Buckets command.

destinationBucket

Destination Path

Optional

The path within the destination bucket where the objects will be placed. By default, the bucket’s root path is used.

Temp

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Move Files failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: An error occurred (AccessDenied) when calling the GetBucketVersioning operation: Access Denied.

Error Sample Data

Move Files failed.

Status Code: 403.

Message: An error occurred (AccessDenied) when calling the GetBucketVersioning operation: Access Denied.

Put Bucket Policy

Applies a bucket policy to a specified AWS S3 bucket.

READER NOTE

Bucket Name and Policy are required to run this command.

  • Run the List Buckets command to obtain the Bucket Name. Bucket Names can be found in the raw data at $.Buckets[*].Name.

Input

Input Parameter

Required/Optional

Description

Example

Bucket Name

Required

The name of the bucket to which the policy is applied. Bucket Name can be obtained using the List Buckets command.

mybucketbbb

Policy

Required

The policy in JSON format that is applied to the bucket. For details on policy structure, refer to Examples of Amazon S3 bucket policies - Amazon Simple Storage Service.

JSON
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "ExamplePolicy01",
      "Effect": "Allow",
      "Principal": {
        "AWS": "*"
      },
      "Action": [
        "s3:PutObject",
        "s3:GetObject"
      ],
      "Resource": [
        "arn:aws:s3:::mybucketbbb/*"
      ]
    }
  ]
}

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Put Bucket Policy failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: The access to the specified bucket is denied, please check bucket permission setting.

Error Sample Data

Put Bucket Policy failed.

Status Code: 403.

Message: The access to the specified bucket is denied, please check bucket permission setting.

Put Bucket Public Access Block

Creates or updates the Public Access Block configuration of a specified AWS S3 bucket.

READER NOTE

Bucket Name is a required parameter to run this command.

  • Run the List Buckets command to obtain the Bucket Name. Bucket Names can be found in the raw data at $.Buckets[*].Name.

Input

Input Parameter

Required/Optional

Description

Example

Bucket Name

Required

The name of the bucket for which the Public Access Block configuration is created or modified. Bucket Name can be obtained using the List Buckets command.

mybucketbbb

Block Public ACLs

Required

Indicates whether Amazon S3 blocks public access control lists (ACLs) for the bucket and its objects. When set to True, S3 rejects requests that try to apply public ACLs through PUT Bucket ACL, PUT Object ACL, or PUT Object calls. Existing ACLs and policies are not affected.

True

Ignore Public ACLs

Required

Indicates whether Amazon S3 ignores any public ACLs that exist on the bucket or its objects. When set to True, S3 treats all public ACLs as non-public but does not delete them or prevent new ACLs from being created.

True

Block Public Policy

Required

Indicates whether Amazon S3 blocks bucket policies that allow public access. When set to True, S3 rejects any PUT Bucket Policy request that would make the bucket publicly accessible.

True

Restrict Public Buckets

Required

Indicates whether Amazon S3 restricts public bucket access to users within the same account. When set to True, only AWS service principals and authorized users in the account can access the bucket if a public policy exists.

True

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Put Bucket Public Access Block failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: An error occurred (AccessDenied) when calling the PutPublicAccessBlock operation: Access Denied.

Error Sample Data

Put Bucket Public Access Block failed.

Status Code: 403.

Message: An error occurred (AccessDenied) when calling the PutPublicAccessBlock operation: Access Denied.

Upload Files

Uploads files to a folder within an AWS S3 bucket.

READER NOTE

Bucket Name is a required parameter to run this command.

  • Run the List Buckets command to obtain the Bucket Name. Bucket Names can be found in the raw data at $.Buckets[*].Name.

If the specified Bucket Folder does not exist, a new folder is created automatically, and the uploaded file is placed in that folder.

D3 File IDs and D3 File Source

It is not recommended to use the Test Command feature with the Upload Files command as it is designed for dynamic input files in Playbooks, Incident Attachments, and Artifact Attachments. There is a simple workaround to test the command:

  1. Navigate to Configuration on the top bar menu.

  2. Click on Utility Commands on the left sidebar menu.

  3. Use the search box to find and select the Create a File from input Text Array command.

  4. Click on the Test tab.

  5. Input the required information for the parameters.

  6. Click on the Test Command button. A D3 File ID will appear in the output data after the file has been successfully created. The D3 File Source of the created file will be Playbook File.

Input

Input Parameter

Required/Optional

Description

Example

D3 File IDs

Required

The IDs of the D3 files to upload.

JSON
[
  "*****"
]

D3 File Source

Required

The source of the D3 files to upload. The options for file sources are:

  • Incident Attachment File: Manually uploaded file from Incident

  • Playbook File: Output from another Task

  • Artifact File: Ingested Artifact in an Event

Playbook File

Bucket Name

Required

The name of the bucket to which the files are uploaded. Bucket Name can be obtained using the List Buckets command.

mybucketbbb

Bucket Folder

Optional

The folder path within the bucket where the files are uploaded. If omitted, the file is placed in the bucket’s root. The path should exclude the bucket and object names and not begin with “/”. If the specified folder does not exist, it is created automatically, and the uploaded file is placed in that folder.

temp/sub

Region Name

Optional

The AWS region name. By default, the value of the Default Region Name connection parameter is used.

US West (N. California)

Role ARN

Optional

The Amazon Resource Name (ARN) of the IAM role to assume. By default, the value of the Default Role ARN connection parameter is used. Ensure the assumed role has the required permissions and is trusted by the account used for the connection.

arn:aws:iam::3*****8:role/awsflows3

Role Session Name

Optional

The unique identifier for the assumed role session. By default, the value of the Default Role Session Name connection parameter is used. The session name should include only upper- and lower-case alphanumeric characters or the following symbols: =,.@-.

awsflows3_Session1

Session Duration Time

Optional

The duration of the assumed role session, in seconds. By default, the value of the Default Session Duration Time connection parameter is used. Valid values range from 900 (15 minutes) up to the maximum session duration for the role (typically 1 hour).

1800

Output

To view the sample output data for all commands, refer to this article.

Error Handling

If the Return Data is Partially Successful or Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Upload Files failed.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: Upload file with ID \"***\" to bucket \"***\" failed: Download file failed:\"Error converting data type nvarchar to bigint.

Error Sample Data

Upload Files failed.

Status Code: 403.

Message: Upload file with ID \"***\" to bucket \"***\" failed: Download file failed:\"Error converting data type nvarchar to bigint.

Test Connection

Allows users to perform a health check on an integration connection. Users can schedule a periodic health check by selecting Connection Health Check when editing an integration connection.

Input

N/A

Output

Output Type

Description

Return Data Type

Return Data

Indicates one of the possible command execution states: Successful or Failed.

The Failed state can be triggered by any of the following errors:

  • A connection issue with the integration

  • The API returned an error message

  • No response from the API

More details about an error can be viewed in the Error tab.

String

Error Handling

If the Return Data displays Failed, an Error tab will appear in the Test Result window.

The error tab contains the details responded from D3 SOAR or third-party API calls, including Failure Indicator, Status Code, and Message. This can help locate the root cause of a command failure.

Parts in Error

Description

Example

Failure Indicator

Indicates the command failure that happened at a specific input and/or API call.

Test Connection failed. Failed to check the connector.

Status Code

The response code issued by the third-party API server or the D3 SOAR system that can be used to locate the corresponding error category. For example, if the returned status code is 401, the selected connection is unauthorized to run the command. The user or system support would need to check the permission setting in the AWS S3 portal. Refer to the HTTP Status Code Registry for details.

Status Code: 403.

Message

The raw data or captured key error message from the integration API server about the API request failure.

Message: The AWS Access Key Id you provided does not exist in our records.

Error Sample Data

Test Connection failed. Failed to check the connector.

Status Code: 403.

Message: The AWS Access Key Id you provided does not exist in our records.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.