Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- roleName :: Maybe Text
- name :: Maybe Text
- description :: Maybe Text
- serverGroups :: Maybe [ServerGroup]
- tags :: Maybe [Tag]
- newCreateApp :: CreateApp
- createApp_clientToken :: Lens' CreateApp (Maybe Text)
- createApp_roleName :: Lens' CreateApp (Maybe Text)
- createApp_name :: Lens' CreateApp (Maybe Text)
- createApp_description :: 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.
CreateApp' | |
|
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.
$sel:roleName:CreateApp'
, createApp_roleName
- The name of the service role in the customer's account to be used by
AWS SMS.
$sel:name:CreateApp'
, createApp_name
- The name of the new application.
$sel:description:CreateApp'
, createApp_description
- The description of the new application
$sel:serverGroups:CreateApp'
, createApp_serverGroups
- The server groups to include in the application.
$sel:tags: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_roleName :: Lens' CreateApp (Maybe Text) Source #
The name of the service role in the customer's account to be used by AWS SMS.
createApp_description :: Lens' CreateApp (Maybe Text) Source #
The description of the new application
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.
CreateAppResponse' | |
|
Instances
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.
$sel:serverGroups:CreateApp'
, createAppResponse_serverGroups
- The server groups included in the application.
$sel:tags: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.