Class: AWSCDK::BCMPricingCalculator::CfnBillScenarioProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BCMPricingCalculator::CfnBillScenarioProps
- Defined in:
- bcm_pricing_calculator/cfn_bill_scenario_props.rb
Overview
Properties for defining a CfnBillScenario.
Instance Attribute Summary collapse
-
#cost_category_group_sharing_preference_arn ⇒ String?
readonly
The ARN of the cost category group sharing preference.
-
#expires_at ⇒ String?
readonly
The timestamp when the bill scenario expires.
- #group_sharing_preference ⇒ String? readonly
-
#name ⇒ String?
readonly
The name of the bill scenario.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cost_category_group_sharing_preference_arn: nil, expires_at: nil, group_sharing_preference: nil, name: nil, tags: nil) ⇒ CfnBillScenarioProps
constructor
A new instance of CfnBillScenarioProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cost_category_group_sharing_preference_arn: nil, expires_at: nil, group_sharing_preference: nil, name: nil, tags: nil) ⇒ CfnBillScenarioProps
Returns a new instance of CfnBillScenarioProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 14 def initialize(cost_category_group_sharing_preference_arn: nil, expires_at: nil, group_sharing_preference: nil, name: nil, tags: nil) @cost_category_group_sharing_preference_arn = cost_category_group_sharing_preference_arn Jsii::Type.check_type(@cost_category_group_sharing_preference_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "costCategoryGroupSharingPreferenceArn") unless @cost_category_group_sharing_preference_arn.nil? @expires_at = expires_at Jsii::Type.check_type(@expires_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expiresAt") unless @expires_at.nil? @group_sharing_preference = group_sharing_preference Jsii::Type.check_type(@group_sharing_preference, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupSharingPreference") unless @group_sharing_preference.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.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
#cost_category_group_sharing_preference_arn ⇒ String? (readonly)
The ARN of the cost category group sharing preference.
31 32 33 |
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 31 def cost_category_group_sharing_preference_arn @cost_category_group_sharing_preference_arn end |
#expires_at ⇒ String? (readonly)
The timestamp when the bill scenario expires.
36 37 38 |
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 36 def expires_at @expires_at end |
#group_sharing_preference ⇒ String? (readonly)
39 40 41 |
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 39 def group_sharing_preference @group_sharing_preference end |
#name ⇒ String? (readonly)
The name of the bill scenario.
44 45 46 |
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 44 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
49 50 51 |
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 49 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 51 def self.jsii_properties { :cost_category_group_sharing_preference_arn => "costCategoryGroupSharingPreferenceArn", :expires_at => "expiresAt", :group_sharing_preference => "groupSharingPreference", :name => "name", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'bcm_pricing_calculator/cfn_bill_scenario_props.rb', line 61 def to_jsii result = {} result.merge!({ "costCategoryGroupSharingPreferenceArn" => @cost_category_group_sharing_preference_arn, "expiresAt" => @expires_at, "groupSharingPreference" => @group_sharing_preference, "name" => @name, "tags" => @tags, }) result.compact end |