Class S3PutObjectAction

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iot.actions.S3PutObjectAction
All Implemented Interfaces:
IAction, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:42.001Z") @Stability(Experimental) public class S3PutObjectAction extends software.amazon.jsii.JsiiObject implements IAction
(experimental) The action to write the data from an MQTT message to an Amazon S3 bucket.

Example:

 Bucket bucket = new Bucket(this, "MyBucket");
 TopicRule.Builder.create(this, "TopicRule")
         .sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, year, month, day FROM 'device/+/data'"))
         .actions(List.of(
             S3PutObjectAction.Builder.create(bucket)
                     .key("${year}/${month}/${day}/${topic(2)}")
                     .build()))
         .build();
 
  • Constructor Details

    • S3PutObjectAction

      protected S3PutObjectAction(software.amazon.jsii.JsiiObjectRef objRef)
    • S3PutObjectAction

      protected S3PutObjectAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • S3PutObjectAction

      @Stability(Experimental) public S3PutObjectAction(@NotNull IBucket bucket, @Nullable S3PutObjectActionProps props)
      Parameters:
      bucket - The Amazon S3 bucket to which to write data. This parameter is required.
      props - Optional properties to not use default.
    • S3PutObjectAction

      @Stability(Experimental) public S3PutObjectAction(@NotNull IBucket bucket)
      Parameters:
      bucket - The Amazon S3 bucket to which to write data. This parameter is required.
  • Method Details

    • bind

      @Stability(Experimental) @NotNull public ActionConfig bind(@NotNull ITopicRule rule)
      (experimental) Returns the topic rule action specification.

      Specified by:
      bind in interface IAction
      Parameters:
      rule - This parameter is required.