Class: AWSCDK::Invoicing::CfnInvoiceUnitProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Invoicing::CfnInvoiceUnitProps
- Defined in:
- invoicing/cfn_invoice_unit_props.rb
Overview
Properties for defining a CfnInvoiceUnit.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The assigned description for an invoice unit.
-
#invoice_receiver ⇒ String
readonly
The account that receives invoices related to the invoice unit.
-
#name ⇒ String
readonly
A unique name that is distinctive within your AWS .
-
#resource_tags ⇒ Array<AWSCDK::Invoicing::CfnInvoiceUnit::ResourceTagProperty>?
readonly
The tag structure that contains a tag key and value.
-
#rule ⇒ AWSCDK::IResolvable, AWSCDK::Invoicing::CfnInvoiceUnit::RuleProperty
readonly
An
InvoiceUnitRuleobject used the categorize invoice units. -
#tax_inheritance_disabled ⇒ Boolean, ...
readonly
Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(invoice_receiver:, name:, rule:, description: nil, resource_tags: nil, tax_inheritance_disabled: nil) ⇒ CfnInvoiceUnitProps
constructor
A new instance of CfnInvoiceUnitProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(invoice_receiver:, name:, rule:, description: nil, resource_tags: nil, tax_inheritance_disabled: nil) ⇒ CfnInvoiceUnitProps
Returns a new instance of CfnInvoiceUnitProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'invoicing/cfn_invoice_unit_props.rb', line 15 def initialize(invoice_receiver:, name:, rule:, description: nil, resource_tags: nil, tax_inheritance_disabled: nil) @invoice_receiver = invoice_receiver Jsii::Type.check_type(@invoice_receiver, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "invoiceReceiver") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @rule = rule.is_a?(Hash) ? ::AWSCDK::Invoicing::CfnInvoiceUnit::RuleProperty.new(**rule.transform_keys(&:to_sym)) : rule Jsii::Type.check_type(@rule, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pbnZvaWNpbmcuQ2ZuSW52b2ljZVVuaXQuUnVsZVByb3BlcnR5In1dfX0=")), "rule") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @resource_tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::Invoicing::CfnInvoiceUnit::ResourceTagProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@resource_tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pbnZvaWNpbmcuQ2ZuSW52b2ljZVVuaXQuUmVzb3VyY2VUYWdQcm9wZXJ0eSJ9LCJraW5kIjoiYXJyYXkifX0=")), "resourceTags") unless @resource_tags.nil? @tax_inheritance_disabled = tax_inheritance_disabled Jsii::Type.check_type(@tax_inheritance_disabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "taxInheritanceDisabled") unless @tax_inheritance_disabled.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
The assigned description for an invoice unit.
This information can't be modified or deleted.
51 52 53 |
# File 'invoicing/cfn_invoice_unit_props.rb', line 51 def description @description end |
#invoice_receiver ⇒ String (readonly)
The account that receives invoices related to the invoice unit.
34 35 36 |
# File 'invoicing/cfn_invoice_unit_props.rb', line 34 def invoice_receiver @invoice_receiver end |
#name ⇒ String (readonly)
A unique name that is distinctive within your AWS .
39 40 41 |
# File 'invoicing/cfn_invoice_unit_props.rb', line 39 def name @name end |
#resource_tags ⇒ Array<AWSCDK::Invoicing::CfnInvoiceUnit::ResourceTagProperty>? (readonly)
The tag structure that contains a tag key and value.
56 57 58 |
# File 'invoicing/cfn_invoice_unit_props.rb', line 56 def @resource_tags end |
#rule ⇒ AWSCDK::IResolvable, AWSCDK::Invoicing::CfnInvoiceUnit::RuleProperty (readonly)
An InvoiceUnitRule object used the categorize invoice units.
44 45 46 |
# File 'invoicing/cfn_invoice_unit_props.rb', line 44 def rule @rule end |
#tax_inheritance_disabled ⇒ Boolean, ... (readonly)
Whether the invoice unit based tax inheritance is/ should be enabled or disabled.
61 62 63 |
# File 'invoicing/cfn_invoice_unit_props.rb', line 61 def tax_inheritance_disabled @tax_inheritance_disabled end |
Class Method Details
.jsii_properties ⇒ Object
63 64 65 66 67 68 69 70 71 72 |
# File 'invoicing/cfn_invoice_unit_props.rb', line 63 def self.jsii_properties { :invoice_receiver => "invoiceReceiver", :name => "name", :rule => "rule", :description => "description", :resource_tags => "resourceTags", :tax_inheritance_disabled => "taxInheritanceDisabled", } end |
Instance Method Details
#to_jsii ⇒ Object
74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'invoicing/cfn_invoice_unit_props.rb', line 74 def to_jsii result = {} result.merge!({ "invoiceReceiver" => @invoice_receiver, "name" => @name, "rule" => @rule, "description" => @description, "resourceTags" => @resource_tags, "taxInheritanceDisabled" => @tax_inheritance_disabled, }) result.compact end |