v1_aws_integration_DeleteAWSEventBridgeSource/
v1_aws-integration_DeleteAWSEventBridgeSource.rs1use datadog_api_client::datadog;
3use datadog_api_client::datadogV1::api_aws_integration::AWSIntegrationAPI;
4use datadog_api_client::datadogV1::model::AWSEventBridgeDeleteRequest;
5
6#[tokio::main]
7async fn main() {
8 let body = AWSEventBridgeDeleteRequest::new()
9 .account_id("123456789012".to_string())
10 .event_generator_name("app-alerts-zyxw3210".to_string())
11 .region("us-east-1".to_string());
12 let configuration = datadog::Configuration::new();
13 let api = AWSIntegrationAPI::with_config(configuration);
14 let resp = api.delete_aws_event_bridge_source(body).await;
15 if let Ok(value) = resp {
16 println!("{:#?}", value);
17 } else {
18 println!("{:#?}", resp.unwrap_err());
19 }
20}