create_capacity_manager_data_export
¶
create_capacity_manager_data_export(
*,
config_overrides: Optional[EC2ClientConfig] = None,
s3_bucket_name: Optional[String] = None,
s3_bucket_prefix: Optional[String] = None,
schedule: Optional[Schedule] = None,
output_format: Optional[OutputFormat] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
tag_specifications: Optional[TagSpecificationList] = None,
) -> CreateCapacityManagerDataExportResult
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.
Parameters:
-
s3_bucket_name(Optional[String], default:None) –The name of the S3 bucket where the capacity data export files will be delivered. The bucket must exist and you must have write permissions to it.
-
s3_bucket_prefix(Optional[String], default:None) –The S3 key prefix for the exported data files. This allows you to organize exports in a specific folder structure within your bucket. If not specified, files are placed at the bucket root.
-
schedule(Optional[Schedule], default:None) –The frequency at which data exports are generated.
-
output_format(Optional[OutputFormat], default:None) –The file format for the exported data. Parquet format is recommended for large datasets and better compression.
-
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to apply to the data export configuration. You can tag the export for organization and cost tracking purposes.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 | |