Interface S3PutObjectActionProps
- All Superinterfaces:
CommonActionProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
S3PutObjectActionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.002Z")
@Stability(Experimental)
public interface S3PutObjectActionProps
extends software.amazon.jsii.JsiiSerializable, CommonActionProps
(experimental) Configuration properties of an action for s3.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forS3PutObjectActionPropsstatic final classAn implementation forS3PutObjectActionProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BucketAccessControl(experimental) The Amazon S3 canned ACL that controls access to the object identified by the object key.default StringgetKey()(experimental) The path to the file where the data is written.Methods inherited from interface software.amazon.awscdk.services.iot.actions.CommonActionProps
getRoleMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessControl
(experimental) The Amazon S3 canned ACL that controls access to the object identified by the object key.Default: None
-
getKey
(experimental) The path to the file where the data is written.Supports substitution templates.
Default: '${topic()}/${timestamp()}'
-
builder
- Returns:
- a
S3PutObjectActionProps.BuilderofS3PutObjectActionProps
-