Class: AWSCDK::SES::CfnReceiptFilter::FilterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ses/cfn_receipt_filter.rb

Overview

Specifies an IP address filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip_filter:, name: nil) ⇒ FilterProperty

Returns a new instance of FilterProperty.

Parameters:



502
503
504
505
506
507
# File 'ses/cfn_receipt_filter.rb', line 502

def initialize(ip_filter:, name: nil)
  @ip_filter = ip_filter.is_a?(Hash) ? ::AWSCDK::SES::CfnReceiptFilter::IPFilterProperty.new(**ip_filter.transform_keys(&:to_sym)) : ip_filter
  Jsii::Type.check_type(@ip_filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZXMuQ2ZuUmVjZWlwdEZpbHRlci5JcEZpbHRlclByb3BlcnR5In1dfX0=")), "ipFilter")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
end

Instance Attribute Details

#ip_filterAWSCDK::IResolvable, AWSCDK::SES::CfnReceiptFilter::IPFilterProperty (readonly)

A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.



513
514
515
# File 'ses/cfn_receipt_filter.rb', line 513

def ip_filter
  @ip_filter
end

#nameString? (readonly)

The name of the IP address filter. The name must meet the following requirements:.

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
  • Start and end with a letter or number.
  • Contain 64 characters or fewer.


522
523
524
# File 'ses/cfn_receipt_filter.rb', line 522

def name
  @name
end

Class Method Details

.jsii_propertiesObject



524
525
526
527
528
529
# File 'ses/cfn_receipt_filter.rb', line 524

def self.jsii_properties
  {
    :ip_filter => "ipFilter",
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



531
532
533
534
535
536
537
538
# File 'ses/cfn_receipt_filter.rb', line 531

def to_jsii
  result = {}
  result.merge!({
    "ipFilter" => @ip_filter,
    "name" => @name,
  })
  result.compact
end