diff --git a/.apigentools-info b/.apigentools-info index e94ee90a44a4b..ddc4da6b380c1 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-18 21:02:11.881352", - "spec_repo_commit": "37070fd4" + "regenerated": "2024-10-22 17:04:12.120189", + "spec_repo_commit": "92b93d26" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-18 21:02:20.114514", - "spec_repo_commit": "37070fd4" + "regenerated": "2024-10-22 17:04:19.933691", + "spec_repo_commit": "92b93d26" } } } \ No newline at end of file diff --git a/content/en/api/v2/aws-integration/request.CreateAWSAccount.json b/content/en/api/v2/aws-integration/request.CreateAWSAccount.json new file mode 100644 index 0000000000000..b2c76441ac947 --- /dev/null +++ b/content/en/api/v2/aws-integration/request.CreateAWSAccount.json @@ -0,0 +1,44 @@ +{ + "data": { + "attributes": { + "account_tags": [ + "key:value" + ], + "auth_config": { + "role_name": "DatadogIntegrationRole" + }, + "aws_account_id": "123456789012", + "aws_partition": "aws", + "logs_config": { + "lambda_forwarder": { + "lambdas": [ + "arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder" + ], + "sources": [ + "s3" + ] + } + }, + "metrics_config": { + "automute_enabled": true, + "collect_cloudwatch_alarms": true, + "collect_custom_metrics": true, + "enabled": true, + "tag_filters": [ + { + "namespace": "AWS/EC2", + "tags": [ + "key:value" + ] + } + ] + }, + "resources_config": { + "cloud_security_posture_management_collection": false, + "extended_collection": false + }, + "traces_config": {} + }, + "type": "account" + } +} \ No newline at end of file diff --git a/content/en/api/v2/aws-integration/request.UpdateAWSAccount.json b/content/en/api/v2/aws-integration/request.UpdateAWSAccount.json new file mode 100644 index 0000000000000..b2c76441ac947 --- /dev/null +++ b/content/en/api/v2/aws-integration/request.UpdateAWSAccount.json @@ -0,0 +1,44 @@ +{ + "data": { + "attributes": { + "account_tags": [ + "key:value" + ], + "auth_config": { + "role_name": "DatadogIntegrationRole" + }, + "aws_account_id": "123456789012", + "aws_partition": "aws", + "logs_config": { + "lambda_forwarder": { + "lambdas": [ + "arn:aws:lambda:us-east-1:123456789012:function:DatadogLambdaLogForwarder" + ], + "sources": [ + "s3" + ] + } + }, + "metrics_config": { + "automute_enabled": true, + "collect_cloudwatch_alarms": true, + "collect_custom_metrics": true, + "enabled": true, + "tag_filters": [ + { + "namespace": "AWS/EC2", + "tags": [ + "key:value" + ] + } + ] + }, + "resources_config": { + "cloud_security_posture_management_collection": false, + "extended_collection": false + }, + "traces_config": {} + }, + "type": "account" + } +} \ No newline at end of file diff --git a/data/api/v2/CodeExamples.json b/data/api/v2/CodeExamples.json index 1dc0b96c075f3..f5500229e9869 100644 --- a/data/api/v2/CodeExamples.json +++ b/data/api/v2/CodeExamples.json @@ -20,6 +20,20 @@ "description": "Update a retention filter returns \"OK\" response" } ], + "CreateAWSAccount": [ + { + "group": "aws_integration", + "suffix": "", + "description": "AWS Integration - Create account config returns \"AWS Account object\" response" + } + ], + "UpdateAWSAccount": [ + { + "group": "aws_integration", + "suffix": "", + "description": "AWS Integration - Patch account config returns \"AWS Account object\" response" + } + ], "SearchAuditLogs": [ { "group": "audit",