Class: AWSCDK::Acknowledgment
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Acknowledgment
- Defined in:
- acknowledgment.rb
Overview
An acknowledgment of a validation rule, used to suppress it from output.
Instance Attribute Summary collapse
-
#id ⇒ String
readonly
The rule ID to acknowledge.
-
#reason ⇒ String
readonly
The reason for acknowledging this rule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, reason:) ⇒ Acknowledgment
constructor
A new instance of Acknowledgment.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id:, reason:) ⇒ Acknowledgment
Returns a new instance of Acknowledgment.
9 10 11 12 13 14 |
# File 'acknowledgment.rb', line 9 def initialize(id:, reason:) @id = id Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") @reason = reason Jsii::Type.check_type(@reason, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "reason") end |
Instance Attribute Details
#id ⇒ String (readonly)
The rule ID to acknowledge.
19 20 21 |
# File 'acknowledgment.rb', line 19 def id @id end |
#reason ⇒ String (readonly)
The reason for acknowledging this rule.
23 24 25 |
# File 'acknowledgment.rb', line 23 def reason @reason end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'acknowledgment.rb', line 25 def self.jsii_properties { :id => "id", :reason => "reason", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'acknowledgment.rb', line 32 def to_jsii result = {} result.merge!({ "id" => @id, "reason" => @reason, }) result.compact end |