ReportGroupArgs

data class ReportGroupArgs(val deleteReports: Output<Boolean>? = null, val exportConfig: Output<ReportGroupExportConfigArgs>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<String>? = null) : ConvertibleToJava<ReportGroupArgs>

Provides a CodeBuild Report Groups Resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.AwsFunctions;
import com.pulumi.aws.iam.IamFunctions;
import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
import com.pulumi.aws.kms.Key;
import com.pulumi.aws.kms.KeyArgs;
import com.pulumi.aws.s3.BucketV2;
import com.pulumi.aws.codebuild.ReportGroup;
import com.pulumi.aws.codebuild.ReportGroupArgs;
import com.pulumi.aws.codebuild.inputs.ReportGroupExportConfigArgs;
import com.pulumi.aws.codebuild.inputs.ReportGroupExportConfigS3DestinationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var current = AwsFunctions.getCallerIdentity();
final var examplePolicyDocument = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
.statements(GetPolicyDocumentStatementArgs.builder()
.sid("Enable IAM User Permissions")
.effect("Allow")
.principals(GetPolicyDocumentStatementPrincipalArgs.builder()
.type("AWS")
.identifiers(String.format("arn:aws:iam::%s:root", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.accountId())))
.build())
.actions("kms:*")
.resources("*")
.build())
.build());
var exampleKey = new Key("exampleKey", KeyArgs.builder()
.description("my test kms key")
.deletionWindowInDays(7)
.policy(examplePolicyDocument.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
.build());
var exampleBucketV2 = new BucketV2("exampleBucketV2");
var exampleReportGroup = new ReportGroup("exampleReportGroup", ReportGroupArgs.builder()
.type("TEST")
.exportConfig(ReportGroupExportConfigArgs.builder()
.type("S3")
.s3Destination(ReportGroupExportConfigS3DestinationArgs.builder()
.bucket(exampleBucketV2.id())
.encryptionDisabled(false)
.encryptionKey(exampleKey.arn())
.packaging("NONE")
.path("/some")
.build())
.build())
.build());
}
}

Import

CodeBuild Report Group can be imported using the CodeBuild Report Group arn, e.g.,

$ pulumi import aws:codebuild/reportGroup:ReportGroup example arn:aws:codebuild:us-west-2:123456789:report-group/report-group-name

Constructors

Link copied to clipboard
constructor(deleteReports: Output<Boolean>? = null, exportConfig: Output<ReportGroupExportConfigArgs>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null, type: Output<String>? = null)

Properties

Link copied to clipboard
val deleteReports: Output<Boolean>? = null

If true, deletes any reports that belong to a report group before deleting the report group. If false, you must delete any reports in the report group before deleting it. Default value is false.

Link copied to clipboard

Information about the destination where the raw data of this Report Group is exported. see Export Config documented below.

Link copied to clipboard
val name: Output<String>? = null

The name of a Report Group.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value mapping of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val type: Output<String>? = null

The type of the Report Group. Valid value are TEST and CODE_COVERAGE.

Functions

Link copied to clipboard
open override fun toJava(): ReportGroupArgs