interface S3PutObjectActionProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.IoT.Actions.S3PutObjectActionProps |
![]() | software.amazon.awscdk.services.iot.actions.S3PutObjectActionProps |
![]() | aws_cdk.aws_iot_actions.S3PutObjectActionProps |
![]() | @aws-cdk/aws-iot-actions » S3PutObjectActionProps |
Configuration properties of an action for s3.
Example
const bucket = new s3.Bucket(this, 'MyBucket');
new iot.TopicRule(this, 'TopicRule', {
sql: iot.IotSql.fromStringAsVer20160323(
"SELECT topic(2) as device_id, year, month, day FROM 'device/+/data'",
),
actions: [
new actions.S3PutObjectAction(bucket, {
key: '${year}/${month}/${day}/${topic(2)}',
}),
],
});
Properties
Name | Type | Description |
---|---|---|
access | Bucket | The Amazon S3 canned ACL that controls access to the object identified by the object key. |
key? | string | The path to the file where the data is written. |
role? | IRole | The IAM role that allows access to AWS service. |
accessControl?
Type:
Bucket
(optional, default: None)
The Amazon S3 canned ACL that controls access to the object identified by the object key.
key?
Type:
string
(optional, default: '${topic()}/${timestamp()}')
The path to the file where the data is written.
Supports substitution templates.
role?
Type:
IRole
(optional, default: a new role will be created)
The IAM role that allows access to AWS service.