Skip to content

Deprecate ListAWSRelatedAccounts #2062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-18 19:18:03.897221",
"spec_repo_commit": "8f19ff48"
"regenerated": "2024-07-18 19:52:50.738768",
"spec_repo_commit": "17f1aa28"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-18 19:18:03.925200",
"spec_repo_commit": "8f19ff48"
"regenerated": "2024-07-18 19:52:50.755789",
"spec_repo_commit": "17f1aa28"
}
}
}
1 change: 1 addition & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26026,6 +26026,7 @@ paths:
- Cloud Cost Management
/api/v2/cost/aws_related_accounts:
get:
deprecated: true
description: List the AWS accounts in an organization by calling 'organizations:ListAccounts'
from the specified management account.
operationId: ListAWSRelatedAccounts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import annotations

from typing import Any, Dict
import warnings

from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
from datadog_api_client.configuration import Configuration
Expand Down Expand Up @@ -320,7 +321,7 @@ def list_aws_related_accounts(
self,
filter_management_account_id: str,
) -> AWSRelatedAccountsResponse:
"""List related AWS accounts.
"""List related AWS accounts. **Deprecated**.

List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the specified management account.

Expand All @@ -331,6 +332,7 @@ def list_aws_related_accounts(
kwargs: Dict[str, Any] = {}
kwargs["filter_management_account_id"] = filter_management_account_id

warnings.warn("list_aws_related_accounts is deprecated", DeprecationWarning, stacklevel=2)
return self._list_aws_related_accounts_endpoint.call_with_http_info(**kwargs)

def list_cost_awscur_configs(
Expand Down
Loading