# CfnProvisioningTemplateProps

Properties for defining a `CfnProvisioningTemplate`.

Extends: CfnProvisioningTemplateProps
Used as props by: CfnProvisioningTemplate

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const cfnProvisioningTemplateProps: iot.CfnProvisioningTemplateProps = {
  provisioningRoleArn: 'provisioningRoleArn',
  templateBody: 'templateBody',

  // the properties below are optional
  description: 'description',
  enabled: false,
  preProvisioningHook: {
    payloadVersion: 'payloadVersion',
    targetArn: 'targetArn',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  templateName: 'templateName',
  templateType: 'templateType',
};
```

## Properties

- `description`: string — The description of the fleet provisioning template.

- `enabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — True to enable the fleet provisioning template, otherwise false.

- `preProvisioningHook`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProvisioningTemplate.ProvisioningHookProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnProvisioningTemplate.ProvisioningHookProperty.html) — Creates a pre-provisioning hook template.

- `provisioningRoleArn`: string | [IRoleRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_iam.IRoleRef.html) (required) — The role ARN for the role associated with the fleet provisioning template.

  This IoT role grants permission to provision a device.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Metadata that can be used to manage the fleet provisioning template.

- `templateBody`: string (required) — The JSON formatted contents of the fleet provisioning template version.

- `templateName`: string — The name of the fleet provisioning template.

- `templateType`: string — The type of the provisioning template.
