Class S3ToStepfunctionsProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.s3stepfunctions.S3ToStepfunctionsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3ToStepfunctionsProps>
- Enclosing interface:
S3ToStepfunctionsProps
public static final class S3ToStepfunctionsProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3ToStepfunctionsProps>
A builder for
S3ToStepfunctionsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps) Sets the value ofS3ToStepfunctionsProps.getBucketProps()build()Builds the configured instance.createCloudWatchAlarms(Boolean createCloudWatchAlarms) Sets the value ofS3ToStepfunctionsProps.getCreateCloudWatchAlarms()deployCloudTrail(Boolean deployCloudTrail) Sets the value ofS3ToStepfunctionsProps.getDeployCloudTrail()eventRuleProps(software.amazon.awscdk.services.events.RuleProps eventRuleProps) Sets the value ofS3ToStepfunctionsProps.getEventRuleProps()existingBucketObj(software.amazon.awscdk.services.s3.IBucket existingBucketObj) Sets the value ofS3ToStepfunctionsProps.getExistingBucketObj()loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps) Sets the value ofS3ToStepfunctionsProps.getLoggingBucketProps()logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Sets the value ofS3ToStepfunctionsProps.getLogGroupProps()logS3AccessLogs(Boolean logS3AccessLogs) Sets the value ofS3ToStepfunctionsProps.getLogS3AccessLogs()stateMachineProps(software.amazon.awscdk.services.stepfunctions.StateMachineProps stateMachineProps) Sets the value ofS3ToStepfunctionsProps.getStateMachineProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stateMachineProps
public S3ToStepfunctionsProps.Builder stateMachineProps(software.amazon.awscdk.services.stepfunctions.StateMachineProps stateMachineProps) Sets the value ofS3ToStepfunctionsProps.getStateMachineProps()- Parameters:
stateMachineProps- User provided StateMachineProps to override the defaults. This parameter is required.- Returns:
this
-
bucketProps
public S3ToStepfunctionsProps.Builder bucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps) Sets the value ofS3ToStepfunctionsProps.getBucketProps()- Parameters:
bucketProps- Optional user provided props to override the default props for the S3 Bucket.- Returns:
this
-
createCloudWatchAlarms
Sets the value ofS3ToStepfunctionsProps.getCreateCloudWatchAlarms()- Parameters:
createCloudWatchAlarms- Whether to create recommended CloudWatch alarms.- Returns:
this
-
deployCloudTrail
Sets the value ofS3ToStepfunctionsProps.getDeployCloudTrail()- Parameters:
deployCloudTrail- Whether to deploy a Trail in AWS CloudTrail to log API events in Amazon S3.- Returns:
this
-
eventRuleProps
public S3ToStepfunctionsProps.Builder eventRuleProps(software.amazon.awscdk.services.events.RuleProps eventRuleProps) Sets the value ofS3ToStepfunctionsProps.getEventRuleProps()- Parameters:
eventRuleProps- Optional user provided eventRuleProps to override the defaults.- Returns:
this
-
existingBucketObj
public S3ToStepfunctionsProps.Builder existingBucketObj(software.amazon.awscdk.services.s3.IBucket existingBucketObj) Sets the value ofS3ToStepfunctionsProps.getExistingBucketObj()- Parameters:
existingBucketObj- Existing instance of S3 Bucket object, providing both this andbucketPropswill cause an error. The Amazon EventBridge property must be enabled in the existing bucket for the construct to work.- Returns:
this
-
loggingBucketProps
public S3ToStepfunctionsProps.Builder loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps) Sets the value ofS3ToStepfunctionsProps.getLoggingBucketProps()- Parameters:
loggingBucketProps- Optional user provided props to override the default props for the S3 Logging Bucket.- Returns:
this
-
logGroupProps
public S3ToStepfunctionsProps.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Sets the value ofS3ToStepfunctionsProps.getLogGroupProps()- Parameters:
logGroupProps- Optional user provided props to override the default props for the CloudWatchLogs LogGroup.- Returns:
this
-
logS3AccessLogs
Sets the value ofS3ToStepfunctionsProps.getLogS3AccessLogs()- Parameters:
logS3AccessLogs- Whether to turn on Access Logs for the S3 bucket with the associated storage costs. Enabling Access Logging is a best practice.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3ToStepfunctionsProps>- Returns:
- a new instance of
S3ToStepfunctionsProps - Throws:
NullPointerException- if any required attribute was not provided
-