Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token.
Synopsis
- data CreateCliToken = CreateCliToken' {}
- newCreateCliToken :: Text -> CreateCliToken
- createCliToken_name :: Lens' CreateCliToken Text
- data CreateCliTokenResponse = CreateCliTokenResponse' {
- cliToken :: Maybe (Sensitive Text)
- webServerHostname :: Maybe Text
- httpStatus :: Int
- newCreateCliTokenResponse :: Int -> CreateCliTokenResponse
- createCliTokenResponse_cliToken :: Lens' CreateCliTokenResponse (Maybe Text)
- createCliTokenResponse_webServerHostname :: Lens' CreateCliTokenResponse (Maybe Text)
- createCliTokenResponse_httpStatus :: Lens' CreateCliTokenResponse Int
Creating a Request
data CreateCliToken Source #
See: newCreateCliToken
smart constructor.
Instances
Create a value of CreateCliToken
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateCliToken
, createCliToken_name
- The name of the Amazon MWAA environment. For example,
MyMWAAEnvironment
.
Request Lenses
createCliToken_name :: Lens' CreateCliToken Text Source #
The name of the Amazon MWAA environment. For example,
MyMWAAEnvironment
.
Destructuring the Response
data CreateCliTokenResponse Source #
See: newCreateCliTokenResponse
smart constructor.
CreateCliTokenResponse' | |
|
Instances
newCreateCliTokenResponse Source #
Create a value of CreateCliTokenResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cliToken:CreateCliTokenResponse'
, createCliTokenResponse_cliToken
- An Airflow CLI login token.
$sel:webServerHostname:CreateCliTokenResponse'
, createCliTokenResponse_webServerHostname
- The Airflow web server hostname for the environment.
$sel:httpStatus:CreateCliTokenResponse'
, createCliTokenResponse_httpStatus
- The response's http status code.
Response Lenses
createCliTokenResponse_cliToken :: Lens' CreateCliTokenResponse (Maybe Text) Source #
An Airflow CLI login token.
createCliTokenResponse_webServerHostname :: Lens' CreateCliTokenResponse (Maybe Text) Source #
The Airflow web server hostname for the environment.
createCliTokenResponse_httpStatus :: Lens' CreateCliTokenResponse Int Source #
The response's http status code.