AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::CapacityManagerDataExport

CfnCapacityManagerDataExport

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.

Import

import { CfnCapacityManagerDataExport } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnCapacityManagerDataExport

Properties

Configuration passed to the constructor as CfnCapacityManagerDataExportProps.

outputFormatRequired
string

The file format of the exported data.

s3BucketNameRequired
string

The name of the S3 bucket where export files are delivered.

scheduleRequired
string

The frequency at which data exports are generated.

s3BucketPrefixOptional
string

The S3 key prefix used for organizing export files within the bucket.

tagsOptional
CfnTag[]

The tags associated with the data export configuration.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic