Class S3ToStepfunctions.Builder
java.lang.Object
software.amazon.awsconstructs.services.s3stepfunctions.S3ToStepfunctions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3ToStepfunctions>
- Enclosing class:
S3ToStepfunctions
public static final class S3ToStepfunctions.Builder
extends Object
implements software.amazon.jsii.Builder<S3ToStepfunctions>
A fluent builder for
S3ToStepfunctions.-
Method Summary
Modifier and TypeMethodDescriptionbucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps) Optional user provided props to override the default props for the S3 Bucket.build()static S3ToStepfunctions.BuildercreateCloudWatchAlarms(Boolean createCloudWatchAlarms) Whether to create recommended CloudWatch alarms.deployCloudTrail(Boolean deployCloudTrail) Whether to deploy a Trail in AWS CloudTrail to log API events in Amazon S3.eventRuleProps(software.amazon.awscdk.services.events.RuleProps eventRuleProps) Optional user provided eventRuleProps to override the defaults.existingBucketObj(software.amazon.awscdk.services.s3.IBucket existingBucketObj) Existing instance of S3 Bucket object, providing both this andbucketPropswill cause an error.loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps) Optional user provided props to override the default props for the S3 Logging Bucket.logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Optional user provided props to override the default props for the CloudWatchLogs LogGroup.logS3AccessLogs(Boolean logS3AccessLogs) Whether to turn on Access Logs for the S3 bucket with the associated storage costs.stateMachineProps(software.amazon.awscdk.services.stepfunctions.StateMachineProps stateMachineProps) User provided StateMachineProps to override the defaults.
-
Method Details
-
create
- Parameters:
scope-- represents the scope for all the resources.
id-- this is a a scope-unique id.
- Returns:
- a new instance of
S3ToStepfunctions.Builder.
-
stateMachineProps
public S3ToStepfunctions.Builder stateMachineProps(software.amazon.awscdk.services.stepfunctions.StateMachineProps stateMachineProps) User provided StateMachineProps to override the defaults.Default: - None
- Parameters:
stateMachineProps- User provided StateMachineProps to override the defaults. This parameter is required.- Returns:
this
-
bucketProps
public S3ToStepfunctions.Builder bucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps) Optional user provided props to override the default props for the S3 Bucket.Default: - Default props are used
- Parameters:
bucketProps- Optional user provided props to override the default props for the S3 Bucket. This parameter is required.- Returns:
this
-
createCloudWatchAlarms
Whether to create recommended CloudWatch alarms.Default: - Alarms are created
- Parameters:
createCloudWatchAlarms- Whether to create recommended CloudWatch alarms. This parameter is required.- Returns:
this
-
deployCloudTrail
Whether to deploy a Trail in AWS CloudTrail to log API events in Amazon S3.Default: - true
- Parameters:
deployCloudTrail- Whether to deploy a Trail in AWS CloudTrail to log API events in Amazon S3. This parameter is required.- Returns:
this
-
eventRuleProps
public S3ToStepfunctions.Builder eventRuleProps(software.amazon.awscdk.services.events.RuleProps eventRuleProps) Optional user provided eventRuleProps to override the defaults.Default: - None
- Parameters:
eventRuleProps- Optional user provided eventRuleProps to override the defaults. This parameter is required.- Returns:
this
-
existingBucketObj
public S3ToStepfunctions.Builder existingBucketObj(software.amazon.awscdk.services.s3.IBucket 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.
Default: - None
- Parameters:
existingBucketObj- Existing instance of S3 Bucket object, providing both this andbucketPropswill cause an error. This parameter is required.- Returns:
this
-
loggingBucketProps
public S3ToStepfunctions.Builder loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps) Optional user provided props to override the default props for the S3 Logging Bucket.Default: - Default props are used
- Parameters:
loggingBucketProps- Optional user provided props to override the default props for the S3 Logging Bucket. This parameter is required.- Returns:
this
-
logGroupProps
public S3ToStepfunctions.Builder logGroupProps(software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) Optional user provided props to override the default props for the CloudWatchLogs LogGroup.Default: - Default props are used
- Parameters:
logGroupProps- Optional user provided props to override the default props for the CloudWatchLogs LogGroup. This parameter is required.- Returns:
this
-
logS3AccessLogs
Whether to turn on Access Logs for the S3 bucket with the associated storage costs.Enabling Access Logging is a best practice.
Default: - true
- Parameters:
logS3AccessLogs- Whether to turn on Access Logs for the S3 bucket with the associated storage costs. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3ToStepfunctions>- Returns:
- a newly built instance of
S3ToStepfunctions.
-