Class: AWSCDK::Macie::CfnAllowList::CriteriaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Macie::CfnAllowList::CriteriaProperty
- Defined in:
- macie/cfn_allow_list.rb
Overview
Specifies the criteria for an allow list, which is a list that defines specific text or a text pattern to ignore when inspecting data sources for sensitive data.
The criteria can be:
- The location and name of an Amazon Simple Storage Service ( Amazon S3 ) object that lists specific predefined text to ignore (
S3WordsList), or - A regular expression (
Regex) that defines a text pattern to ignore.
The criteria must specify either an S3 object or a regular expression. It can't specify both.
Instance Attribute Summary collapse
-
#regex ⇒ String?
readonly
The regular expression ( regex ) that defines the text pattern to ignore.
-
#s3_words_list ⇒ AWSCDK::IResolvable, ...
readonly
The location and name of an Amazon S3 object that lists specific text to ignore.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(regex: nil, s3_words_list: nil) ⇒ CriteriaProperty
constructor
A new instance of CriteriaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(regex: nil, s3_words_list: nil) ⇒ CriteriaProperty
Returns a new instance of CriteriaProperty.
610 611 612 613 614 615 |
# File 'macie/cfn_allow_list.rb', line 610 def initialize(regex: nil, s3_words_list: nil) @regex = regex Jsii::Type.check_type(@regex, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regex") unless @regex.nil? @s3_words_list = s3_words_list.is_a?(Hash) ? ::AWSCDK::Macie::CfnAllowList::S3WordsListProperty.new(**s3_words_list.transform_keys(&:to_sym)) : s3_words_list Jsii::Type.check_type(@s3_words_list, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tYWNpZS5DZm5BbGxvd0xpc3QuUzNXb3Jkc0xpc3RQcm9wZXJ0eSJ9XX19")), "s3WordsList") unless @s3_words_list.nil? end |
Instance Attribute Details
#regex ⇒ String? (readonly)
The regular expression ( regex ) that defines the text pattern to ignore.
The expression can contain 1-512 characters.
623 624 625 |
# File 'macie/cfn_allow_list.rb', line 623 def regex @regex end |
#s3_words_list ⇒ AWSCDK::IResolvable, ... (readonly)
The location and name of an Amazon S3 object that lists specific text to ignore.
628 629 630 |
# File 'macie/cfn_allow_list.rb', line 628 def s3_words_list @s3_words_list end |
Class Method Details
.jsii_properties ⇒ Object
630 631 632 633 634 635 |
# File 'macie/cfn_allow_list.rb', line 630 def self.jsii_properties { :regex => "regex", :s3_words_list => "s3WordsList", } end |
Instance Method Details
#to_jsii ⇒ Object
637 638 639 640 641 642 643 644 |
# File 'macie/cfn_allow_list.rb', line 637 def to_jsii result = {} result.merge!({ "regex" => @regex, "s3WordsList" => @s3_words_list, }) result.compact end |