| 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 |
Amazonka.SMS.CreateApp
Description
Creates an application. An application consists of one or more server groups. Each server group contain one or more servers.
Synopsis
- data CreateApp = CreateApp' {
- clientToken :: Maybe Text
- description :: Maybe Text
- name :: Maybe Text
- roleName :: Maybe Text
- serverGroups :: Maybe [ServerGroup]
- tags :: Maybe [Tag]
- newCreateApp :: CreateApp
- createApp_clientToken :: Lens' CreateApp (Maybe Text)
- createApp_description :: Lens' CreateApp (Maybe Text)
- createApp_name :: Lens' CreateApp (Maybe Text)
- createApp_roleName :: Lens' CreateApp (Maybe Text)
- createApp_serverGroups :: Lens' CreateApp (Maybe [ServerGroup])
- createApp_tags :: Lens' CreateApp (Maybe [Tag])
- data CreateAppResponse = CreateAppResponse' {
- appSummary :: Maybe AppSummary
- serverGroups :: Maybe [ServerGroup]
- tags :: Maybe [Tag]
- httpStatus :: Int
- newCreateAppResponse :: Int -> CreateAppResponse
- createAppResponse_appSummary :: Lens' CreateAppResponse (Maybe AppSummary)
- createAppResponse_serverGroups :: Lens' CreateAppResponse (Maybe [ServerGroup])
- createAppResponse_tags :: Lens' CreateAppResponse (Maybe [Tag])
- createAppResponse_httpStatus :: Lens' CreateAppResponse Int
Creating a Request
See: newCreateApp smart constructor.
Constructors
| CreateApp' | |
Fields
| |
Instances
newCreateApp :: CreateApp Source #
Create a value of CreateApp 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:CreateApp', createApp_clientToken - A unique, case-sensitive identifier that you provide to ensure the
idempotency of application creation.
CreateApp, createApp_description - The description of the new application
CreateApp, createApp_name - The name of the new application.
CreateApp, createApp_roleName - The name of the service role in the customer's account to be used by
Server Migration Service.
CreateApp, createApp_serverGroups - The server groups to include in the application.
CreateApp, createApp_tags - The tags to be associated with the application.
Request Lenses
createApp_clientToken :: Lens' CreateApp (Maybe Text) Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of application creation.
createApp_description :: Lens' CreateApp (Maybe Text) Source #
The description of the new application
createApp_roleName :: Lens' CreateApp (Maybe Text) Source #
The name of the service role in the customer's account to be used by Server Migration Service.
createApp_serverGroups :: Lens' CreateApp (Maybe [ServerGroup]) Source #
The server groups to include in the application.
createApp_tags :: Lens' CreateApp (Maybe [Tag]) Source #
The tags to be associated with the application.
Destructuring the Response
data CreateAppResponse Source #
See: newCreateAppResponse smart constructor.
Constructors
| CreateAppResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> CreateAppResponse |
Create a value of CreateAppResponse 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:appSummary:CreateAppResponse', createAppResponse_appSummary - A summary description of the application.
CreateApp, createAppResponse_serverGroups - The server groups included in the application.
CreateApp, createAppResponse_tags - The tags associated with the application.
$sel:httpStatus:CreateAppResponse', createAppResponse_httpStatus - The response's http status code.
Response Lenses
createAppResponse_appSummary :: Lens' CreateAppResponse (Maybe AppSummary) Source #
A summary description of the application.
createAppResponse_serverGroups :: Lens' CreateAppResponse (Maybe [ServerGroup]) Source #
The server groups included in the application.
createAppResponse_tags :: Lens' CreateAppResponse (Maybe [Tag]) Source #
The tags associated with the application.
createAppResponse_httpStatus :: Lens' CreateAppResponse Int Source #
The response's http status code.