@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?.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonMWAAClientBuilder |
builder() |
CreateCliTokenResult |
createCliToken(CreateCliTokenRequest request)
Create a CLI token to use Airflow CLI.
|
CreateEnvironmentResult |
createEnvironment(CreateEnvironmentRequest request)
Creates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
|
CreateWebLoginTokenResult |
createWebLoginToken(CreateWebLoginTokenRequest request)
Create a JWT token to be used to login to Airflow Web UI with claims based Authentication.
|
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)
Retrieves the details of 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)
An operation for publishing metrics from the customers to the Ops plane.
|
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)
Create a CLI token to use Airflow CLI.
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)
Create a JWT token to be used to login to Airflow Web UI with claims based Authentication.
createWebLoginToken
in interface AmazonMWAA
createWebLoginTokenRequest
- AccessDeniedException
- Access to the Airflow Web UI or CLI has been Denied. Please follow the MWAA user guide to setup
permissions to access the Web UI and CLI functionality.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)
Retrieves the details of 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)
An operation for publishing metrics from the customers to the Ops plane.
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