Class CfnTopicRule.S3ActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.S3ActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.S3ActionProperty>
- Enclosing interface:
CfnTopicRule.S3ActionProperty
@Stability(Stable)
public static final class CfnTopicRule.S3ActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.S3ActionProperty>
A builder for
CfnTopicRule.S3ActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketName(String bucketName) Sets the value ofCfnTopicRule.S3ActionProperty.getBucketName()build()Builds the configured instance.Sets the value ofCfnTopicRule.S3ActionProperty.getCannedAcl()Sets the value ofCfnTopicRule.S3ActionProperty.getKey()Sets the value ofCfnTopicRule.S3ActionProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
Sets the value ofCfnTopicRule.S3ActionProperty.getBucketName()- Parameters:
bucketName- The Amazon S3 bucket. This parameter is required.- Returns:
this
-
key
Sets the value ofCfnTopicRule.S3ActionProperty.getKey()- Parameters:
key- The object key. This parameter is required. For more information, see Actions, resources, and condition keys for Amazon S3 .- Returns:
this
-
roleArn
Sets the value ofCfnTopicRule.S3ActionProperty.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that grants access. This parameter is required.- Returns:
this
-
cannedAcl
Sets the value ofCfnTopicRule.S3ActionProperty.getCannedAcl()- Parameters:
cannedAcl- The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRule.S3ActionProperty>- Returns:
- a new instance of
CfnTopicRule.S3ActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-