Class: AWSCDK::Acknowledgment

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
acknowledgment.rb

Overview

An acknowledgment of a validation rule, used to suppress it from output.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, reason:) ⇒ Acknowledgment

Returns a new instance of Acknowledgment.

Parameters:

  • id (String)

    The rule ID to acknowledge.

  • reason (String)

    The reason for acknowledging this rule.



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

#idString (readonly)

The rule ID to acknowledge.

Returns:

  • (String)


19
20
21
# File 'acknowledgment.rb', line 19

def id
  @id
end

#reasonString (readonly)

The reason for acknowledging this rule.

Returns:

  • (String)


23
24
25
# File 'acknowledgment.rb', line 23

def reason
  @reason
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'acknowledgment.rb', line 25

def self.jsii_properties
  {
    :id => "id",
    :reason => "reason",
  }
end

Instance Method Details

#to_jsiiObject



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