|
| 1 | +// Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. |
| 2 | +// Licensed under the Mozilla Public License v2.0 |
| 3 | + |
| 4 | +variable "account_recovery_setting_attribute_sets" { |
| 5 | + default = ["all"] |
| 6 | +} |
| 7 | + |
| 8 | +variable "account_recovery_setting_attributes" { |
| 9 | + default = "" |
| 10 | +} |
| 11 | + |
| 12 | +variable "account_recovery_setting_authorization" { |
| 13 | + default = "authorization" |
| 14 | +} |
| 15 | + |
| 16 | +variable "account_recovery_setting_compartment_ocid" { |
| 17 | + default = "compartmentOcid" |
| 18 | +} |
| 19 | + |
| 20 | +variable "account_recovery_setting_delete_in_progress" { |
| 21 | + default = false |
| 22 | +} |
| 23 | + |
| 24 | +variable "account_recovery_setting_domain_ocid" { |
| 25 | + default = "domainOcid" |
| 26 | +} |
| 27 | + |
| 28 | +variable "account_recovery_setting_factors" { |
| 29 | + default = ["email"] |
| 30 | +} |
| 31 | + |
| 32 | +variable "account_recovery_setting_id" { |
| 33 | + default = "AccountRecoverySettings" |
| 34 | +} |
| 35 | + |
| 36 | +variable "account_recovery_setting_idcs_created_by_display" { |
| 37 | + default = "display" |
| 38 | +} |
| 39 | + |
| 40 | +variable "account_recovery_setting_idcs_created_by_ocid" { |
| 41 | + default = "ocid" |
| 42 | +} |
| 43 | + |
| 44 | +variable "account_recovery_setting_idcs_created_by_ref" { |
| 45 | + default = "ref" |
| 46 | +} |
| 47 | + |
| 48 | +variable "account_recovery_setting_idcs_created_by_type" { |
| 49 | + default = "User" |
| 50 | +} |
| 51 | + |
| 52 | +variable "account_recovery_setting_idcs_created_by_value" { |
| 53 | + default = "value" |
| 54 | +} |
| 55 | + |
| 56 | +variable "account_recovery_setting_idcs_endpoint" { |
| 57 | + default = "idcsEndpoint" |
| 58 | +} |
| 59 | + |
| 60 | +variable "account_recovery_setting_idcs_last_modified_by_display" { |
| 61 | + default = "display" |
| 62 | +} |
| 63 | + |
| 64 | +variable "account_recovery_setting_idcs_last_modified_by_ocid" { |
| 65 | + default = "ocid" |
| 66 | +} |
| 67 | + |
| 68 | +variable "account_recovery_setting_idcs_last_modified_by_ref" { |
| 69 | + default = "ref" |
| 70 | +} |
| 71 | + |
| 72 | +variable "account_recovery_setting_idcs_last_modified_by_type" { |
| 73 | + default = "User" |
| 74 | +} |
| 75 | + |
| 76 | +variable "account_recovery_setting_idcs_last_modified_by_value" { |
| 77 | + default = "value" |
| 78 | +} |
| 79 | + |
| 80 | +variable "account_recovery_setting_idcs_last_upgraded_in_release" { |
| 81 | + default = "idcsLastUpgradedInRelease" |
| 82 | +} |
| 83 | + |
| 84 | +variable "account_recovery_setting_idcs_prevented_operations" { |
| 85 | + default = [] |
| 86 | +} |
| 87 | + |
| 88 | +variable "account_recovery_setting_lockout_duration" { |
| 89 | + default = 10 |
| 90 | +} |
| 91 | + |
| 92 | +variable "account_recovery_setting_max_incorrect_attempts" { |
| 93 | + default = 10 |
| 94 | +} |
| 95 | + |
| 96 | +variable "account_recovery_setting_meta_created" { |
| 97 | + default = "created" |
| 98 | +} |
| 99 | + |
| 100 | +variable "account_recovery_setting_meta_last_modified" { |
| 101 | + default = "lastModified" |
| 102 | +} |
| 103 | + |
| 104 | +variable "account_recovery_setting_meta_location" { |
| 105 | + default = "location" |
| 106 | +} |
| 107 | + |
| 108 | +variable "account_recovery_setting_meta_resource_type" { |
| 109 | + default = "resourceType" |
| 110 | +} |
| 111 | + |
| 112 | +variable "account_recovery_setting_meta_version" { |
| 113 | + default = "version" |
| 114 | +} |
| 115 | + |
| 116 | +# use the latest if not provided |
| 117 | +variable "account_recovery_setting_resource_type_schema_version" { |
| 118 | + default = "resourceTypeSchemaVersion" |
| 119 | +} |
| 120 | + |
| 121 | +variable "account_recovery_setting_schemas" { |
| 122 | + default = ["urn:ietf:params:scim:schemas:oracle:idcs:AccountRecoverySettings"] |
| 123 | +} |
| 124 | + |
| 125 | +variable "account_recovery_setting_tags_key" { |
| 126 | + default = "key" |
| 127 | +} |
| 128 | + |
| 129 | +variable "account_recovery_setting_tags_value" { |
| 130 | + default = "value" |
| 131 | +} |
| 132 | + |
| 133 | +variable "account_recovery_setting_tenancy_ocid" { |
| 134 | + default = "tenancyOcid" |
| 135 | +} |
| 136 | + |
| 137 | + |
| 138 | +resource "oci_identity_domains_account_recovery_setting" "test_account_recovery_setting" { |
| 139 | + #Required |
| 140 | + account_recovery_setting_id = var.account_recovery_setting_id |
| 141 | + factors = var.account_recovery_setting_factors |
| 142 | + idcs_endpoint = data.oci_identity_domain.test_domain.url |
| 143 | + |
| 144 | + lockout_duration = var.account_recovery_setting_lockout_duration |
| 145 | + max_incorrect_attempts = var.account_recovery_setting_max_incorrect_attempts |
| 146 | + schemas = ["urn:ietf:params:scim:schemas:oracle:idcs:AccountRecoverySettings"] |
| 147 | + |
| 148 | + #Optional |
| 149 | + attribute_sets = ["all"] |
| 150 | + attributes = "" |
| 151 | + authorization = var.account_recovery_setting_authorization |
| 152 | + external_id = "externalId" |
| 153 | + # resource_type_schema_version = var.account_recovery_setting_resource_type_schema_version |
| 154 | + tags { |
| 155 | + #Required |
| 156 | + key = var.account_recovery_setting_tags_key |
| 157 | + value = var.account_recovery_setting_tags_value |
| 158 | + } |
| 159 | +} |
| 160 | + |
| 161 | +data "oci_identity_domains_account_recovery_settings" "test_account_recovery_settings" { |
| 162 | + #Required |
| 163 | + idcs_endpoint = data.oci_identity_domain.test_domain.url |
| 164 | + |
| 165 | + #Optional |
| 166 | + attribute_sets = ["all"] |
| 167 | + attributes = "" |
| 168 | + authorization = var.account_recovery_setting_authorization |
| 169 | + # resource_type_schema_version = var.account_recovery_setting_resource_type_schema_version |
| 170 | +} |
0 commit comments