Class S3PutObjectAction

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:11.976Z") @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.