44from __future__ import annotations
55
66from typing import Any , Dict , List , Union
7+ import warnings
78
89from datadog_api_client .api_client import ApiClient , Endpoint as _Endpoint
910from datadog_api_client .configuration import Configuration
@@ -302,7 +303,7 @@ def create_aws_account(
302303 self ,
303304 body : AWSAccount ,
304305 ) -> AWSAccountCreateResponse :
305- """Create an AWS integration.
306+ """Create an AWS integration. **Deprecated**.
306307
307308 Create a Datadog-Amazon Web Services integration.
308309 Using the ``POST`` method updates your integration configuration
@@ -316,6 +317,7 @@ def create_aws_account(
316317 kwargs : Dict [str , Any ] = {}
317318 kwargs ["body" ] = body
318319
320+ warnings .warn ("create_aws_account is deprecated" , DeprecationWarning , stacklevel = 2 )
319321 return self ._create_aws_account_endpoint .call_with_http_info (** kwargs )
320322
321323 def create_aws_event_bridge_source (
@@ -339,7 +341,7 @@ def create_aws_tag_filter(
339341 self ,
340342 body : AWSTagFilterCreateRequest ,
341343 ) -> dict :
342- """Set an AWS tag filter.
344+ """Set an AWS tag filter. **Deprecated**.
343345
344346 Set an AWS tag filter.
345347
@@ -351,13 +353,14 @@ def create_aws_tag_filter(
351353 kwargs : Dict [str , Any ] = {}
352354 kwargs ["body" ] = body
353355
356+ warnings .warn ("create_aws_tag_filter is deprecated" , DeprecationWarning , stacklevel = 2 )
354357 return self ._create_aws_tag_filter_endpoint .call_with_http_info (** kwargs )
355358
356359 def create_new_aws_external_id (
357360 self ,
358361 body : AWSAccount ,
359362 ) -> AWSAccountCreateResponse :
360- """Generate a new external ID.
363+ """Generate a new external ID. **Deprecated**.
361364
362365 Generate a new AWS external ID for a given AWS account ID and role name pair.
363366
@@ -370,13 +373,14 @@ def create_new_aws_external_id(
370373 kwargs : Dict [str , Any ] = {}
371374 kwargs ["body" ] = body
372375
376+ warnings .warn ("create_new_aws_external_id is deprecated" , DeprecationWarning , stacklevel = 2 )
373377 return self ._create_new_aws_external_id_endpoint .call_with_http_info (** kwargs )
374378
375379 def delete_aws_account (
376380 self ,
377381 body : AWSAccountDeleteRequest ,
378382 ) -> dict :
379- """Delete an AWS integration.
383+ """Delete an AWS integration. **Deprecated**.
380384
381385 Delete a Datadog-AWS integration matching the specified ``account_id`` and ``role_name parameters``.
382386
@@ -387,6 +391,7 @@ def delete_aws_account(
387391 kwargs : Dict [str , Any ] = {}
388392 kwargs ["body" ] = body
389393
394+ warnings .warn ("delete_aws_account is deprecated" , DeprecationWarning , stacklevel = 2 )
390395 return self ._delete_aws_account_endpoint .call_with_http_info (** kwargs )
391396
392397 def delete_aws_event_bridge_source (
@@ -410,7 +415,7 @@ def delete_aws_tag_filter(
410415 self ,
411416 body : AWSTagFilterDeleteRequest ,
412417 ) -> dict :
413- """Delete a tag filtering entry.
418+ """Delete a tag filtering entry. **Deprecated**.
414419
415420 Delete a tag filtering entry.
416421
@@ -421,18 +426,20 @@ def delete_aws_tag_filter(
421426 kwargs : Dict [str , Any ] = {}
422427 kwargs ["body" ] = body
423428
429+ warnings .warn ("delete_aws_tag_filter is deprecated" , DeprecationWarning , stacklevel = 2 )
424430 return self ._delete_aws_tag_filter_endpoint .call_with_http_info (** kwargs )
425431
426432 def list_available_aws_namespaces (
427433 self ,
428434 ) -> List [str ]:
429- """List namespace rules.
435+ """List namespace rules. **Deprecated**.
430436
431437 List all namespace rules for a given Datadog-AWS integration. This endpoint takes no arguments.
432438
433439 :rtype: [str]
434440 """
435441 kwargs : Dict [str , Any ] = {}
442+ warnings .warn ("list_available_aws_namespaces is deprecated" , DeprecationWarning , stacklevel = 2 )
436443 return self ._list_available_aws_namespaces_endpoint .call_with_http_info (** kwargs )
437444
438445 def list_aws_accounts (
@@ -442,7 +449,7 @@ def list_aws_accounts(
442449 role_name : Union [str , UnsetType ] = unset ,
443450 access_key_id : Union [str , UnsetType ] = unset ,
444451 ) -> AWSAccountListResponse :
445- """List all AWS integrations.
452+ """List all AWS integrations. **Deprecated**.
446453
447454 List all Datadog-AWS integrations available in your Datadog organization.
448455
@@ -464,6 +471,7 @@ def list_aws_accounts(
464471 if access_key_id is not unset :
465472 kwargs ["access_key_id" ] = access_key_id
466473
474+ warnings .warn ("list_aws_accounts is deprecated" , DeprecationWarning , stacklevel = 2 )
467475 return self ._list_aws_accounts_endpoint .call_with_http_info (** kwargs )
468476
469477 def list_aws_event_bridge_sources (
@@ -482,7 +490,7 @@ def list_aws_tag_filters(
482490 self ,
483491 account_id : str ,
484492 ) -> AWSTagFilterListResponse :
485- """Get all AWS tag filters.
493+ """Get all AWS tag filters. **Deprecated**.
486494
487495 Get all AWS tag filters.
488496
@@ -493,6 +501,7 @@ def list_aws_tag_filters(
493501 kwargs : Dict [str , Any ] = {}
494502 kwargs ["account_id" ] = account_id
495503
504+ warnings .warn ("list_aws_tag_filters is deprecated" , DeprecationWarning , stacklevel = 2 )
496505 return self ._list_aws_tag_filters_endpoint .call_with_http_info (** kwargs )
497506
498507 def update_aws_account (
@@ -503,7 +512,7 @@ def update_aws_account(
503512 role_name : Union [str , UnsetType ] = unset ,
504513 access_key_id : Union [str , UnsetType ] = unset ,
505514 ) -> dict :
506- """Update an AWS integration.
515+ """Update an AWS integration. **Deprecated**.
507516
508517 Update a Datadog-Amazon Web Services integration.
509518
@@ -531,4 +540,5 @@ def update_aws_account(
531540
532541 kwargs ["body" ] = body
533542
543+ warnings .warn ("update_aws_account is deprecated" , DeprecationWarning , stacklevel = 2 )
534544 return self ._update_aws_account_endpoint .call_with_http_info (** kwargs )
0 commit comments