@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface MwaaClient extends AwsClient
builder() method.
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static MwaaClientBuilder |
builder()
Create a builder that can be used to configure and create a
MwaaClient. |
static MwaaClient |
create()
Create a
MwaaClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateCliTokenResponse |
createCliToken(Consumer<CreateCliTokenRequest.Builder> createCliTokenRequest)
Creates a CLI token for the Airflow CLI.
|
default CreateCliTokenResponse |
createCliToken(CreateCliTokenRequest createCliTokenRequest)
Creates a CLI token for the Airflow CLI.
|
default CreateEnvironmentResponse |
createEnvironment(Consumer<CreateEnvironmentRequest.Builder> createEnvironmentRequest)
Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default CreateEnvironmentResponse |
createEnvironment(CreateEnvironmentRequest createEnvironmentRequest)
Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default CreateWebLoginTokenResponse |
createWebLoginToken(Consumer<CreateWebLoginTokenRequest.Builder> createWebLoginTokenRequest)
Creates a web login token for the Airflow Web UI.
|
default CreateWebLoginTokenResponse |
createWebLoginToken(CreateWebLoginTokenRequest createWebLoginTokenRequest)
Creates a web login token for the Airflow Web UI.
|
default DeleteEnvironmentResponse |
deleteEnvironment(Consumer<DeleteEnvironmentRequest.Builder> deleteEnvironmentRequest)
Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default DeleteEnvironmentResponse |
deleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest)
Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default GetEnvironmentResponse |
getEnvironment(Consumer<GetEnvironmentRequest.Builder> getEnvironmentRequest)
Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default GetEnvironmentResponse |
getEnvironment(GetEnvironmentRequest getEnvironmentRequest)
Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default ListEnvironmentsResponse |
listEnvironments(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest)
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
|
default ListEnvironmentsResponse |
listEnvironments(ListEnvironmentsRequest listEnvironmentsRequest)
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
|
default ListEnvironmentsIterable |
listEnvironmentsPaginator(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest)
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
|
default ListEnvironmentsIterable |
listEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest)
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
|
default ListTagsForResourceResponse |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default PublishMetricsResponse |
publishMetrics(Consumer<PublishMetricsRequest.Builder> publishMetricsRequest)
Internal only.
|
default PublishMetricsResponse |
publishMetrics(PublishMetricsRequest publishMetricsRequest)
Internal only.
|
default MwaaServiceClientConfiguration |
serviceClientConfiguration() |
static ServiceMetadata |
serviceMetadata() |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default UpdateEnvironmentResponse |
updateEnvironment(Consumer<UpdateEnvironmentRequest.Builder> updateEnvironmentRequest)
Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
default UpdateEnvironmentResponse |
updateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest)
Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CreateCliTokenResponse createCliToken(CreateCliTokenRequest createCliTokenRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, MwaaException
Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token.
createCliTokenRequest - ResourceNotFoundException - ResourceNotFoundException: The resource is not available.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateCliTokenResponse createCliToken(Consumer<CreateCliTokenRequest.Builder> createCliTokenRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, MwaaException
Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token.
This is a convenience which creates an instance of the CreateCliTokenRequest.Builder avoiding the need to
create one manually via CreateCliTokenRequest.builder()
createCliTokenRequest - A Consumer that will call methods on CreateCliTokenRequest.Builder to create a request.ResourceNotFoundException - ResourceNotFoundException: The resource is not available.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateEnvironmentResponse createEnvironment(CreateEnvironmentRequest createEnvironmentRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateEnvironmentResponse createEnvironment(Consumer<CreateEnvironmentRequest.Builder> createEnvironmentRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
This is a convenience which creates an instance of the CreateEnvironmentRequest.Builder avoiding the need
to create one manually via CreateEnvironmentRequest.builder()
createEnvironmentRequest - A Consumer that will call methods on CreateEnvironmentInput.Builder to create a request.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateWebLoginTokenResponse createWebLoginToken(CreateWebLoginTokenRequest createWebLoginTokenRequest) throws AccessDeniedException, ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Creates a web login token for the Airflow Web UI. To learn more, see Creating an Apache Airflow web login token.
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateWebLoginTokenResponse createWebLoginToken(Consumer<CreateWebLoginTokenRequest.Builder> createWebLoginTokenRequest) throws AccessDeniedException, ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Creates a web login token for the Airflow Web UI. To learn more, see Creating an Apache Airflow web login token.
This is a convenience which creates an instance of the CreateWebLoginTokenRequest.Builder avoiding the
need to create one manually via CreateWebLoginTokenRequest.builder()
createWebLoginTokenRequest - A Consumer that will call methods on CreateWebLoginTokenRequest.Builder to create a
request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteEnvironmentResponse deleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
deleteEnvironmentRequest - ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteEnvironmentResponse deleteEnvironment(Consumer<DeleteEnvironmentRequest.Builder> deleteEnvironmentRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Deletes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
This is a convenience which creates an instance of the DeleteEnvironmentRequest.Builder avoiding the need
to create one manually via DeleteEnvironmentRequest.builder()
deleteEnvironmentRequest - A Consumer that will call methods on DeleteEnvironmentInput.Builder to create a request.ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetEnvironmentResponse getEnvironment(GetEnvironmentRequest getEnvironmentRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
getEnvironmentRequest - ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetEnvironmentResponse getEnvironment(Consumer<GetEnvironmentRequest.Builder> getEnvironmentRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
This is a convenience which creates an instance of the GetEnvironmentRequest.Builder avoiding the need to
create one manually via GetEnvironmentRequest.builder()
getEnvironmentRequest - A Consumer that will call methods on GetEnvironmentInput.Builder to create a request.ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEnvironmentsResponse listEnvironments(ListEnvironmentsRequest listEnvironmentsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
listEnvironmentsRequest - ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEnvironmentsResponse listEnvironments(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
This is a convenience which creates an instance of the ListEnvironmentsRequest.Builder avoiding the need
to create one manually via ListEnvironmentsRequest.builder()
listEnvironmentsRequest - A Consumer that will call methods on ListEnvironmentsInput.Builder to create a request.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEnvironmentsIterable listEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
This is a variant of
listEnvironments(software.amazon.awssdk.services.mwaa.model.ListEnvironmentsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.mwaa.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.mwaa.paginators.ListEnvironmentsIterable responses = client
.listEnvironmentsPaginator(request);
for (software.amazon.awssdk.services.mwaa.model.ListEnvironmentsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.mwaa.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnvironments(software.amazon.awssdk.services.mwaa.model.ListEnvironmentsRequest) operation.
listEnvironmentsRequest - ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListEnvironmentsIterable listEnvironmentsPaginator(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
This is a variant of
listEnvironments(software.amazon.awssdk.services.mwaa.model.ListEnvironmentsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.mwaa.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.mwaa.paginators.ListEnvironmentsIterable responses = client
.listEnvironmentsPaginator(request);
for (software.amazon.awssdk.services.mwaa.model.ListEnvironmentsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.mwaa.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listEnvironments(software.amazon.awssdk.services.mwaa.model.ListEnvironmentsRequest) operation.
This is a convenience which creates an instance of the ListEnvironmentsRequest.Builder avoiding the need
to create one manually via ListEnvironmentsRequest.builder()
listEnvironmentsRequest - A Consumer that will call methods on ListEnvironmentsInput.Builder to create a request.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment.
For example, "Environment": "Staging".
listTagsForResourceRequest - ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment.
For example, "Environment": "Staging".
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceInput.Builder to create a request.ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PublishMetricsResponse publishMetrics(PublishMetricsRequest publishMetricsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Internal only. Publishes environment health metrics to Amazon CloudWatch.
publishMetricsRequest - ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault PublishMetricsResponse publishMetrics(Consumer<PublishMetricsRequest.Builder> publishMetricsRequest) throws ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Internal only. Publishes environment health metrics to Amazon CloudWatch.
This is a convenience which creates an instance of the PublishMetricsRequest.Builder avoiding the need to
create one manually via PublishMetricsRequest.builder()
publishMetricsRequest - A Consumer that will call methods on PublishMetricsInput.Builder to create a request.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
tagResourceRequest - ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceInput.Builder to create a request.ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
For example, "Environment": "Staging".
untagResourceRequest - ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
For example, "Environment": "Staging".
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceInput.Builder to create a request.ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateEnvironmentResponse updateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
updateEnvironmentRequest - ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateEnvironmentResponse updateEnvironment(Consumer<UpdateEnvironmentRequest.Builder> updateEnvironmentRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, MwaaException
Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
This is a convenience which creates an instance of the UpdateEnvironmentRequest.Builder avoiding the need
to create one manually via UpdateEnvironmentRequest.builder()
updateEnvironmentRequest - A Consumer that will call methods on UpdateEnvironmentInput.Builder to create a request.ResourceNotFoundException - ResourceNotFoundException: The resource is not available.ValidationException - ValidationException: The provided input is not valid.InternalServerException - InternalServerException: An internal error has occurred.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.MwaaException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic MwaaClient create()
MwaaClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static MwaaClientBuilder builder()
MwaaClient.static ServiceMetadata serviceMetadata()
default MwaaServiceClientConfiguration serviceClientConfiguration()
serviceClientConfiguration in interface AwsClientserviceClientConfiguration in interface SdkClientCopyright © 2023. All rights reserved.