Skip to content

Commit d11d707

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 54a444d of spec repo
1 parent b7e9f9e commit d11d707

10 files changed

+177
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57295,6 +57295,39 @@ paths:
5729557295
summary: Get AWS integration IAM permissions
5729657296
tags:
5729757297
- AWS Integration
57298+
/api/v2/integration/aws/iam_permissions/resource_collection:
57299+
get:
57300+
description: Get all resource collection AWS IAM permissions required for the
57301+
AWS integration.
57302+
operationId: GetAWSIntegrationIAMPermissionsResourceCollection
57303+
responses:
57304+
'200':
57305+
content:
57306+
application/json:
57307+
schema:
57308+
$ref: '#/components/schemas/AWSIntegrationIamPermissionsResponse'
57309+
description: AWS IAM Permissions object
57310+
'429':
57311+
$ref: '#/components/responses/TooManyRequestsResponse'
57312+
summary: Get resource collection IAM permissions
57313+
tags:
57314+
- AWS Integration
57315+
/api/v2/integration/aws/iam_permissions/standard:
57316+
get:
57317+
description: Get all standard AWS IAM permissions required for the AWS integration.
57318+
operationId: GetAWSIntegrationIAMPermissionsStandard
57319+
responses:
57320+
'200':
57321+
content:
57322+
application/json:
57323+
schema:
57324+
$ref: '#/components/schemas/AWSIntegrationIamPermissionsResponse'
57325+
description: AWS IAM Permissions object
57326+
'429':
57327+
$ref: '#/components/responses/TooManyRequestsResponse'
57328+
summary: Get AWS integration standard IAM permissions
57329+
tags:
57330+
- AWS Integration
5729857331
/api/v2/integration/aws/logs/services:
5729957332
get:
5730057333
description: Get a list of AWS services that can send logs to Datadog.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Get resource collection IAM permissions returns "AWS IAM Permissions object" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.aws_integration_api import AWSIntegrationApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = AWSIntegrationApi(api_client)
11+
response = api_instance.get_aws_integration_iam_permissions_resource_collection()
12+
13+
print(response)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Get AWS integration standard IAM permissions returns "AWS IAM Permissions object" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.aws_integration_api import AWSIntegrationApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = AWSIntegrationApi(api_client)
11+
response = api_instance.get_aws_integration_iam_permissions_standard()
12+
13+
print(response)

src/datadog_api_client/v2/api/aws_integration_api.py

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,38 @@ def __init__(self, api_client=None):
129129
api_client=api_client,
130130
)
131131

