Class CfnCapacityManagerDataExport
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.ec2.CfnCapacityManagerDataExport
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,ICapacityManagerDataExportRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:02.629Z")
@Stability(Stable)
public class CfnCapacityManagerDataExport
extends CfnResource
implements IInspectable, ICapacityManagerDataExportRef, ITaggableV2
Creates a new data export configuration for EC2 Capacity Manager.
This allows you to automatically export capacity usage data to an S3 bucket on a scheduled basis. The exported data includes metrics for On-Demand, Spot, and Capacity Reservations usage across your organization.
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.ec2.*;
CfnCapacityManagerDataExport cfnCapacityManagerDataExport = CfnCapacityManagerDataExport.Builder.create(this, "MyCfnCapacityManagerDataExport")
.outputFormat("outputFormat")
.s3BucketName("s3BucketName")
.schedule("schedule")
// the properties below are optional
.s3BucketPrefix("s3BucketPrefix")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCapacityManagerDataExport.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.ICapacityManagerDataExportRef
ICapacityManagerDataExportRef.Jsii$Default, ICapacityManagerDataExportRef.Jsii$ProxyNested 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.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCapacityManagerDataExport(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCapacityManagerDataExport(software.amazon.jsii.JsiiObjectRef objRef) CfnCapacityManagerDataExport(software.constructs.Construct scope, String id, CfnCapacityManagerDataExportProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe unique identifier for the data export configuration.A reference to a CapacityManagerDataExport resource.Tag Manager which manages the tags for this resource.The file format of the exported data.The name of the S3 bucket where export files are delivered.The S3 key prefix used for organizing export files within the bucket.The frequency at which data exports are generated.getTags()The tags associated with the data export configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetOutputFormat(String value) The file format of the exported data.voidsetS3BucketName(String value) The name of the S3 bucket where export files are delivered.voidsetS3BucketPrefix(String value) The S3 key prefix used for organizing export files within the bucket.voidsetSchedule(String value) The frequency at which data exports are generated.voidThe tags associated with the data export configuration.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.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
-
CfnCapacityManagerDataExport
protected CfnCapacityManagerDataExport(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCapacityManagerDataExport
protected CfnCapacityManagerDataExport(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCapacityManagerDataExport
@Stability(Stable) public CfnCapacityManagerDataExport(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCapacityManagerDataExportProps 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
-
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.
-
getAttrCapacityManagerDataExportId
The unique identifier for the data export configuration. -
getCapacityManagerDataExportRef
@Stability(Stable) @NotNull public CapacityManagerDataExportReference getCapacityManagerDataExportRef()A reference to a CapacityManagerDataExport resource.- Specified by:
getCapacityManagerDataExportRefin interfaceICapacityManagerDataExportRef
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getOutputFormat
The file format of the exported data. -
setOutputFormat
The file format of the exported data. -
getS3BucketName
The name of the S3 bucket where export files are delivered. -
setS3BucketName
The name of the S3 bucket where export files are delivered. -
getSchedule
The frequency at which data exports are generated. -
setSchedule
The frequency at which data exports are generated. -
getS3BucketPrefix
The S3 key prefix used for organizing export files within the bucket. -
setS3BucketPrefix
The S3 key prefix used for organizing export files within the bucket. -
getTags
The tags associated with the data export configuration. -
setTags
The tags associated with the data export configuration.
-