create_capacity_manager_data_export
async
¶
create_capacity_manager_data_export(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 | |