Class ReportGroup.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.ReportGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ReportGroup>
- Enclosing class:
ReportGroup
@Stability(Stable)
public static final class ReportGroup.Builder
extends Object
implements software.amazon.jsii.Builder<ReportGroup>
A fluent builder for
ReportGroup
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static ReportGroup.Builder
exportBucket
(IBucket exportBucket) An optional S3 bucket to export the reports to.removalPolicy
(RemovalPolicy removalPolicy) What to do when this resource is deleted from a stack.reportGroupName
(String reportGroupName) The physical name of the report group.Whether to output the report files into the export bucket as-is, or create a ZIP from them before doing the export.
-
Method Details
-
create
@Stability(Stable) public static ReportGroup.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
ReportGroup.Builder
.
-
exportBucket
An optional S3 bucket to export the reports to.Default: - the reports will not be exported
- Parameters:
exportBucket
- An optional S3 bucket to export the reports to. This parameter is required.- Returns:
this
-
removalPolicy
What to do when this resource is deleted from a stack.As CodeBuild does not allow deleting a ResourceGroup that has reports inside of it, this is set to retain the resource by default.
Default: RemovalPolicy.RETAIN
- Parameters:
removalPolicy
- What to do when this resource is deleted from a stack. This parameter is required.- Returns:
this
-
reportGroupName
The physical name of the report group.Default: - CloudFormation-generated name
- Parameters:
reportGroupName
- The physical name of the report group. This parameter is required.- Returns:
this
-
zipExport
Whether to output the report files into the export bucket as-is, or create a ZIP from them before doing the export.Ignored if
exportBucket(software.amazon.awscdk.services.s3.IBucket)
has not been provided.Default: - false (the files will not be ZIPped)
- Parameters:
zipExport
- Whether to output the report files into the export bucket as-is, or create a ZIP from them before doing the export. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ReportGroup>
- Returns:
- a newly built instance of
ReportGroup
.
-