Class: AWSCDK::DynamoDB::CfnTable::ContributorInsightsSpecificationProperty

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

Overview

Configures contributor insights settings for a table or one of its indexes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ContributorInsightsSpecificationProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable)

    Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false).

  • mode (String, nil) (defaults to: nil)

    Specifies the CloudWatch Contributor Insights mode for a table.



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

#enabledBoolean, 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

#modeString? (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_propertiesObject



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_jsiiObject



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