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 new application with given parameters. Requires an existing runtime environment and application definition file.
Synopsis
- data CreateApplication = CreateApplication' {
- clientToken :: Maybe Text
- description :: Maybe Text
- kmsKeyId :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- definition :: Definition
- engineType :: EngineType
- name :: Text
- newCreateApplication :: Definition -> EngineType -> Text -> CreateApplication
- createApplication_clientToken :: Lens' CreateApplication (Maybe Text)
- createApplication_description :: Lens' CreateApplication (Maybe Text)
- createApplication_kmsKeyId :: Lens' CreateApplication (Maybe Text)
- createApplication_tags :: Lens' CreateApplication (Maybe (HashMap Text Text))
- createApplication_definition :: Lens' CreateApplication Definition
- createApplication_engineType :: Lens' CreateApplication EngineType
- createApplication_name :: Lens' CreateApplication Text
- data CreateApplicationResponse = CreateApplicationResponse' {}
- newCreateApplicationResponse :: Int -> Text -> Text -> Natural -> CreateApplicationResponse
- createApplicationResponse_httpStatus :: Lens' CreateApplicationResponse Int
- createApplicationResponse_applicationArn :: Lens' CreateApplicationResponse Text
- createApplicationResponse_applicationId :: Lens' CreateApplicationResponse Text
- createApplicationResponse_applicationVersion :: Lens' CreateApplicationResponse Natural
Creating a Request
data CreateApplication Source #
See: newCreateApplication
smart constructor.
CreateApplication' | |
|
Instances
:: Definition | |
-> EngineType | |
-> Text | |
-> CreateApplication |
Create a value of CreateApplication
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:clientToken:CreateApplication'
, createApplication_clientToken
- Unique, case-sensitive identifier the service generates to ensure the
idempotency of the request to create an application. The service
generates the clientToken when the API call is triggered. The token
expires after one hour, so if you retry the API within this timeframe
with the same clientToken, you will get the same response. The service
also handles deleting the clientToken after it expires.
CreateApplication
, createApplication_description
- The description of the application.
$sel:kmsKeyId:CreateApplication'
, createApplication_kmsKeyId
- The identifier of a customer managed key.
$sel:tags:CreateApplication'
, createApplication_tags
- A list of tags to apply to the application.
$sel:definition:CreateApplication'
, createApplication_definition
- The application definition for this application. You can specify either
inline JSON or an S3 bucket location.
CreateApplication
, createApplication_engineType
- The type of the target platform for this application.
CreateApplication
, createApplication_name
- The unique identifier of the application.
Request Lenses
createApplication_clientToken :: Lens' CreateApplication (Maybe Text) Source #
Unique, case-sensitive identifier the service generates to ensure the idempotency of the request to create an application. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.
createApplication_description :: Lens' CreateApplication (Maybe Text) Source #
The description of the application.
createApplication_kmsKeyId :: Lens' CreateApplication (Maybe Text) Source #
The identifier of a customer managed key.
createApplication_tags :: Lens' CreateApplication (Maybe (HashMap Text Text)) Source #
A list of tags to apply to the application.
createApplication_definition :: Lens' CreateApplication Definition Source #
The application definition for this application. You can specify either inline JSON or an S3 bucket location.
createApplication_engineType :: Lens' CreateApplication EngineType Source #
The type of the target platform for this application.
createApplication_name :: Lens' CreateApplication Text Source #
The unique identifier of the application.
Destructuring the Response
data CreateApplicationResponse Source #
See: newCreateApplicationResponse
smart constructor.
CreateApplicationResponse' | |
|
Instances
newCreateApplicationResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> Natural | |
-> CreateApplicationResponse |
Create a value of CreateApplicationResponse
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:httpStatus:CreateApplicationResponse'
, createApplicationResponse_httpStatus
- The response's http status code.
CreateApplicationResponse
, createApplicationResponse_applicationArn
- The Amazon Resource Name (ARN) of the application.
CreateApplicationResponse
, createApplicationResponse_applicationId
- The unique application identifier.
CreateApplicationResponse
, createApplicationResponse_applicationVersion
- The version number of the application.
Response Lenses
createApplicationResponse_httpStatus :: Lens' CreateApplicationResponse Int Source #
The response's http status code.
createApplicationResponse_applicationArn :: Lens' CreateApplicationResponse Text Source #
The Amazon Resource Name (ARN) of the application.
createApplicationResponse_applicationId :: Lens' CreateApplicationResponse Text Source #
The unique application identifier.
createApplicationResponse_applicationVersion :: Lens' CreateApplicationResponse Natural Source #
The version number of the application.