2021-08-05 02:57:22 -07:00
/ * *
* Copyright 2021 Google LLC
*
* Licensed under the Apache License , Version 2 . 0 ( the " License " ) ;
* you may not use this file except in compliance with the License .
* You may obtain a copy of the License at
*
* http : //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing , software
* distributed under the License is distributed on an " AS IS " BASIS ,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied .
* See the License for the specific language governing permissions and
* limitations under the License .
* /
2021-08-04 08:09:44 -07:00
2021-08-05 02:57:22 -07:00
variable " apigee_envgroups " {
description = " Apigee Environment Groups. "
type = map ( object ( {
environments = list ( string )
hostnames = list ( string )
} ) )
default = { }
2021-08-04 08:09:44 -07:00
}
variable " apigee_environments " {
description = " Apigee Environment Names. "
2021-08-05 02:57:22 -07:00
type = list ( string )
default = [ ]
}
variable " apigee_org_id " {
description = " Apigee Organization ID "
type = string
2021-08-04 08:09:44 -07:00
}
variable " cidr_mask " {
2021-08-05 02:57:22 -07:00
description = " CIDR mask for the Apigee instance "
type = number
validation {
2021-08-04 08:09:44 -07:00
condition = contains ( [ 16 , 20 , 22 ] , var . cidr_mask )
2021-08-05 02:57:22 -07:00
error_message = " Invalid CIDR mask; Allowed values for cidr_mask: [16, 20, 22]. "
2021-08-04 08:09:44 -07:00
}
}
2021-08-05 04:21:57 -07:00
variable " disk_encryption_key " {
2021-08-05 06:53:44 -07:00
description = " Customer Managed Encryption Key (CMEK) self link (e.g. `projects/foo/locations/us/keyRings/bar/cryptoKeys/baz`) used for disk and volume encryption (required for PAID Apigee Orgs only). "
2021-08-05 04:21:57 -07:00
type = string
default = null
}
2021-08-05 02:57:22 -07:00
variable " name " {
description = " Apigee instance name. "
type = string
}
2021-08-04 08:09:44 -07:00
variable " region " {
description = " Compute region. "
type = string
}