> ## Documentation Index
> Fetch the complete documentation index at: https://docs.refold.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect

> Connect with the Linked Account's Amazon S3 account.

<Note>
  Amazon S3 is an **API Key** based integration and does not require the setup of an app.
</Note>

### Required Credentials of a Linked Account

To successfully connect with the **AWS Security Hub** integration, a Linked Account or an end-user will need to provide the following to connect:

1. Access Key ID
2. Secret access key
3. Region

<Info>
  To understand how a Linked Account can get the above mentioned credentials, refer below.
</Info>

### Getting Credentials of Amazon S3

To acquire the required credentials and connect a Linked Account, please follow the steps mentioned below:

<img height="200" src="https://mintcdn.com/cobalt-55/USIhqTKu3QZXm8QM/images/Amazons3/s3_config.png?fit=max&auto=format&n=USIhqTKu3QZXm8QM&q=85&s=b71bc7d85a0e12a30347e5c9c788db0d" alt="Connect a Linked Account" data-path="images/Amazons3/s3_config.png" />

1. Log in to your [AWS Account](https://console.aws.amazon.com) with S3 Permissions and copy the `Region` from the URL present before **.console**.
2. Click on your Profile in the top right corner and click on `Security Credentials`.

<img height="200" src="https://mintcdn.com/cobalt-55/USIhqTKu3QZXm8QM/images/AWSSecurityHub/profileicpon.png?fit=max&auto=format&n=USIhqTKu3QZXm8QM&q=85&s=0ce0f15ffabde0ac1bef54e70ae16483" alt="Navigation in AWS" data-path="images/AWSSecurityHub/profileicpon.png" />

4. Scroll down to the **Access Keys** section and click on `Create access key`.

<img height="200" src="https://mintcdn.com/cobalt-55/USIhqTKu3QZXm8QM/images/AWSSecurityHub/api_key.png?fit=max&auto=format&n=USIhqTKu3QZXm8QM&q=85&s=22f85912850337a2f8ee22306a33433f" alt="Creating Credentials" data-path="images/AWSSecurityHub/api_key.png" />

5. Select a **Use case** > Click on `Next` and provide a name for the key under `Description tag value` and click on `Create access key`.
6. Copy the `Access Key` and `Secret access key` displayed on the screen.

<img height="200" src="https://mintcdn.com/cobalt-55/USIhqTKu3QZXm8QM/images/Amazons3/s3_credentials.png?fit=max&auto=format&n=USIhqTKu3QZXm8QM&q=85&s=05801870b05967201ae1b3bffe8313a9" alt="Getting Credentials" data-path="images/Amazons3/s3_credentials.png" />

<Tip>
  Save your Secret Key as it will be visible only once.
</Tip>

The Linked Account or end-user now have all the credentials required to connect with Amazon S3.

#### Actions and triggers

In Refold, you can create orchestrations of your use-cases using Amazon S3 actions and triggers. Following are the set of Amazon S3 actions and triggers
supported by Refold.

<Tabs>
  <Tab title="Actions">
    <AccordionGroup>
      <Accordion title="Bucket">
        1. **Get Buckets** - Returns a list of all buckets owned by the authenticated sender in Amazon S3.
        2. **Delete Bucket** - Delete a bucket in Amazon S3.
      </Accordion>

      <Accordion title="Object">
        3. **Get Objects** - Get Objects from Bucket in Amazon S3.
        4. **Get Object By Key** - Get Object By Key from Bucket in Amazon S3.
        5. **Create Object** - Creates an Object in Bucket in Amazon S3.
        6. **Delete Object** - Deletes an Object from Buckett in Amazon S3.
      </Accordion>

      <Accordion title="Others">
        7. **HTTP Request** - Make HTTP API calls to any Amazon S3 documented REST APIs.
      </Accordion>
    </AccordionGroup>
  </Tab>

  <Tab title="Triggers">
    There are no triggers in this application.
  </Tab>
</Tabs>
