Class: AWSCDK::MediaStore::CfnContainer::MetricPolicyRuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaStore::CfnContainer::MetricPolicyRuleProperty
- Defined in:
- media_store/cfn_container.rb
Overview
A setting that enables metrics at the object level.
Each rule contains an object group and an object group name. If the policy includes the MetricPolicyRules parameter, you must include at least one rule. Each metric policy can include up to five rules by default. You can also request a quota increase to allow up to 300 rules per policy.
Instance Attribute Summary collapse
-
#object_group ⇒ String
readonly
A path or file name that defines which objects to include in the group.
-
#object_group_name ⇒ String
readonly
A name that allows you to refer to the object group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(object_group:, object_group_name:) ⇒ MetricPolicyRuleProperty
constructor
A new instance of MetricPolicyRuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(object_group:, object_group_name:) ⇒ MetricPolicyRuleProperty
Returns a new instance of MetricPolicyRuleProperty.
745 746 747 748 749 750 |
# File 'media_store/cfn_container.rb', line 745 def initialize(object_group:, object_group_name:) @object_group = object_group Jsii::Type.check_type(@object_group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "objectGroup") @object_group_name = object_group_name Jsii::Type.check_type(@object_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "objectGroupName") end |
Instance Attribute Details
#object_group ⇒ String (readonly)
A path or file name that defines which objects to include in the group.
Wildcards (*) are acceptable.
758 759 760 |
# File 'media_store/cfn_container.rb', line 758 def object_group @object_group end |
#object_group_name ⇒ String (readonly)
A name that allows you to refer to the object group.
763 764 765 |
# File 'media_store/cfn_container.rb', line 763 def object_group_name @object_group_name end |
Class Method Details
.jsii_properties ⇒ Object
765 766 767 768 769 770 |
# File 'media_store/cfn_container.rb', line 765 def self.jsii_properties { :object_group => "objectGroup", :object_group_name => "objectGroupName", } end |
Instance Method Details
#to_jsii ⇒ Object
772 773 774 775 776 777 778 779 |
# File 'media_store/cfn_container.rb', line 772 def to_jsii result = {} result.merge!({ "objectGroup" => @object_group, "objectGroupName" => @object_group_name, }) result.compact end |