-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit e7f4e7be of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Oct 13, 2023
1 parent
9b52144
commit b26f894
Showing
25 changed files
with
1,225 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Create 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.AWSIntegrationApiCreateAWSEventBridgeSourceRequest = { | ||
body: { | ||
accountId: "123456789012", | ||
createEventBus: true, | ||
eventGeneratorName: "app-alerts", | ||
region: "us-east-1", | ||
}, | ||
}; | ||
|
||
apiInstance | ||
.createAWSEventBridgeSource(params) | ||
.then((data: v1.AWSEventBridgeCreateResponse) => { | ||
console.log( | ||
"API called successfully. Returned data: " + JSON.stringify(data) | ||
); | ||
}) | ||
.catch((error: any) => console.error(error)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* 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)); |
Oops, something went wrong.