Class: AWSCDK::DynamoDB::ContributorInsightsSpecification

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dynamo_db/contributor_insights_specification.rb

Overview

Reference to ContributorInsightsSpecification.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled:, mode: nil) ⇒ ContributorInsightsSpecification

Returns a new instance of ContributorInsightsSpecification.

Parameters:

  • enabled (Boolean)

    Indicates whether contributor insights is enabled.

  • mode (AWSCDK::DynamoDB::ContributorInsightsMode, nil) (defaults to: nil)

    Indicates the type of metrics captured by contributor insights.



9
10
11
12
13
14
# File 'dynamo_db/contributor_insights_specification.rb', line 9

def initialize(enabled:, mode: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enabled")
  @mode = mode
  Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZHluYW1vZGIuQ29udHJpYnV0b3JJbnNpZ2h0c01vZGUifQ==")), "mode") unless @mode.nil?
end

Instance Attribute Details

#enabledBoolean (readonly)

Note:

Default: false

Indicates whether contributor insights is enabled.

Returns:

  • (Boolean)


20
21
22
# File 'dynamo_db/contributor_insights_specification.rb', line 20

def enabled
  @enabled
end

#modeAWSCDK::DynamoDB::ContributorInsightsMode? (readonly)

Note:

Default: ACCESSED_AND_THROTTLED_KEYS

Indicates the type of metrics captured by contributor insights.



25
26
27
# File 'dynamo_db/contributor_insights_specification.rb', line 25

def mode
  @mode
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'dynamo_db/contributor_insights_specification.rb', line 27

def self.jsii_properties
  {
    :enabled => "enabled",
    :mode => "mode",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'dynamo_db/contributor_insights_specification.rb', line 34

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