@@ -30,7 +30,7 @@ import * as fs from 'fs';
30
30
const configuration = v1 .createConfiguration ();
31
31
const apiInstance = new v1 .AWSIntegrationApi (configuration );
32
32
33
- let body : v1 .AWSIntegrationApiCreateAWSAccountRequest = {
33
+ let params : v1 .AWSIntegrationApiCreateAWSAccountRequest = {
34
34
// AWSAccount | AWS Request Object
35
35
body: {
36
36
accessKeyId: " accessKeyId_example" ,
@@ -46,7 +46,7 @@ let body:v1.AWSIntegrationApiCreateAWSAccountRequest = {
46
46
},
47
47
};
48
48
49
- apiInstance .createAWSAccount (body ).then ((data : any ) => {
49
+ apiInstance .createAWSAccount (params ).then ((data : any ) => {
50
50
console .log (' API called successfully. Returned data: ' + data );
51
51
}).catch ((error : any ) => console .error (error ));
52
52
```
@@ -98,7 +98,7 @@ import * as fs from 'fs';
98
98
const configuration = v1 .createConfiguration ();
99
99
const apiInstance = new v1 .AWSIntegrationApi (configuration );
100
100
101
- let body : v1 .AWSIntegrationApiCreateAWSTagFilterRequest = {
101
+ let params : v1 .AWSIntegrationApiCreateAWSTagFilterRequest = {
102
102
// AWSTagFilterCreateRequest | Set an AWS tag filter using an `aws_account_identifier`, `namespace`, and filtering string. Namespace options are `application_elb`, `elb`, `lambda`, `network_elb`, `rds`, `sqs`, and `custom`.
103
103
body: {
104
104
accountId: " 1234567" ,
@@ -107,7 +107,7 @@ let body:v1.AWSIntegrationApiCreateAWSTagFilterRequest = {
107
107
},
108
108
};
109
109
110
- apiInstance .createAWSTagFilter (body ).then ((data : any ) => {
110
+ apiInstance .createAWSTagFilter (params ).then ((data : any ) => {
111
111
console .log (' API called successfully. Returned data: ' + data );
112
112
}).catch ((error : any ) => console .error (error ));
113
113
```
@@ -158,7 +158,7 @@ import * as fs from 'fs';
158
158
const configuration = v1 .createConfiguration ();
159
159
const apiInstance = new v1 .AWSIntegrationApi (configuration );
160
160
161
- let body : v1 .AWSIntegrationApiCreateNewAWSExternalIDRequest = {
161
+ let params : v1 .AWSIntegrationApiCreateNewAWSExternalIDRequest = {
162
162
// AWSAccount | Your Datadog role delegation name. For more information about your AWS account Role name, see the [Datadog AWS integration configuration info](https://github.com/DataDog/documentation/blob/master/integrations/amazon_web_services/#installation).
163
163
body: {
164
164
accessKeyId: " accessKeyId_example" ,
@@ -174,7 +174,7 @@ let body:v1.AWSIntegrationApiCreateNewAWSExternalIDRequest = {
174
174
},
175
175
};
176
176
177
- apiInstance .createNewAWSExternalID (body ).then ((data : any ) => {
177
+ apiInstance .createNewAWSExternalID (params ).then ((data : any ) => {
178
178
console .log (' API called successfully. Returned data: ' + data );
179
179
}).catch ((error : any ) => console .error (error ));
180
180
```
@@ -225,7 +225,7 @@ import * as fs from 'fs';
225
225
const configuration = v1 .createConfiguration ();
226
226
const apiInstance = new v1 .AWSIntegrationApi (configuration );
227
227
228
- let body : v1 .AWSIntegrationApiDeleteAWSAccountRequest = {
228
+ let params : v1 .AWSIntegrationApiDeleteAWSAccountRequest = {
229
229
// AWSAccount | AWS request object
230
230
body: {
231
231
accessKeyId: " accessKeyId_example" ,
@@ -241,7 +241,7 @@ let body:v1.AWSIntegrationApiDeleteAWSAccountRequest = {
241
241
},
242
242
};
243
243
244
- apiInstance .deleteAWSAccount (body ).then ((data : any ) => {
244
+ apiInstance .deleteAWSAccount (params ).then ((data : any ) => {
245
245
console .log (' API called successfully. Returned data: ' + data );
246
246
}).catch ((error : any ) => console .error (error ));
247
247
```
@@ -293,15 +293,15 @@ import * as fs from 'fs';
293
293
const configuration = v1 .createConfiguration ();
294
294
const apiInstance = new v1 .AWSIntegrationApi (configuration );
295
295
296
- let body : v1 .AWSIntegrationApiDeleteAWSTagFilterRequest = {
296
+ let params : v1 .AWSIntegrationApiDeleteAWSTagFilterRequest = {
297
297
// AWSTagFilterDeleteRequest | Delete a tag filtering entry for a given AWS account and `dd-aws` namespace.
298
298
body: {
299
299
accountId: " FAKEAC0FAKEAC2FAKEAC" ,
300
300
namespace: " elb" ,
301
301
},
302
302
};
303
303
304
- apiInstance .deleteAWSTagFilter (body ).then ((data : any ) => {
304
+ apiInstance .deleteAWSTagFilter (params ).then ((data : any ) => {
305
305
console .log (' API called successfully. Returned data: ' + data );
306
306
}).catch ((error : any ) => console .error (error ));
307
307
```
@@ -352,7 +352,7 @@ import * as fs from 'fs';
352
352
const configuration = v1 .createConfiguration ();
353
353
const apiInstance = new v1 .AWSIntegrationApi (configuration );
354
354
355
- let body : v1 .AWSIntegrationApiListAWSAccountsRequest = {
355
+ let params : v1 .AWSIntegrationApiListAWSAccountsRequest = {
356
356
// string | Only return AWS accounts that matches this `account_id`. (optional)
357
357
accountId: " account_id_example" ,
358
358
// string | Only return AWS accounts that matches this role_name. (optional)
@@ -361,7 +361,7 @@ let body:v1.AWSIntegrationApiListAWSAccountsRequest = {
361
361
accessKeyId: " access_key_id_example" ,
362
362
};
363
363
364
- apiInstance .listAWSAccounts (body ).then ((data : any ) => {
364
+ apiInstance .listAWSAccounts (params ).then ((data : any ) => {
365
365
console .log (' API called successfully. Returned data: ' + data );
366
366
}).catch ((error : any ) => console .error (error ));
367
367
```
@@ -414,12 +414,12 @@ import * as fs from 'fs';
414
414
const configuration = v1 .createConfiguration ();
415
415
const apiInstance = new v1 .AWSIntegrationApi (configuration );
416
416
417
- let body : v1 .AWSIntegrationApiListAWSTagFiltersRequest = {
417
+ let params : v1 .AWSIntegrationApiListAWSTagFiltersRequest = {
418
418
// string | Only return AWS filters that matches this `account_id`.
419
419
accountId: " account_id_example" ,
420
420
};
421
421
422
- apiInstance .listAWSTagFilters (body ).then ((data : any ) => {
422
+ apiInstance .listAWSTagFilters (params ).then ((data : any ) => {
423
423
console .log (' API called successfully. Returned data: ' + data );
424
424
}).catch ((error : any ) => console .error (error ));
425
425
```
@@ -470,9 +470,8 @@ import * as fs from 'fs';
470
470
const configuration = v1 .createConfiguration ();
471
471
const apiInstance = new v1 .AWSIntegrationApi (configuration );
472
472
473
- let body: any = {};
474
473
475
- apiInstance .listAvailableAWSNamespaces (body ).then ((data : any ) => {
474
+ apiInstance .listAvailableAWSNamespaces ().then ((data : any ) => {
476
475
console .log (' API called successfully. Returned data: ' + data );
477
476
}).catch ((error : any ) => console .error (error ));
478
477
```
@@ -519,7 +518,7 @@ import * as fs from 'fs';
519
518
const configuration = v1 .createConfiguration ();
520
519
const apiInstance = new v1 .AWSIntegrationApi (configuration );
521
520
522
- let body : v1 .AWSIntegrationApiUpdateAWSAccountRequest = {
521
+ let params : v1 .AWSIntegrationApiUpdateAWSAccountRequest = {
523
522
// AWSAccount | AWS request object
524
523
body: {
525
524
accessKeyId: " accessKeyId_example" ,
@@ -541,7 +540,7 @@ let body:v1.AWSIntegrationApiUpdateAWSAccountRequest = {
541
540
accessKeyId: " access_key_id_example" ,
542
541
};
543
542
544
- apiInstance .updateAWSAccount (body ).then ((data : any ) => {
543
+ apiInstance .updateAWSAccount (params ).then ((data : any ) => {
545
544
console .log (' API called successfully. Returned data: ' + data );
546
545
}).catch ((error : any ) => console .error (error ));
547
546
```
0 commit comments