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,IReportDefinitionRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:10.585Z")
@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 Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cur.IReportDefinitionRef
IReportDefinitionRef.Jsii$Default, IReportDefinitionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnReportDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnReportDefinition(software.amazon.jsii.JsiiObjectRef objRef) CfnReportDefinition(software.constructs.Construct scope, String id, CfnReportDefinitionProps props) Create a newAWS::CUR::ReportDefinition. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForReportDefinition(IReportDefinitionRef resource) static 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.static BooleanChecks whether the given object is a CfnReportDefinition.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.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnReportDefinition
protected CfnReportDefinition(software.amazon.jsii.JsiiObjectRef objRef) -
CfnReportDefinition
protected CfnReportDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnReportDefinition
@Stability(Stable) public CfnReportDefinition(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnReportDefinitionProps props) Create a newAWS::CUR::ReportDefinition.- 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
-
arnForReportDefinition
@Stability(Stable) @NotNull public static String arnForReportDefinition(@NotNull IReportDefinitionRef resource) - Parameters:
resource- This parameter is required.
-
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.
-
isCfnReportDefinition
Checks whether the given object is a CfnReportDefinition.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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 classCfnResource- Parameters:
props- This parameter is required.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getReportDefinitionRef
A reference to a ReportDefinition resource.- Specified by:
getReportDefinitionRefin interfaceIReportDefinitionRef
-
getCompression
The compression format that Amazon Web Services uses for the report. -
setCompression
The compression format that Amazon Web Services uses for the report. -
getFormat
The format that Amazon Web Services saves the report in. -
setFormat
The format that Amazon Web Services saves the report in. -
getRefreshClosedReports
Whether you want AWS to update your reports after they have been finalized if AWS detects charges related to previous months.Returns union: either
BooleanorIResolvable -
setRefreshClosedReports
Whether you want AWS to update your reports after they have been finalized if AWS detects charges related to previous months. -
setRefreshClosedReports
Whether you want AWS to update your reports after they have been finalized if AWS detects charges related to previous months. -
getReportName
The name of the report that you want to create. -
setReportName
The name of the report that you want to create. -
getReportVersioning
Whether you want AWS to overwrite the previous version of each report or to deliver the report in addition to the previous versions. -
setReportVersioning
Whether you want AWS to overwrite the previous version of each report or to deliver the report in addition to the previous versions. -
getS3Bucket
The S3 bucket where Amazon Web Services delivers the report. -
setS3Bucket
The S3 bucket where Amazon Web Services delivers the report. -
getS3Prefix
The prefix that Amazon Web Services adds to the report name when Amazon Web Services delivers the report. -
setS3Prefix
The prefix that Amazon Web Services adds to the report name when Amazon Web Services delivers the report. -
getS3Region
The Region of the S3 bucket that Amazon Web Services delivers the report into. -
setS3Region
The Region of the S3 bucket that Amazon Web Services delivers the report into. -
getTimeUnit
The granularity of the line items in the report. -
setTimeUnit
The granularity of the line items in the report. -
getAdditionalArtifacts
A list of manifests that you want AWS to create for this report. -
setAdditionalArtifacts
A list of manifests that you want AWS to create for this report. -
getAdditionalSchemaElements
A list of strings that indicate additional content that AWS includes in the report, such as individual resource IDs. -
setAdditionalSchemaElements
A list of strings that indicate additional content that AWS includes in the report, such as individual resource IDs. -
getBillingViewArn
The Amazon Resource Name (ARN) of the billing view. -
setBillingViewArn
The Amazon Resource Name (ARN) of the billing view. -
getTags
The tags to be assigned to the report definition resource. -
setTags
The tags to be assigned to the report definition resource.
-