Class: AWSCDK::GuardDuty::CfnMalwareProtectionPlan::S3BucketProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
guard_duty/cfn_malware_protection_plan.rb

Overview

Information about the protected S3 bucket resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_name: nil, object_prefixes: nil) ⇒ S3BucketProperty

Returns a new instance of S3BucketProperty.

Parameters:

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

    Name of the S3 bucket.

  • object_prefixes (Array<String>, nil) (defaults to: nil)

    Information about the specified object prefixes.



769
770
771
772
773
774
# File 'guard_duty/cfn_malware_protection_plan.rb', line 769

def initialize(bucket_name: nil, object_prefixes: nil)
  @bucket_name = bucket_name
  Jsii::Type.check_type(@bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketName") unless @bucket_name.nil?
  @object_prefixes = object_prefixes
  Jsii::Type.check_type(@object_prefixes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "objectPrefixes") unless @object_prefixes.nil?
end

Instance Attribute Details

#bucket_nameString? (readonly)

Name of the S3 bucket.



780
781
782
# File 'guard_duty/cfn_malware_protection_plan.rb', line 780

def bucket_name
  @bucket_name
end

#object_prefixesArray<String>? (readonly)

Information about the specified object prefixes.

An S3 object will be scanned only if it belongs to any of the specified object prefixes.



787
788
789
# File 'guard_duty/cfn_malware_protection_plan.rb', line 787

def object_prefixes
  @object_prefixes
end

Class Method Details

.jsii_propertiesObject



789
790
791
792
793
794
# File 'guard_duty/cfn_malware_protection_plan.rb', line 789

def self.jsii_properties
  {
    :bucket_name => "bucketName",
    :object_prefixes => "objectPrefixes",
  }
end

Instance Method Details

#to_jsiiObject



796
797
798
799
800
801
802
803
# File 'guard_duty/cfn_malware_protection_plan.rb', line 796

def to_jsii
  result = {}
  result.merge!({
    "bucketName" => @bucket_name,
    "objectPrefixes" => @object_prefixes,
  })
  result.compact
end