From d8715103db35b04103bec63e15593c90714bf043 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 28 Oct 2025 14:07:55 +0000 Subject: [PATCH] Regenerate client from commit 97e042b of spec repo --- .generator/schemas/v1/openapi.yaml | 3 + .generator/schemas/v2/openapi.yaml | 430 ++++++++++++++++-- .../CreateAWSEventBridgeSource.ts | 31 ++ .../DeleteAWSEventBridgeSource.ts | 30 ++ .../ListAWSEventBridgeSources.ts | 17 + features/support/scenarios_model_mapping.ts | 17 + features/v2/aws_integration.feature | 47 ++ features/v2/undo.json | 20 + .../apis/AWSIntegrationApi.ts | 379 ++++++++++++++- packages/datadog-api-client-v2/index.ts | 22 + .../AWSAccountCreateRequestAttributes.ts | 3 +- .../models/AWSAccountPartition.ts | 3 +- .../models/AWSAccountResponseAttributes.ts | 3 +- .../models/AWSAccountResponseData.ts | 3 +- .../AWSAccountUpdateRequestAttributes.ts | 3 +- .../models/AWSAccountUpdateRequestData.ts | 3 +- .../AWSEventBridgeAccountConfiguration.ts | 70 +++ .../models/AWSEventBridgeCreateRequest.ts | 54 +++ .../AWSEventBridgeCreateRequestAttributes.ts | 82 ++++ .../models/AWSEventBridgeCreateRequestData.ts | 64 +++ .../models/AWSEventBridgeCreateResponse.ts | 54 +++ .../AWSEventBridgeCreateResponseAttributes.ts | 78 ++++ .../AWSEventBridgeCreateResponseData.ts | 72 +++ .../models/AWSEventBridgeCreateStatus.ts | 14 + .../models/AWSEventBridgeDeleteRequest.ts | 54 +++ .../AWSEventBridgeDeleteRequestAttributes.ts | 72 +++ .../models/AWSEventBridgeDeleteRequestData.ts | 64 +++ .../models/AWSEventBridgeDeleteResponse.ts | 54 +++ .../AWSEventBridgeDeleteResponseAttributes.ts | 53 +++ .../AWSEventBridgeDeleteResponseData.ts | 72 +++ .../models/AWSEventBridgeDeleteStatus.ts | 14 + .../models/AWSEventBridgeListResponse.ts | 54 +++ .../AWSEventBridgeListResponseAttributes.ts | 61 +++ .../models/AWSEventBridgeListResponseData.ts | 73 +++ .../models/AWSEventBridgeSource.ts | 61 +++ .../models/AWSEventBridgeType.ts | 14 + .../models/AWSLambdaForwarderConfig.ts | 11 +- .../models/AWSLogSourceTagFilter.ts | 10 +- .../models/AWSLogsConfig.ts | 5 +- .../models/AWSNamespaceFiltersExcludeOnly.ts | 12 +- .../models/AWSNamespaceTagFilter.ts | 10 +- .../models/AWSResourcesConfig.ts | 7 +- .../models/ObjectSerializer.ts | 39 ++ 43 files changed, 2190 insertions(+), 52 deletions(-) create mode 100644 examples/v2/aws-integration/CreateAWSEventBridgeSource.ts create mode 100644 examples/v2/aws-integration/DeleteAWSEventBridgeSource.ts create mode 100644 examples/v2/aws-integration/ListAWSEventBridgeSources.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeAccountConfiguration.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequest.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequestAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponse.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponseAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeCreateStatus.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequest.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequestAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequestData.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponse.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponseAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeDeleteStatus.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeListResponse.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeListResponseAttributes.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeListResponseData.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeSource.ts create mode 100644 packages/datadog-api-client-v2/models/AWSEventBridgeType.ts diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 42ec940d0427..9a4d9f05ee8c 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -27888,6 +27888,7 @@ paths: - aws_configuration_read /api/v1/integration/aws/event_bridge: delete: + deprecated: true description: Delete an Amazon EventBridge source. operationId: DeleteAWSEventBridgeSource requestBody: @@ -27928,6 +27929,7 @@ paths: permissions: - manage_integrations get: + deprecated: true description: Get all Amazon EventBridge sources. operationId: ListAWSEventBridgeSources parameters: [] @@ -27959,6 +27961,7 @@ paths: operator: OPEN permissions: [] post: + deprecated: true description: Create an Amazon EventBridge source. operationId: CreateAWSEventBridgeSource requestBody: diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c31c76079af1..e44adfced6ee 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1428,7 +1428,9 @@ components: AWSAccountConfigID: description: 'Unique Datadog ID of the AWS Account Integration Config. - To get the config ID for an account, use the [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) + To get the config ID for an account, use the + + [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) endpoint and query by AWS Account ID.' example: 00000000-abcd-0001-0000-000000000000 @@ -1486,6 +1488,7 @@ components: description: 'AWS partition your AWS account is scoped to. Defaults to `aws`. See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) + in the AWS documentation for more information.' enum: - aws @@ -1730,6 +1733,269 @@ components: description: The definition of `AWSCredentialsUpdate` object. oneOf: - $ref: '#/components/schemas/AWSAssumeRoleUpdate' + AWSEventBridgeAccountConfiguration: + description: The EventBridge configuration for one AWS account. + properties: + account_id: + description: Your AWS Account ID without dashes. + example: '123456789012' + type: string + event_hubs: + description: Array of AWS event sources associated with this account. + items: + $ref: '#/components/schemas/AWSEventBridgeSource' + type: array + tags: + description: 'Array of tags (in the form `key:value`) which are added to + all hosts + + and metrics reporting through the main AWS integration.' + example: + - $KEY:$VALUE + items: + description: The list of the host_tags. + type: string + type: array + type: object + AWSEventBridgeCreateRequest: + description: Amazon EventBridge create request body. + properties: + data: + $ref: '#/components/schemas/AWSEventBridgeCreateRequestData' + required: + - data + type: object + AWSEventBridgeCreateRequestAttributes: + description: The EventBridge source to be created. + properties: + account_id: + $ref: '#/components/schemas/AWSAccountID' + create_event_bus: + description: 'Set to true if Datadog should create the event bus in addition + to the event + + source. Requires the `events:CreateEventBus` permission.' + example: true + type: boolean + event_generator_name: + description: 'The given part of the event source name, which is then combined + with an + + assigned suffix to form the full name.' + example: app-alerts + type: string + region: + description: 'The event source''s + + [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).' + example: us-east-1 + type: string + required: + - account_id + - event_generator_name + - region + type: object + AWSEventBridgeCreateRequestData: + description: Amazon EventBridge create request data. + properties: + attributes: + $ref: '#/components/schemas/AWSEventBridgeCreateRequestAttributes' + type: + $ref: '#/components/schemas/AWSEventBridgeType' + required: + - attributes + - type + type: object + AWSEventBridgeCreateResponse: + description: Amazon EventBridge create response body. + properties: + data: + $ref: '#/components/schemas/AWSEventBridgeCreateResponseData' + required: + - data + type: object + AWSEventBridgeCreateResponseAttributes: + description: A created EventBridge source. + properties: + event_source_name: + description: The event source name. + example: app-alerts-zyxw3210 + type: string + has_bus: + description: True if the event bus was created in addition to the source. + example: true + type: boolean + region: + description: 'The event source''s + + [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).' + example: us-east-1 + type: string + status: + $ref: '#/components/schemas/AWSEventBridgeCreateStatus' + type: object + AWSEventBridgeCreateResponseData: + description: Amazon EventBridge create response data. + properties: + attributes: + $ref: '#/components/schemas/AWSEventBridgeCreateResponseAttributes' + id: + default: create_event_bridge + description: The ID of the Amazon EventBridge create response data. + example: create_event_bridge + type: string + type: + $ref: '#/components/schemas/AWSEventBridgeType' + required: + - attributes + - type + type: object + AWSEventBridgeCreateStatus: + description: The event source status "created". + enum: + - created + example: created + type: string + x-enum-varnames: + - CREATED + AWSEventBridgeDeleteRequest: + description: Amazon EventBridge delete request body. + properties: + data: + $ref: '#/components/schemas/AWSEventBridgeDeleteRequestData' + required: + - data + type: object + AWSEventBridgeDeleteRequestAttributes: + description: The EventBridge source to be deleted. + properties: + account_id: + $ref: '#/components/schemas/AWSAccountID' + event_generator_name: + description: The event source name. + example: app-alerts-zyxw3210 + type: string + region: + description: 'The event source''s + + [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).' + example: us-east-1 + type: string + required: + - account_id + - event_generator_name + - region + type: object + AWSEventBridgeDeleteRequestData: + description: Amazon EventBridge delete request data. + properties: + attributes: + $ref: '#/components/schemas/AWSEventBridgeDeleteRequestAttributes' + type: + $ref: '#/components/schemas/AWSEventBridgeType' + required: + - attributes + - type + type: object + AWSEventBridgeDeleteResponse: + description: Amazon EventBridge delete response body. + properties: + data: + $ref: '#/components/schemas/AWSEventBridgeDeleteResponseData' + required: + - data + type: object + AWSEventBridgeDeleteResponseAttributes: + description: The EventBridge source delete response attributes. + properties: + status: + $ref: '#/components/schemas/AWSEventBridgeDeleteStatus' + type: object + AWSEventBridgeDeleteResponseData: + description: Amazon EventBridge delete response data. + properties: + attributes: + $ref: '#/components/schemas/AWSEventBridgeDeleteResponseAttributes' + id: + default: delete_event_bridge + description: The ID of the Amazon EventBridge list response data. + example: delete_event_bridge + type: string + type: + $ref: '#/components/schemas/AWSEventBridgeType' + required: + - attributes + - type + type: object + AWSEventBridgeDeleteStatus: + description: The event source status "empty". + enum: + - empty + example: empty + type: string + x-enum-varnames: + - EMPTY + AWSEventBridgeListResponse: + description: Amazon EventBridge list response body. + properties: + data: + $ref: '#/components/schemas/AWSEventBridgeListResponseData' + required: + - data + type: object + AWSEventBridgeListResponseAttributes: + description: An object describing the EventBridge configuration for multiple + accounts. + properties: + accounts: + description: List of accounts with their event sources. + items: + $ref: '#/components/schemas/AWSEventBridgeAccountConfiguration' + type: array + is_installed: + description: True if the EventBridge integration is enabled for your organization. + type: boolean + type: object + AWSEventBridgeListResponseData: + description: Amazon EventBridge list response data. + properties: + attributes: + $ref: '#/components/schemas/AWSEventBridgeListResponseAttributes' + id: + default: get_event_bridge + description: The ID of the Amazon EventBridge list response data. + example: get_event_bridge + type: string + type: + $ref: '#/components/schemas/AWSEventBridgeType' + required: + - attributes + - id + - type + type: object + AWSEventBridgeSource: + description: An EventBridge source. + properties: + name: + description: The event source name. + example: app-alerts-zyxw3210 + type: string + region: + description: 'The event source''s + + [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints).' + example: us-east-1 + type: string + type: object + AWSEventBridgeType: + default: event_bridge + description: Amazon EventBridge resource type. + enum: + - event_bridge + example: event_bridge + type: string + x-enum-varnames: + - EVENT_BRIDGE AWSIntegration: description: The definition of `AWSIntegration` object. properties: @@ -1809,10 +2075,12 @@ components: type: object AWSLambdaForwarderConfig: description: 'Log Autosubscription configuration for Datadog Forwarder Lambda - functions. Automatically set up triggers for existing + functions. - and new logs for some services, ensuring no logs from new resources are missed - and saving time spent on manual configuration.' + Automatically set up triggers for existing and new logs for some services, + + ensuring no logs from new resources are missed and saving time spent on manual + configuration.' properties: lambdas: description: List of Datadog Lambda Log Forwarder ARNs in your AWS account. @@ -1825,9 +2093,11 @@ components: $ref: '#/components/schemas/AWSLambdaForwarderConfigLogSourceConfig' sources: description: 'List of service IDs set to enable automatic log collection. + Discover the list of available services with the [Get list of AWS log ready services](https://docs.datadoghq.com/api/latest/aws-logs-integration/#get-list-of-aws-log-ready-services) + endpoint.' items: example: s3 @@ -1847,14 +2117,20 @@ components: description: 'AWS log source tag filter list. Defaults to `[]`. Array of log source to AWS resource tag mappings. Each mapping contains a - log source and its associated AWS resource tags (in `key:value` format) used - to filter logs submitted to Datadog. + log source and its + + associated AWS resource tags (in `key:value` format) used to filter logs submitted + to Datadog. Tag filters are applied for tags on the AWS resource emitting logs; tags associated - with the log storage entity (such as a CloudWatch Log Group or S3 Bucket) - are not considered. + with the + + log storage entity (such as a CloudWatch Log Group or S3 Bucket) are not considered. + + For more information on resource tag filter syntax, + + [see AWS resource exclusion](https://docs.datadoghq.com/account_management/billing/aws/#aws-resource-exclusion) - For more information on resource tag filter syntax, [see AWS resource exclusion](https://docs.datadoghq.com/account_management/billing/aws/#aws-resource-exclusion) in the AWS integration billing page.' properties: source: @@ -1958,17 +2234,21 @@ components: - $ref: '#/components/schemas/AWSNamespaceFiltersExcludeOnly' - $ref: '#/components/schemas/AWSNamespaceFiltersIncludeOnly' AWSNamespaceFiltersExcludeOnly: - description: 'Exclude only these namespaces from metrics collection. Defaults - to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`. + description: 'Exclude only these namespaces from metrics collection. + + Defaults to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`. `AWS/SQS`, `AWS/ElasticMapReduce`, and `AWS/Usage` are excluded by default + to reduce your AWS CloudWatch costs from `GetMetricData` API calls.' properties: exclude_only: - description: 'Exclude only these namespaces from metrics collection. Defaults - to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`. + description: 'Exclude only these namespaces from metrics collection. + + Defaults to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`. `AWS/SQS`, `AWS/ElasticMapReduce`, and `AWS/Usage` are excluded by default + to reduce your AWS CloudWatch costs from `GetMetricData` API calls.' example: - AWS/SQS @@ -1999,15 +2279,18 @@ components: description: 'AWS Metrics Collection tag filters list. Defaults to `[]`. The array of custom AWS resource tags (in the form `key:value`) defines a - filter that Datadog uses when collecting metrics from a specified service. + filter that Datadog uses + + when collecting metrics from a specified service. Wildcards, such as `?` (match a single character) and `*` (match multiple - characters), and exclusion using `!` before the tag are supported. + characters), + + and exclusion using `!` before the tag are supported. - For EC2, only hosts that match one of the defined tags will be imported into - Datadog. The rest will be ignored. + For EC2, only hosts that match one of the defined tags are imported into Datadog. - For example, `env:production,instance-type:c?.*,!region:us-east-1`.' + The rest are ignored. For example, `env:production,instance-type:c?.*,!region:us-east-1`.' properties: namespace: description: The AWS service for which the tag filters defined in `tags` @@ -2147,15 +2430,19 @@ components: description: AWS Resources Collection config. properties: cloud_security_posture_management_collection: - description: Enable Cloud Security Management to scan AWS resources for - vulnerabilities, misconfigurations, identity risks, and compliance violations. - Defaults to `false`. Requires `extended_collection` to be set to `true`. + description: 'Enable Cloud Security Management to scan AWS resources for + vulnerabilities, misconfigurations, + + identity risks, and compliance violations. Defaults to `false`. + + Requires `extended_collection` to be set to `true`.' example: false type: boolean extended_collection: - description: Whether Datadog collects additional attributes and configuration - information about the resources in your AWS account. Defaults to `true`. - Required for `cloud_security_posture_management_collection`. + description: 'Whether Datadog collects additional attributes and configuration + information about the resources + + in your AWS account. Defaults to `true`. Required for `cloud_security_posture_management_collection`.' example: true type: boolean type: object @@ -63553,8 +63840,9 @@ paths: description: Get a list of AWS Account Integration Configs. operationId: ListAWSAccounts parameters: - - description: Optional query parameter to filter accounts by AWS Account ID. - If not provided, all accounts are returned. + - description: 'Optional query parameter to filter accounts by AWS Account ID. + + If not provided, all accounts are returned.' example: '123456789012' in: query name: aws_account_id @@ -63719,6 +64007,96 @@ paths: operator: OR permissions: - aws_configuration_read + /api/v2/integration/aws/event_bridge: + delete: + description: Delete an Amazon EventBridge source. + operationId: DeleteAWSEventBridgeSource + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AWSEventBridgeDeleteRequest' + description: Delete the Amazon EventBridge source with the given name, region, + and associated AWS account. + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AWSEventBridgeDeleteResponse' + description: Amazon EventBridge source deleted. + '400': + $ref: '#/components/responses/BadRequestResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Delete an Amazon EventBridge source + tags: + - AWS Integration + x-codegen-request-body-name: body + x-permission: + operator: OR + permissions: + - manage_integrations + get: + description: Get all Amazon EventBridge sources. + operationId: ListAWSEventBridgeSources + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AWSEventBridgeListResponse' + description: Amazon EventBridge sources list. + '400': + $ref: '#/components/responses/BadRequestResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Get all Amazon EventBridge sources + tags: + - AWS Integration + x-permission: + operator: OR + permissions: + - integrations_read + post: + description: Create an Amazon EventBridge source. + operationId: CreateAWSEventBridgeSource + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AWSEventBridgeCreateRequest' + description: Create an Amazon EventBridge source for an AWS account with a + given name and region. + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AWSEventBridgeCreateResponse' + description: Amazon EventBridge source created. + '400': + $ref: '#/components/responses/BadRequestResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '409': + $ref: '#/components/responses/ConflictResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Create an Amazon EventBridge source + tags: + - AWS Integration + x-codegen-request-body-name: body + x-permission: + operator: OR + permissions: + - manage_integrations /api/v2/integration/aws/generate_new_external_id: post: description: Generate a new external ID for AWS role-based authentication. diff --git a/examples/v2/aws-integration/CreateAWSEventBridgeSource.ts b/examples/v2/aws-integration/CreateAWSEventBridgeSource.ts new file mode 100644 index 000000000000..833eea0a54ef --- /dev/null +++ b/examples/v2/aws-integration/CreateAWSEventBridgeSource.ts @@ -0,0 +1,31 @@ +/** + * Create an Amazon EventBridge source returns "Amazon EventBridge source created." response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.AWSIntegrationApi(configuration); + +const params: v2.AWSIntegrationApiCreateAWSEventBridgeSourceRequest = { + body: { + data: { + attributes: { + accountId: "123456789012", + createEventBus: true, + eventGeneratorName: "app-alerts", + region: "us-east-1", + }, + type: "event_bridge", + }, + }, +}; + +apiInstance + .createAWSEventBridgeSource(params) + .then((data: v2.AWSEventBridgeCreateResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/DeleteAWSEventBridgeSource.ts b/examples/v2/aws-integration/DeleteAWSEventBridgeSource.ts new file mode 100644 index 000000000000..404a2c3fb249 --- /dev/null +++ b/examples/v2/aws-integration/DeleteAWSEventBridgeSource.ts @@ -0,0 +1,30 @@ +/** + * Delete an Amazon EventBridge source returns "Amazon EventBridge source deleted." response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.AWSIntegrationApi(configuration); + +const params: v2.AWSIntegrationApiDeleteAWSEventBridgeSourceRequest = { + body: { + data: { + attributes: { + accountId: "123456789012", + eventGeneratorName: "app-alerts-zyxw3210", + region: "us-east-1", + }, + type: "event_bridge", + }, + }, +}; + +apiInstance + .deleteAWSEventBridgeSource(params) + .then((data: v2.AWSEventBridgeDeleteResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/aws-integration/ListAWSEventBridgeSources.ts b/examples/v2/aws-integration/ListAWSEventBridgeSources.ts new file mode 100644 index 000000000000..2eaf9c6021e2 --- /dev/null +++ b/examples/v2/aws-integration/ListAWSEventBridgeSources.ts @@ -0,0 +1,17 @@ +/** + * Get all Amazon EventBridge sources returns "Amazon EventBridge sources list." response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.AWSIntegrationApi(configuration); + +apiInstance + .listAWSEventBridgeSources() + .then((data: v2.AWSEventBridgeListResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index 9c82691853c5..881a1098d2f7 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -5924,6 +5924,23 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { "v2.ListAWSNamespaces": { "operationResponseType": "AWSNamespacesResponse", }, + "v2.ListAWSEventBridgeSources": { + "operationResponseType": "AWSEventBridgeListResponse", + }, + "v2.CreateAWSEventBridgeSource": { + "body": { + "type": "AWSEventBridgeCreateRequest", + "format": "", + }, + "operationResponseType": "AWSEventBridgeCreateResponse", + }, + "v2.DeleteAWSEventBridgeSource": { + "body": { + "type": "AWSEventBridgeDeleteRequest", + "format": "", + }, + "operationResponseType": "AWSEventBridgeDeleteResponse", + }, "v2.CreateNewAWSExternalID": { "operationResponseType": "AWSNewExternalIDResponse", }, diff --git a/features/v2/aws_integration.feature b/features/v2/aws_integration.feature index 16522a97cf57..30ded64d73f1 100644 --- a/features/v2/aws_integration.feature +++ b/features/v2/aws_integration.feature @@ -38,6 +38,27 @@ Feature: AWS Integration When the request is sent Then the response status is 409 Conflict + @generated @skip @team:DataDog/aws-integrations + Scenario: Create an Amazon EventBridge source returns "Amazon EventBridge source created." response + Given new "CreateAWSEventBridgeSource" request + And body with value {"data": {"attributes": {"account_id": "123456789012", "create_event_bus": true, "event_generator_name": "app-alerts", "region": "us-east-1"}, "type": "event_bridge"}} + When the request is sent + Then the response status is 200 Amazon EventBridge source created. + + @generated @skip @team:DataDog/aws-integrations + Scenario: Create an Amazon EventBridge source returns "Bad Request" response + Given new "CreateAWSEventBridgeSource" request + And body with value {"data": {"attributes": {"account_id": "123456789012", "create_event_bus": true, "event_generator_name": "app-alerts", "region": "us-east-1"}, "type": "event_bridge"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:DataDog/aws-integrations + Scenario: Create an Amazon EventBridge source returns "Conflict" response + Given new "CreateAWSEventBridgeSource" request + And body with value {"data": {"attributes": {"account_id": "123456789012", "create_event_bus": true, "event_generator_name": "app-alerts", "region": "us-east-1"}, "type": "event_bridge"}} + When the request is sent + Then the response status is 409 Conflict + @team:DataDog/aws-integrations Scenario: Delete an AWS integration returns "Bad Request" response Given new "DeleteAWSAccount" request @@ -61,6 +82,20 @@ Feature: AWS Integration When the request is sent Then the response status is 404 Not Found + @generated @skip @team:DataDog/aws-integrations + Scenario: Delete an Amazon EventBridge source returns "Amazon EventBridge source deleted." response + Given new "DeleteAWSEventBridgeSource" request + And body with value {"data": {"attributes": {"account_id": "123456789012", "event_generator_name": "app-alerts-zyxw3210", "region": "us-east-1"}, "type": "event_bridge"}} + When the request is sent + Then the response status is 200 Amazon EventBridge source deleted. + + @generated @skip @team:DataDog/aws-integrations + Scenario: Delete an Amazon EventBridge source returns "Bad Request" response + Given new "DeleteAWSEventBridgeSource" request + And body with value {"data": {"attributes": {"account_id": "123456789012", "event_generator_name": "app-alerts-zyxw3210", "region": "us-east-1"}, "type": "event_bridge"}} + When the request is sent + Then the response status is 400 Bad Request + @team:DataDog/aws-integrations Scenario: Generate a new external ID returns "AWS External ID object" response Given new "CreateNewAWSExternalID" request @@ -91,6 +126,18 @@ Feature: AWS Integration When the request is sent Then the response status is 200 AWS integration standard IAM permissions. + @generated @skip @team:DataDog/aws-integrations + Scenario: Get all Amazon EventBridge sources returns "Amazon EventBridge sources list." response + Given new "ListAWSEventBridgeSources" request + When the request is sent + Then the response status is 200 Amazon EventBridge sources list. + + @generated @skip @team:DataDog/aws-integrations + Scenario: Get all Amazon EventBridge sources returns "Bad Request" response + Given new "ListAWSEventBridgeSources" request + When the request is sent + Then the response status is 400 Bad Request + @team:DataDog/aws-integrations Scenario: Get an AWS integration by config ID returns "AWS Account object" response Given there is a valid "aws_account_v2" in the system diff --git a/features/v2/undo.json b/features/v2/undo.json index eb1380ab6b86..ec7eca2cfdf2 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -1712,6 +1712,26 @@ "type": "safe" } }, + "DeleteAWSEventBridgeSource": { + "tag": "AWS Integration", + "undo": { + "type": "idempotent" + } + }, + "ListAWSEventBridgeSources": { + "tag": "AWS Integration", + "undo": { + "type": "safe" + } + }, + "CreateAWSEventBridgeSource": { + "tag": "AWS Integration", + "undo": { + "operationId": "DeleteAWSEventBridgeSource", + "parameters": [], + "type": "unsafe" + } + }, "CreateNewAWSExternalID": { "tag": "AWS Integration", "undo": { diff --git a/packages/datadog-api-client-v2/apis/AWSIntegrationApi.ts b/packages/datadog-api-client-v2/apis/AWSIntegrationApi.ts index d150e00f9d04..1d930a7be7fd 100644 --- a/packages/datadog-api-client-v2/apis/AWSIntegrationApi.ts +++ b/packages/datadog-api-client-v2/apis/AWSIntegrationApi.ts @@ -21,6 +21,11 @@ import { AWSAccountCreateRequest } from "../models/AWSAccountCreateRequest"; import { AWSAccountResponse } from "../models/AWSAccountResponse"; import { AWSAccountsResponse } from "../models/AWSAccountsResponse"; import { AWSAccountUpdateRequest } from "../models/AWSAccountUpdateRequest"; +import { AWSEventBridgeCreateRequest } from "../models/AWSEventBridgeCreateRequest"; +import { AWSEventBridgeCreateResponse } from "../models/AWSEventBridgeCreateResponse"; +import { AWSEventBridgeDeleteRequest } from "../models/AWSEventBridgeDeleteRequest"; +import { AWSEventBridgeDeleteResponse } from "../models/AWSEventBridgeDeleteResponse"; +import { AWSEventBridgeListResponse } from "../models/AWSEventBridgeListResponse"; import { AWSIntegrationIamPermissionsResponse } from "../models/AWSIntegrationIamPermissionsResponse"; import { AWSNamespacesResponse } from "../models/AWSNamespacesResponse"; import { AWSNewExternalIDResponse } from "../models/AWSNewExternalIDResponse"; @@ -67,6 +72,47 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + public async createAWSEventBridgeSource( + body: AWSEventBridgeCreateRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "createAWSEventBridgeSource"); + } + + // Path Params + const localVarPath = "/api/v2/integration/aws/event_bridge"; + + // Make Request Context + const requestContext = _config + .getServer("v2.AWSIntegrationApi.createAWSEventBridgeSource") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "AWSEventBridgeCreateRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + public async createNewAWSExternalID( _options?: Configuration ): Promise { @@ -125,6 +171,47 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + public async deleteAWSEventBridgeSource( + body: AWSEventBridgeDeleteRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "deleteAWSEventBridgeSource"); + } + + // Path Params + const localVarPath = "/api/v2/integration/aws/event_bridge"; + + // Make Request Context + const requestContext = _config + .getServer("v2.AWSIntegrationApi.deleteAWSEventBridgeSource") + .makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "AWSEventBridgeDeleteRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + public async getAWSAccount( awsAccountConfigId: string, _options?: Configuration @@ -268,6 +355,30 @@ export class AWSIntegrationApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + public async listAWSEventBridgeSources( + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // Path Params + const localVarPath = "/api/v2/integration/aws/event_bridge"; + + // Make Request Context + const requestContext = _config + .getServer("v2.AWSIntegrationApi.listAWSEventBridgeSources") + .makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + public async listAWSNamespaces( _options?: Configuration ): Promise { @@ -408,6 +519,69 @@ export class AWSIntegrationApiResponseProcessor { ); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createAWSEventBridgeSource + * @throws ApiException if the response code was not in [200, 299] + */ + public async createAWSEventBridgeSource( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: AWSEventBridgeCreateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AWSEventBridgeCreateResponse" + ) as AWSEventBridgeCreateResponse; + return body; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 409 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: AWSEventBridgeCreateResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AWSEventBridgeCreateResponse", + "" + ) as AWSEventBridgeCreateResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -518,6 +692,68 @@ export class AWSIntegrationApiResponseProcessor { ); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteAWSEventBridgeSource + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteAWSEventBridgeSource( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: AWSEventBridgeDeleteResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AWSEventBridgeDeleteResponse" + ) as AWSEventBridgeDeleteResponse; + return body; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: AWSEventBridgeDeleteResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AWSEventBridgeDeleteResponse", + "" + ) as AWSEventBridgeDeleteResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -819,6 +1055,68 @@ export class AWSIntegrationApiResponseProcessor { ); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listAWSEventBridgeSources + * @throws ApiException if the response code was not in [200, 299] + */ + public async listAWSEventBridgeSources( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: AWSEventBridgeListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AWSEventBridgeListResponse" + ) as AWSEventBridgeListResponse; + return body; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: AWSEventBridgeListResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "AWSEventBridgeListResponse", + "" + ) as AWSEventBridgeListResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -948,6 +1246,14 @@ export interface AWSIntegrationApiCreateAWSAccountRequest { body: AWSAccountCreateRequest; } +export interface AWSIntegrationApiCreateAWSEventBridgeSourceRequest { + /** + * Create an Amazon EventBridge source for an AWS account with a given name and region. + * @type AWSEventBridgeCreateRequest + */ + body: AWSEventBridgeCreateRequest; +} + export interface AWSIntegrationApiDeleteAWSAccountRequest { /** * Unique Datadog ID of the AWS Account Integration Config. To get the config ID for an account, use the @@ -957,6 +1263,14 @@ export interface AWSIntegrationApiDeleteAWSAccountRequest { awsAccountConfigId: string; } +export interface AWSIntegrationApiDeleteAWSEventBridgeSourceRequest { + /** + * Delete the Amazon EventBridge source with the given name, region, and associated AWS account. + * @type AWSEventBridgeDeleteRequest + */ + body: AWSEventBridgeDeleteRequest; +} + export interface AWSIntegrationApiGetAWSAccountRequest { /** * Unique Datadog ID of the AWS Account Integration Config. To get the config ID for an account, use the @@ -968,7 +1282,8 @@ export interface AWSIntegrationApiGetAWSAccountRequest { export interface AWSIntegrationApiListAWSAccountsRequest { /** - * Optional query parameter to filter accounts by AWS Account ID. If not provided, all accounts are returned. + * Optional query parameter to filter accounts by AWS Account ID. + * If not provided, all accounts are returned. * @type string */ awsAccountId?: string; @@ -1025,6 +1340,27 @@ export class AWSIntegrationApi { }); } + /** + * Create an Amazon EventBridge source. + * @param param The request object + */ + public createAWSEventBridgeSource( + param: AWSIntegrationApiCreateAWSEventBridgeSourceRequest, + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.createAWSEventBridgeSource(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createAWSEventBridgeSource( + responseContext + ); + }); + }); + } + /** * Generate a new external ID for AWS role-based authentication. * @param param The request object @@ -1064,6 +1400,27 @@ export class AWSIntegrationApi { }); } + /** + * Delete an Amazon EventBridge source. + * @param param The request object + */ + public deleteAWSEventBridgeSource( + param: AWSIntegrationApiDeleteAWSEventBridgeSourceRequest, + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.deleteAWSEventBridgeSource(param.body, options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteAWSEventBridgeSource( + responseContext + ); + }); + }); + } + /** * Get an AWS Account Integration Config by config ID. * @param param The request object @@ -1168,6 +1525,26 @@ export class AWSIntegrationApi { }); } + /** + * Get all Amazon EventBridge sources. + * @param param The request object + */ + public listAWSEventBridgeSources( + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.listAWSEventBridgeSources(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listAWSEventBridgeSources( + responseContext + ); + }); + }); + } + /** * Get a list of available AWS CloudWatch namespaces that can send metrics to Datadog. * @param param The request object diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index 393dde0d1800..c5aac6b6490d 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -18,7 +18,9 @@ export { export { AWSIntegrationApiCreateAWSAccountRequest, + AWSIntegrationApiCreateAWSEventBridgeSourceRequest, AWSIntegrationApiDeleteAWSAccountRequest, + AWSIntegrationApiDeleteAWSEventBridgeSourceRequest, AWSIntegrationApiGetAWSAccountRequest, AWSIntegrationApiListAWSAccountsRequest, AWSIntegrationApiUpdateAWSAccountRequest, @@ -1140,6 +1142,26 @@ export { AwsCurConfigResponseDataAttributesAccountFilters } from "./models/AwsCu export { AwsCurConfigResponseDataType } from "./models/AwsCurConfigResponseDataType"; export { AwsCURConfigsResponse } from "./models/AwsCURConfigsResponse"; export { AwsCURConfigType } from "./models/AwsCURConfigType"; +export { AWSEventBridgeAccountConfiguration } from "./models/AWSEventBridgeAccountConfiguration"; +export { AWSEventBridgeCreateRequest } from "./models/AWSEventBridgeCreateRequest"; +export { AWSEventBridgeCreateRequestAttributes } from "./models/AWSEventBridgeCreateRequestAttributes"; +export { AWSEventBridgeCreateRequestData } from "./models/AWSEventBridgeCreateRequestData"; +export { AWSEventBridgeCreateResponse } from "./models/AWSEventBridgeCreateResponse"; +export { AWSEventBridgeCreateResponseAttributes } from "./models/AWSEventBridgeCreateResponseAttributes"; +export { AWSEventBridgeCreateResponseData } from "./models/AWSEventBridgeCreateResponseData"; +export { AWSEventBridgeCreateStatus } from "./models/AWSEventBridgeCreateStatus"; +export { AWSEventBridgeDeleteRequest } from "./models/AWSEventBridgeDeleteRequest"; +export { AWSEventBridgeDeleteRequestAttributes } from "./models/AWSEventBridgeDeleteRequestAttributes"; +export { AWSEventBridgeDeleteRequestData } from "./models/AWSEventBridgeDeleteRequestData"; +export { AWSEventBridgeDeleteResponse } from "./models/AWSEventBridgeDeleteResponse"; +export { AWSEventBridgeDeleteResponseAttributes } from "./models/AWSEventBridgeDeleteResponseAttributes"; +export { AWSEventBridgeDeleteResponseData } from "./models/AWSEventBridgeDeleteResponseData"; +export { AWSEventBridgeDeleteStatus } from "./models/AWSEventBridgeDeleteStatus"; +export { AWSEventBridgeListResponse } from "./models/AWSEventBridgeListResponse"; +export { AWSEventBridgeListResponseAttributes } from "./models/AWSEventBridgeListResponseAttributes"; +export { AWSEventBridgeListResponseData } from "./models/AWSEventBridgeListResponseData"; +export { AWSEventBridgeSource } from "./models/AWSEventBridgeSource"; +export { AWSEventBridgeType } from "./models/AWSEventBridgeType"; export { AWSIntegration } from "./models/AWSIntegration"; export { AWSIntegrationIamPermissionsResponse } from "./models/AWSIntegrationIamPermissionsResponse"; export { AWSIntegrationIamPermissionsResponseAttributes } from "./models/AWSIntegrationIamPermissionsResponseAttributes"; diff --git a/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.ts index 5e9355729662..0deb700e2bba 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountCreateRequestAttributes.ts @@ -31,7 +31,8 @@ export class AWSAccountCreateRequestAttributes { "awsAccountId": string; /** * AWS partition your AWS account is scoped to. Defaults to `aws`. - * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) in the AWS documentation for more information. + * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) + * in the AWS documentation for more information. */ "awsPartition": AWSAccountPartition; /** diff --git a/packages/datadog-api-client-v2/models/AWSAccountPartition.ts b/packages/datadog-api-client-v2/models/AWSAccountPartition.ts index 8f2929220853..8ccce3036abb 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountPartition.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountPartition.ts @@ -8,7 +8,8 @@ import { UnparsedObject } from "../../datadog-api-client-common/util"; /** * AWS partition your AWS account is scoped to. Defaults to `aws`. - * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) in the AWS documentation for more information. + * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) + * in the AWS documentation for more information. */ export type AWSAccountPartition = diff --git a/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.ts b/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.ts index aecf8eee0265..d0541ea05a77 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountResponseAttributes.ts @@ -31,7 +31,8 @@ export class AWSAccountResponseAttributes { "awsAccountId": string; /** * AWS partition your AWS account is scoped to. Defaults to `aws`. - * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) in the AWS documentation for more information. + * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) + * in the AWS documentation for more information. */ "awsPartition"?: AWSAccountPartition; /** diff --git a/packages/datadog-api-client-v2/models/AWSAccountResponseData.ts b/packages/datadog-api-client-v2/models/AWSAccountResponseData.ts index fb646c8f233d..be03c8a54cd8 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountResponseData.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountResponseData.ts @@ -18,7 +18,8 @@ export class AWSAccountResponseData { "attributes"?: AWSAccountResponseAttributes; /** * Unique Datadog ID of the AWS Account Integration Config. - * To get the config ID for an account, use the [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) + * To get the config ID for an account, use the + * [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) * endpoint and query by AWS Account ID. */ "id": string; diff --git a/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.ts b/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.ts index 72786cc2202b..a50c0d7ffc49 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestAttributes.ts @@ -31,7 +31,8 @@ export class AWSAccountUpdateRequestAttributes { "awsAccountId": string; /** * AWS partition your AWS account is scoped to. Defaults to `aws`. - * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) in the AWS documentation for more information. + * See [Partitions](https://docs.aws.amazon.com/whitepapers/latest/aws-fault-isolation-boundaries/partitions.html) + * in the AWS documentation for more information. */ "awsPartition"?: AWSAccountPartition; /** diff --git a/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.ts b/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.ts index 2674f6f41605..d6639a17c9a8 100644 --- a/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.ts +++ b/packages/datadog-api-client-v2/models/AWSAccountUpdateRequestData.ts @@ -18,7 +18,8 @@ export class AWSAccountUpdateRequestData { "attributes": AWSAccountUpdateRequestAttributes; /** * Unique Datadog ID of the AWS Account Integration Config. - * To get the config ID for an account, use the [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) + * To get the config ID for an account, use the + * [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) * endpoint and query by AWS Account ID. */ "id"?: string; diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeAccountConfiguration.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeAccountConfiguration.ts new file mode 100644 index 000000000000..4d0919a614ff --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeAccountConfiguration.ts @@ -0,0 +1,70 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeSource } from "./AWSEventBridgeSource"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The EventBridge configuration for one AWS account. + */ +export class AWSEventBridgeAccountConfiguration { + /** + * Your AWS Account ID without dashes. + */ + "accountId"?: string; + /** + * Array of AWS event sources associated with this account. + */ + "eventHubs"?: Array; + /** + * Array of tags (in the form `key:value`) which are added to all hosts + * and metrics reporting through the main AWS integration. + */ + "tags"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + }, + eventHubs: { + baseName: "event_hubs", + type: "Array", + }, + tags: { + baseName: "tags", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeAccountConfiguration.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequest.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequest.ts new file mode 100644 index 000000000000..aa72e8ce12bb --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequest.ts @@ -0,0 +1,54 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeCreateRequestData } from "./AWSEventBridgeCreateRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge create request body. + */ +export class AWSEventBridgeCreateRequest { + /** + * Amazon EventBridge create request data. + */ + "data": AWSEventBridgeCreateRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "AWSEventBridgeCreateRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeCreateRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequestAttributes.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequestAttributes.ts new file mode 100644 index 000000000000..79283f3c41ab --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequestAttributes.ts @@ -0,0 +1,82 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The EventBridge source to be created. + */ +export class AWSEventBridgeCreateRequestAttributes { + /** + * AWS Account ID. + */ + "accountId": string; + /** + * Set to true if Datadog should create the event bus in addition to the event + * source. Requires the `events:CreateEventBus` permission. + */ + "createEventBus"?: boolean; + /** + * The given part of the event source name, which is then combined with an + * assigned suffix to form the full name. + */ + "eventGeneratorName": string; + /** + * The event source's + * [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). + */ + "region": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + required: true, + }, + createEventBus: { + baseName: "create_event_bus", + type: "boolean", + }, + eventGeneratorName: { + baseName: "event_generator_name", + type: "string", + required: true, + }, + region: { + baseName: "region", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeCreateRequestAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequestData.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequestData.ts new file mode 100644 index 000000000000..2ebeb6bec41c --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateRequestData.ts @@ -0,0 +1,64 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeCreateRequestAttributes } from "./AWSEventBridgeCreateRequestAttributes"; +import { AWSEventBridgeType } from "./AWSEventBridgeType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge create request data. + */ +export class AWSEventBridgeCreateRequestData { + /** + * The EventBridge source to be created. + */ + "attributes": AWSEventBridgeCreateRequestAttributes; + /** + * Amazon EventBridge resource type. + */ + "type": AWSEventBridgeType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSEventBridgeCreateRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "AWSEventBridgeType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeCreateRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponse.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponse.ts new file mode 100644 index 000000000000..4cc12ef9e762 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponse.ts @@ -0,0 +1,54 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeCreateResponseData } from "./AWSEventBridgeCreateResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge create response body. + */ +export class AWSEventBridgeCreateResponse { + /** + * Amazon EventBridge create response data. + */ + "data": AWSEventBridgeCreateResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "AWSEventBridgeCreateResponseData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeCreateResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponseAttributes.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponseAttributes.ts new file mode 100644 index 000000000000..bfc7398d176b --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponseAttributes.ts @@ -0,0 +1,78 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeCreateStatus } from "./AWSEventBridgeCreateStatus"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * A created EventBridge source. + */ +export class AWSEventBridgeCreateResponseAttributes { + /** + * The event source name. + */ + "eventSourceName"?: string; + /** + * True if the event bus was created in addition to the source. + */ + "hasBus"?: boolean; + /** + * The event source's + * [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). + */ + "region"?: string; + /** + * The event source status "created". + */ + "status"?: AWSEventBridgeCreateStatus; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + eventSourceName: { + baseName: "event_source_name", + type: "string", + }, + hasBus: { + baseName: "has_bus", + type: "boolean", + }, + region: { + baseName: "region", + type: "string", + }, + status: { + baseName: "status", + type: "AWSEventBridgeCreateStatus", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeCreateResponseAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponseData.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponseData.ts new file mode 100644 index 000000000000..2bc657344d55 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateResponseData.ts @@ -0,0 +1,72 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeCreateResponseAttributes } from "./AWSEventBridgeCreateResponseAttributes"; +import { AWSEventBridgeType } from "./AWSEventBridgeType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge create response data. + */ +export class AWSEventBridgeCreateResponseData { + /** + * A created EventBridge source. + */ + "attributes": AWSEventBridgeCreateResponseAttributes; + /** + * The ID of the Amazon EventBridge create response data. + */ + "id"?: string; + /** + * Amazon EventBridge resource type. + */ + "type": AWSEventBridgeType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSEventBridgeCreateResponseAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "AWSEventBridgeType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeCreateResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeCreateStatus.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateStatus.ts new file mode 100644 index 000000000000..ce1e47b01708 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeCreateStatus.ts @@ -0,0 +1,14 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * The event source status "created". + */ + +export type AWSEventBridgeCreateStatus = typeof CREATED | UnparsedObject; +export const CREATED = "created"; diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequest.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequest.ts new file mode 100644 index 000000000000..64fe6f40da20 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequest.ts @@ -0,0 +1,54 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeDeleteRequestData } from "./AWSEventBridgeDeleteRequestData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge delete request body. + */ +export class AWSEventBridgeDeleteRequest { + /** + * Amazon EventBridge delete request data. + */ + "data": AWSEventBridgeDeleteRequestData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "AWSEventBridgeDeleteRequestData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeDeleteRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequestAttributes.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequestAttributes.ts new file mode 100644 index 000000000000..ade23fd12763 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequestAttributes.ts @@ -0,0 +1,72 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The EventBridge source to be deleted. + */ +export class AWSEventBridgeDeleteRequestAttributes { + /** + * AWS Account ID. + */ + "accountId": string; + /** + * The event source name. + */ + "eventGeneratorName": string; + /** + * The event source's + * [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). + */ + "region": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + accountId: { + baseName: "account_id", + type: "string", + required: true, + }, + eventGeneratorName: { + baseName: "event_generator_name", + type: "string", + required: true, + }, + region: { + baseName: "region", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeDeleteRequestAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequestData.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequestData.ts new file mode 100644 index 000000000000..f6999d99aeda --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteRequestData.ts @@ -0,0 +1,64 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeDeleteRequestAttributes } from "./AWSEventBridgeDeleteRequestAttributes"; +import { AWSEventBridgeType } from "./AWSEventBridgeType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge delete request data. + */ +export class AWSEventBridgeDeleteRequestData { + /** + * The EventBridge source to be deleted. + */ + "attributes": AWSEventBridgeDeleteRequestAttributes; + /** + * Amazon EventBridge resource type. + */ + "type": AWSEventBridgeType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSEventBridgeDeleteRequestAttributes", + required: true, + }, + type: { + baseName: "type", + type: "AWSEventBridgeType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeDeleteRequestData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponse.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponse.ts new file mode 100644 index 000000000000..f84574488475 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponse.ts @@ -0,0 +1,54 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeDeleteResponseData } from "./AWSEventBridgeDeleteResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge delete response body. + */ +export class AWSEventBridgeDeleteResponse { + /** + * Amazon EventBridge delete response data. + */ + "data": AWSEventBridgeDeleteResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "AWSEventBridgeDeleteResponseData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeDeleteResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponseAttributes.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponseAttributes.ts new file mode 100644 index 000000000000..0f668f4a8fdb --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponseAttributes.ts @@ -0,0 +1,53 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeDeleteStatus } from "./AWSEventBridgeDeleteStatus"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The EventBridge source delete response attributes. + */ +export class AWSEventBridgeDeleteResponseAttributes { + /** + * The event source status "empty". + */ + "status"?: AWSEventBridgeDeleteStatus; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + status: { + baseName: "status", + type: "AWSEventBridgeDeleteStatus", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeDeleteResponseAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponseData.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponseData.ts new file mode 100644 index 000000000000..29996c48da2a --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteResponseData.ts @@ -0,0 +1,72 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeDeleteResponseAttributes } from "./AWSEventBridgeDeleteResponseAttributes"; +import { AWSEventBridgeType } from "./AWSEventBridgeType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge delete response data. + */ +export class AWSEventBridgeDeleteResponseData { + /** + * The EventBridge source delete response attributes. + */ + "attributes": AWSEventBridgeDeleteResponseAttributes; + /** + * The ID of the Amazon EventBridge list response data. + */ + "id"?: string; + /** + * Amazon EventBridge resource type. + */ + "type": AWSEventBridgeType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSEventBridgeDeleteResponseAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "AWSEventBridgeType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeDeleteResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteStatus.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteStatus.ts new file mode 100644 index 000000000000..705bba22a6c6 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeDeleteStatus.ts @@ -0,0 +1,14 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * The event source status "empty". + */ + +export type AWSEventBridgeDeleteStatus = typeof EMPTY | UnparsedObject; +export const EMPTY = "empty"; diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeListResponse.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeListResponse.ts new file mode 100644 index 000000000000..6cd937ed8182 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeListResponse.ts @@ -0,0 +1,54 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeListResponseData } from "./AWSEventBridgeListResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge list response body. + */ +export class AWSEventBridgeListResponse { + /** + * Amazon EventBridge list response data. + */ + "data": AWSEventBridgeListResponseData; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "AWSEventBridgeListResponseData", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeListResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeListResponseAttributes.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeListResponseAttributes.ts new file mode 100644 index 000000000000..8023bf022834 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeListResponseAttributes.ts @@ -0,0 +1,61 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeAccountConfiguration } from "./AWSEventBridgeAccountConfiguration"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * An object describing the EventBridge configuration for multiple accounts. + */ +export class AWSEventBridgeListResponseAttributes { + /** + * List of accounts with their event sources. + */ + "accounts"?: Array; + /** + * True if the EventBridge integration is enabled for your organization. + */ + "isInstalled"?: boolean; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + accounts: { + baseName: "accounts", + type: "Array", + }, + isInstalled: { + baseName: "is_installed", + type: "boolean", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeListResponseAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeListResponseData.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeListResponseData.ts new file mode 100644 index 000000000000..4db1c2ea2cd1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeListResponseData.ts @@ -0,0 +1,73 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { AWSEventBridgeListResponseAttributes } from "./AWSEventBridgeListResponseAttributes"; +import { AWSEventBridgeType } from "./AWSEventBridgeType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge list response data. + */ +export class AWSEventBridgeListResponseData { + /** + * An object describing the EventBridge configuration for multiple accounts. + */ + "attributes": AWSEventBridgeListResponseAttributes; + /** + * The ID of the Amazon EventBridge list response data. + */ + "id": string; + /** + * Amazon EventBridge resource type. + */ + "type": AWSEventBridgeType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "AWSEventBridgeListResponseAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "AWSEventBridgeType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeListResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeSource.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeSource.ts new file mode 100644 index 000000000000..d0a0b08d4fa4 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeSource.ts @@ -0,0 +1,61 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * An EventBridge source. + */ +export class AWSEventBridgeSource { + /** + * The event source name. + */ + "name"?: string; + /** + * The event source's + * [AWS region](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). + */ + "region"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + name: { + baseName: "name", + type: "string", + }, + region: { + baseName: "region", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return AWSEventBridgeSource.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/AWSEventBridgeType.ts b/packages/datadog-api-client-v2/models/AWSEventBridgeType.ts new file mode 100644 index 000000000000..1ed9b292f4e4 --- /dev/null +++ b/packages/datadog-api-client-v2/models/AWSEventBridgeType.ts @@ -0,0 +1,14 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Amazon EventBridge resource type. + */ + +export type AWSEventBridgeType = typeof EVENT_BRIDGE | UnparsedObject; +export const EVENT_BRIDGE = "event_bridge"; diff --git a/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.ts b/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.ts index f744dd312e61..d4b4dbcafb2a 100644 --- a/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.ts +++ b/packages/datadog-api-client-v2/models/AWSLambdaForwarderConfig.ts @@ -8,8 +8,9 @@ import { AWSLambdaForwarderConfigLogSourceConfig } from "./AWSLambdaForwarderCon import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * Log Autosubscription configuration for Datadog Forwarder Lambda functions. Automatically set up triggers for existing - * and new logs for some services, ensuring no logs from new resources are missed and saving time spent on manual configuration. + * Log Autosubscription configuration for Datadog Forwarder Lambda functions. + * Automatically set up triggers for existing and new logs for some services, + * ensuring no logs from new resources are missed and saving time spent on manual configuration. */ export class AWSLambdaForwarderConfig { /** @@ -21,8 +22,10 @@ export class AWSLambdaForwarderConfig { */ "logSourceConfig"?: AWSLambdaForwarderConfigLogSourceConfig; /** - * List of service IDs set to enable automatic log collection. Discover the list of available services with the - * [Get list of AWS log ready services](https://docs.datadoghq.com/api/latest/aws-logs-integration/#get-list-of-aws-log-ready-services) endpoint. + * List of service IDs set to enable automatic log collection. + * Discover the list of available services with the + * [Get list of AWS log ready services](https://docs.datadoghq.com/api/latest/aws-logs-integration/#get-list-of-aws-log-ready-services) + * endpoint. */ "sources"?: Array; diff --git a/packages/datadog-api-client-v2/models/AWSLogSourceTagFilter.ts b/packages/datadog-api-client-v2/models/AWSLogSourceTagFilter.ts index 53eae5e3e481..7691163d7766 100644 --- a/packages/datadog-api-client-v2/models/AWSLogSourceTagFilter.ts +++ b/packages/datadog-api-client-v2/models/AWSLogSourceTagFilter.ts @@ -8,9 +8,13 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** * AWS log source tag filter list. Defaults to `[]`. - * Array of log source to AWS resource tag mappings. Each mapping contains a log source and its associated AWS resource tags (in `key:value` format) used to filter logs submitted to Datadog. - * Tag filters are applied for tags on the AWS resource emitting logs; tags associated with the log storage entity (such as a CloudWatch Log Group or S3 Bucket) are not considered. - * For more information on resource tag filter syntax, [see AWS resource exclusion](https://docs.datadoghq.com/account_management/billing/aws/#aws-resource-exclusion) in the AWS integration billing page. + * Array of log source to AWS resource tag mappings. Each mapping contains a log source and its + * associated AWS resource tags (in `key:value` format) used to filter logs submitted to Datadog. + * Tag filters are applied for tags on the AWS resource emitting logs; tags associated with the + * log storage entity (such as a CloudWatch Log Group or S3 Bucket) are not considered. + * For more information on resource tag filter syntax, + * [see AWS resource exclusion](https://docs.datadoghq.com/account_management/billing/aws/#aws-resource-exclusion) + * in the AWS integration billing page. */ export class AWSLogSourceTagFilter { /** diff --git a/packages/datadog-api-client-v2/models/AWSLogsConfig.ts b/packages/datadog-api-client-v2/models/AWSLogsConfig.ts index 10bdf2d56e48..439b235cd08a 100644 --- a/packages/datadog-api-client-v2/models/AWSLogsConfig.ts +++ b/packages/datadog-api-client-v2/models/AWSLogsConfig.ts @@ -12,8 +12,9 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; */ export class AWSLogsConfig { /** - * Log Autosubscription configuration for Datadog Forwarder Lambda functions. Automatically set up triggers for existing - * and new logs for some services, ensuring no logs from new resources are missed and saving time spent on manual configuration. + * Log Autosubscription configuration for Datadog Forwarder Lambda functions. + * Automatically set up triggers for existing and new logs for some services, + * ensuring no logs from new resources are missed and saving time spent on manual configuration. */ "lambdaForwarder"?: AWSLambdaForwarderConfig; diff --git a/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.ts b/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.ts index 8d5326db3a22..8363ac63e96f 100644 --- a/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.ts +++ b/packages/datadog-api-client-v2/models/AWSNamespaceFiltersExcludeOnly.ts @@ -7,13 +7,17 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** - * Exclude only these namespaces from metrics collection. Defaults to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`. - * `AWS/SQS`, `AWS/ElasticMapReduce`, and `AWS/Usage` are excluded by default to reduce your AWS CloudWatch costs from `GetMetricData` API calls. + * Exclude only these namespaces from metrics collection. + * Defaults to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`. + * `AWS/SQS`, `AWS/ElasticMapReduce`, and `AWS/Usage` are excluded by default + * to reduce your AWS CloudWatch costs from `GetMetricData` API calls. */ export class AWSNamespaceFiltersExcludeOnly { /** - * Exclude only these namespaces from metrics collection. Defaults to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`. - * `AWS/SQS`, `AWS/ElasticMapReduce`, and `AWS/Usage` are excluded by default to reduce your AWS CloudWatch costs from `GetMetricData` API calls. + * Exclude only these namespaces from metrics collection. + * Defaults to `["AWS/SQS", "AWS/ElasticMapReduce", "AWS/Usage"]`. + * `AWS/SQS`, `AWS/ElasticMapReduce`, and `AWS/Usage` are excluded by default + * to reduce your AWS CloudWatch costs from `GetMetricData` API calls. */ "excludeOnly": Array; diff --git a/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.ts b/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.ts index 5df85e802aeb..d98088f11baa 100644 --- a/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.ts +++ b/packages/datadog-api-client-v2/models/AWSNamespaceTagFilter.ts @@ -8,10 +8,12 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** * AWS Metrics Collection tag filters list. Defaults to `[]`. - * The array of custom AWS resource tags (in the form `key:value`) defines a filter that Datadog uses when collecting metrics from a specified service. - * Wildcards, such as `?` (match a single character) and `*` (match multiple characters), and exclusion using `!` before the tag are supported. - * For EC2, only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. - * For example, `env:production,instance-type:c?.*,!region:us-east-1`. + * The array of custom AWS resource tags (in the form `key:value`) defines a filter that Datadog uses + * when collecting metrics from a specified service. + * Wildcards, such as `?` (match a single character) and `*` (match multiple characters), + * and exclusion using `!` before the tag are supported. + * For EC2, only hosts that match one of the defined tags are imported into Datadog. + * The rest are ignored. For example, `env:production,instance-type:c?.*,!region:us-east-1`. */ export class AWSNamespaceTagFilter { /** diff --git a/packages/datadog-api-client-v2/models/AWSResourcesConfig.ts b/packages/datadog-api-client-v2/models/AWSResourcesConfig.ts index 8c7cb438ce89..4a6a65ec3031 100644 --- a/packages/datadog-api-client-v2/models/AWSResourcesConfig.ts +++ b/packages/datadog-api-client-v2/models/AWSResourcesConfig.ts @@ -11,11 +11,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; */ export class AWSResourcesConfig { /** - * Enable Cloud Security Management to scan AWS resources for vulnerabilities, misconfigurations, identity risks, and compliance violations. Defaults to `false`. Requires `extended_collection` to be set to `true`. + * Enable Cloud Security Management to scan AWS resources for vulnerabilities, misconfigurations, + * identity risks, and compliance violations. Defaults to `false`. + * Requires `extended_collection` to be set to `true`. */ "cloudSecurityPostureManagementCollection"?: boolean; /** - * Whether Datadog collects additional attributes and configuration information about the resources in your AWS account. Defaults to `true`. Required for `cloud_security_posture_management_collection`. + * Whether Datadog collects additional attributes and configuration information about the resources + * in your AWS account. Defaults to `true`. Required for `cloud_security_posture_management_collection`. */ "extendedCollection"?: boolean; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 8911523cc522..a0ead343d0be 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -26,6 +26,23 @@ import { AWSAssumeRole } from "./AWSAssumeRole"; import { AWSAssumeRoleUpdate } from "./AWSAssumeRoleUpdate"; import { AWSAuthConfigKeys } from "./AWSAuthConfigKeys"; import { AWSAuthConfigRole } from "./AWSAuthConfigRole"; +import { AWSEventBridgeAccountConfiguration } from "./AWSEventBridgeAccountConfiguration"; +import { AWSEventBridgeCreateRequest } from "./AWSEventBridgeCreateRequest"; +import { AWSEventBridgeCreateRequestAttributes } from "./AWSEventBridgeCreateRequestAttributes"; +import { AWSEventBridgeCreateRequestData } from "./AWSEventBridgeCreateRequestData"; +import { AWSEventBridgeCreateResponse } from "./AWSEventBridgeCreateResponse"; +import { AWSEventBridgeCreateResponseAttributes } from "./AWSEventBridgeCreateResponseAttributes"; +import { AWSEventBridgeCreateResponseData } from "./AWSEventBridgeCreateResponseData"; +import { AWSEventBridgeDeleteRequest } from "./AWSEventBridgeDeleteRequest"; +import { AWSEventBridgeDeleteRequestAttributes } from "./AWSEventBridgeDeleteRequestAttributes"; +import { AWSEventBridgeDeleteRequestData } from "./AWSEventBridgeDeleteRequestData"; +import { AWSEventBridgeDeleteResponse } from "./AWSEventBridgeDeleteResponse"; +import { AWSEventBridgeDeleteResponseAttributes } from "./AWSEventBridgeDeleteResponseAttributes"; +import { AWSEventBridgeDeleteResponseData } from "./AWSEventBridgeDeleteResponseData"; +import { AWSEventBridgeListResponse } from "./AWSEventBridgeListResponse"; +import { AWSEventBridgeListResponseAttributes } from "./AWSEventBridgeListResponseAttributes"; +import { AWSEventBridgeListResponseData } from "./AWSEventBridgeListResponseData"; +import { AWSEventBridgeSource } from "./AWSEventBridgeSource"; import { AWSIntegration } from "./AWSIntegration"; import { AWSIntegrationIamPermissionsResponse } from "./AWSIntegrationIamPermissionsResponse"; import { AWSIntegrationIamPermissionsResponseAttributes } from "./AWSIntegrationIamPermissionsResponseAttributes"; @@ -2531,6 +2548,9 @@ const enumsMap: { [key: string]: any[] } = { AWSAccountPartition: ["aws", "aws-cn", "aws-us-gov"], AWSAccountType: ["account"], AWSAssumeRoleType: ["AWSAssumeRole"], + AWSEventBridgeCreateStatus: ["created"], + AWSEventBridgeDeleteStatus: ["empty"], + AWSEventBridgeType: ["event_bridge"], AWSIntegrationIamPermissionsResponseDataType: ["permissions"], AWSIntegrationType: ["AWS"], AWSLogsServicesResponseDataType: ["logs_services"], @@ -4124,6 +4144,25 @@ const typeMap: { [index: string]: any } = { AWSAssumeRoleUpdate: AWSAssumeRoleUpdate, AWSAuthConfigKeys: AWSAuthConfigKeys, AWSAuthConfigRole: AWSAuthConfigRole, + AWSEventBridgeAccountConfiguration: AWSEventBridgeAccountConfiguration, + AWSEventBridgeCreateRequest: AWSEventBridgeCreateRequest, + AWSEventBridgeCreateRequestAttributes: AWSEventBridgeCreateRequestAttributes, + AWSEventBridgeCreateRequestData: AWSEventBridgeCreateRequestData, + AWSEventBridgeCreateResponse: AWSEventBridgeCreateResponse, + AWSEventBridgeCreateResponseAttributes: + AWSEventBridgeCreateResponseAttributes, + AWSEventBridgeCreateResponseData: AWSEventBridgeCreateResponseData, + AWSEventBridgeDeleteRequest: AWSEventBridgeDeleteRequest, + AWSEventBridgeDeleteRequestAttributes: AWSEventBridgeDeleteRequestAttributes, + AWSEventBridgeDeleteRequestData: AWSEventBridgeDeleteRequestData, + AWSEventBridgeDeleteResponse: AWSEventBridgeDeleteResponse, + AWSEventBridgeDeleteResponseAttributes: + AWSEventBridgeDeleteResponseAttributes, + AWSEventBridgeDeleteResponseData: AWSEventBridgeDeleteResponseData, + AWSEventBridgeListResponse: AWSEventBridgeListResponse, + AWSEventBridgeListResponseAttributes: AWSEventBridgeListResponseAttributes, + AWSEventBridgeListResponseData: AWSEventBridgeListResponseData, + AWSEventBridgeSource: AWSEventBridgeSource, AWSIntegration: AWSIntegration, AWSIntegrationIamPermissionsResponse: AWSIntegrationIamPermissionsResponse, AWSIntegrationIamPermissionsResponseAttributes: