> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.aws.s3.UpdatedObject

- Component: `appmixer.aws.s3.UpdatedObject`
- Kind: Trigger
- Version: 2.0.0
- Visibility: Public
- Connector: [appmixer.aws.s3 2.2.2](https://connectors.appmixer.com/connector/appmixer.aws.s3/2.2.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.aws.s3/2.2.2/component/appmixer.aws.s3.UpdatedObject>

This trigger fires every time object is created with PUT operation.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Region (`region`) | text | Your AWS instance region. If not select, us-east-1 will be used as default. |
| Bucket (`bucket`) | text | Your AWS S3 Bucket. |
| SNS Topic KMS Master Key Id or Alias (`kmsMasterKeyId`) | text | KMS key ARN or alias (e.g. alias/my-key) to encrypt the SNS topic used internally for notifications. Does NOT affect S3 file encryption. If not provided, the topic will be unencrypted. |
| SNS Topic Trusted Account IDs / ARNs (`trustedAccountIds`) | text | Comma separated AWS account IDs or IAM ARNs allowed to publish/subscribe to the SNS topic used for notifications. Does NOT restrict access to S3 files. If left empty, the topic will be publicly accessible. |

## Output ports

### Port `object`

| Field | Type | Description |
| --- | --- | --- |
| Bucket Name (`Bucket`) | string | - |
| Object Key (`key`) | string | - |
| ETag (`eTag`) | string | - |
| Object Size (`size`) | number | - |
| Event Type (`EventType`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.aws.s3.UpdatedObject",
  "author": "Appmixer <info@appmixer.com>",
  "version": "2.0.0",
  "description": "This trigger fires every time object is created with PUT operation.",
  "private": false,
  "webhook": true,
  "dependencies": {
    "service": ">=2.0.0"
  },
  "auth": {
    "service": "appmixer:aws:s3"
  },
  "properties": {
    "schema": {
      "properties": {
        "region": {
          "type": "string"
        },
        "bucket": {
          "type": "string"
        },
        "kmsMasterKeyId": {
          "type": "string"
        },
        "trustedAccountIds": {
          "type": "string"
        }
      },
      "required": [
        "bucket"
      ]
    },
    "inspector": {
      "inputs": {
        "region": {
          "type": "text",
          "label": "Region",
          "index": 1,
          "tooltip": "Your AWS instance region. If not select, us-east-1 will be used as default.",
          "source": {
            "url": "/component/appmixer/aws/s3/ListRegions?outPort=out"
          }
        },
        "bucket": {
          "type": "text",
          "label": "Bucket",
          "index": 2,
          "tooltip": "Your AWS S3 Bucket.",
          "source": {
            "url": "/component/appmixer/aws/s3/ListBuckets?outPort=bucket",
            "data": {
              "properties": {
                "sendWholeArray": true
              },
              "transform": "./ListBuckets#bucketsToSelectArray"
            }
          }
        },
        "kmsMasterKeyId": {
          "type": "text",
          "label": "SNS Topic KMS Master Key Id or Alias",
          "index": 3,
          "tooltip": "KMS key ARN or alias (e.g. alias/my-key) to encrypt the SNS topic used internally for notifications. Does NOT affect S3 file encryption. If not provided, the topic will be unencrypted."
        },
        "trustedAccountIds": {
          "type": "text",
          "label": "SNS Topic Trusted Account IDs / ARNs",
          "index": 4,
          "tooltip": "Comma separated AWS account IDs or IAM ARNs allowed to publish/subscribe to the SNS topic used for notifications. Does NOT restrict access to S3 files. If left empty, the topic will be publicly accessible."
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "object",
      "options": [
        {
          "label": "Bucket Name",
          "value": "Bucket",
          "schema": {
            "type": "string",
            "example": "my-app-data-bucket"
          }
        },
        {
          "label": "Object Key",
          "value": "key",
          "schema": {
            "type": "string",
            "example": "uploads/documents/report.pdf"
          }
        },
        {
          "label": "ETag",
          "value": "eTag",
          "schema": {
            "type": "string",
            "example": "d41d8cd98f00b204e9800998ecf8427e"
          }
        },
        {
          "label": "Object Size",
          "value": "size",
          "schema": {
            "type": "number",
            "example": 1048576
          }
        },
        {
          "label": "Event Type",
          "value": "EventType",
          "schema": {
            "type": "string",
            "example": "ObjectCreated:Put"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
