import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { AmpClient } from "./AmpClient" ; import { CreateAlertManagerDefinitionCommand , CreateAlertManagerDefinitionCommandInput , CreateAlertManagerDefinitionCommandOutput , } from "./commands/CreateAlertManagerDefinitionCommand" ; import { CreateRuleGroupsNamespaceCommand , CreateRuleGroupsNamespaceCommandInput , CreateRuleGroupsNamespaceCommandOutput , } from "./commands/CreateRuleGroupsNamespaceCommand" ; import { CreateWorkspaceCommand , CreateWorkspaceCommandInput , CreateWorkspaceCommandOutput , } from "./commands/CreateWorkspaceCommand" ; import { DeleteAlertManagerDefinitionCommand , DeleteAlertManagerDefinitionCommandInput , DeleteAlertManagerDefinitionCommandOutput , } from "./commands/DeleteAlertManagerDefinitionCommand" ; import { DeleteRuleGroupsNamespaceCommand , DeleteRuleGroupsNamespaceCommandInput , DeleteRuleGroupsNamespaceCommandOutput , } from "./commands/DeleteRuleGroupsNamespaceCommand" ; import { DeleteWorkspaceCommand , DeleteWorkspaceCommandInput , DeleteWorkspaceCommandOutput , } from "./commands/DeleteWorkspaceCommand" ; import { DescribeAlertManagerDefinitionCommand , DescribeAlertManagerDefinitionCommandInput , DescribeAlertManagerDefinitionCommandOutput , } from "./commands/DescribeAlertManagerDefinitionCommand" ; import { DescribeRuleGroupsNamespaceCommand , DescribeRuleGroupsNamespaceCommandInput , DescribeRuleGroupsNamespaceCommandOutput , } from "./commands/DescribeRuleGroupsNamespaceCommand" ; import { DescribeWorkspaceCommand , DescribeWorkspaceCommandInput , DescribeWorkspaceCommandOutput , } from "./commands/DescribeWorkspaceCommand" ; import { ListRuleGroupsNamespacesCommand , ListRuleGroupsNamespacesCommandInput , ListRuleGroupsNamespacesCommandOutput , } from "./commands/ListRuleGroupsNamespacesCommand" ; import { ListTagsForResourceCommand , ListTagsForResourceCommandInput , ListTagsForResourceCommandOutput , } from "./commands/ListTagsForResourceCommand" ; import { ListWorkspacesCommand , ListWorkspacesCommandInput , ListWorkspacesCommandOutput , } from "./commands/ListWorkspacesCommand" ; import { PutAlertManagerDefinitionCommand , PutAlertManagerDefinitionCommandInput , PutAlertManagerDefinitionCommandOutput , } from "./commands/PutAlertManagerDefinitionCommand" ; import { PutRuleGroupsNamespaceCommand , PutRuleGroupsNamespaceCommandInput , PutRuleGroupsNamespaceCommandOutput , } from "./commands/PutRuleGroupsNamespaceCommand" ; import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ; import { UntagResourceCommand , UntagResourceCommandInput , UntagResourceCommandOutput , } from "./commands/UntagResourceCommand" ; import { UpdateWorkspaceAliasCommand , UpdateWorkspaceAliasCommandInput , UpdateWorkspaceAliasCommandOutput , } from "./commands/UpdateWorkspaceAliasCommand" ; /**
 * Amazon Managed Service for Prometheus
 */ export class Amp extends AmpClient { /**
     * Create an alert manager definition.
     */ public createAlertManagerDefinition ( args , options ? ) ; public createAlertManagerDefinition ( args , cb ) ; public createAlertManagerDefinition ( args , options , cb ) ; public createAlertManagerDefinition ( args , optionsOrCb ? , cb ? ) { const command = new CreateAlertManagerDefinitionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Create a rule group namespace.
     */ public createRuleGroupsNamespace ( args , options ? ) ; public createRuleGroupsNamespace ( args , cb ) ; public createRuleGroupsNamespace ( args , options , cb ) ; public createRuleGroupsNamespace ( args , optionsOrCb ? , cb ? ) { const command = new CreateRuleGroupsNamespaceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Creates a new AMP workspace.
     */ public createWorkspace ( args , options ? ) ; public createWorkspace ( args , cb ) ; public createWorkspace ( args , options , cb ) ; public createWorkspace ( args , optionsOrCb ? , cb ? ) { const command = new CreateWorkspaceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Deletes an alert manager definition.
     */ public deleteAlertManagerDefinition ( args , options ? ) ; public deleteAlertManagerDefinition ( args , cb ) ; public deleteAlertManagerDefinition ( args , options , cb ) ; public deleteAlertManagerDefinition ( args , optionsOrCb ? , cb ? ) { const command = new DeleteAlertManagerDefinitionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Delete a rule groups namespace.
     */ public deleteRuleGroupsNamespace ( args , options ? ) ; public deleteRuleGroupsNamespace ( args , cb ) ; public deleteRuleGroupsNamespace ( args , options , cb ) ; public deleteRuleGroupsNamespace ( args , optionsOrCb ? , cb ? ) { const command = new DeleteRuleGroupsNamespaceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Deletes an AMP workspace.
     */ public deleteWorkspace ( args , options ? ) ; public deleteWorkspace ( args , cb ) ; public deleteWorkspace ( args , options , cb ) ; public deleteWorkspace ( args , optionsOrCb ? , cb ? ) { const command = new DeleteWorkspaceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Describes an alert manager definition.
     */ public describeAlertManagerDefinition ( args , options ? ) ; public describeAlertManagerDefinition ( args , cb ) ; public describeAlertManagerDefinition ( args , options , cb ) ; public describeAlertManagerDefinition ( args , optionsOrCb ? , cb ? ) { const command = new DescribeAlertManagerDefinitionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Describe a rule groups namespace.
     */ public describeRuleGroupsNamespace ( args , options ? ) ; public describeRuleGroupsNamespace ( args , cb ) ; public describeRuleGroupsNamespace ( args , options , cb ) ; public describeRuleGroupsNamespace ( args , optionsOrCb ? , cb ? ) { const command = new DescribeRuleGroupsNamespaceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Describes an existing AMP workspace.
     */ public describeWorkspace ( args , options ? ) ; public describeWorkspace ( args , cb ) ; public describeWorkspace ( args , options , cb ) ; public describeWorkspace ( args , optionsOrCb ? , cb ? ) { const command = new DescribeWorkspaceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Lists rule groups namespaces.
     */ public listRuleGroupsNamespaces ( args , options ? ) ; public listRuleGroupsNamespaces ( args , cb ) ; public listRuleGroupsNamespaces ( args , options , cb ) ; public listRuleGroupsNamespaces ( args , optionsOrCb ? , cb ? ) { const command = new ListRuleGroupsNamespacesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Lists the tags you have assigned to the resource.
     */ public listTagsForResource ( args , options ? ) ; public listTagsForResource ( args , cb ) ; public listTagsForResource ( args , options , cb ) ; public listTagsForResource ( args , optionsOrCb ? , cb ? ) { const command = new ListTagsForResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Lists all AMP workspaces, including workspaces being created or deleted.
     */ public listWorkspaces ( args , options ? ) ; public listWorkspaces ( args , cb ) ; public listWorkspaces ( args , options , cb ) ; public listWorkspaces ( args , optionsOrCb ? , cb ? ) { const command = new ListWorkspacesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Update an alert manager definition.
     */ public putAlertManagerDefinition ( args , options ? ) ; public putAlertManagerDefinition ( args , cb ) ; public putAlertManagerDefinition ( args , options , cb ) ; public putAlertManagerDefinition ( args , optionsOrCb ? , cb ? ) { const command = new PutAlertManagerDefinitionCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Update a rule groups namespace.
     */ public putRuleGroupsNamespace ( args , options ? ) ; public putRuleGroupsNamespace ( args , cb ) ; public putRuleGroupsNamespace ( args , options , cb ) ; public putRuleGroupsNamespace ( args , optionsOrCb ? , cb ? ) { const command = new PutRuleGroupsNamespaceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Creates tags for the specified resource.
     */ public tagResource ( args , options ? ) ; public tagResource ( args , cb ) ; public tagResource ( args , options , cb ) ; public tagResource ( args , optionsOrCb ? , cb ? ) { const command = new TagResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Deletes tags from the specified resource.
     */ public untagResource ( args , options ? ) ; public untagResource ( args , cb ) ; public untagResource ( args , options , cb ) ; public untagResource ( args , optionsOrCb ? , cb ? ) { const command = new UntagResourceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Updates an AMP workspace alias.
     */ public updateWorkspaceAlias ( args , options ? ) ; public updateWorkspaceAlias ( args , cb ) ; public updateWorkspaceAlias ( args , options , cb ) ; public updateWorkspaceAlias ( args , optionsOrCb ? , cb ? ) { const command = new UpdateWorkspaceAliasCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } }