Skip to content

Commit 5ba14ac

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add log autosubscription tag filters config to aws v2 API (#30939)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ddac891 commit 5ba14ac

File tree

10 files changed

+1408
-43
lines changed

10 files changed

+1408
-43
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-08-06 20:55:23.361049",
8-
"spec_repo_commit": "fd3370f5"
7+
"regenerated": "2025-08-07 18:04:48.795715",
8+
"spec_repo_commit": "c5cca507"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-08-06 20:55:33.682038",
13-
"spec_repo_commit": "fd3370f5"
12+
"regenerated": "2025-08-07 18:04:58.989170",
13+
"spec_repo_commit": "c5cca507"
1414
}
1515
}
1616
}

content/en/api/v2/aws-integration/examples.json

Lines changed: 66 additions & 6 deletions
Large diffs are not rendered by default.

content/en/api/v2/aws-integration/request.CreateAWSAccount.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
"lambdas": [
1616
"arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder"
1717
],
18+
"log_source_config": {
19+
"tag_filters": [
20+
{
21+
"source": "s3",
22+
"tags": [
23+
"test:test"
24+
]
25+
}
26+
]
27+
},
1828
"sources": [
1929
"s3"
2030
]

content/en/api/v2/aws-integration/request.CreateAWSAccount_1716720881.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
"lambdas": [
1515
"arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder"
1616
],
17+
"log_source_config": {
18+
"tag_filters": [
19+
{
20+
"source": "s3",
21+
"tags": [
22+
"test:test"
23+
]
24+
}
25+
]
26+
},
1727
"sources": [
1828
"s3"
1929
]

content/en/api/v2/aws-integration/request.UpdateAWSAccount.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
"lambdas": [
1515
"arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder"
1616
],
17+
"log_source_config": {
18+
"tag_filters": [
19+
{
20+
"source": "s3",
21+
"tags": [
22+
"test:test"
23+
]
24+
}
25+
]
26+
},
1727
"sources": [
1828
"s3"
1929
]
Lines changed: 38 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,54 @@
11
{
22
"data": {
3-
"type": "event",
43
"attributes": {
54
"aggregation_key": "aggregation_key_123",
65
"attributes": {
7-
"custom": {
8-
"threshold": 95,
9-
"current_value": 98,
10-
"metric": "cpu.utilization"
6+
"author": {
7+
"name": "[email protected]",
8+
"type": "user"
119
},
12-
"links": [
13-
{
14-
"category": "runbook",
15-
"title": "CPU Alert Runbook",
16-
"url": "https://example.com/runbooks/cpu-alert"
10+
"change_metadata": {
11+
"dd": {
12+
"team": "datadog_team",
13+
"user_email": "[email protected]",
14+
"user_id": "datadog_user_id",
15+
"user_name": "datadog_username"
1716
},
17+
"resource_link": "datadog.com/feature/fallback_payments_test"
18+
},
19+
"changed_resource": {
20+
"name": "fallback_payments_test",
21+
"type": "feature_flag"
22+
},
23+
"impacted_resources": [
1824
{
19-
"category": "dashboard",
20-
"url": "https://example.com/dashboards/cpu-usage"
25+
"name": "payments_api",
26+
"type": "service"
2127
}
2228
],
23-
"priority": "2",
24-
"status": "error"
29+
"new_value": {
30+
"enabled": true,
31+
"percentage": "50%",
32+
"rule": {
33+
"datacenter": "devcycle.us1.prod"
34+
}
35+
},
36+
"prev_value": {
37+
"enabled": true,
38+
"percentage": "10%",
39+
"rule": {
40+
"datacenter": "devcycle.us1.prod"
41+
}
42+
}
2543
},
26-
"category": "alert",
44+
"category": "change",
2745
"integration_id": "custom-events",
28-
"message": "CPU usage exceeded the 95% threshold for more than 5 minutes.",
46+
"message": "payment_processed feature flag has been enabled",
2947
"tags": [
30-
"env:production",
31-
"team:infrastructure"
48+
"env:api_client_test"
3249
],
33-
"timestamp": "2025-08-05T10:30:00Z",
34-
"title": "High CPU usage on production nodes"
35-
}
50+
"title": "payment_processed feature flag updated"
51+
},
52+
"type": "event"
3653
}
3754
}

data/api/v2/CodeExamples.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,7 @@
464464
{
465465
"group": "events",
466466
"suffix": "",
467-
"description": "Example"
468-
},
469-
{
470-
"group": "events",
471-
"suffix": "_change",
472-
"description": "Example 2"
467+
"description": "Post an event returns \"OK\" response"
473468
}
474469
],
475470
"SearchEvents": [
@@ -1604,4 +1599,4 @@
16041599
"description": "Update an existing Workflow returns \"Successfully updated a workflow.\" response"
16051600
}
16061601
]
1607-
}
1602+
}

