Class: AWSCDK::DynamoDB::CfnTable::ContributorInsightsSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DynamoDB::CfnTable::ContributorInsightsSpecificationProperty
- Defined in:
- dynamo_db/cfn_table.rb
Overview
Configures contributor insights settings for a table or one of its indexes.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false).
-
#mode ⇒ String?
readonly
Specifies the CloudWatch Contributor Insights mode for a table.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled:, mode: nil) ⇒ ContributorInsightsSpecificationProperty
constructor
A new instance of ContributorInsightsSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled:, mode: nil) ⇒ ContributorInsightsSpecificationProperty
Returns a new instance of ContributorInsightsSpecificationProperty.
867 868 869 870 871 872 |
# File 'dynamo_db/cfn_table.rb', line 867 def initialize(enabled:, mode: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") @mode = mode Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode") unless @mode.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean, AWSCDK::IResolvable (readonly)
Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false).
878 879 880 |
# File 'dynamo_db/cfn_table.rb', line 878 def enabled @enabled end |
#mode ⇒ String? (readonly)
Specifies the CloudWatch Contributor Insights mode for a table.
Valid values are ACCESSED_AND_THROTTLED_KEYS (tracks all access and throttled events) or THROTTLED_KEYS (tracks only throttled events). This setting determines what type of contributor insights data is collected for the table.
885 886 887 |
# File 'dynamo_db/cfn_table.rb', line 885 def mode @mode end |
Class Method Details
.jsii_properties ⇒ Object
887 888 889 890 891 892 |
# File 'dynamo_db/cfn_table.rb', line 887 def self.jsii_properties { :enabled => "enabled", :mode => "mode", } end |
Instance Method Details
#to_jsii ⇒ Object
894 895 896 897 898 899 900 901 |
# File 'dynamo_db/cfn_table.rb', line 894 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "mode" => @mode, }) result.compact end |