Class: AWSCDK::Macie::CfnAllowList::CriteriaProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(regex: nil, s3_words_list: nil) ⇒ CriteriaProperty

Returns a new instance of CriteriaProperty.

Parameters:



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

#regexString? (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_listAWSCDK::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_propertiesObject



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_jsiiObject



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