Class: AWSCDK::SecurityHub::CfnAutomationRule::NoteUpdateProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_hub/cfn_automation_rule.rb

Overview

The updated note.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:, updated_by:) ⇒ NoteUpdateProperty

Returns a new instance of NoteUpdateProperty.

Parameters:

  • text (String)

    The updated note text.

  • updated_by (String)

    The principal that updated the note.



1440
1441
1442
1443
1444
1445
# File 'security_hub/cfn_automation_rule.rb', line 1440

def initialize(text:, updated_by:)
  @text = text
  Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "text")
  @updated_by = updated_by
  Jsii::Type.check_type(@updated_by, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "updatedBy")
end

Instance Attribute Details

#textString (readonly)

The updated note text.



1451
1452
1453
# File 'security_hub/cfn_automation_rule.rb', line 1451

def text
  @text
end

#updated_byString (readonly)

The principal that updated the note.



1456
1457
1458
# File 'security_hub/cfn_automation_rule.rb', line 1456

def updated_by
  @updated_by
end

Class Method Details

.jsii_propertiesObject



1458
1459
1460
1461
1462
1463
# File 'security_hub/cfn_automation_rule.rb', line 1458

def self.jsii_properties
  {
    :text => "text",
    :updated_by => "updatedBy",
  }
end

Instance Method Details

#to_jsiiObject



1465
1466
1467
1468
1469
1470
1471
1472
# File 'security_hub/cfn_automation_rule.rb', line 1465

def to_jsii
  result = {}
  result.merge!({
    "text" => @text,
    "updatedBy" => @updated_by,
  })
  result.compact
end