Show / Hide Table of Contents

Class S3PutObjectAction

(experimental) The action to write the data from an MQTT message to an Amazon S3 bucket.

Inheritance
System.Object
S3PutObjectAction
Implements
IAction
Namespace: Amazon.CDK.AWS.IoT.Actions
Assembly: Amazon.CDK.AWS.IoT.Actions.dll
Syntax (csharp)
public class S3PutObjectAction : DeputyBase, IAction
Syntax (vb)
Public Class S3PutObjectAction
    Inherits DeputyBase
    Implements IAction
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

S3PutObjectAction(IBucket, IS3PutObjectActionProps)
S3PutObjectAction(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

S3PutObjectAction(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Methods

Bind(ITopicRule)

(experimental) Returns the topic rule action specification.

Constructors

S3PutObjectAction(IBucket, IS3PutObjectActionProps)

public S3PutObjectAction(IBucket bucket, IS3PutObjectActionProps props = null)
Parameters
bucket IBucket

The Amazon S3 bucket to which to write data.

props IS3PutObjectActionProps

Optional properties to not use default.

Remarks

Stability: Experimental

S3PutObjectAction(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected S3PutObjectAction(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

S3PutObjectAction(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected S3PutObjectAction(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Methods

Bind(ITopicRule)

(experimental) Returns the topic rule action specification.

public virtual IActionConfig Bind(ITopicRule rule)
Parameters
rule ITopicRule
Returns

IActionConfig

Remarks

Stability: Experimental

Implements

IAction
Back to top Generated by DocFX