Class: AWSCDK::GuardDuty::CfnMalwareProtectionPlan::CFNProtectedResourceProperty

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

Overview

Information about the protected resource.

Presently, S3Bucket is the only supported protected resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_bucket:) ⇒ CFNProtectedResourceProperty

Returns a new instance of CFNProtectedResourceProperty.

Parameters:



653
654
655
656
# File 'guard_duty/cfn_malware_protection_plan.rb', line 653

def initialize(s3_bucket:)
  @s3_bucket = s3_bucket.is_a?(Hash) ? ::AWSCDK::GuardDuty::CfnMalwareProtectionPlan::S3BucketProperty.new(**s3_bucket.transform_keys(&:to_sym)) : s3_bucket
  Jsii::Type.check_type(@s3_bucket, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ndWFyZGR1dHkuQ2ZuTWFsd2FyZVByb3RlY3Rpb25QbGFuLlMzQnVja2V0UHJvcGVydHkifV19fQ==")), "s3Bucket")
end

Class Method Details

.jsii_propertiesObject



664
665
666
667
668
# File 'guard_duty/cfn_malware_protection_plan.rb', line 664

def self.jsii_properties
  {
    :s3_bucket => "s3Bucket",
  }
end

Instance Method Details

#to_jsiiObject



670
671
672
673
674
675
676
# File 'guard_duty/cfn_malware_protection_plan.rb', line 670

def to_jsii
  result = {}
  result.merge!({
    "s3Bucket" => @s3_bucket,
  })
  result.compact
end