Class: AWSCDK::BillingConductor::CfnPricingPlanProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BillingConductor::CfnPricingPlanProps
- Defined in:
- billing_conductor/cfn_pricing_plan_props.rb
Overview
Properties for defining a CfnPricingPlan.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The pricing plan description.
-
#name ⇒ String
readonly
The name of a pricing plan.
-
#pricing_rule_arns ⇒ Array<String>?
readonly
The
PricingRuleArnsthat are associated with the Pricing Plan. -
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A map that contains tag keys and tag values that are attached to a pricing plan.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, description: nil, pricing_rule_arns: nil, tags: nil) ⇒ CfnPricingPlanProps
constructor
A new instance of CfnPricingPlanProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, description: nil, pricing_rule_arns: nil, tags: nil) ⇒ CfnPricingPlanProps
Returns a new instance of CfnPricingPlanProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'billing_conductor/cfn_pricing_plan_props.rb', line 13 def initialize(name:, description: nil, pricing_rule_arns: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @pricing_rule_arns = pricing_rule_arns Jsii::Type.check_type(@pricing_rule_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "pricingRuleArns") unless @pricing_rule_arns.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The pricing plan description.
33 34 35 |
# File 'billing_conductor/cfn_pricing_plan_props.rb', line 33 def description @description end |
#name ⇒ String (readonly)
The name of a pricing plan.
28 29 30 |
# File 'billing_conductor/cfn_pricing_plan_props.rb', line 28 def name @name end |
#pricing_rule_arns ⇒ Array<String>? (readonly)
The PricingRuleArns that are associated with the Pricing Plan.
38 39 40 |
# File 'billing_conductor/cfn_pricing_plan_props.rb', line 38 def pricing_rule_arns @pricing_rule_arns end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A map that contains tag keys and tag values that are attached to a pricing plan.
43 44 45 |
# File 'billing_conductor/cfn_pricing_plan_props.rb', line 43 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'billing_conductor/cfn_pricing_plan_props.rb', line 45 def self.jsii_properties { :name => "name", :description => "description", :pricing_rule_arns => "pricingRuleArns", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'billing_conductor/cfn_pricing_plan_props.rb', line 54 def to_jsii result = {} result.merge!({ "name" => @name, "description" => @description, "pricingRuleArns" => @pricing_rule_arns, "tags" => @tags, }) result.compact end |