| 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.IoT.CreateProvisioningTemplate
Description
Creates a provisioning template.
Requires permission to access the CreateProvisioningTemplate action.
Synopsis
- data CreateProvisioningTemplate = CreateProvisioningTemplate' {}
- newCreateProvisioningTemplate :: Text -> Text -> Text -> CreateProvisioningTemplate
- createProvisioningTemplate_description :: Lens' CreateProvisioningTemplate (Maybe Text)
- createProvisioningTemplate_enabled :: Lens' CreateProvisioningTemplate (Maybe Bool)
- createProvisioningTemplate_preProvisioningHook :: Lens' CreateProvisioningTemplate (Maybe ProvisioningHook)
- createProvisioningTemplate_tags :: Lens' CreateProvisioningTemplate (Maybe [Tag])
- createProvisioningTemplate_type :: Lens' CreateProvisioningTemplate (Maybe TemplateType)
- createProvisioningTemplate_templateName :: Lens' CreateProvisioningTemplate Text
- createProvisioningTemplate_templateBody :: Lens' CreateProvisioningTemplate Text
- createProvisioningTemplate_provisioningRoleArn :: Lens' CreateProvisioningTemplate Text
- data CreateProvisioningTemplateResponse = CreateProvisioningTemplateResponse' {}
- newCreateProvisioningTemplateResponse :: Int -> CreateProvisioningTemplateResponse
- createProvisioningTemplateResponse_defaultVersionId :: Lens' CreateProvisioningTemplateResponse (Maybe Int)
- createProvisioningTemplateResponse_templateArn :: Lens' CreateProvisioningTemplateResponse (Maybe Text)
- createProvisioningTemplateResponse_templateName :: Lens' CreateProvisioningTemplateResponse (Maybe Text)
- createProvisioningTemplateResponse_httpStatus :: Lens' CreateProvisioningTemplateResponse Int
Creating a Request
data CreateProvisioningTemplate Source #
See: newCreateProvisioningTemplate smart constructor.
Constructors
| CreateProvisioningTemplate' | |
Fields
| |
Instances
newCreateProvisioningTemplate Source #
Arguments
| :: 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:
CreateProvisioningTemplate, createProvisioningTemplate_description - The description of the provisioning template.
CreateProvisioningTemplate, createProvisioningTemplate_enabled - True to enable the provisioning template, otherwise false.
$sel:preProvisioningHook:CreateProvisioningTemplate', createProvisioningTemplate_preProvisioningHook - Creates a pre-provisioning hook template. Only supports template of type
FLEET_PROVISIONING. For more information about provisioning template
types, see
type.
$sel:tags:CreateProvisioningTemplate', createProvisioningTemplate_tags - Metadata which can be used to manage the 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, createProvisioningTemplate_type - The type you define in a provisioning template. You can create a
template with only one type. You can't change the template type after
its creation. The default value is FLEET_PROVISIONING. For more
information about provisioning template, see:
Provisioning template.
CreateProvisioningTemplate, createProvisioningTemplate_templateName - The name of the provisioning template.
CreateProvisioningTemplate, createProvisioningTemplate_templateBody - The JSON formatted contents of the provisioning template.
$sel:provisioningRoleArn:CreateProvisioningTemplate', createProvisioningTemplate_provisioningRoleArn - The role ARN for the role associated with the provisioning template.
This IoT role grants permission to provision a device.
Request Lenses
createProvisioningTemplate_description :: Lens' CreateProvisioningTemplate (Maybe Text) Source #
The description of the provisioning template.
createProvisioningTemplate_enabled :: Lens' CreateProvisioningTemplate (Maybe Bool) Source #
True to enable the provisioning template, otherwise false.
createProvisioningTemplate_preProvisioningHook :: Lens' CreateProvisioningTemplate (Maybe ProvisioningHook) Source #
Creates a pre-provisioning hook template. Only supports template of type
FLEET_PROVISIONING. For more information about provisioning template
types, see
type.
createProvisioningTemplate_tags :: Lens' CreateProvisioningTemplate (Maybe [Tag]) Source #
Metadata which can be used to manage the 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_type :: Lens' CreateProvisioningTemplate (Maybe TemplateType) Source #
The type you define in a provisioning template. You can create a
template with only one type. You can't change the template type after
its creation. The default value is FLEET_PROVISIONING. For more
information about provisioning template, see:
Provisioning template.
createProvisioningTemplate_templateName :: Lens' CreateProvisioningTemplate Text Source #
The name of the provisioning template.
createProvisioningTemplate_templateBody :: Lens' CreateProvisioningTemplate Text Source #
The JSON formatted contents of the provisioning template.
createProvisioningTemplate_provisioningRoleArn :: Lens' CreateProvisioningTemplate Text Source #
The role ARN for the role associated with the provisioning template. This IoT role grants permission to provision a device.
Destructuring the Response
data CreateProvisioningTemplateResponse Source #
See: newCreateProvisioningTemplateResponse smart constructor.
Constructors
| CreateProvisioningTemplateResponse' | |
Fields
| |
Instances
newCreateProvisioningTemplateResponse Source #
Arguments
| :: Int | |
| -> CreateProvisioningTemplateResponse |
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:defaultVersionId:CreateProvisioningTemplateResponse', createProvisioningTemplateResponse_defaultVersionId - The default version of the provisioning template.
CreateProvisioningTemplateResponse, createProvisioningTemplateResponse_templateArn - The ARN that identifies the provisioning template.
CreateProvisioningTemplate, createProvisioningTemplateResponse_templateName - The name of the provisioning template.
$sel:httpStatus:CreateProvisioningTemplateResponse', createProvisioningTemplateResponse_httpStatus - The response's http status code.
Response Lenses
createProvisioningTemplateResponse_defaultVersionId :: Lens' CreateProvisioningTemplateResponse (Maybe Int) Source #
The default version of the provisioning template.
createProvisioningTemplateResponse_templateArn :: Lens' CreateProvisioningTemplateResponse (Maybe Text) Source #
The ARN that identifies the provisioning template.
createProvisioningTemplateResponse_templateName :: Lens' CreateProvisioningTemplateResponse (Maybe Text) Source #
The name of the provisioning template.
createProvisioningTemplateResponse_httpStatus :: Lens' CreateProvisioningTemplateResponse Int Source #
The response's http status code.