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 a Fleet Hub for AWS IoT Device Management web application.
Fleet Hub for AWS IoT Device Management is in public preview and is subject to change.
Synopsis
- data CreateApplication = CreateApplication' {
- applicationDescription :: Maybe Text
- clientToken :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- applicationName :: Text
- roleArn :: Text
- newCreateApplication :: Text -> Text -> CreateApplication
- createApplication_applicationDescription :: Lens' CreateApplication (Maybe Text)
- createApplication_clientToken :: Lens' CreateApplication (Maybe Text)
- createApplication_tags :: Lens' CreateApplication (Maybe (HashMap Text Text))
- createApplication_applicationName :: Lens' CreateApplication Text
- createApplication_roleArn :: Lens' CreateApplication Text
- data CreateApplicationResponse = CreateApplicationResponse' {
- httpStatus :: Int
- applicationId :: Text
- applicationArn :: Text
- newCreateApplicationResponse :: Int -> Text -> Text -> CreateApplicationResponse
- createApplicationResponse_httpStatus :: Lens' CreateApplicationResponse Int
- createApplicationResponse_applicationId :: Lens' CreateApplicationResponse Text
- createApplicationResponse_applicationArn :: Lens' CreateApplicationResponse Text
Creating a Request
data CreateApplication Source #
See: newCreateApplication
smart constructor.
CreateApplication' | |
|
Instances
:: Text | |
-> 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:applicationDescription:CreateApplication'
, createApplication_applicationDescription
- An optional description of the web application.
$sel:clientToken:CreateApplication'
, createApplication_clientToken
- A unique case-sensitive identifier that you can provide to ensure the
idempotency of the request. Don't reuse this client token if a new
idempotent request is required.
$sel:tags:CreateApplication'
, createApplication_tags
- A set of key/value pairs that you can use to manage the web application
resource.
$sel:applicationName:CreateApplication'
, createApplication_applicationName
- The name of the web application.
$sel:roleArn:CreateApplication'
, createApplication_roleArn
- The ARN of the role that the web application assumes when it interacts
with AWS IoT Core.
The name of the role must be in the form
AWSIotFleetHub_random_string
.
Request Lenses
createApplication_applicationDescription :: Lens' CreateApplication (Maybe Text) Source #
An optional description of the web application.
createApplication_clientToken :: Lens' CreateApplication (Maybe Text) Source #
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
createApplication_tags :: Lens' CreateApplication (Maybe (HashMap Text Text)) Source #
A set of key/value pairs that you can use to manage the web application resource.
createApplication_applicationName :: Lens' CreateApplication Text Source #
The name of the web application.
createApplication_roleArn :: Lens' CreateApplication Text Source #
The ARN of the role that the web application assumes when it interacts with AWS IoT Core.
The name of the role must be in the form
AWSIotFleetHub_random_string
.
Destructuring the Response
data CreateApplicationResponse Source #
See: newCreateApplicationResponse
smart constructor.
CreateApplicationResponse' | |
|
Instances
newCreateApplicationResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> 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.
$sel:applicationId:CreateApplicationResponse'
, createApplicationResponse_applicationId
- The unique Id of the web application.
$sel:applicationArn:CreateApplicationResponse'
, createApplicationResponse_applicationArn
- The ARN of the web application.
Response Lenses
createApplicationResponse_httpStatus :: Lens' CreateApplicationResponse Int Source #
The response's http status code.
createApplicationResponse_applicationId :: Lens' CreateApplicationResponse Text Source #
The unique Id of the web application.
createApplicationResponse_applicationArn :: Lens' CreateApplicationResponse Text Source #
The ARN of the web application.