Class: AWSCDK::AppConfig::CfnConfigurationProfile::ValidatorsProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content: nil, type: nil) ⇒ ValidatorsProperty

Returns a new instance of ValidatorsProperty.

Parameters:

  • content (String, nil) (defaults to: nil)

    Either the JSON Schema content or the Amazon Resource Name (ARN) of an Lambda function.

  • type (String, nil) (defaults to: nil)

    AWS AppConfig supports validators of type JSON_SCHEMA and LAMBDA.



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

#contentString? (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

#typeString? (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_propertiesObject



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_jsiiObject



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