Class S3PutObjectActionProps
(experimental) Configuration properties of an action for s3.
Inheritance
Namespace: Amazon.CDK.AWS.IoT.Actions
Assembly: Amazon.CDK.AWS.IoT.Actions.dll
Syntax (csharp)
public class S3PutObjectActionProps : Object, IS3PutObjectActionProps, ICommonActionProps
Syntax (vb)
Public Class S3PutObjectActionProps
Inherits Object
Implements IS3PutObjectActionProps, ICommonActionProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var bucket = new Bucket(this, "MyBucket");
new TopicRule(this, "TopicRule", new TopicRuleProps {
Sql = IotSql.FromStringAsVer20160323("SELECT topic(2) as device_id, year, month, day FROM 'device/+/data'"),
Actions = new [] {
new S3PutObjectAction(bucket, new S3PutObjectActionProps {
Key = "${year}/${month}/${day}/${topic(2)}"
}) }
});
Synopsis
Constructors
S3PutObjectActionProps() |
Properties
AccessControl | (experimental) The Amazon S3 canned ACL that controls access to the object identified by the object key. |
Key | (experimental) The path to the file where the data is written. |
Role | (experimental) The IAM role that allows access to AWS service. |
Constructors
S3PutObjectActionProps()
public S3PutObjectActionProps()
Properties
AccessControl
(experimental) The Amazon S3 canned ACL that controls access to the object identified by the object key.
public Nullable<BucketAccessControl> AccessControl { get; set; }
Property Value
System.Nullable<BucketAccessControl>
Remarks
Default: None
Stability: Experimental
See: https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl
Key
(experimental) The path to the file where the data is written.
public string Key { get; set; }
Property Value
System.String
Remarks
Supports substitution templates.
Default: '${topic()}/${timestamp()}'
Stability: Experimental
See: https://docs.aws.amazon.com/iot/latest/developerguide/iot-substitution-templates.html
Role
(experimental) The IAM role that allows access to AWS service.
public IRole Role { get; set; }
Property Value
Remarks
Default: a new role will be created
Stability: Experimental