Skip to content
v2.278.0

CfnReportDefinitionProps Struct ​

Properties for defining a CfnReportDefinition.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cur as cur } from 'aws-cdk-lib';
const cfnReportDefinitionProps: cur.CfnReportDefinitionProps = {
  compression: 'compression',
  format: 'format',
  refreshClosedReports: false,
  reportName: 'reportName',
  reportVersioning: 'reportVersioning',
  s3Bucket: 's3Bucket',
  s3Prefix: 's3Prefix',
  s3Region: 's3Region',
  timeUnit: 'timeUnit',

  // the properties below are optional
  additionalArtifacts: ['additionalArtifacts'],
  additionalSchemaElements: ['additionalSchemaElements'],
  billingViewArn: 'billingViewArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cur as cur

cfn_report_definition_props = cur.CfnReportDefinitionProps(
    compression="compression",
    format="format",
    refresh_closed_reports=False,
    report_name="reportName",
    report_versioning="reportVersioning",
    s3_bucket="s3Bucket",
    s3_prefix="s3Prefix",
    s3_region="s3Region",
    time_unit="timeUnit",

    # the properties below are optional
    additional_artifacts=["additionalArtifacts"],
    additional_schema_elements=["additionalSchemaElements"],
    billing_view_arn="billingViewArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cur.*;

CfnReportDefinitionProps cfnReportDefinitionProps = CfnReportDefinitionProps.builder()
        .compression("compression")
        .format("format")
        .refreshClosedReports(false)
        .reportName("reportName")
        .reportVersioning("reportVersioning")
        .s3Bucket("s3Bucket")
        .s3Prefix("s3Prefix")
        .s3Region("s3Region")
        .timeUnit("timeUnit")

        // the properties below are optional
        .additionalArtifacts(List.of("additionalArtifacts"))
        .additionalSchemaElements(List.of("additionalSchemaElements"))
        .billingViewArn("billingViewArn")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CUR;

var cfnReportDefinitionProps = new CfnReportDefinitionProps {
    Compression = "compression",
    Format = "format",
    RefreshClosedReports = false,
    ReportName = "reportName",
    ReportVersioning = "reportVersioning",
    S3Bucket = "s3Bucket",
    S3Prefix = "s3Prefix",
    S3Region = "s3Region",
    TimeUnit = "timeUnit",

    // the properties below are optional
    AdditionalArtifacts = new [] { "additionalArtifacts" },
    AdditionalSchemaElements = new [] { "additionalSchemaElements" },
    BillingViewArn = "billingViewArn",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnReportDefinitionProps := &CfnReportDefinitionProps{
	Compression: jsii.String("compression"),
	Format: jsii.String("format"),
	RefreshClosedReports: jsii.Boolean(false),
	ReportName: jsii.String("reportName"),
	ReportVersioning: jsii.String("reportVersioning"),
	S3Bucket: jsii.String("s3Bucket"),
	S3Prefix: jsii.String("s3Prefix"),
	S3Region: jsii.String("s3Region"),
	TimeUnit: jsii.String("timeUnit"),

	// the properties below are optional
	AdditionalArtifacts: []*string{
		jsii.String("additionalArtifacts"),
	},
	AdditionalSchemaElements: []*string{
		jsii.String("additionalSchemaElements"),
	},
	BillingViewArn: jsii.String("billingViewArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

additionalArtifactsoptionalstring[]additional_artifactsoptionaltyping.List[str]additionalArtifactsoptionalList<String>AdditionalArtifactsoptionalstring[]AdditionalArtifactsoptional*[]*string #
A list of manifests that you want AWS to create for this report.
additionalSchemaElementsoptionalstring[]additional_schema_elementsoptionaltyping.List[str]additionalSchemaElementsoptionalList<String>AdditionalSchemaElementsoptionalstring[]AdditionalSchemaElementsoptional*[]*string #
A list of strings that indicate additional content that AWS includes in the report, such as individual resource IDs.
billingViewArnoptionalstringbilling_view_arnoptionalstrbillingViewArnoptionalStringBillingViewArnoptionalstringBillingViewArnoptional*string #
The Amazon Resource Name (ARN) of the billing view.

You can get this value by using the billing view service public APIs.

compressionstringcompressionstrcompressionStringCompressionstringCompression*string required #
The compression format that Amazon Web Services uses for the report.
formatstringformatstrformatStringFormatstringFormat*string required #
The format that Amazon Web Services saves the report in.
refreshClosedReportsboolean | IResolvablerefresh_closed_reportstyping.Union[bool, IResolvable]refreshClosedReportsBooleanRefreshClosedReportsboolRefreshClosedReportsinterface{} required #
Whether you want AWS to update your reports after they have been finalized if AWS detects charges related to previous months.

These charges can include refunds, credits, or support fees.

reportNamestringreport_namestrreportNameStringReportNamestringReportName*string required #
The name of the report that you want to create.

The name must be unique, is case sensitive, and can't include spaces.

reportVersioningstringreport_versioningstrreportVersioningStringReportVersioningstringReportVersioning*string required #
Whether you want AWS to overwrite the previous version of each report or to deliver the report in addition to the previous versions.
s3Bucketstring | IBucketRefs3_buckettyping.Union[str, IBucketRef]s3BucketStringS3BucketstringS3Bucketinterface{} required #
The S3 bucket where Amazon Web Services delivers the report.
s3Prefixstrings3_prefixstrs3PrefixStringS3PrefixstringS3Prefix*string required #
The prefix that Amazon Web Services adds to the report name when Amazon Web Services delivers the report.

Your prefix can't include spaces.

s3Regionstrings3_regionstrs3RegionStringS3RegionstringS3Region*string required #
The Region of the S3 bucket that Amazon Web Services delivers the report into.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags to be assigned to the report definition resource.
timeUnitstringtime_unitstrtimeUnitStringTimeUnitstringTimeUnit*string required #
The granularity of the line items in the report.