132+
self._get_aws_integration_iam_permissions_resource_collection_endpoint = _Endpoint(
133+
settings={
134+
"response_type": (AWSIntegrationIamPermissionsResponse,),
135+
"auth": ["apiKeyAuth", "appKeyAuth"],
136+
"endpoint_path": "/api/v2/integration/aws/iam_permissions/resource_collection",
137+
"operation_id": "get_aws_integration_iam_permissions_resource_collection",
138+
"http_method": "GET",
139+
"version": "v2",
140+
},
141+
params_map={},
142+
headers_map={
143+
"accept": ["application/json"],
144+
},
145+
api_client=api_client,
146+
)
147+
148+
self._get_aws_integration_iam_permissions_standard_endpoint = _Endpoint(
149+
settings={
150+
"response_type": (AWSIntegrationIamPermissionsResponse,),
151+
"auth": ["apiKeyAuth", "appKeyAuth"],
152+
"endpoint_path": "/api/v2/integration/aws/iam_permissions/standard",
153+
"operation_id": "get_aws_integration_iam_permissions_standard",
154+
"http_method": "GET",
155+
"version": "v2",
156+
},
157+
params_map={},
158+
headers_map={
159+
"accept": ["application/json"],
160+
},
161+
api_client=api_client,
162+
)
163+
132164
self._list_aws_accounts_endpoint = _Endpoint(
133165
settings={
134166
"response_type": (AWSAccountsResponse,),
@@ -269,6 +301,30 @@ def get_aws_integration_iam_permissions(
269301
kwargs: Dict[str, Any] = {}
270302
return self._get_aws_integration_iam_permissions_endpoint.call_with_http_info(**kwargs)
271303

304+
def get_aws_integration_iam_permissions_resource_collection(
305+
self,
306+
) -> AWSIntegrationIamPermissionsResponse:
307+
"""Get resource collection IAM permissions.
308+
309+
Get all resource collection AWS IAM permissions required for the AWS integration.
310+
311+
:rtype: AWSIntegrationIamPermissionsResponse
312+
"""
313+
kwargs: Dict[str, Any] = {}
314+
return self._get_aws_integration_iam_permissions_resource_collection_endpoint.call_with_http_info(**kwargs)
315+
316+
def get_aws_integration_iam_permissions_standard(
317+
self,
318+
) -> AWSIntegrationIamPermissionsResponse:
319+
"""Get AWS integration standard IAM permissions.
320+
321+
Get all standard AWS IAM permissions required for the AWS integration.
322+
323+
:rtype: AWSIntegrationIamPermissionsResponse
324+
"""
325+
kwargs: Dict[str, Any] = {}
326+
return self._get_aws_integration_iam_permissions_standard_endpoint.call_with_http_info(**kwargs)
327+
272328
def list_aws_accounts(
273329
self,
274330
*,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-09-17T18:27:22.560Z
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
interactions:
2+
- request:
3+
body: null
4+
headers:
5+
accept:
6+
- application/json
7+
method: GET
8+
uri: https://api.datadoghq.com/api/v2/integration/aws/iam_permissions/standard
9+
response:
10+
body:
11+
string: '{"data":{"id":"permissions","type":"permissions","attributes":{"permissions":["account:GetAccountInformation","airflow:GetEnvironment","airflow:ListEnvironments","apigateway:GET","appsync:ListGraphqlApis","autoscaling:Describe*","backup:List*","batch:DescribeJobDefinitions","bcm-data-exports:GetExport","bcm-data-exports:ListExports","budgets:ViewBudget","cloudfront:GetDistributionConfig","cloudfront:ListDistributions","cloudtrail:DescribeTrails","cloudtrail:GetTrail","cloudtrail:GetTrailStatus","cloudtrail:ListTrails","cloudtrail:LookupEvents","cloudwatch:Describe*","cloudwatch:Get*","cloudwatch:List*","codebuild:BatchGetProjects","codebuild:ListProjects","codedeploy:BatchGet*","codedeploy:List*","cur:DescribeReportDefinitions","directconnect:Describe*","dms:DescribeReplicationInstances","dynamodb:Describe*","dynamodb:List*","ec2:Describe*","ecs:Describe*","ecs:List*","eks:DescribeCluster","eks:ListClusters","elasticache:Describe*","elasticache:List*","elasticfilesystem:DescribeAccessPoints","elasticfilesystem:DescribeFileSystems","elasticfilesystem:DescribeTags","elasticloadbalancing:Describe*","elasticmapreduce:Describe*","elasticmapreduce:List*","es:DescribeElasticsearchDomains","es:ListDomainNames","es:ListTags","events:CreateEventBus","fsx:DescribeFileSystems","fsx:ListTagsForResource","health:DescribeAffectedEntities","health:DescribeEventDetails","health:DescribeEvents","iam:ListAccountAliases","kinesis:Describe*","kinesis:List*","lambda:List*","logs:DeleteSubscriptionFilter","logs:DescribeDeliveries","logs:DescribeDeliverySources","logs:DescribeLogGroups","logs:DescribeLogStreams","logs:DescribeSubscriptionFilters","logs:FilterLogEvents","logs:GetDeliveryDestination","logs:PutSubscriptionFilter","logs:TestMetricFilter","network-firewall:DescribeLoggingConfiguration","network-firewall:ListFirewalls","oam:ListAttachedLinks","oam:ListSinks","organizations:Describe*","organizations:List*","rds:Describe*","rds:List*","redshift-serverless:ListNamespaces","redshift:DescribeClusters","redshift:DescribeLoggingStatus","route53:List*","route53resolver:ListResolverQueryLogConfigs","s3:GetBucketLocation","s3:GetBucketLogging","s3:GetBucketNotification","s3:GetBucketTagging","s3:ListAllMyBuckets","s3:PutBucketNotification","ses:Get*","ses:List*","sns:GetSubscriptionAttributes","sns:List*","sns:Publish","sqs:ListQueues","ssm:GetServiceSetting","ssm:ListCommands","states:DescribeStateMachine","states:ListStateMachines","support:DescribeTrustedAdvisor*","support:RefreshTrustedAdvisorCheck","tag:GetResources","tag:GetTagKeys","tag:GetTagValues","timestream:DescribeEndpoints","wafv2:ListLoggingConfigurations","xray:BatchGetTraces","xray:GetTraceSummaries"]}}}'
12+
headers:
13+
content-type:
14+
- application/vnd.api+json
15+
status:
16+
code: 200
17+
message: OK
18+
version: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-09-17T18:27:22.885Z

tests/v2/cassettes/test_scenarios/test_get_resource_collection_iam_permissions_returns_aws_iam_permissions_object_response.yaml

Lines changed: 18 additions & 0 deletions
Large diffs are not rendered by default.

tests/v2/features/aws_integration.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ Feature: AWS Integration
7979
When the request is sent
8080
Then the response status is 200 AWS IAM Permissions object
8181

82+
@team:DataDog/aws-integrations
83+
Scenario: Get AWS integration standard IAM permissions returns "AWS IAM Permissions object" response
84+
Given new "GetAWSIntegrationIAMPermissionsStandard" request
85+
When the request is sent
86+
Then the response status is 200 AWS IAM Permissions object
87+
8288
@team:DataDog/aws-integrations
8389
Scenario: Get an AWS integration by config ID returns "AWS Account object" response
8490
Given there is a valid "aws_account_v2" in the system
@@ -101,6 +107,12 @@ Feature: AWS Integration
101107
When the request is sent
102108
Then the response status is 404 Not Found
103109

110+
@team:DataDog/aws-integrations
111+
Scenario: Get resource collection IAM permissions returns "AWS IAM Permissions object" response
112+
Given new "GetAWSIntegrationIAMPermissionsResourceCollection" request
113+
When the request is sent
114+
Then the response status is 200 AWS IAM Permissions object
115+
104116
@team:DataDog/aws-integrations
105117
Scenario: List all AWS integrations returns "AWS Accounts List object" response
106118
Given new "ListAWSAccounts" request

tests/v2/features/undo.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,6 +1463,18 @@
14631463
"type": "safe"
14641464
}
14651465
},
1466+
"GetAWSIntegrationIAMPermissionsResourceCollection": {
1467+
"tag": "AWS Integration",
1468+
"undo": {
1469+
"type": "safe"
1470+
}
1471+
},
1472+
"GetAWSIntegrationIAMPermissionsStandard": {
1473+
"tag": "AWS Integration",
1474+
"undo": {
1475+
"type": "safe"
1476+
}
1477+
},
14661478
"ListAWSLogsServices": {
14671479
"tag": "AWS Logs Integration",
14681480
"undo": {

0 commit comments

Comments
 (0)