@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonMWAAClient extends AmazonWebServiceClient implements AmazonMWAA
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.
env.airflow.{region}.amazonaws.com
- This endpoint is used to operate the Airflow environment.
ops.airflow.{region}.amazonaws.com
- This endpoint is used to push environment metrics that track
environment health.
Regions
For a list of regions that Amazon MWAA supports, see Region availability in the Amazon MWAA User Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonMWAAClientBuilder |
builder() |
CreateCliTokenResult |
createCliToken(CreateCliTokenRequest request)
Creates a CLI token for the Airflow CLI.
|
CreateEnvironmentResult |
createEnvironment(CreateEnvironmentRequest request)
Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
CreateWebLoginTokenResult |
createWebLoginToken(CreateWebLoginTokenRequest request)
Creates a web login token for the Airflow Web UI.
|
DeleteEnvironmentResult |
deleteEnvironment(DeleteEnvironmentRequest request)
Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetEnvironmentResult |
getEnvironment(GetEnvironmentRequest request)
Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
ListEnvironmentsResult |
listEnvironments(ListEnvironmentsRequest request)
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
PublishMetricsResult |
publishMetrics(PublishMetricsRequest request)
Internal only.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
UpdateEnvironmentResult |
updateEnvironment(UpdateEnvironmentRequest request)
Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AmazonMWAAClientBuilder builder()
public CreateCliTokenResult createCliToken(CreateCliTokenRequest request)
Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token.
createCliToken
in interface AmazonMWAA
createCliTokenRequest
- ResourceNotFoundException
- ResourceNotFoundException: The resource is not available.public CreateEnvironmentResult createEnvironment(CreateEnvironmentRequest request)
Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
createEnvironment
in interface AmazonMWAA
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.ValidationException
- ValidationException: The provided input is not valid.InternalServerException
- InternalServerException: An internal error has occurred.public CreateWebLoginTokenResult createWebLoginToken(CreateWebLoginTokenRequest request)
Creates a web login token for the Airflow Web UI. To learn more, see Creating an Apache Airflow web login token.
createWebLoginToken
in interface AmazonMWAA
createWebLoginTokenRequest
- 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.ResourceNotFoundException
- ResourceNotFoundException: The resource is not available.ValidationException
- ValidationException: The provided input is not valid.InternalServerException
- InternalServerException: An internal error has occurred.public DeleteEnvironmentResult deleteEnvironment(DeleteEnvironmentRequest request)
Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
deleteEnvironment
in interface AmazonMWAA
deleteEnvironmentRequest
- ResourceNotFoundException
- ResourceNotFoundException: The resource is not available.ValidationException
- ValidationException: The provided input is not valid.InternalServerException
- InternalServerException: An internal error has occurred.public GetEnvironmentResult getEnvironment(GetEnvironmentRequest request)
Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
getEnvironment
in interface AmazonMWAA
getEnvironmentRequest
- ResourceNotFoundException
- ResourceNotFoundException: The resource is not available.ValidationException
- ValidationException: The provided input is not valid.InternalServerException
- InternalServerException: An internal error has occurred.public ListEnvironmentsResult listEnvironments(ListEnvironmentsRequest request)
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
listEnvironments
in interface AmazonMWAA
listEnvironmentsRequest
- ValidationException
- ValidationException: The provided input is not valid.InternalServerException
- InternalServerException: An internal error has occurred.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment.
For example, "Environment": "Staging"
.
listTagsForResource
in interface AmazonMWAA
listTagsForResourceRequest
- ResourceNotFoundException
- ResourceNotFoundException: The resource is not available.ValidationException
- ValidationException: The provided input is not valid.InternalServerException
- InternalServerException: An internal error has occurred.public PublishMetricsResult publishMetrics(PublishMetricsRequest request)
Internal only. Publishes environment health metrics to Amazon CloudWatch.
publishMetrics
in interface AmazonMWAA
publishMetricsRequest
- ValidationException
- ValidationException: The provided input is not valid.InternalServerException
- InternalServerException: An internal error has occurred.public TagResourceResult tagResource(TagResourceRequest request)
Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
tagResource
in interface AmazonMWAA
tagResourceRequest
- ResourceNotFoundException
- ResourceNotFoundException: The resource is not available.ValidationException
- ValidationException: The provided input is not valid.InternalServerException
- InternalServerException: An internal error has occurred.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
For example, "Environment": "Staging"
.
untagResource
in interface AmazonMWAA
untagResourceRequest
- ResourceNotFoundException
- ResourceNotFoundException: The resource is not available.ValidationException
- ValidationException: The provided input is not valid.InternalServerException
- InternalServerException: An internal error has occurred.public UpdateEnvironmentResult updateEnvironment(UpdateEnvironmentRequest request)
Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
updateEnvironment
in interface AmazonMWAA
updateEnvironmentRequest
- ResourceNotFoundException
- ResourceNotFoundException: The resource is not available.ValidationException
- ValidationException: The provided input is not valid.InternalServerException
- InternalServerException: An internal error has occurred.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
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 the request.
getCachedResponseMetadata
in interface AmazonMWAA
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonMWAA
shutdown
in class AmazonWebServiceClient