Skip to content
v2.278.0

S3ActionProperty Struct ​

Describes an action to write data to an Amazon S3 bucket.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const s3ActionProperty: iot.CfnTopicRule.S3ActionProperty = {
  bucketName: 'bucketName',
  key: 'key',
  roleArn: 'roleArn',

  // the properties below are optional
  cannedAcl: 'cannedAcl',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot

s3_action_property = iot.CfnTopicRule.S3ActionProperty(
    bucket_name="bucketName",
    key="key",
    role_arn="roleArn",

    # the properties below are optional
    canned_acl="cannedAcl"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;

S3ActionProperty s3ActionProperty = S3ActionProperty.builder()
        .bucketName("bucketName")
        .key("key")
        .roleArn("roleArn")

        // the properties below are optional
        .cannedAcl("cannedAcl")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;

var s3ActionProperty = new S3ActionProperty {
    BucketName = "bucketName",
    Key = "key",
    RoleArn = "roleArn",

    // the properties below are optional
    CannedAcl = "cannedAcl"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

s3ActionProperty := &S3ActionProperty{
	BucketName: jsii.String("bucketName"),
	Key: jsii.String("key"),
	RoleArn: jsii.String("roleArn"),

	// the properties below are optional
	CannedAcl: jsii.String("cannedAcl"),
}

Properties ​

bucketNamestringbucket_namestrbucketNameStringBucketNamestringBucketName*string required #
The Amazon S3 bucket.
cannedAcloptionalstringcanned_acloptionalstrcannedAcloptionalStringCannedAcloptionalstringCannedAcloptional*string #
The Amazon S3 canned ACL that controls access to the object identified by the object key.

For more information, see S3 canned ACLs .

keystringkeystrkeyStringKeystringKey*string required #
The object key.
roleArnstringrole_arnstrroleArnStringRoleArnstringRoleArn*string required #
The ARN of the IAM role that grants access.