aws-cdk-lib.aws_iot.CfnTopicRule.S3ActionProperty

interface S3ActionProperty

LanguageType name
.NETAmazon.CDK.AWS.IoT.CfnTopicRule.S3ActionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnTopicRule_S3ActionProperty
Javasoftware.amazon.awscdk.services.iot.CfnTopicRule.S3ActionProperty
Pythonaws_cdk.aws_iot.CfnTopicRule.S3ActionProperty
TypeScript aws-cdk-lib » aws_iot » CfnTopicRule » S3ActionProperty

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

Example

// 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',
};

Properties

NameTypeDescription
bucketNamestringThe Amazon S3 bucket.
keystringThe object key.
roleArnstringThe ARN of the IAM role that grants access.
cannedAcl?stringThe Amazon S3 canned ACL that controls access to the object identified by the object key.

bucketName

Type: string

The Amazon S3 bucket.


key

Type: string

The object key.

For more information, see Actions, resources, and condition keys for Amazon S3 .


roleArn

Type: string

The ARN of the IAM role that grants access.


cannedAcl?

Type: string (optional)

The Amazon S3 canned ACL that controls access to the object identified by the object key.

For more information, see S3 canned ACLs .