Class ReportGroup

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.codebuild.ReportGroup
All Implemented Interfaces:
IResource, IReportGroup, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-21T06:34:05.126Z") @Stability(Stable) public class ReportGroup extends Resource implements IReportGroup
The ReportGroup resource class.

Example:

 Source source;
 // create a new ReportGroup
 ReportGroup reportGroup = new ReportGroup(this, "ReportGroup");
 Project project = Project.Builder.create(this, "Project")
         .source(source)
         .buildSpec(BuildSpec.fromObject(Map.of(
                 // ...
                 "reports", Map.of(
                         reportGroup.getReportGroupArn(), Map.of(
                                 "files", "**/*",
                                 "base-directory", "build/test-results")))))
         .build();
 
  • Constructor Details

    • ReportGroup

      protected ReportGroup(software.amazon.jsii.JsiiObjectRef objRef)
    • ReportGroup

      protected ReportGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ReportGroup

      @Stability(Stable) public ReportGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ReportGroupProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • ReportGroup

      @Stability(Stable) public ReportGroup(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • fromReportGroupName

      @Stability(Stable) @NotNull public static IReportGroup fromReportGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String reportGroupName)
      Reference an existing ReportGroup, defined outside of the CDK code, by name.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      reportGroupName - This parameter is required.
    • grantWrite

      @Stability(Stable) @NotNull public Grant grantWrite(@NotNull IGrantable identity)
      Grants the given entity permissions to write (that is, upload reports to) this report group.

      Specified by:
      grantWrite in interface IReportGroup
      Parameters:
      identity - This parameter is required.
    • getReportGroupArn

      @Stability(Stable) @NotNull public String getReportGroupArn()
      The ARN of the ReportGroup.
      Specified by:
      getReportGroupArn in interface IReportGroup
    • getReportGroupName

      @Stability(Stable) @NotNull public String getReportGroupName()
      The name of the ReportGroup.
      Specified by:
      getReportGroupName in interface IReportGroup
    • getExportBucket

      @Stability(Stable) @Nullable protected IBucket getExportBucket()
    • getType

      @Stability(Stable) @Nullable protected ReportGroupType getType()