@@ -7,6 +7,11 @@ import {
77 CreateAlertManagerDefinitionCommandInput ,
88 CreateAlertManagerDefinitionCommandOutput ,
99} from "./commands/CreateAlertManagerDefinitionCommand" ;
10+ import {
11+ CreateLoggingConfigurationCommand ,
12+ CreateLoggingConfigurationCommandInput ,
13+ CreateLoggingConfigurationCommandOutput ,
14+ } from "./commands/CreateLoggingConfigurationCommand" ;
1015import {
1116 CreateRuleGroupsNamespaceCommand ,
1217 CreateRuleGroupsNamespaceCommandInput ,
@@ -22,6 +27,11 @@ import {
2227 DeleteAlertManagerDefinitionCommandInput ,
2328 DeleteAlertManagerDefinitionCommandOutput ,
2429} from "./commands/DeleteAlertManagerDefinitionCommand" ;
30+ import {
31+ DeleteLoggingConfigurationCommand ,
32+ DeleteLoggingConfigurationCommandInput ,
33+ DeleteLoggingConfigurationCommandOutput ,
34+ } from "./commands/DeleteLoggingConfigurationCommand" ;
2535import {
2636 DeleteRuleGroupsNamespaceCommand ,
2737 DeleteRuleGroupsNamespaceCommandInput ,
@@ -37,6 +47,11 @@ import {
3747 DescribeAlertManagerDefinitionCommandInput ,
3848 DescribeAlertManagerDefinitionCommandOutput ,
3949} from "./commands/DescribeAlertManagerDefinitionCommand" ;
50+ import {
51+ DescribeLoggingConfigurationCommand ,
52+ DescribeLoggingConfigurationCommandInput ,
53+ DescribeLoggingConfigurationCommandOutput ,
54+ } from "./commands/DescribeLoggingConfigurationCommand" ;
4055import {
4156 DescribeRuleGroupsNamespaceCommand ,
4257 DescribeRuleGroupsNamespaceCommandInput ,
@@ -78,6 +93,11 @@ import {
7893 UntagResourceCommandInput ,
7994 UntagResourceCommandOutput ,
8095} from "./commands/UntagResourceCommand" ;
96+ import {
97+ UpdateLoggingConfigurationCommand ,
98+ UpdateLoggingConfigurationCommandInput ,
99+ UpdateLoggingConfigurationCommandOutput ,
100+ } from "./commands/UpdateLoggingConfigurationCommand" ;
81101import {
82102 UpdateWorkspaceAliasCommand ,
83103 UpdateWorkspaceAliasCommandInput ,
@@ -120,6 +140,38 @@ export class Amp extends AmpClient {
120140 }
121141 }
122142
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+
123175 /**
124176 * Create a rule group namespace.
125177 */
@@ -216,6 +268,38 @@ export class Amp extends AmpClient {
216268 }
217269 }
218270
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+
219303 /**
220304 * Delete a rule groups namespace.
221305 */
@@ -312,6 +396,38 @@ export class Amp extends AmpClient {
312396 }
313397 }
314398
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+
315431 /**
316432 * Describe a rule groups namespace.
317433 */
@@ -594,6 +710,38 @@ export class Amp extends AmpClient {
594710 }
595711 }
596712
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+
597745 /**
598746 * Updates an AMP workspace alias.
599747 */
0 commit comments