Skip to content

Commit bf714d5

Browse files
committed
documentation
1 parent 0902bad commit bf714d5

34 files changed

Lines changed: 1543 additions & 1534 deletions

docs/data-sources/configs.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ Use this data source to access information about existing **Configs**. [What is
1313
## Example Usage
1414

1515
```terraform
16-
variable "product_id" {
17-
type = string
18-
}
19-
20-
data "configcat_configs" "my_configs" {
21-
product_id = var.product_id
22-
name_filter_regex = "Main Config"
23-
}
24-
25-
26-
output "config_id" {
27-
value = data.configcat_configs.my_configs.configs[0].config_id
16+
variable "product_id" {
17+
type = string
18+
}
19+
20+
data "configcat_configs" "my_configs" {
21+
product_id = var.product_id
22+
name_filter_regex = "Main Config"
23+
}
24+
25+
26+
output "config_id" {
27+
value = data.configcat_configs.my_configs.configs[0].config_id
2828
}
2929
```
3030

docs/data-sources/environments.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ Use this data source to access information about existing **Environments**. [Wha
1313
## Example Usage
1414

1515
```terraform
16-
variable "product_id" {
17-
type = string
18-
}
19-
20-
data "configcat_environments" "my_environments" {
21-
product_id = var.product_id
22-
name_filter_regex = "Test"
23-
}
24-
25-
26-
output "environment_id" {
27-
value = data.configcat_environments.my_environments.environments[0].environment_id
16+
variable "product_id" {
17+
type = string
18+
}
19+
20+
data "configcat_environments" "my_environments" {
21+
product_id = var.product_id
22+
name_filter_regex = "Test"
23+
}
24+
25+
26+
output "environment_id" {
27+
value = data.configcat_environments.my_environments.environments[0].environment_id
2828
}
2929
```
3030

docs/data-sources/organizations.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ Use this data source to access information about existing **Organizations**. [Wh
1313
## Example Usage
1414

1515
```terraform
16-
data "configcat_organizations" "my_organizations" {
17-
name_filter_regex = "ConfigCat"
18-
}
19-
20-
21-
output "organization_id" {
22-
value = data.configcat_organizations.my_organizations.organizations[0].organization_id
16+
data "configcat_organizations" "my_organizations" {
17+
name_filter_regex = "ConfigCat"
18+
}
19+
20+
21+
output "organization_id" {
22+
value = data.configcat_organizations.my_organizations.organizations[0].organization_id
2323
}
2424
```
2525

docs/data-sources/permission_groups.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ Use this data source to access information about existing **Permission Groups**.
1313
## Example Usage
1414

1515
```terraform
16-
variable "product_id" {
17-
type = string
18-
}
19-
20-
data "configcat_permission_groups" "my_permission_groups" {
21-
product_id = var.product_id
22-
name_filter_regex = "Administrators"
23-
}
24-
25-
26-
output "permission_group_id" {
27-
value = data.configcat_permission_groups.my_permission_groups.permission_groups[0].permission_group_id
16+
variable "product_id" {
17+
type = string
18+
}
19+
20+
data "configcat_permission_groups" "my_permission_groups" {
21+
product_id = var.product_id
22+
name_filter_regex = "Administrators"
23+
}
24+
25+
26+
output "permission_group_id" {
27+
value = data.configcat_permission_groups.my_permission_groups.permission_groups[0].permission_group_id
2828
}
2929
```
3030

@@ -50,6 +50,7 @@ output "permission_group_id" {
5050
Read-Only:
5151

5252
- `accesstype` (String) Represent the Feature Management permission. Possible values: readOnly, full, custom
53+
- `approval_permission_type` (String) Represents the permission group level change request approval permission. Possible values: cannotApprove, canApproveOthers, canBypassApproval, custom
5354
- `can_createorupdate_config` (Boolean) Group members can create/update Configs.
5455
- `can_createorupdate_environment` (Boolean) Group members can create/update Environments.
5556
- `can_createorupdate_segment` (Boolean) Group members can create/update Segments.
@@ -72,6 +73,8 @@ Read-Only:
7273
- `can_view_product_statistics` (Boolean) Group members has access to product statistics.
7374
- `can_view_sdkkey` (Boolean) Group members has access to SDK keys.
7475
- `environment_accesses` (Map of String) The environment specific permissions map block. Keys are the Environment IDs and the values represent the environment specific Feature Management permission. Possible values: full, readOnly
76+
- `environment_approval_permissions` (Map of String) The environment specific approval permissions map block. Keys are the Environment IDs and the values represent the environment specific change request approval permission. Possible values: cannotApprove, canApproveOthers, canBypassApproval
7577
- `name` (String) The name of the Permission Group.
7678
- `new_environment_accesstype` (String) Represent the environment specific Feature Management permission for new Environments. Possible values: full, readOnly, none
79+
- `new_environment_approval_permission_type` (String) Represents the environment specific change request approval permission for new Environments. Possible values: cannotApprove, canApproveOthers, canBypassApproval
7780
- `permission_group_id` (Number) The unique Permission Group ID.

docs/data-sources/products.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ Use this data source to access information about existing **Products**. [What is
1313
## Example Usage
1414

1515
```terraform
16-
data "configcat_products" "my_products" {
17-
name_filter_regex = "ConfigCat's product"
18-
}
19-
20-
21-
output "product_id" {
22-
value = data.configcat_products.my_products.products[0].product_id
16+
data "configcat_products" "my_products" {
17+
name_filter_regex = "ConfigCat's product"
18+
}
19+
20+
21+
output "product_id" {
22+
value = data.configcat_products.my_products.products[0].product_id
2323
}
2424
```
2525

docs/data-sources/sdkkeys.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@ Use this data source to access information about existing **SDK Keys**.
1313
## Example Usage
1414

1515
```terraform
16-
variable "config_id" {
17-
type = string
18-
}
19-
20-
variable "environment_id" {
21-
type = string
22-
}
23-
24-
data "configcat_sdkkeys" "my_sdkkey" {
25-
config_id = var.config_id
26-
environment_id = var.environment_id
27-
}
28-
29-
30-
output "primary_sdkkey" {
31-
value = data.configcat_sdkkeys.my_sdkkey.primary
32-
}
33-
34-
output "secondary_sdkkey" {
35-
value = data.configcat_sdkkeys.my_sdkkey.secondary
16+
variable "config_id" {
17+
type = string
18+
}
19+
20+
variable "environment_id" {
21+
type = string
22+
}
23+
24+
data "configcat_sdkkeys" "my_sdkkey" {
25+
config_id = var.config_id
26+
environment_id = var.environment_id
27+
}
28+
29+
30+
output "primary_sdkkey" {
31+
value = data.configcat_sdkkeys.my_sdkkey.primary
32+
}
33+
34+
output "secondary_sdkkey" {
35+
value = data.configcat_sdkkeys.my_sdkkey.secondary
3636
}
3737
```
3838

docs/data-sources/segments.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ Use this data source to access information about existing **Segments**. [What is
1313
## Example Usage
1414

1515
```terraform
16-
variable "product_id" {
17-
type = string
18-
}
19-
20-
data "configcat_segments" "my_segments" {
21-
product_id = var.product_id
22-
name_filter_regex = "Beta users"
23-
}
24-
25-
26-
output "segment_id" {
27-
value = data.configcat_segments.my_segments.segments[0].segment_id
16+
variable "product_id" {
17+
type = string
18+
}
19+
20+
data "configcat_segments" "my_segments" {
21+
product_id = var.product_id
22+
name_filter_regex = "Beta users"
23+
}
24+
25+
26+
output "segment_id" {
27+
value = data.configcat_segments.my_segments.segments[0].segment_id
2828
}
2929
```
3030

docs/data-sources/settings.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ Use this data source to access information about existing **Feature Flags or Set
1313
## Example Usage
1414

1515
```terraform
16-
variable "config_id" {
17-
type = string
18-
}
19-
20-
data "configcat_settings" "settings" {
21-
config_id = var.config_id
22-
key_filter_regex = "isAwesomeFeatureEnabled"
23-
}
24-
25-
26-
output "setting_id" {
27-
value = data.configcat_settings.settings.settings[0].setting_id
16+
variable "config_id" {
17+
type = string
18+
}
19+
20+
data "configcat_settings" "settings" {
21+
config_id = var.config_id
22+
key_filter_regex = "isAwesomeFeatureEnabled"
23+
}
24+
25+
26+
output "setting_id" {
27+
value = data.configcat_settings.settings.settings[0].setting_id
2828
}
2929
```
3030

docs/data-sources/tags.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ Use this data source to access information about existing **Tags**. [What is a T
1313
## Example Usage
1414

1515
```terraform
16-
variable "product_id" {
17-
type = string
18-
}
19-
20-
data "configcat_tags" "my_tags" {
21-
product_id = var.product_id
22-
name_filter_regex = "Test"
23-
}
24-
25-
26-
output "tag_id" {
27-
value = data.configcat_tags.my_tags.tags[0].tag_id
16+
variable "product_id" {
17+
type = string
18+
}
19+
20+
data "configcat_tags" "my_tags" {
21+
product_id = var.product_id
22+
name_filter_regex = "Test"
23+
}
24+
25+
26+
output "tag_id" {
27+
value = data.configcat_tags.my_tags.tags[0].tag_id
2828
}
2929
```
3030

docs/data-sources/webhook_signing_keys.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ Use this data source to access information about **Webhook Signing Keys**. [What
1313
## Example Usage
1414

1515
```terraform
16-
variable "webhook_id" {
17-
type = number
18-
}
19-
20-
data "configcat_webhook_signing_keys" "test" {
21-
webhook_id = var.webhook_id
22-
}
23-
24-
output "key1" {
25-
value = data.configcat_webhook_signing_keys.test.key1
26-
}
27-
28-
output "key2" {
29-
value = data.configcat_webhook_signing_keys.test.key2
16+
variable "webhook_id" {
17+
type = number
18+
}
19+
20+
data "configcat_webhook_signing_keys" "test" {
21+
webhook_id = var.webhook_id
22+
}
23+
24+
output "key1" {
25+
value = data.configcat_webhook_signing_keys.test.key1
26+
}
27+
28+
output "key2" {
29+
value = data.configcat_webhook_signing_keys.test.key2
3030
}
3131
```
3232

0 commit comments

Comments
 (0)