
com.amazonaws.services.mwaa.AmazonMWAA Maven / Gradle / Ivy
/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.mwaa;
import javax.annotation.Generated;
import com.amazonaws.*;
import com.amazonaws.regions.*;
import com.amazonaws.services.mwaa.model.*;
/**
* Interface for accessing AmazonMWAA.
*
* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
* {@link com.amazonaws.services.mwaa.AbstractAmazonMWAA} instead.
*
*
*
* Amazon Managed Workflows for Apache Airflow
*
* This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation. For more
* information, see What Is Amazon
* MWAA?.
*
*
* Endpoints
*
*
* -
*
* api.airflow.{region}.amazonaws.com
- This endpoint is used for environment management.
*
*
* -
*
*
* -
*
*
* -
*
* GetEnvironment
*
*
* -
*
* ListEnvironments
*
*
* -
*
*
* -
*
* TagResource
*
*
* -
*
* UntagResource
*
*
* -
*
*
*
*
* -
*
* env.airflow.{region}.amazonaws.com
- This endpoint is used to operate the Airflow environment.
*
*
* -
*
* CreateCliToken
*
*
* -
*
*
*
*
* -
*
* ops.airflow.{region}.amazonaws.com
- This endpoint is used to push environment metrics that track
* environment health.
*
*
* -
*
* PublishMetrics
*
*
*
*
*
*
* Regions
*
*
* For a list of regions that Amazon MWAA supports, see Region availability in
* the Amazon MWAA User Guide.
*
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public interface AmazonMWAA {
/**
* The region metadata service name for computing region endpoints. You can use this value to retrieve metadata
* (such as supported regions) of the service.
*
* @see RegionUtils#getRegionsForService(String)
*/
String ENDPOINT_PREFIX = "airflow";
/**
*
* Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI
* token.
*
*
* @param createCliTokenRequest
* @return Result of the CreateCliToken operation returned by the service.
* @throws ResourceNotFoundException
* ResourceNotFoundException: The resource is not available.
* @sample AmazonMWAA.CreateCliToken
* @see AWS API
* Documentation
*/
CreateCliTokenResult createCliToken(CreateCliTokenRequest createCliTokenRequest);
/**
*
* Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
*
*
* @param createEnvironmentRequest
* This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation
* to create an environment. For more information, see Get started with Amazon Managed
* Workflows for Apache Airflow.
* @return Result of the CreateEnvironment operation returned by the service.
* @throws ValidationException
* ValidationException: The provided input is not valid.
* @throws InternalServerException
* InternalServerException: An internal error has occurred.
* @sample AmazonMWAA.CreateEnvironment
* @see AWS API
* Documentation
*/
CreateEnvironmentResult createEnvironment(CreateEnvironmentRequest createEnvironmentRequest);
/**
*
* Creates a web login token for the Airflow Web UI. To learn more, see Creating an Apache Airflow web
* login token.
*
*
* @param createWebLoginTokenRequest
* @return Result of the CreateWebLoginToken operation returned by the service.
* @throws AccessDeniedException
* Access to the Apache Airflow Web UI or CLI has been denied due to insufficient permissions. To learn
* more, see Accessing an
* Amazon MWAA environment.
* @throws ResourceNotFoundException
* ResourceNotFoundException: The resource is not available.
* @throws ValidationException
* ValidationException: The provided input is not valid.
* @throws InternalServerException
* InternalServerException: An internal error has occurred.
* @sample AmazonMWAA.CreateWebLoginToken
* @see AWS API
* Documentation
*/
CreateWebLoginTokenResult createWebLoginToken(CreateWebLoginTokenRequest createWebLoginTokenRequest);
/**
*
* Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
*
*
* @param deleteEnvironmentRequest
* @return Result of the DeleteEnvironment operation returned by the service.
* @throws ResourceNotFoundException
* ResourceNotFoundException: The resource is not available.
* @throws ValidationException
* ValidationException: The provided input is not valid.
* @throws InternalServerException
* InternalServerException: An internal error has occurred.
* @sample AmazonMWAA.DeleteEnvironment
* @see AWS API
* Documentation
*/
DeleteEnvironmentResult deleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest);
/**
*
* Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
*
*
* @param getEnvironmentRequest
* @return Result of the GetEnvironment operation returned by the service.
* @throws ResourceNotFoundException
* ResourceNotFoundException: The resource is not available.
* @throws ValidationException
* ValidationException: The provided input is not valid.
* @throws InternalServerException
* InternalServerException: An internal error has occurred.
* @sample AmazonMWAA.GetEnvironment
* @see AWS API
* Documentation
*/
GetEnvironmentResult getEnvironment(GetEnvironmentRequest getEnvironmentRequest);
/**
*
* Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
*
*
* @param listEnvironmentsRequest
* @return Result of the ListEnvironments operation returned by the service.
* @throws ValidationException
* ValidationException: The provided input is not valid.
* @throws InternalServerException
* InternalServerException: An internal error has occurred.
* @sample AmazonMWAA.ListEnvironments
* @see AWS API
* Documentation
*/
ListEnvironmentsResult listEnvironments(ListEnvironmentsRequest listEnvironmentsRequest);
/**
*
* Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment.
* For example, "Environment": "Staging"
.
*
*
* @param listTagsForResourceRequest
* @return Result of the ListTagsForResource operation returned by the service.
* @throws ResourceNotFoundException
* ResourceNotFoundException: The resource is not available.
* @throws ValidationException
* ValidationException: The provided input is not valid.
* @throws InternalServerException
* InternalServerException: An internal error has occurred.
* @sample AmazonMWAA.ListTagsForResource
* @see AWS API
* Documentation
*/
ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest);
/**
*
* Internal only. Publishes environment health metrics to Amazon CloudWatch.
*
*
* @param publishMetricsRequest
* @return Result of the PublishMetrics operation returned by the service.
* @throws ValidationException
* ValidationException: The provided input is not valid.
* @throws InternalServerException
* InternalServerException: An internal error has occurred.
* @sample AmazonMWAA.PublishMetrics
* @see AWS API
* Documentation
*/
PublishMetricsResult publishMetrics(PublishMetricsRequest publishMetricsRequest);
/**
*
* Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
*
*
* @param tagResourceRequest
* @return Result of the TagResource operation returned by the service.
* @throws ResourceNotFoundException
* ResourceNotFoundException: The resource is not available.
* @throws ValidationException
* ValidationException: The provided input is not valid.
* @throws InternalServerException
* InternalServerException: An internal error has occurred.
* @sample AmazonMWAA.TagResource
* @see AWS API
* Documentation
*/
TagResourceResult tagResource(TagResourceRequest tagResourceRequest);
/**
*
* Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
* For example, "Environment": "Staging"
.
*
*
* @param untagResourceRequest
* @return Result of the UntagResource operation returned by the service.
* @throws ResourceNotFoundException
* ResourceNotFoundException: The resource is not available.
* @throws ValidationException
* ValidationException: The provided input is not valid.
* @throws InternalServerException
* InternalServerException: An internal error has occurred.
* @sample AmazonMWAA.UntagResource
* @see AWS API
* Documentation
*/
UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest);
/**
*
* Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
*
*
* @param updateEnvironmentRequest
* @return Result of the UpdateEnvironment operation returned by the service.
* @throws ResourceNotFoundException
* ResourceNotFoundException: The resource is not available.
* @throws ValidationException
* ValidationException: The provided input is not valid.
* @throws InternalServerException
* InternalServerException: An internal error has occurred.
* @sample AmazonMWAA.UpdateEnvironment
* @see AWS API
* Documentation
*/
UpdateEnvironmentResult updateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest);
/**
* Shuts down this client object, releasing any resources that might be held open. This is an optional method, and
* callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client
* has been shutdown, it should not be used to make any more requests.
*/
void shutdown();
/**
* Returns additional metadata for a previously executed successful request, typically used for debugging issues
* where a service isn't acting as expected. This data isn't considered part of the result data returned by an
* operation, so it's available through this separate, diagnostic interface.
*
* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic
* information for an executed request, you should use this method to retrieve it as soon as possible after
* executing a request.
*
* @param request
* The originally executed request.
*
* @return The response metadata for the specified request, or null if none is available.
*/
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request);
}