Skip to content

Commit 2cae474

Browse files
authored
Merge branch 'main' into Import-functionality-addtion
2 parents b6e5c8f + b50c25e commit 2cae474

File tree

59 files changed

+2526
-881
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2526
-881
lines changed

docs/resources/lifecycle_state.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ resource "identitynow_lifecycle_state" "demo_active" {
1818
technical_name = "active"
1919
identity_profile_id = "profileId"
2020
description = "my test description"
21+
identity_state = "ACTIVE"
2122
enabled = false
2223
email_notification_option = {
2324
notify_managers = false
@@ -55,6 +56,7 @@ resource "identitynow_lifecycle_state" "demo_active" {
5556
- `account_actions` (Attributes List) This is used for representing email configuration for a lifecycle state (see [below for nested schema](#nestedatt--account_actions))
5657
- `description` (String) Lifecycle state description.
5758
- `email_notification_option` (Attributes) This is used for representing email configuration for a lifecycle state (see [below for nested schema](#nestedatt--email_notification_option))
59+
- `identity_state` (String) Identity state for this lifecycle state. Allowed values: ACTIVE, INACTIVE_SHORT_TERM, INACTIVE_LONG_TERM.
5860

5961
### Read-Only
6062

@@ -66,7 +68,7 @@ resource "identitynow_lifecycle_state" "demo_active" {
6668
Required:
6769

6870
- `action` (String) Describes if action will be enabled or disabled
69-
- `source_ids` (List of String) List of unique source IDs. The sources must have the ENABLE feature or flat file source. See "/sources" endpoint for source features
71+
- `source_ids` (Set of String) List of unique source IDs. The sources must have the ENABLE feature or flat file source. See "/sources" endpoint for source features
7072

7173

7274
<a id="nestedatt--email_notification_option"></a>

docs/resources/org_config.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "identitynow_org_config Resource - terraform-provider-identitynow"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# identitynow_org_config (Resource)
10+
11+
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "identitynow_org_config" "demo_timezone" {
17+
time_zone = "UTC"
18+
}
19+
```
20+
21+
<!-- schema generated by tfplugindocs -->
22+
## Schema
23+
24+
### Required
25+
26+
- `time_zone` (String) The selected time zone which is to be used for the org. This directly affects when scheduled tasks are executed. Valid options can be found at /beta/org-config/valid-time-zones

docs/resources/role.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ IDENTITY_LIST: Indicates that Role membership is conferred on the specific ident
112112
Optional:
113113

114114
- `criteria` (Attributes) Defines STANDARD type Role membership (see [below for nested schema](#nestedatt--membership--criteria))
115+
- `identities` (Attributes Set) Defines role membership as being exclusive to the specified Identities, when type is IDENTITY_LIST. (see [below for nested schema](#nestedatt--membership--identities))
115116

116117
<a id="nestedatt--membership--criteria"></a>
117118
### Nested Schema for `membership.criteria`
@@ -135,9 +136,36 @@ Required:
135136

136137
Optional:
137138

139+
- `children` (Attributes List) Array of child criteria. Required if the operation is AND or OR, otherwise it must be left null. A maximum of three levels of criteria are supported, including leaf nodes. Additionally, AND nodes can only be children or OR nodes and vice-versa. (see [below for nested schema](#nestedatt--membership--criteria--children--children))
138140
- `key` (Attributes) Refers to a specific Identity attribute, Account attribute, or Entitlement used in Role membership criteria (see [below for nested schema](#nestedatt--membership--criteria--children--key))
139141
- `string_value` (String) String value to test the Identity attribute, Account attribute, or Entitlement specified in the key w/r/t the specified operation. If this criteria is a leaf node, that is, if the operation is one of EQUALS, NOT_EQUALS, CONTAINS, STARTS_WITH, or ENDS_WITH, this field is required. Otherwise, specifying it is an error.
140142

143+
<a id="nestedatt--membership--criteria--children--children"></a>
144+
### Nested Schema for `membership.criteria.children.children`
145+
146+
Required:
147+
148+
- `operation` (String) An operation
149+
150+
Optional:
151+
152+
- `key` (Attributes) Refers to a specific Identity attribute, Account attribute, or Entitlement used in Role membership criteria (see [below for nested schema](#nestedatt--membership--criteria--children--children--key))
153+
- `string_value` (String) String value to test the Identity attribute, Account attribute, or Entitlement specified in the key w/r/t the specified operation. If this criteria is a leaf node, that is, if the operation is one of EQUALS, NOT_EQUALS, CONTAINS, STARTS_WITH, or ENDS_WITH, this field is required. Otherwise, specifying it is an error.
154+
155+
<a id="nestedatt--membership--criteria--children--children--key"></a>
156+
### Nested Schema for `membership.criteria.children.children.key`
157+
158+
Required:
159+
160+
- `property` (String) The name of the attribute or entitlement to which the associated criteria applies.
161+
- `type` (String) Indicates whether the associated criteria represents an expression on identity attributes, account attributes, or entitlements, respectively.
162+
163+
Optional:
164+
165+
- `source_id` (String) ID of the Source from which an account attribute or entitlement is drawn. Required if type is ACCOUNT or ENTITLEMENT
166+
167+
168+
141169
<a id="nestedatt--membership--criteria--children--key"></a>
142170
### Nested Schema for `membership.criteria.children.key`
143171

@@ -166,6 +194,19 @@ Optional:
166194

167195

168196

197+
<a id="nestedatt--membership--identities"></a>
198+
### Nested Schema for `membership.identities`
199+
200+
Required:
201+
202+
- `id` (String)
203+
204+
Optional:
205+
206+
- `name` (String)
207+
- `type` (String)
208+
209+
169210

170211
<a id="nestedatt--revocation_request_config"></a>
171212
### Nested Schema for `revocation_request_config`

docs/resources/source.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ resource "identitynow_source" "demo_source" {
7575
### Read-Only
7676

7777
- `authoritative` (Boolean) When true indicates the source is referenced by an IdentityProfile.
78-
- `cloud_external_id` (String) Legacy Source ID for interacting with CC API
7978
- `connector_id` (String) The id of connector
8079
- `connector_implementation_id` (String) The connector implementation id
8180
- `connector_name` (String) The name of the connector that was chosen on source creation
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "identitynow_source_aggregation_schedule Resource - terraform-provider-identitynow"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# identitynow_source_aggregation_schedule (Resource)
10+
11+
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "identitynow_source_aggregation_schedule" "test_account_schedule" {
17+
source_cloud_id = identitynow_source.demo_source.cloud_external_id
18+
cron_expression = "0 5 0 * * ?"
19+
aggregation_type = "account"
20+
}
21+
```
22+
23+
<!-- schema generated by tfplugindocs -->
24+
## Schema
25+
26+
### Required
27+
28+
- `aggregation_type` (String) Aggregation type one of 'account' or 'entitlement'
29+
- `cron_expression` (String) Cron Expression for the Schedule
30+
- `source_cloud_id` (String) Legacy Source ID

docs/resources/workflow.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ resource "identitynow_workflow" "test" {
2727
displayName = "Get List of Identities"
2828
type = "action"
2929
actionId = "sp:get-identities"
30-
versionNumber = "2"
30+
versionNumber = 2
3131
attributes = {
3232
inputQuery = "*"
3333
searchBy = "searchQuery"
@@ -100,6 +100,7 @@ Required:
100100

101101
Optional:
102102

103+
- `attribute_to_filter` (String) For events triggered by attribute changes, the name of the attribute that changed. EVENT trigger type
103104
- `cron_string` (String) A valid CRON expression. SCHEDULED trigger type
104105
- `description` (String) Additonal context about the external trigger. EXTERNAL trigger type
105106
- `filter` (String) JSON path expression that will limit which events the trigger will fire on. EVENT trigger type

examples/resources/identitynow_lifecycle_state/resource.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resource "identitynow_lifecycle_state" "demo_active" {
33
technical_name = "active"
44
identity_profile_id = "profileId"
55
description = "my test description"
6+
identity_state = "ACTIVE"
67
enabled = false
78
email_notification_option = {
89
notify_managers = false
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
resource "identitynow_org_config" "demo_timezone" {
2+
time_zone = "UTC"
3+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
resource "identitynow_role" "test" {
2+
name = "Test Role"
3+
description = "Creating from terraform"
4+
owner = {
5+
id = data.identitynow_identity.default_owner.id
6+
name = data.identitynow_identity.default_owner.name
7+
}
8+
entitlements = [
9+
]
10+
access_profiles = []
11+
membership = {
12+
type = "STANDARD"
13+
criteria = {
14+
operation = "AND"
15+
key = null
16+
string_value = null
17+
children = [
18+
{
19+
operation = "OR"
20+
key = null
21+
string_value = null
22+
children = [
23+
{
24+
operation = "EQUALS"
25+
key = {
26+
type = "IDENTITY"
27+
property = "attribute.cloudLifecycleState"
28+
sourceId = null
29+
}
30+
string_value = "Initiated"
31+
children = null
32+
},
33+
{
34+
operation = "EQUALS"
35+
key = {
36+
type = "IDENTITY"
37+
property = "attribute.cloudLifecycleState"
38+
sourceId = null
39+
}
40+
string_value = "Active"
41+
children = null
42+
}
43+
]
44+
},
45+
{
46+
operation = "OR"
47+
key = null
48+
string_value = null
49+
children = [
50+
{
51+
operation = "EQUALS"
52+
key = {
53+
type = "IDENTITY"
54+
property = "attribute.type"
55+
sourceId = null
56+
}
57+
string_value = "INTERNAL"
58+
children = null
59+
},
60+
{
61+
operation = "EQUALS"
62+
key = {
63+
type = "IDENTITY"
64+
property = "attribute.type"
65+
sourceId = null
66+
}
67+
string_value = "EXTERNAL"
68+
children = null
69+
}
70+
]
71+
}
72+
]
73+
},
74+
identities = null
75+
}
76+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
resource "identitynow_source_aggregation_schedule" "test_account_schedule" {
2+
source_cloud_id = identitynow_source.demo_source.cloud_external_id
3+
cron_expression = "0 5 0 * * ?"
4+
aggregation_type = "account"
5+
}

0 commit comments

Comments
 (0)