v2_aws_integration_DeleteAWSAccount/
v2_aws-integration_DeleteAWSAccount.rs1use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_aws_integration::AWSIntegrationAPI;
4
5#[tokio::main]
6async fn main() {
7 let aws_account_v2_data_id = std::env::var("AWS_ACCOUNT_V2_DATA_ID").unwrap();
9 let configuration = datadog::Configuration::new();
10 let api = AWSIntegrationAPI::with_config(configuration);
11 let resp = api.delete_aws_account(aws_account_v2_data_id.clone()).await;
12 if let Ok(value) = resp {
13 println!("{:#?}", value);
14 } else {
15 println!("{:#?}", resp.unwrap_err());
16 }
17}