@@ -43,38 +43,24 @@ 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
+
50
53
The S3 bucket key used to store the event is defined by the ` ce-subject ` attribute.
51
- However, if ` ce-subject ` is not set, the default key will be: ** ce-type** /** ce-source** /** ce-time** .
54
+ If ` ce-subject ` is not set, the default key will be: ** ce-type** /** ce-source** /** ce-time** .
52
55
53
56
This type expects a [ JSON] [ ce-jsonformat ] payload with the following properties:
54
57
55
58
| Name | Value | Description |
56
59
| ---| ---| ---|
57
- | ** 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|
58
61
| ** ce-subject** | string| The key to use with the assigned bucket for the Target|
59
62
| ** body** | [ JSON] [ ce-jsonformat ] | The data payload to store|
60
63
61
- The response [ CloudEvent] [ ce ] would have the following payload:
62
-
63
- | Name | Value | Description |
64
- | ---| ---| ---|
65
- | ** ce-type** | io.triggermesh.targets.aws.s3.result| Denotes a response payload from the S3 put request|
66
- | ** ce-source** | ` arn:aws:s3:... ` | The S3's bucket ARN value as configured by the target|
67
- | ** body** | [ JSON] [ ce-jsonformat ] | A JSON response from the Target invocation with the Etag associated with the request|
68
-
69
- ### * Types
70
-
71
- The AWS S3 Target leaves the [ CloudEvent] [ ce ] type definition to the discretion of
72
- the implementer given the flexible nature of what can be stored in S3. There is
73
- an exception for the ` io.triggermesh.awss3.object.put ` , documented above, where
74
- it will store the payload body regardless of the ` Discard CloudEvent context attributes ` setting.
75
-
76
- The S3 bucket key used to store the event is defined by the ` ce-subject ` attribute.
77
- However, if ` ce-subject ` is not set, the default key will be: ** ce-type** /** ce-source** /** ce-time** .
78
64
79
65
The response [ CloudEvent] [ ce ] would have the following payload:
80
66
0 commit comments