amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT.CreateProvisioningTemplate

Description

Creates a provisioning template.

Requires permission to access the CreateProvisioningTemplate action.

Synopsis

Creating a Request

data CreateProvisioningTemplate Source #

See: newCreateProvisioningTemplate smart constructor.

Constructors

CreateProvisioningTemplate' 

Fields

  • description :: Maybe Text

    The description of the provisioning template.

  • enabled :: Maybe Bool

    True to enable the provisioning template, otherwise false.

  • preProvisioningHook :: Maybe ProvisioningHook

    Creates a pre-provisioning hook template. Only supports template of type FLEET_PROVISIONING. For more information about provisioning template types, see type.

  • tags :: Maybe [Tag]

    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..."

  • type' :: Maybe TemplateType

    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.

  • templateName :: Text

    The name of the provisioning template.

  • templateBody :: Text

    The JSON formatted contents of the provisioning template.

  • provisioningRoleArn :: Text

    The role ARN for the role associated with the provisioning template. This IoT role grants permission to provision a device.

Instances

Instances details
ToJSON CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

ToHeaders CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

ToPath CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

ToQuery CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

AWSRequest CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

Generic CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

Associated Types

type Rep CreateProvisioningTemplate :: Type -> Type #

Read CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

Show CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

NFData CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

Eq CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

Hashable CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

type AWSResponse CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

type Rep CreateProvisioningTemplate Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

type Rep CreateProvisioningTemplate = D1 ('MetaData "CreateProvisioningTemplate" "Amazonka.IoT.CreateProvisioningTemplate" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "CreateProvisioningTemplate'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "preProvisioningHook") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProvisioningHook)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))) :*: ((S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TemplateType)) :*: S1 ('MetaSel ('Just "templateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "templateBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "provisioningRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateProvisioningTemplate Source #

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_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_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 #

Constructors

CreateProvisioningTemplateResponse' 

Fields

Instances

Instances details
Generic CreateProvisioningTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

Associated Types

type Rep CreateProvisioningTemplateResponse :: Type -> Type #

Read CreateProvisioningTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

Show CreateProvisioningTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

NFData CreateProvisioningTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

Eq CreateProvisioningTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

type Rep CreateProvisioningTemplateResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateProvisioningTemplate

type Rep CreateProvisioningTemplateResponse = D1 ('MetaData "CreateProvisioningTemplateResponse" "Amazonka.IoT.CreateProvisioningTemplate" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "CreateProvisioningTemplateResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "defaultVersionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "templateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "templateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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: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