Skip to content

Commit 7c7fd82

Browse files
fix: update device attestation policy documentation(ENG-1652) (#158)
- Updated `type` field documentation.
1 parent 35655e0 commit 7c7fd82

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/resources/deployment.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,9 @@ Optional:
565565

566566
Required:
567567

568-
- `type` (String) Attestation policy type
568+
- `type` (String) Attestation policy type. Type values:
569+
- DEVICE_ATTEST_POLICY_TYPE_ACCEPT: Do not enforce attestation. All devices are marked as successfully attested.
570+
- DEVICE_ATTEST_POLICY_TYPE_ENFORCE: Enforce attestation. Devices failing attestation are marked accordingly.
569571

570572

571573
<a id="nestedblock--device_policies--meta_data"></a>

v2/schemas/device_attestation_policy.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ func SetDeviceAttestationPolicySubResourceData(m []*models.DeviceAttestationPoli
4747
func DeviceAttestationPolicy() map[string]*schema.Schema {
4848
return map[string]*schema.Schema{
4949
"type": {
50-
Description: `Attestation policy type`,
51-
Type: schema.TypeString,
52-
Required: true,
50+
Description: `Attestation policy type. Type values:
51+
- DEVICE_ATTEST_POLICY_TYPE_ACCEPT: Do not enforce attestation. All devices are marked as successfully attested.
52+
- DEVICE_ATTEST_POLICY_TYPE_ENFORCE: Enforce attestation. Devices failing attestation are marked accordingly.`,
53+
Type: schema.TypeString,
54+
Required: true,
5355
},
5456
}
5557
}

0 commit comments

Comments
 (0)