@@ -43,26 +43,32 @@ For more information about using AWS S3, please refer to the [AWS documentation]
43
43
44
44
## Event Types
45
45
46
- ### io.triggermesh.awss3.object.put
47
-
48
46
Events of this type will store the event payload into an s3 bucket.
49
47
48
+ The AWS S3 Target leaves the [ CloudEvent] [ ce ] type definition to the discretion of
49
+ the implementer given the flexible nature of what can be stored in S3. There is
50
+ an exception if the ` io.triggermesh.awss3.object.put ` type is used where the target
51
+ will store the payload body regardless of the ` Discard CloudEvent context attributes ` setting.
52
+
53
+ The S3 bucket key used to store the event is defined by the ` ce-subject ` attribute.
54
+ If ` ce-subject ` is not set, the default key will be: ** ce-type** /** ce-source** /** ce-time** .
55
+
50
56
This type expects a [ JSON] [ ce-jsonformat ] payload with the following properties:
51
57
52
58
| Name | Value | Description |
53
59
| ---| ---| ---|
54
- | ** ce-type** | io.triggermesh.awss3.object.put| Event type denoting the s3 put request|
60
+ | ** ce-type** | io.triggermesh.awss3.object.put or user defined | Event type denoting the s3 put request|
55
61
| ** ce-subject** | string| The key to use with the assigned bucket for the Target|
56
62
| ** body** | [ JSON] [ ce-jsonformat ] | The data payload to store|
57
63
64
+
58
65
The response [ CloudEvent] [ ce ] would have the following payload:
59
66
60
67
| Name | Value | Description |
61
68
| ---| ---| ---|
62
- | ** ce-type** | io.triggermesh.targets.aws.s3.result| Denotes a response payload from S3|
63
- | ** ce-source** | ` arn:aws:s3:... ` | The S3 ARN value as configured by the target|
64
- | ** body** | [ JSON] [ ce-jsonformat ] | A JSON response from the Target invocation|
65
-
69
+ | ** ce-type** | io.triggermesh.targets.aws.s3.result| Denotes a response payload from the S3 put request|
70
+ | ** ce-source** | ` arn:aws:s3:... ` | The S3's bucket ARN value as configured by the target|
71
+ | ** body** | [ JSON] [ ce-jsonformat ] | A JSON response from the Target invocation with the Etag associated with the request|
66
72
67
73
68
74
[ ce ] : https://cloudevents.io/
0 commit comments