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 provisioning template.
Requires permission to access the CreateProvisioningTemplate action.
Synopsis
- data CreateProvisioningTemplate = CreateProvisioningTemplate' {}
- newCreateProvisioningTemplate :: Text -> Text -> Text -> CreateProvisioningTemplate
- createProvisioningTemplate_preProvisioningHook :: Lens' CreateProvisioningTemplate (Maybe ProvisioningHook)
- createProvisioningTemplate_enabled :: Lens' CreateProvisioningTemplate (Maybe Bool)
- createProvisioningTemplate_description :: Lens' CreateProvisioningTemplate (Maybe Text)
- createProvisioningTemplate_tags :: Lens' CreateProvisioningTemplate (Maybe [Tag])
- createProvisioningTemplate_templateName :: Lens' CreateProvisioningTemplate Text
- createProvisioningTemplate_templateBody :: Lens' CreateProvisioningTemplate Text
- createProvisioningTemplate_provisioningRoleArn :: Lens' CreateProvisioningTemplate Text
- data CreateProvisioningTemplateResponse = CreateProvisioningTemplateResponse' {}
- newCreateProvisioningTemplateResponse :: Int -> CreateProvisioningTemplateResponse
- createProvisioningTemplateResponse_templateName :: Lens' CreateProvisioningTemplateResponse (Maybe Text)
- createProvisioningTemplateResponse_defaultVersionId :: Lens' CreateProvisioningTemplateResponse (Maybe Int)
- createProvisioningTemplateResponse_templateArn :: Lens' CreateProvisioningTemplateResponse (Maybe Text)
- createProvisioningTemplateResponse_httpStatus :: Lens' CreateProvisioningTemplateResponse Int
Creating a Request
data CreateProvisioningTemplate Source #
See: newCreateProvisioningTemplate
smart constructor.
CreateProvisioningTemplate' | |
|
Instances
newCreateProvisioningTemplate Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateProvisioningTemplate |
Create a value of CreateProvisioningTemplate
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:preProvisioningHook:CreateProvisioningTemplate'
, createProvisioningTemplate_preProvisioningHook
- Creates a pre-provisioning hook template.
$sel:enabled:CreateProvisioningTemplate'
, createProvisioningTemplate_enabled
- True to enable the fleet provisioning template, otherwise false.
$sel:description:CreateProvisioningTemplate'
, createProvisioningTemplate_description
- The description of the fleet provisioning template.
$sel:tags:CreateProvisioningTemplate'
, createProvisioningTemplate_tags
- Metadata which can be used to manage the fleet provisioning template.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
$sel:templateName:CreateProvisioningTemplate'
, createProvisioningTemplate_templateName
- The name of the fleet provisioning template.
$sel:templateBody:CreateProvisioningTemplate'
, createProvisioningTemplate_templateBody
- The JSON formatted contents of the fleet provisioning template.
$sel:provisioningRoleArn:CreateProvisioningTemplate'
, createProvisioningTemplate_provisioningRoleArn
- The role ARN for the role associated with the fleet provisioning
template. This IoT role grants permission to provision a device.
Request Lenses
createProvisioningTemplate_preProvisioningHook :: Lens' CreateProvisioningTemplate (Maybe ProvisioningHook) Source #
Creates a pre-provisioning hook template.
createProvisioningTemplate_enabled :: Lens' CreateProvisioningTemplate (Maybe Bool) Source #
True to enable the fleet provisioning template, otherwise false.
createProvisioningTemplate_description :: Lens' CreateProvisioningTemplate (Maybe Text) Source #
The description of the fleet provisioning template.
createProvisioningTemplate_tags :: Lens' CreateProvisioningTemplate (Maybe [Tag]) Source #
Metadata which can be used to manage the fleet provisioning template.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
createProvisioningTemplate_templateName :: Lens' CreateProvisioningTemplate Text Source #
The name of the fleet provisioning template.
createProvisioningTemplate_templateBody :: Lens' CreateProvisioningTemplate Text Source #
The JSON formatted contents of the fleet provisioning template.
createProvisioningTemplate_provisioningRoleArn :: Lens' CreateProvisioningTemplate Text Source #
The role ARN for the role associated with the fleet provisioning template. This IoT role grants permission to provision a device.
Destructuring the Response
data CreateProvisioningTemplateResponse Source #
See: newCreateProvisioningTemplateResponse
smart constructor.
CreateProvisioningTemplateResponse' | |
|
Instances
newCreateProvisioningTemplateResponse Source #
Create a value of CreateProvisioningTemplateResponse
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:templateName:CreateProvisioningTemplate'
, createProvisioningTemplateResponse_templateName
- The name of the fleet provisioning template.
$sel:defaultVersionId:CreateProvisioningTemplateResponse'
, createProvisioningTemplateResponse_defaultVersionId
- The default version of the fleet provisioning template.
$sel:templateArn:CreateProvisioningTemplateResponse'
, createProvisioningTemplateResponse_templateArn
- The ARN that identifies the provisioning template.
$sel:httpStatus:CreateProvisioningTemplateResponse'
, createProvisioningTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
createProvisioningTemplateResponse_templateName :: Lens' CreateProvisioningTemplateResponse (Maybe Text) Source #
The name of the fleet provisioning template.
createProvisioningTemplateResponse_defaultVersionId :: Lens' CreateProvisioningTemplateResponse (Maybe Int) Source #
The default version of the fleet provisioning template.
createProvisioningTemplateResponse_templateArn :: Lens' CreateProvisioningTemplateResponse (Maybe Text) Source #
The ARN that identifies the provisioning template.
createProvisioningTemplateResponse_httpStatus :: Lens' CreateProvisioningTemplateResponse Int Source #
The response's http status code.