Class: AWSCDK::GuardDuty::CfnMalwareProtectionPlan::CFNStatusReasonsProperty

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

Overview

Information about the status code and status details associated with the status of the Malware Protection plan.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code: nil, message: nil) ⇒ CFNStatusReasonsProperty

Returns a new instance of CFNStatusReasonsProperty.

Parameters:

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

    The status code of the Malware Protection plan.

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

    Issue message that specifies the reason.



687
688
689
690
691
692
# File 'guard_duty/cfn_malware_protection_plan.rb', line 687

def initialize(code: nil, message: nil)
  @code = code
  Jsii::Type.check_type(@code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "code") unless @code.nil?
  @message = message
  Jsii::Type.check_type(@message, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "message") unless @message.nil?
end

Instance Attribute Details

#codeString? (readonly)

The status code of the Malware Protection plan.

For more information, see Malware Protection plan resource status in the GuardDuty User Guide .



700
701
702
# File 'guard_duty/cfn_malware_protection_plan.rb', line 700

def code
  @code
end

#messageString? (readonly)

Issue message that specifies the reason.

For information about potential troubleshooting steps, see Troubleshooting Malware Protection for S3 status issues in the Amazon GuardDuty User Guide .



707
708
709
# File 'guard_duty/cfn_malware_protection_plan.rb', line 707

def message
  @message
end

Class Method Details

.jsii_propertiesObject



709
710
711
712
713
714
# File 'guard_duty/cfn_malware_protection_plan.rb', line 709

def self.jsii_properties
  {
    :code => "code",
    :message => "message",
  }
end

Instance Method Details

#to_jsiiObject



716
717
718
719
720
721
722
723
# File 'guard_duty/cfn_malware_protection_plan.rb', line 716

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