import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { CreateCliTokenCommand , CreateCliTokenCommandInput , CreateCliTokenCommandOutput , } from "./commands/CreateCliTokenCommand" ; import { CreateEnvironmentCommand , CreateEnvironmentCommandInput , CreateEnvironmentCommandOutput , } from "./commands/CreateEnvironmentCommand" ; import { CreateWebLoginTokenCommand , CreateWebLoginTokenCommandInput , CreateWebLoginTokenCommandOutput , } from "./commands/CreateWebLoginTokenCommand" ; import { DeleteEnvironmentCommand , DeleteEnvironmentCommandInput , DeleteEnvironmentCommandOutput , } from "./commands/DeleteEnvironmentCommand" ; import { GetEnvironmentCommand , GetEnvironmentCommandInput , GetEnvironmentCommandOutput , } from "./commands/GetEnvironmentCommand" ; import { ListEnvironmentsCommand , ListEnvironmentsCommandInput , ListEnvironmentsCommandOutput , } from "./commands/ListEnvironmentsCommand" ; import { ListTagsForResourceCommand , ListTagsForResourceCommandInput , ListTagsForResourceCommandOutput , } from "./commands/ListTagsForResourceCommand" ; import { PublishMetricsCommand , PublishMetricsCommandInput , PublishMetricsCommandOutput , } from "./commands/PublishMetricsCommand" ; import { TagResourceCommand , TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ; import { UntagResourceCommand , UntagResourceCommandInput , UntagResourceCommandOutput , } from "./commands/UntagResourceCommand" ; import { UpdateEnvironmentCommand , UpdateEnvironmentCommandInput , UpdateEnvironmentCommandOutput , } from "./commands/UpdateEnvironmentCommand" ; import { MWAAClient } from "./MWAAClient" ; /**
 * <fullname>Amazon Managed Workflows for Apache Airflow</fullname>
 *         <p>This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation. For more information, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/what-is-mwaa.html">What Is Amazon MWAA?</a>.</p>
 *
 *         <p>
 *             <b>Endpoints</b>
 *          </p>
 *         <ul>
 *             <li>
 *                 <p>
 *                   <code>api.airflow.{region}.amazonaws.com</code> - This endpoint is used for environment management.</p>
 *                 <ul>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_CreateEnvironment.html">CreateEnvironment</a>
 *                      </p>
 *                     </li>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_DeleteEnvironment.html">DeleteEnvironment</a>
 *                      </p>
 *                     </li>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_GetEnvironment.html">GetEnvironment</a>
 *                      </p>
 *                     </li>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_ListEnvironments.html">ListEnvironments</a>
 *                      </p>
 *                     </li>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_ListTagsForResource.html">ListTagsForResource</a>
 *                      </p>
 *                     </li>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_TagResource.html">TagResource</a>
 *                      </p>
 *                     </li>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_UntagResource.html">UntagResource</a>
 *                      </p>
 *                     </li>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_UpdateEnvironment.html">UpdateEnvironment</a>
 *                      </p>
 *                     </li>
 *                </ul>
 *             </li>
 *             <li>
 *                 <p>
 *                   <code>env.airflow.{region}.amazonaws.com</code> - This endpoint is used to operate the Airflow environment.</p>
 *                 <ul>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_CreateCliToken.html ">CreateCliToken</a>
 *                      </p>
 *                     </li>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_CreateWebLoginToken.html">CreateWebLoginToken</a>
 *                      </p>
 *                     </li>
 *                </ul>
 *             </li>
 *             <li>
 *                 <p>
 *                   <code>ops.airflow.{region}.amazonaws.com</code> - This endpoint is used to push environment metrics that track environment health.</p>
 *                 <ul>
 *                   <li>
 *                         <p>
 *                         <a href="https://docs.aws.amazon.com/mwaa/latest/API/API_PublishMetrics.html ">PublishMetrics</a>
 *                      </p>
 *                     </li>
 *                </ul>
 *             </li>
 *          </ul>
 *
 *         <p>
 *             <b>Regions</b>
 *          </p>
 *         <p>For a list of regions that Amazon MWAA supports, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/what-is-mwaa.html#regions-mwaa">Region availability</a> in the <i>Amazon MWAA User Guide</i>.</p>
 */ export class MWAA extends MWAAClient { /**
     * <p>Creates a CLI token for the Airflow CLI. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/call-mwaa-apis-cli.html">Creating an Apache Airflow CLI token</a>.</p>
     */ public createCliToken ( args , options ? ) ; public createCliToken ( args , cb ) ; public createCliToken ( args , options , cb ) ; public createCliToken ( args , optionsOrCb ? , cb ? ) { const command = new CreateCliTokenCommand ( 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 ) ; } } /**
     * <p>Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
     */ public createEnvironment ( args , options ? ) ; public createEnvironment ( args , cb ) ; public createEnvironment ( args , options , cb ) ; public createEnvironment ( args , optionsOrCb ? , cb ? ) { const command = new CreateEnvironmentCommand ( 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 ) ; } } /**
     * <p>Creates a web login token for the Airflow Web UI. To learn more, see <a href="https://docs.aws.amazon.com/mwaa/latest/userguide/call-mwaa-apis-web.html">Creating an Apache Airflow web login token</a>.</p>
     */ public createWebLoginToken ( args , options ? ) ; public createWebLoginToken ( args , cb ) ; public createWebLoginToken ( args , options , cb ) ; public createWebLoginToken ( args , optionsOrCb ? , cb ? ) { const command = new CreateWebLoginTokenCommand ( 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 ) ; } } /**
     * <p>Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
     */ public deleteEnvironment ( args , options ? ) ; public deleteEnvironment ( args , cb ) ; public deleteEnvironment ( args , options , cb ) ; public deleteEnvironment ( args , optionsOrCb ? , cb ? ) { const command = new DeleteEnvironmentCommand ( 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 ) ; } } /**
     * <p>Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
     */ public getEnvironment ( args , options ? ) ; public getEnvironment ( args , cb ) ; public getEnvironment ( args , options , cb ) ; public getEnvironment ( args , optionsOrCb ? , cb ? ) { const command = new GetEnvironmentCommand ( 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 ) ; } } /**
     * <p>Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.</p>
     */ public listEnvironments ( args , options ? ) ; public listEnvironments ( args , cb ) ; public listEnvironments ( args , options , cb ) ; public listEnvironments ( args , optionsOrCb ? , cb ? ) { const command = new ListEnvironmentsCommand ( 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 ) ; } } /**
     * <p>Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, <code>"Environment": "Staging"</code>. </p>
     */ 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 ) ; } } /**
     * <p>
     *             <b>Internal only</b>. Publishes environment health metrics to Amazon CloudWatch.</p>
     */ public publishMetrics ( args , options ? ) ; public publishMetrics ( args , cb ) ; public publishMetrics ( args , options , cb ) ; public publishMetrics ( args , optionsOrCb ? , cb ? ) { const command = new PublishMetricsCommand ( 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 ) ; } } /**
     * <p>Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. </p>
     */ 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 ) ; } } /**
     * <p>Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, <code>"Environment": "Staging"</code>.</p>
     */ 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 ) ; } } /**
     * <p>Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.</p>
     */ public updateEnvironment ( args , options ? ) ; public updateEnvironment ( args , cb ) ; public updateEnvironment ( args , options , cb ) ; public updateEnvironment ( args , optionsOrCb ? , cb ? ) { const command = new UpdateEnvironmentCommand ( 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 ) ; } } }