data/api/v2/full_spec.yaml

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,8 @@ components:
16521652
example: arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder
16531653
type: string
16541654
type: array
1655+
log_source_config:
1656+
$ref: '#/components/schemas/AWSLambdaForwarderConfigLogSourceConfig'
16551657
sources:
16561658
description: 'List of service IDs set to enable automatic log collection.
16571659
Discover the list of available services with the
@@ -1663,6 +1665,44 @@ components:
16631665
type: string
16641666
type: array
16651667
type: object
1668+
AWSLambdaForwarderConfigLogSourceConfig:
1669+
description: Log source configuration.
1670+
properties:
1671+
tag_filters:
1672+
description: List of AWS log source tag filters. Defaults to `[]`.
1673+
items:
1674+
$ref: '#/components/schemas/AWSLogSourceTagFilter'
1675+
type: array
1676+
type: object
1677+
AWSLogSourceTagFilter:
1678+
description: 'AWS log source tag filter list. Defaults to `[]`.
1679+
1680+
Array of log source to AWS resource tag mappings. Each mapping contains a
1681+
log source and its associated AWS resource tags (in `key:value` format) used
1682+
to filter logs submitted to Datadog.
1683+
1684+
Tag filters are applied for tags on the AWS resource emitting logs; tags associated
1685+
with the log storage entity (such as a CloudWatch Log Group or S3 Bucket)
1686+
are not considered.
1687+
1688+
For more information on resource tag filter syntax, [see AWS resource exclusion](https://docs.datadoghq.com/account_management/billing/aws/#aws-resource-exclusion)
1689+
in the AWS integration billing page.'
1690+
properties:
1691+
source:
1692+
description: The AWS log source to which the tag filters defined in `tags`
1693+
are applied.
1694+
example: s3
1695+
type: string
1696+
tags:
1697+
description: The AWS resource tags to filter on for the log source specified
1698+
by `source`.
1699+
items:
1700+
description: Tag in the form `key:value`.
1701+
example: env:prod
1702+
type: string
1703+
nullable: true
1704+
type: array
1705+
type: object
16661706
AWSLogsConfig:
16671707
description: AWS Logs Collection config.
16681708
properties:
@@ -53741,9 +53781,12 @@ paths:
5374153781
{\n \"include_only\": [\n \"us-east-1\"\n ]\n
5374253782
\ },\n \"logs_config\": {\n \"lambda_forwarder\": {\n
5374353783
\ \"lambdas\": [\n \"arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder\"\n
53744-
\ ],\n \"sources\": [\n \"s3\"\n ]\n
53745-
\ }\n },\n \"metrics_config\": {\n \"enabled\":
53746-
true,\n \"automute_enabled\": true,\n \"collect_custom_metrics\":
53784+
\ ],\n \"sources\": [\n \"s3\"\n ],\n
53785+
\ \"log_source_config\": {\n \"tag_filters\": [\n
53786+
\ {\n \"source\": \"s3\",\n \"tags\":
53787+
[\"test:test\"]\n }\n ]\n }\n }\n
53788+
\ },\n \"metrics_config\": {\n \"enabled\": true,\n
53789+
\ \"automute_enabled\": true,\n \"collect_custom_metrics\":
5374753790
false,\n \"collect_cloudwatch_alarms\": false,\n \"tag_filters\":
5374853791
[\n {\n \"namespace\": \"AWS/EC2\",\n \"tags\":
5374953792
[\n \"key:value\"\n ]\n }\n ],\n

0 commit comments

Comments
 (0)