DELETE https://api.ap1.datadoghq.com/api/v1/integration/aws/event_bridge https://api.ap2.datadoghq.com/api/v1/integration/aws/event_bridge https://api.datadoghq.eu/api/v1/integration/aws/event_bridge https://api.ddog-gov.com/api/v1/integration/aws/event_bridge https://api.us2.ddog-gov.com/api/v1/integration/aws/event_bridge https://api.datadoghq.com/api/v1/integration/aws/event_bridge https://api.us3.datadoghq.com/api/v1/integration/aws/event_bridge https://api.us5.datadoghq.com/api/v1/integration/aws/event_bridge
Overview This endpoint is deprecated - use the V2 endpoints instead. Delete an Amazon EventBridge source.
This endpoint requires the manage_integrations permission.
Request Body Data (required) Delete the Amazon EventBridge source with the given name, region, and associated AWS account.
Expand All
Your AWS Account ID without dashes.
{
"account_id" : "123456789012" ,
"event_generator_name" : "app-alerts-zyxw3210" ,
"region" : "us-east-1"
} Response OK
An indicator of the successful deletion of an EventBridge source.
Expand All
The event source status "empty".
Allowed enum values: empty
Bad Request
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Authentication Error
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Too many requests
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Code Example Copy
## default
#
# Curl command curl -X DELETE "https://api.ap1.datadoghq.com "https://api.ap2.datadoghq.com "https://api.datadoghq.eu "https://api.ddog-gov.com "https://api.us2.ddog-gov.com "https://api.datadoghq.com "https://api.us3.datadoghq.com "https://api.us5.datadoghq.com /api/v1/integration/aws/event_bridge " \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "DD-API-KEY: ${DD_API_KEY} " \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY} " \
-d @- << EOF
{
"account_id": "123456789012",
"event_generator_name": "app-alerts-zyxw3210",
"region": "us-east-1"
}
EOF
"""
Delete an Amazon EventBridge source returns "OK" response
"""
from datadog_api_client import ApiClient , Configuration
from datadog_api_client.v1.api.aws_integration_api import AWSIntegrationApi
from datadog_api_client.v1.model.aws_event_bridge_delete_request import AWSEventBridgeDeleteRequest
body = AWSEventBridgeDeleteRequest (
account_id = "123456789012" ,
event_generator_name = "app-alerts-zyxw3210" ,
region = "us-east-1" ,
)
configuration = Configuration ()
with ApiClient ( configuration ) as api_client :
api_instance = AWSIntegrationApi ( api_client )
response = api_instance . delete_aws_event_bridge_source ( body = body )
print ( response )
Instructions First install the library and its dependencies and then save the example to example.py and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" python3 "example.py"
# Delete an Amazon EventBridge source returns "OK" response
require "datadog_api_client"
api_instance = DatadogAPIClient :: V1 :: AWSIntegrationAPI . new
body = DatadogAPIClient :: V1 :: AWSEventBridgeDeleteRequest . new ({
account_id : "123456789012" ,
event_generator_name : "app-alerts-zyxw3210" ,
region : "us-east-1" ,
})
p api_instance . delete_aws_event_bridge_source ( body )
Instructions First install the library and its dependencies and then save the example to example.rb and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" rb "example.rb"
// Delete an Amazon EventBridge source returns "OK" response
package main
import (
"context"
"encoding/json"
"fmt"
"os"
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
"github.com/DataDog/datadog-api-client-go/v2/api/datadogV1"
)
func main () {
body := datadogV1 . AWSEventBridgeDeleteRequest {
AccountId : datadog . PtrString ( "123456789012" ),
EventGeneratorName : datadog . PtrString ( "app-alerts-zyxw3210" ),
Region : datadog . PtrString ( "us-east-1" ),
}
ctx := datadog . NewDefaultContext ( context . Background ())
configuration := datadog . NewConfiguration ()
apiClient := datadog . NewAPIClient ( configuration )
api := datadogV1 . NewAWSIntegrationApi ( apiClient )
resp , r , err := api . DeleteAWSEventBridgeSource ( ctx , body )
if err != nil {
fmt . Fprintf ( os . Stderr , "Error when calling `AWSIntegrationApi.DeleteAWSEventBridgeSource`: %v\n" , err )
fmt . Fprintf ( os . Stderr , "Full HTTP response: %v\n" , r )
}
responseContent , _ := json . MarshalIndent ( resp , "" , " " )
fmt . Fprintf ( os . Stdout , "Response from `AWSIntegrationApi.DeleteAWSEventBridgeSource`:\n%s\n" , responseContent )
}
Instructions First install the library and its dependencies and then save the example to main.go and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" go run "main.go"
// Delete an Amazon EventBridge source returns "OK" response
import com.datadog.api.client.ApiClient ;
import com.datadog.api.client.ApiException ;
import com.datadog.api.client.v1.api.AwsIntegrationApi ;
import com.datadog.api.client.v1.model.AWSEventBridgeDeleteRequest ;
import com.datadog.api.client.v1.model.AWSEventBridgeDeleteResponse ;
public class Example {
public static void main ( String [] args ) {
ApiClient defaultClient = ApiClient . getDefaultApiClient ();
AwsIntegrationApi apiInstance = new AwsIntegrationApi ( defaultClient );
AWSEventBridgeDeleteRequest body =
new AWSEventBridgeDeleteRequest ()
. accountId ( "123456789012" )
. eventGeneratorName ( "app-alerts-zyxw3210" )
. region ( "us-east-1" );
try {
AWSEventBridgeDeleteResponse result = apiInstance . deleteAWSEventBridgeSource ( body );
System . out . println ( result );
} catch ( ApiException e ) {
System . err . println ( "Exception when calling AwsIntegrationApi#deleteAWSEventBridgeSource" );
System . err . println ( "Status code: " + e . getCode ());
System . err . println ( "Reason: " + e . getResponseBody ());
System . err . println ( "Response headers: " + e . getResponseHeaders ());
e . printStackTrace ();
}
}
}
Instructions First install the library and its dependencies and then save the example to Example.java and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" java "Example.java"
// Delete an Amazon EventBridge source returns "OK" response
use datadog_api_client ::datadog ;
use datadog_api_client ::datadogV1 ::api_aws_integration ::AWSIntegrationAPI ;
use datadog_api_client ::datadogV1 ::model ::AWSEventBridgeDeleteRequest ;
#[tokio::main]
async fn main () {
let body = AWSEventBridgeDeleteRequest ::new ()
. account_id ( "123456789012" . to_string ())
. event_generator_name ( "app-alerts-zyxw3210" . to_string ())
. region ( "us-east-1" . to_string ());
let configuration = datadog ::Configuration ::new ();
let api = AWSIntegrationAPI ::with_config ( configuration );
let resp = api . delete_aws_event_bridge_source ( body ). await ;
if let Ok ( value ) = resp {
println! ( " {:#?} " , value );
} else {
println! ( " {:#?} " , resp . unwrap_err ());
}
}
Instructions First install the library and its dependencies and then save the example to src/main.rs and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" cargo run
/**
* Delete an Amazon EventBridge source returns "OK" response
*/
import { client , v1 } from "@datadog/datadog-api-client" ;
const configuration = client . createConfiguration ();
const apiInstance = new v1 . AWSIntegrationApi ( configuration );
const params : v1.AWSIntegrationApiDeleteAWSEventBridgeSourceRequest = {
body : {
accountId : "123456789012" ,
eventGeneratorName : "app-alerts-zyxw3210" ,
region : "us-east-1" ,
},
};
apiInstance
. deleteAWSEventBridgeSource ( params )
. then (( data : v1.AWSEventBridgeDeleteResponse ) => {
console . log (
"API called successfully. Returned data: " + JSON . stringify ( data )
);
})
. catch (( error : any ) => console . error ( error ));
Instructions First install the library and its dependencies and then save the example to example.ts and run following commands:
DD_SITE = "datadoghq.com us3.datadoghq.com us5.datadoghq.com datadoghq.eu ap1.datadoghq.com ap2.datadoghq.com ddog-gov.com us2.ddog-gov.com " DD_API_KEY = "<API-KEY>" DD_APP_KEY = "<APP-KEY>" tsc "example.ts"