Reference documentation and code samples for the Design Center V1 API class Google::Cloud::DesignCenter::V1::TerraformVariableValidation.
Represents a custom validation rule defined on a Terraform input variable.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#condition
def condition() -> ::String
Returns
- (::String) — Optional. The HCL expression for the validation condition (e.g., "length(var.image_id) > 4").
#condition=
def condition=(value) -> ::String
Parameter
- value (::String) — Optional. The HCL expression for the validation condition (e.g., "length(var.image_id) > 4").
Returns
- (::String) — Optional. The HCL expression for the validation condition (e.g., "length(var.image_id) > 4").
#error_message
def error_message() -> ::String
Returns
- (::String) — Optional. The error message displayed when the condition is false.
#error_message=
def error_message=(value) -> ::String
Parameter
- value (::String) — Optional. The error message displayed when the condition is false.
Returns
- (::String) — Optional. The error message displayed when the condition is false.