Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
monde committed Feb 8, 2023
1 parent 2372c5c commit 30c4911
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 2 additions & 4 deletions okta/data_source_okta_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ package okta

import (
"context"
"fmt"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/okta/terraform-provider-okta/sdk"
)

func dataSourcePolicy() *schema.Resource {
Expand All @@ -19,8 +17,8 @@ func dataSourcePolicy() *schema.Resource {
Required: true,
},
"type": {
Type: schema.TypeString,
Description: fmt.Sprintf("Policy type, see https://developer.okta.com/docs/reference/api/policy/#policy-object"),
Type: schema.TypeString,
Description: "Policy type, see https://developer.okta.com/docs/reference/api/policy/#policy-object",
Required: true,
},
"status": {
Expand Down
12 changes: 10 additions & 2 deletions website/docs/d/policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,16 @@ data "okta_policy" "example" {

- `name` - (Required) Name of policy to retrieve.

- `type` - (Required) Type of policy to retrieve. Valid values: `"OKTA_SIGN_ON"`, `"PASSWORD"`, `"MFA_ENROLL"`,
`"IDP_DISCOVERY"`, `"ACCESS_POLICY"` (**only available as a part of the Identity Engine**), `"PROFILE_ENROLLMENT"` (**only available as a part of the Identity Engine**)
- `type` - (Required) Type of policy to retrieve. See https://developer.okta.com/docs/reference/api/policy/#policy-object for valid values. Currently:
- All:
- `OKTA_SIGN_ON`
- `PASSWORD`
- `MFA_ENROLL`
- `OAUTH_AUTHORIZATION_POLICY`
- `IDP_DISCOVERY`
- OIE Only:
- `ACCESS_POLICY`
- `PROFILE_ENROLLMENT`

## Attributes Reference

Expand Down

0 comments on commit 30c4911

Please sign in to comment.