diff --git a/.apigentools-info b/.apigentools-info index 8cc581795b4b1..1219003433cda 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-17 14:12:18.095835", - "spec_repo_commit": "fb024a45" + "regenerated": "2024-10-17 21:37:52.521037", + "spec_repo_commit": "96810b7f" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-10-17 14:12:26.096579", - "spec_repo_commit": "fb024a45" + "regenerated": "2024-10-17 21:38:00.609211", + "spec_repo_commit": "96810b7f" } } } \ 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",