@@ -24,7 +24,7 @@ Create a Datadog-Amazon Web Services integration. Using the `POST` method update
24
24
25
25
26
26
``` typescript
27
- import { v1 } from ' datadog-api-client' ;
27
+ import { v1 } from ' @datadog/ datadog-api-client' ;
28
28
import * as fs from ' fs' ;
29
29
30
30
const configuration = v1 .createConfiguration ();
@@ -47,7 +47,7 @@ let params:v1.AWSIntegrationApiCreateAWSAccountRequest = {
47
47
};
48
48
49
49
apiInstance .createAWSAccount (params ).then ((data : any ) => {
50
- console .log (' API called successfully. Returned data: ' + data );
50
+ console .log (' API called successfully. Returned data: ' + JSON . stringify ( data ) );
51
51
}).catch ((error : any ) => console .error (error ));
52
52
```
53
53
@@ -92,7 +92,7 @@ Set an AWS tag filter.
92
92
93
93
94
94
``` typescript
95
- import { v1 } from ' datadog-api-client' ;
95
+ import { v1 } from ' @datadog/ datadog-api-client' ;
96
96
import * as fs from ' fs' ;
97
97
98
98
const configuration = v1 .createConfiguration ();
@@ -108,7 +108,7 @@ let params:v1.AWSIntegrationApiCreateAWSTagFilterRequest = {
108
108
};
109
109
110
110
apiInstance .createAWSTagFilter (params ).then ((data : any ) => {
111
- console .log (' API called successfully. Returned data: ' + data );
111
+ console .log (' API called successfully. Returned data: ' + JSON . stringify ( data ) );
112
112
}).catch ((error : any ) => console .error (error ));
113
113
```
114
114
@@ -152,7 +152,7 @@ Generate a new AWS external ID for a given AWS account ID and role name pair.
152
152
153
153
154
154
``` typescript
155
- import { v1 } from ' datadog-api-client' ;
155
+ import { v1 } from ' @datadog/ datadog-api-client' ;
156
156
import * as fs from ' fs' ;
157
157
158
158
const configuration = v1 .createConfiguration ();
@@ -175,7 +175,7 @@ let params:v1.AWSIntegrationApiCreateNewAWSExternalIDRequest = {
175
175
};
176
176
177
177
apiInstance .createNewAWSExternalID (params ).then ((data : any ) => {
178
- console .log (' API called successfully. Returned data: ' + data );
178
+ console .log (' API called successfully. Returned data: ' + JSON . stringify ( data ) );
179
179
}).catch ((error : any ) => console .error (error ));
180
180
```
181
181
@@ -219,7 +219,7 @@ Delete a Datadog-AWS integration matching the specified `account_id` and `role_n
219
219
220
220
221
221
``` typescript
222
- import { v1 } from ' datadog-api-client' ;
222
+ import { v1 } from ' @datadog/ datadog-api-client' ;
223
223
import * as fs from ' fs' ;
224
224
225
225
const configuration = v1 .createConfiguration ();
@@ -242,7 +242,7 @@ let params:v1.AWSIntegrationApiDeleteAWSAccountRequest = {
242
242
};
243
243
244
244
apiInstance .deleteAWSAccount (params ).then ((data : any ) => {
245
- console .log (' API called successfully. Returned data: ' + data );
245
+ console .log (' API called successfully. Returned data: ' + JSON . stringify ( data ) );
246
246
}).catch ((error : any ) => console .error (error ));
247
247
```
248
248
@@ -287,7 +287,7 @@ Delete a tag filtering entry.
287
287
288
288
289
289
``` typescript
290
- import { v1 } from ' datadog-api-client' ;
290
+ import { v1 } from ' @datadog/ datadog-api-client' ;
291
291
import * as fs from ' fs' ;
292
292
293
293
const configuration = v1 .createConfiguration ();
@@ -302,7 +302,7 @@ let params:v1.AWSIntegrationApiDeleteAWSTagFilterRequest = {
302
302
};
303
303
304
304
apiInstance .deleteAWSTagFilter (params ).then ((data : any ) => {
305
- console .log (' API called successfully. Returned data: ' + data );
305
+ console .log (' API called successfully. Returned data: ' + JSON . stringify ( data ) );
306
306
}).catch ((error : any ) => console .error (error ));
307
307
```
308
308
@@ -346,7 +346,7 @@ List all Datadog-AWS integrations available in your Datadog organization.
346
346
347
347
348
348
``` typescript
349
- import { v1 } from ' datadog-api-client' ;
349
+ import { v1 } from ' @datadog/ datadog-api-client' ;
350
350
import * as fs from ' fs' ;
351
351
352
352
const configuration = v1 .createConfiguration ();
@@ -362,7 +362,7 @@ let params:v1.AWSIntegrationApiListAWSAccountsRequest = {
362
362
};
363
363
364
364
apiInstance .listAWSAccounts (params ).then ((data : any ) => {
365
- console .log (' API called successfully. Returned data: ' + data );
365
+ console .log (' API called successfully. Returned data: ' + JSON . stringify ( data ) );
366
366
}).catch ((error : any ) => console .error (error ));
367
367
```
368
368
@@ -408,7 +408,7 @@ Get all AWS tag filters.
408
408
409
409
410
410
``` typescript
411
- import { v1 } from ' datadog-api-client' ;
411
+ import { v1 } from ' @datadog/ datadog-api-client' ;
412
412
import * as fs from ' fs' ;
413
413
414
414
const configuration = v1 .createConfiguration ();
@@ -420,7 +420,7 @@ let params:v1.AWSIntegrationApiListAWSTagFiltersRequest = {
420
420
};
421
421
422
422
apiInstance .listAWSTagFilters (params ).then ((data : any ) => {
423
- console .log (' API called successfully. Returned data: ' + data );
423
+ console .log (' API called successfully. Returned data: ' + JSON . stringify ( data ) );
424
424
}).catch ((error : any ) => console .error (error ));
425
425
```
426
426
@@ -464,15 +464,15 @@ List all namespace rules for a given Datadog-AWS integration. This endpoint take
464
464
465
465
466
466
``` typescript
467
- import { v1 } from ' datadog-api-client' ;
467
+ import { v1 } from ' @datadog/ datadog-api-client' ;
468
468
import * as fs from ' fs' ;
469
469
470
470
const configuration = v1 .createConfiguration ();
471
471
const apiInstance = new v1 .AWSIntegrationApi (configuration );
472
472
473
473
474
474
apiInstance .listAvailableAWSNamespaces ().then ((data : any ) => {
475
- console .log (' API called successfully. Returned data: ' + data );
475
+ console .log (' API called successfully. Returned data: ' + JSON . stringify ( data ) );
476
476
}).catch ((error : any ) => console .error (error ));
477
477
```
478
478
@@ -512,7 +512,7 @@ Update a Datadog-Amazon Web Services integration.
512
512
513
513
514
514
``` typescript
515
- import { v1 } from ' datadog-api-client' ;
515
+ import { v1 } from ' @datadog/ datadog-api-client' ;
516
516
import * as fs from ' fs' ;
517
517
518
518
const configuration = v1 .createConfiguration ();
@@ -541,7 +541,7 @@ let params:v1.AWSIntegrationApiUpdateAWSAccountRequest = {
541
541
};
542
542
543
543
apiInstance .updateAWSAccount (params ).then ((data : any ) => {
544
- console .log (' API called successfully. Returned data: ' + data );
544
+ console .log (' API called successfully. Returned data: ' + JSON . stringify ( data ) );
545
545
}).catch ((error : any ) => console .error (error ));
546
546
```
547
547
0 commit comments