Class: AWSCDK::DynamoDB::CfnGlobalTable::ContributorInsightsSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DynamoDB::CfnGlobalTable::ContributorInsightsSpecificationProperty
- Defined in:
- dynamo_db/cfn_global_table.rb
Overview
Configures contributor insights settings for a replica 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 global 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.
922 923 924 925 926 927 |
# File 'dynamo_db/cfn_global_table.rb', line 922 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).
933 934 935 |
# File 'dynamo_db/cfn_global_table.rb', line 933 def enabled @enabled end |
#mode ⇒ String? (readonly)
Specifies the CloudWatch Contributor Insights mode for a global 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 global table.
940 941 942 |
# File 'dynamo_db/cfn_global_table.rb', line 940 def mode @mode end |
Class Method Details
.jsii_properties ⇒ Object
942 943 944 945 946 947 |
# File 'dynamo_db/cfn_global_table.rb', line 942 def self.jsii_properties { :enabled => "enabled", :mode => "mode", } end |
Instance Method Details
#to_jsii ⇒ Object
949 950 951 952 953 954 955 956 |
# File 'dynamo_db/cfn_global_table.rb', line 949 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "mode" => @mode, }) result.compact end |