import * as core from "@terrascript/core"; export interface PreProvisioningHookArgs extends core.SchemaArgs { payloadVersion?: string | core.StringOut; targetArn: string | core.StringOut; } export class PreProvisioningHook extends core.Schema { @core.attr(String) public payloadVersion?: string | core.StringOut; @core.attr(String) public targetArn!: string | core.StringOut; } export interface ProvisioningTemplateArgs extends core.ResourceArgs { /** * (Optional) The description of the fleet provisioning template. */ description?: string | core.StringOut; /** * (Optional) True to enable the fleet provisioning template, otherwise false. */ enabled?: boolean | core.BooleanOut; /** * (Required) The name of the fleet provisioning template. */ name: string | core.StringOut; /** * (Optional) Creates a pre-provisioning hook template. Details below. */ preProvisioningHook?: PreProvisioningHook; /** * (Required) The role ARN for the role associated with the fleet provisioning template. This IoT role * grants permission to provision a device. */ provisioningRoleArn: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Required) The JSON formatted contents of the fleet provisioning template. */ templateBody: string | core.StringOut; } export class ProvisioningTemplate extends core.Resource { /** * The ARN that identifies the provisioning template. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The default version of the fleet provisioning template. */ @core.attr(Number, { computed: true }) public defaultVersionId!: number | core.NumberOut; /** * (Optional) The description of the fleet provisioning template. */ @core.attr(String) public description?: string | core.StringOut; /** * (Optional) True to enable the fleet provisioning template, otherwise false. */ @core.attr(Boolean) public enabled?: boolean | core.BooleanOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the fleet provisioning template. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) Creates a pre-provisioning hook template. Details below. */ @core.attr(PreProvisioningHook) public preProvisioningHook?: PreProvisioningHook; /** * (Required) The role ARN for the role associated with the fleet provisioning template. This IoT role * grants permission to provision a device. */ @core.attr(String) public provisioningRoleArn!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Required) The JSON formatted contents of the fleet provisioning template. */ @core.attr(String) public templateBody!: string | core.StringOut; constructor(name: string, args?: ProvisioningTemplateArgs) { super(name, "aws_iot_provisioning_template", args); } public override getNamespace(): string { return "aws_iot"; } }