Class: AWSCDK::DynamoDB::ContributorInsightsSpecification
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DynamoDB::ContributorInsightsSpecification
- Defined in:
- dynamo_db/contributor_insights_specification.rb
Overview
Reference to ContributorInsightsSpecification.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
readonly
Indicates whether contributor insights is enabled.
-
#mode ⇒ AWSCDK::DynamoDB::ContributorInsightsMode?
readonly
Indicates the type of metrics captured by contributor insights.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled:, mode: nil) ⇒ ContributorInsightsSpecification
constructor
A new instance of ContributorInsightsSpecification.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled:, mode: nil) ⇒ ContributorInsightsSpecification
Returns a new instance of ContributorInsightsSpecification.
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
#enabled ⇒ Boolean (readonly)
Note:
Default: false
Indicates whether contributor insights is enabled.
20 21 22 |
# File 'dynamo_db/contributor_insights_specification.rb', line 20 def enabled @enabled end |
#mode ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |