Class: AWSCDK::AppConfig::CfnConfigurationProfile::ValidatorsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppConfig::CfnConfigurationProfile::ValidatorsProperty
- Defined in:
- app_config/cfn_configuration_profile.rb
Overview
A validator provides a syntactic or semantic check to ensure the configuration that you want to deploy functions as intended.
To validate your application configuration data, you provide a schema or an AWS Lambda function that runs against the configuration. The configuration deployment or update can only proceed when the configuration data is valid. For more information, see About validators in the AWS AppConfig User Guide .
Instance Attribute Summary collapse
-
#content ⇒ String?
readonly
Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.
-
#type ⇒ String?
readonly
AWS AppConfig supports validators of type
JSON_SCHEMAandLAMBDA.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content: nil, type: nil) ⇒ ValidatorsProperty
constructor
A new instance of ValidatorsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(content: nil, type: nil) ⇒ ValidatorsProperty
Returns a new instance of ValidatorsProperty.
658 659 660 661 662 663 |
# File 'app_config/cfn_configuration_profile.rb', line 658 def initialize(content: nil, type: nil) @content = content Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "content") unless @content.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#content ⇒ String? (readonly)
Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.
669 670 671 |
# File 'app_config/cfn_configuration_profile.rb', line 669 def content @content end |
#type ⇒ String? (readonly)
AWS AppConfig supports validators of type JSON_SCHEMA and LAMBDA.
674 675 676 |
# File 'app_config/cfn_configuration_profile.rb', line 674 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
676 677 678 679 680 681 |
# File 'app_config/cfn_configuration_profile.rb', line 676 def self.jsii_properties { :content => "content", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
683 684 685 686 687 688 689 690 |
# File 'app_config/cfn_configuration_profile.rb', line 683 def to_jsii result = {} result.merge!({ "content" => @content, "type" => @type, }) result.compact end |