Class: AWSCDK::GuardDuty::CfnMalwareProtectionPlan::CFNProtectedResourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GuardDuty::CfnMalwareProtectionPlan::CFNProtectedResourceProperty
- 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
-
#s3_bucket ⇒ AWSCDK::IResolvable, AWSCDK::GuardDuty::CfnMalwareProtectionPlan::S3BucketProperty
readonly
Information about the protected S3 bucket resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_bucket:) ⇒ CFNProtectedResourceProperty
constructor
A new instance of CFNProtectedResourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_bucket:) ⇒ CFNProtectedResourceProperty
Returns a new instance of CFNProtectedResourceProperty.
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 |
Instance Attribute Details
#s3_bucket ⇒ AWSCDK::IResolvable, AWSCDK::GuardDuty::CfnMalwareProtectionPlan::S3BucketProperty (readonly)
Information about the protected S3 bucket resource.
662 663 664 |
# File 'guard_duty/cfn_malware_protection_plan.rb', line 662 def s3_bucket @s3_bucket end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |