@@ -7,6 +7,11 @@ import {
7
7
CreateAlertManagerDefinitionCommandInput ,
8
8
CreateAlertManagerDefinitionCommandOutput ,
9
9
} from "./commands/CreateAlertManagerDefinitionCommand" ;
10
+ import {
11
+ CreateLoggingConfigurationCommand ,
12
+ CreateLoggingConfigurationCommandInput ,
13
+ CreateLoggingConfigurationCommandOutput ,
14
+ } from "./commands/CreateLoggingConfigurationCommand" ;
10
15
import {
11
16
CreateRuleGroupsNamespaceCommand ,
12
17
CreateRuleGroupsNamespaceCommandInput ,
@@ -22,6 +27,11 @@ import {
22
27
DeleteAlertManagerDefinitionCommandInput ,
23
28
DeleteAlertManagerDefinitionCommandOutput ,
24
29
} from "./commands/DeleteAlertManagerDefinitionCommand" ;
30
+ import {
31
+ DeleteLoggingConfigurationCommand ,
32
+ DeleteLoggingConfigurationCommandInput ,
33
+ DeleteLoggingConfigurationCommandOutput ,
34
+ } from "./commands/DeleteLoggingConfigurationCommand" ;
25
35
import {
26
36
DeleteRuleGroupsNamespaceCommand ,
27
37
DeleteRuleGroupsNamespaceCommandInput ,
@@ -37,6 +47,11 @@ import {
37
47
DescribeAlertManagerDefinitionCommandInput ,
38
48
DescribeAlertManagerDefinitionCommandOutput ,
39
49
} from "./commands/DescribeAlertManagerDefinitionCommand" ;
50
+ import {
51
+ DescribeLoggingConfigurationCommand ,
52
+ DescribeLoggingConfigurationCommandInput ,
53
+ DescribeLoggingConfigurationCommandOutput ,
54
+ } from "./commands/DescribeLoggingConfigurationCommand" ;
40
55
import {
41
56
DescribeRuleGroupsNamespaceCommand ,
42
57
DescribeRuleGroupsNamespaceCommandInput ,
@@ -78,6 +93,11 @@ import {
78
93
UntagResourceCommandInput ,
79
94
UntagResourceCommandOutput ,
80
95
} from "./commands/UntagResourceCommand" ;
96
+ import {
97
+ UpdateLoggingConfigurationCommand ,
98
+ UpdateLoggingConfigurationCommandInput ,
99
+ UpdateLoggingConfigurationCommandOutput ,
100
+ } from "./commands/UpdateLoggingConfigurationCommand" ;
81
101
import {
82
102
UpdateWorkspaceAliasCommand ,
83
103
UpdateWorkspaceAliasCommandInput ,
@@ -120,6 +140,38 @@ export class Amp extends AmpClient {
120
140
}
121
141
}
122
142
143
+ /**
144
+ * Create logging configuration.
145
+ */
146
+ public createLoggingConfiguration (
147
+ args : CreateLoggingConfigurationCommandInput ,
148
+ options ?: __HttpHandlerOptions
149
+ ) : Promise < CreateLoggingConfigurationCommandOutput > ;
150
+ public createLoggingConfiguration (
151
+ args : CreateLoggingConfigurationCommandInput ,
152
+ cb : ( err : any , data ?: CreateLoggingConfigurationCommandOutput ) => void
153
+ ) : void ;
154
+ public createLoggingConfiguration (
155
+ args : CreateLoggingConfigurationCommandInput ,
156
+ options : __HttpHandlerOptions ,
157
+ cb : ( err : any , data ?: CreateLoggingConfigurationCommandOutput ) => void
158
+ ) : void ;
159
+ public createLoggingConfiguration (
160
+ args : CreateLoggingConfigurationCommandInput ,
161
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateLoggingConfigurationCommandOutput ) => void ) ,
162
+ cb ?: ( err : any , data ?: CreateLoggingConfigurationCommandOutput ) => void
163
+ ) : Promise < CreateLoggingConfigurationCommandOutput > | void {
164
+ const command = new CreateLoggingConfigurationCommand ( args ) ;
165
+ if ( typeof optionsOrCb === "function" ) {
166
+ this . send ( command , optionsOrCb ) ;
167
+ } else if ( typeof cb === "function" ) {
168
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
169
+ this . send ( command , optionsOrCb || { } , cb ) ;
170
+ } else {
171
+ return this . send ( command , optionsOrCb ) ;
172
+ }
173
+ }
174
+
123
175
/**
124
176
* Create a rule group namespace.
125
177
*/
@@ -216,6 +268,38 @@ export class Amp extends AmpClient {
216
268
}
217
269
}
218
270
271
+ /**
272
+ * Delete logging configuration.
273
+ */
274
+ public deleteLoggingConfiguration (
275
+ args : DeleteLoggingConfigurationCommandInput ,
276
+ options ?: __HttpHandlerOptions
277
+ ) : Promise < DeleteLoggingConfigurationCommandOutput > ;
278
+ public deleteLoggingConfiguration (
279
+ args : DeleteLoggingConfigurationCommandInput ,
280
+ cb : ( err : any , data ?: DeleteLoggingConfigurationCommandOutput ) => void
281
+ ) : void ;
282
+ public deleteLoggingConfiguration (
283
+ args : DeleteLoggingConfigurationCommandInput ,
284
+ options : __HttpHandlerOptions ,
285
+ cb : ( err : any , data ?: DeleteLoggingConfigurationCommandOutput ) => void
286
+ ) : void ;
287
+ public deleteLoggingConfiguration (
288
+ args : DeleteLoggingConfigurationCommandInput ,
289
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteLoggingConfigurationCommandOutput ) => void ) ,
290
+ cb ?: ( err : any , data ?: DeleteLoggingConfigurationCommandOutput ) => void
291
+ ) : Promise < DeleteLoggingConfigurationCommandOutput > | void {
292
+ const command = new DeleteLoggingConfigurationCommand ( args ) ;
293
+ if ( typeof optionsOrCb === "function" ) {
294
+ this . send ( command , optionsOrCb ) ;
295
+ } else if ( typeof cb === "function" ) {
296
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
297
+ this . send ( command , optionsOrCb || { } , cb ) ;
298
+ } else {
299
+ return this . send ( command , optionsOrCb ) ;
300
+ }
301
+ }
302
+
219
303
/**
220
304
* Delete a rule groups namespace.
221
305
*/
@@ -312,6 +396,38 @@ export class Amp extends AmpClient {
312
396
}
313
397
}
314
398
399
+ /**
400
+ * Describes logging configuration.
401
+ */
402
+ public describeLoggingConfiguration (
403
+ args : DescribeLoggingConfigurationCommandInput ,
404
+ options ?: __HttpHandlerOptions
405
+ ) : Promise < DescribeLoggingConfigurationCommandOutput > ;
406
+ public describeLoggingConfiguration (
407
+ args : DescribeLoggingConfigurationCommandInput ,
408
+ cb : ( err : any , data ?: DescribeLoggingConfigurationCommandOutput ) => void
409
+ ) : void ;
410
+ public describeLoggingConfiguration (
411
+ args : DescribeLoggingConfigurationCommandInput ,
412
+ options : __HttpHandlerOptions ,
413
+ cb : ( err : any , data ?: DescribeLoggingConfigurationCommandOutput ) => void
414
+ ) : void ;
415
+ public describeLoggingConfiguration (
416
+ args : DescribeLoggingConfigurationCommandInput ,
417
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeLoggingConfigurationCommandOutput ) => void ) ,
418
+ cb ?: ( err : any , data ?: DescribeLoggingConfigurationCommandOutput ) => void
419
+ ) : Promise < DescribeLoggingConfigurationCommandOutput > | void {
420
+ const command = new DescribeLoggingConfigurationCommand ( args ) ;
421
+ if ( typeof optionsOrCb === "function" ) {
422
+ this . send ( command , optionsOrCb ) ;
423
+ } else if ( typeof cb === "function" ) {
424
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
425
+ this . send ( command , optionsOrCb || { } , cb ) ;
426
+ } else {
427
+ return this . send ( command , optionsOrCb ) ;
428
+ }
429
+ }
430
+
315
431
/**
316
432
* Describe a rule groups namespace.
317
433
*/
@@ -594,6 +710,38 @@ export class Amp extends AmpClient {
594
710
}
595
711
}
596
712
713
+ /**
714
+ * Update logging configuration.
715
+ */
716
+ public updateLoggingConfiguration (
717
+ args : UpdateLoggingConfigurationCommandInput ,
718
+ options ?: __HttpHandlerOptions
719
+ ) : Promise < UpdateLoggingConfigurationCommandOutput > ;
720
+ public updateLoggingConfiguration (
721
+ args : UpdateLoggingConfigurationCommandInput ,
722
+ cb : ( err : any , data ?: UpdateLoggingConfigurationCommandOutput ) => void
723
+ ) : void ;
724
+ public updateLoggingConfiguration (
725
+ args : UpdateLoggingConfigurationCommandInput ,
726
+ options : __HttpHandlerOptions ,
727
+ cb : ( err : any , data ?: UpdateLoggingConfigurationCommandOutput ) => void
728
+ ) : void ;
729
+ public updateLoggingConfiguration (
730
+ args : UpdateLoggingConfigurationCommandInput ,
731
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: UpdateLoggingConfigurationCommandOutput ) => void ) ,
732
+ cb ?: ( err : any , data ?: UpdateLoggingConfigurationCommandOutput ) => void
733
+ ) : Promise < UpdateLoggingConfigurationCommandOutput > | void {
734
+ const command = new UpdateLoggingConfigurationCommand ( args ) ;
735
+ if ( typeof optionsOrCb === "function" ) {
736
+ this . send ( command , optionsOrCb ) ;
737
+ } else if ( typeof cb === "function" ) {
738
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
739
+ this . send ( command , optionsOrCb || { } , cb ) ;
740
+ } else {
741
+ return this . send ( command , optionsOrCb ) ;
742
+ }
743
+ }
744
+
597
745
/**
598
746
* Updates an AMP workspace alias.
599
747
*/
0 commit comments