Class CfnReportDefinition
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cur.CfnReportDefinition
- All Implemented Interfaces:
- IInspectable,- ITaggableV2,- IReportDefinitionRef,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct,- software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:35.786Z")
@Stability(Stable)
public class CfnReportDefinition
extends CfnResource
implements IInspectable, IReportDefinitionRef, ITaggableV2
The definition of AWS Cost and Usage Report.
 
You can specify the report name, time unit, report format, compression format, S3 bucket, additional artifacts, and schema elements in the definition.
Example:
 // 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.*;
 CfnReportDefinition cfnReportDefinition = CfnReportDefinition.Builder.create(this, "MyCfnReportDefinition")
         .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();
 - See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.cur.IReportDefinitionRefIReportDefinitionRef.Jsii$Default, IReportDefinitionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCfnReportDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnReportDefinition(software.amazon.jsii.JsiiObjectRef objRef) CfnReportDefinition(software.constructs.Construct scope, String id, CfnReportDefinitionProps props) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic IReportDefinitionReffromReportName(software.constructs.Construct scope, String id, String reportName) Creates a new IReportDefinitionRef from a reportName.A list of manifests that you want AWS to create for this report.A list of strings that indicate additional content that AWS includes in the report, such as individual resource IDs.The Amazon Resource Name (ARN) of the billing view.Tag Manager which manages the tags for this resource.The compression format that Amazon Web Services uses for the report.The format that Amazon Web Services saves the report in.Whether you want AWS to update your reports after they have been finalized if AWS detects charges related to previous months.A reference to a ReportDefinition resource.The name of the report that you want to create.Whether you want AWS to overwrite the previous version of each report or to deliver the report in addition to the previous versions.The S3 bucket where Amazon Web Services delivers the report.The prefix that Amazon Web Services adds to the report name when Amazon Web Services delivers the report.The Region of the S3 bucket that Amazon Web Services delivers the report into.getTags()The tags to be assigned to the report definition resource.The granularity of the line items in the report.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAdditionalArtifacts(List<String> value) A list of manifests that you want AWS to create for this report.voidsetAdditionalSchemaElements(List<String> value) A list of strings that indicate additional content that AWS includes in the report, such as individual resource IDs.voidsetBillingViewArn(String value) The Amazon Resource Name (ARN) of the billing view.voidsetCompression(String value) The compression format that Amazon Web Services uses for the report.voidThe format that Amazon Web Services saves the report in.voidsetRefreshClosedReports(Boolean value) Whether you want AWS to update your reports after they have been finalized if AWS detects charges related to previous months.voidWhether you want AWS to update your reports after they have been finalized if AWS detects charges related to previous months.voidsetReportName(String value) The name of the report that you want to create.voidsetReportVersioning(String value) Whether you want AWS to overwrite the previous version of each report or to deliver the report in addition to the previous versions.voidsetS3Bucket(String value) The S3 bucket where Amazon Web Services delivers the report.voidsetS3Prefix(String value) The prefix that Amazon Web Services adds to the report name when Amazon Web Services delivers the report.voidsetS3Region(String value) The Region of the S3 bucket that Amazon Web Services delivers the report into.voidThe tags to be assigned to the report definition resource.voidsetTimeUnit(String value) The granularity of the line items in the report.Methods inherited from class software.amazon.awscdk.CfnResourceaddDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.ConstructgetNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstructgetNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
CFN_RESOURCE_TYPE_NAMEThe CloudFormation resource type name for this resource class.
 
- 
- 
Constructor Details- 
CfnReportDefinitionprotected CfnReportDefinition(software.amazon.jsii.JsiiObjectRef objRef) 
- 
CfnReportDefinitionprotected CfnReportDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
CfnReportDefinition@Stability(Stable) public CfnReportDefinition(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnReportDefinitionProps props) - Parameters:
- scope- Scope in which this resource is defined. This parameter is required.
- id- Construct identifier for this resource (unique in its scope). This parameter is required.
- props- Resource properties. This parameter is required.
 
 
- 
- 
Method Details- 
fromReportName@Stability(Stable) @NotNull public static IReportDefinitionRef fromReportName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String reportName) Creates a new IReportDefinitionRef from a reportName.- Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- reportName- This parameter is required.
 
- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin interface- IInspectable
- Parameters:
- inspector- tree inspector to collect and process attributes. This parameter is required.
 
- 
renderProperties@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
- renderPropertiesin class- CfnResource
- Parameters:
- props- This parameter is required.
 
- 
getCdkTagManagerTag Manager which manages the tags for this resource.- Specified by:
- getCdkTagManagerin interface- ITaggableV2
 
- 
getCfnProperties- Overrides:
- getCfnPropertiesin class- CfnResource
 
- 
getReportDefinitionRefA reference to a ReportDefinition resource.- Specified by:
- getReportDefinitionRefin interface- IReportDefinitionRef
 
- 
getCompressionThe compression format that Amazon Web Services uses for the report.
- 
setCompressionThe compression format that Amazon Web Services uses for the report.
- 
getFormatThe format that Amazon Web Services saves the report in.
- 
setFormatThe format that Amazon Web Services saves the report in.
- 
getRefreshClosedReportsWhether you want AWS to update your reports after they have been finalized if AWS detects charges related to previous months.Returns union: either BooleanorIResolvable
- 
setRefreshClosedReportsWhether you want AWS to update your reports after they have been finalized if AWS detects charges related to previous months.
- 
setRefreshClosedReportsWhether you want AWS to update your reports after they have been finalized if AWS detects charges related to previous months.
- 
getReportNameThe name of the report that you want to create.
- 
setReportNameThe name of the report that you want to create.
- 
getReportVersioningWhether you want AWS to overwrite the previous version of each report or to deliver the report in addition to the previous versions.
- 
setReportVersioningWhether you want AWS to overwrite the previous version of each report or to deliver the report in addition to the previous versions.
- 
getS3BucketThe S3 bucket where Amazon Web Services delivers the report.
- 
setS3BucketThe S3 bucket where Amazon Web Services delivers the report.
- 
getS3PrefixThe prefix that Amazon Web Services adds to the report name when Amazon Web Services delivers the report.
- 
setS3PrefixThe prefix that Amazon Web Services adds to the report name when Amazon Web Services delivers the report.
- 
getS3RegionThe Region of the S3 bucket that Amazon Web Services delivers the report into.
- 
setS3RegionThe Region of the S3 bucket that Amazon Web Services delivers the report into.
- 
getTimeUnitThe granularity of the line items in the report.
- 
setTimeUnitThe granularity of the line items in the report.
- 
getAdditionalArtifactsA list of manifests that you want AWS to create for this report.
- 
setAdditionalArtifactsA list of manifests that you want AWS to create for this report.
- 
getAdditionalSchemaElementsA list of strings that indicate additional content that AWS includes in the report, such as individual resource IDs.
- 
setAdditionalSchemaElementsA list of strings that indicate additional content that AWS includes in the report, such as individual resource IDs.
- 
getBillingViewArnThe Amazon Resource Name (ARN) of the billing view.
- 
setBillingViewArnThe Amazon Resource Name (ARN) of the billing view.
- 
getTagsThe tags to be assigned to the report definition resource.
- 
setTagsThe tags to be assigned to the report definition resource.
 
-