Class: AWSCDK::CustomerProfiles::CfnDomain::DomainStatsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_domain.rb

Overview

Usage-specific statistics about the domain.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metering_profile_count: nil, object_count: nil, profile_count: nil, total_size: nil) ⇒ DomainStatsProperty

Returns a new instance of DomainStatsProperty.

Parameters:

  • metering_profile_count (Numeric, nil) (defaults to: nil)

    The number of profiles that you are currently paying for in the domain.

  • object_count (Numeric, nil) (defaults to: nil)

    The total number of objects in domain.

  • profile_count (Numeric, nil) (defaults to: nil)

    The total number of profiles currently in the domain.

  • total_size (Numeric, nil) (defaults to: nil)

    The total size, in bytes, of all objects in the domain.



920
921
922
923
924
925
926
927
928
929
# File 'customer_profiles/cfn_domain.rb', line 920

def initialize(metering_profile_count: nil, object_count: nil, profile_count: nil, total_size: nil)
  @metering_profile_count = metering_profile_count
  Jsii::Type.check_type(@metering_profile_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "meteringProfileCount") unless @metering_profile_count.nil?
  @object_count = object_count
  Jsii::Type.check_type(@object_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "objectCount") unless @object_count.nil?
  @profile_count = profile_count
  Jsii::Type.check_type(@profile_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "profileCount") unless @profile_count.nil?
  @total_size = total_size
  Jsii::Type.check_type(@total_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "totalSize") unless @total_size.nil?
end

Instance Attribute Details

#metering_profile_countNumeric? (readonly)

The number of profiles that you are currently paying for in the domain.

If you have more than 100 objects associated with a single profile, that profile counts as two profiles. If you have more than 200 objects, that profile counts as three, and so on.



937
938
939
# File 'customer_profiles/cfn_domain.rb', line 937

def metering_profile_count
  @metering_profile_count
end

#object_countNumeric? (readonly)

The total number of objects in domain.



942
943
944
# File 'customer_profiles/cfn_domain.rb', line 942

def object_count
  @object_count
end

#profile_countNumeric? (readonly)

The total number of profiles currently in the domain.



947
948
949
# File 'customer_profiles/cfn_domain.rb', line 947

def profile_count
  @profile_count
end

#total_sizeNumeric? (readonly)

The total size, in bytes, of all objects in the domain.



952
953
954
# File 'customer_profiles/cfn_domain.rb', line 952

def total_size
  @total_size
end

Class Method Details

.jsii_propertiesObject



954
955
956
957
958
959
960
961
# File 'customer_profiles/cfn_domain.rb', line 954

def self.jsii_properties
  {
    :metering_profile_count => "meteringProfileCount",
    :object_count => "objectCount",
    :profile_count => "profileCount",
    :total_size => "totalSize",
  }
end

Instance Method Details

#to_jsiiObject



963
964
965
966
967
968
969
970
971
972
# File 'customer_profiles/cfn_domain.rb', line 963

def to_jsii
  result = {}
  result.merge!({
    "meteringProfileCount" => @metering_profile_count,
    "objectCount" => @object_count,
    "profileCount" => @profile_count,
    "totalSize" => @total_size,
  })
  result.compact
end