Class: AWSCDK::Bedrock::CfnGuardrail::WordPolicyConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_guardrail.rb

Overview

Contains details about the word policy to configured for the guardrail.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(managed_word_lists_config: nil, words_config: nil) ⇒ WordPolicyConfigProperty

Returns a new instance of WordPolicyConfigProperty.

Parameters:



1911
1912
1913
1914
1915
1916
# File 'bedrock/cfn_guardrail.rb', line 1911

def initialize(managed_word_lists_config: nil, words_config: nil)
  @managed_word_lists_config = managed_word_lists_config
  Jsii::Type.check_type(@managed_word_lists_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5HdWFyZHJhaWwuTWFuYWdlZFdvcmRzQ29uZmlnUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "managedWordListsConfig") unless @managed_word_lists_config.nil?
  @words_config = words_config
  Jsii::Type.check_type(@words_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5HdWFyZHJhaWwuV29yZENvbmZpZ1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "wordsConfig") unless @words_config.nil?
end

Instance Attribute Details

#managed_word_lists_configAWSCDK::IResolvable, ... (readonly)

A list of managed words to configure for the guardrail.



1922
1923
1924
# File 'bedrock/cfn_guardrail.rb', line 1922

def managed_word_lists_config
  @managed_word_lists_config
end

#words_configAWSCDK::IResolvable, ... (readonly)

A list of words to configure for the guardrail.



1927
1928
1929
# File 'bedrock/cfn_guardrail.rb', line 1927

def words_config
  @words_config
end

Class Method Details

.jsii_propertiesObject



1929
1930
1931
1932
1933
1934
# File 'bedrock/cfn_guardrail.rb', line 1929

def self.jsii_properties
  {
    :managed_word_lists_config => "managedWordListsConfig",
    :words_config => "wordsConfig",
  }
end

Instance Method Details

#to_jsiiObject



1936
1937
1938
1939
1940
1941
1942
1943
# File 'bedrock/cfn_guardrail.rb', line 1936

def to_jsii
  result = {}
  result.merge!({
    "managedWordListsConfig" => @managed_word_lists_config,
    "wordsConfig" => @words_config,
  })
  result.compact
end