Class: AWSCDK::Invoicing::CfnInvoiceUnitProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
invoicing/cfn_invoice_unit_props.rb

Overview

Properties for defining a CfnInvoiceUnit.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(invoice_receiver:, name:, rule:, description: nil, resource_tags: nil, tax_inheritance_disabled: nil) ⇒ CfnInvoiceUnitProps

Returns a new instance of CfnInvoiceUnitProps.

Parameters:

  • invoice_receiver (String)

    The account that receives invoices related to the invoice unit.

  • name (String)

    A unique name that is distinctive within your AWS .

  • rule (AWSCDK::IResolvable, AWSCDK::Invoicing::CfnInvoiceUnit::RuleProperty)

    An InvoiceUnitRule object used the categorize invoice units.

  • description (String, nil) (defaults to: nil)

    The assigned description for an invoice unit.

  • resource_tags (Array<AWSCDK::Invoicing::CfnInvoiceUnit::ResourceTagProperty>, nil) (defaults to: nil)

    The tag structure that contains a tag key and value.

  • tax_inheritance_disabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Whether the invoice unit based tax inheritance is/ should be enabled or disabled.



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 = resource_tags.is_a?(Array) ? resource_tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::Invoicing::CfnInvoiceUnit::ResourceTagProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : resource_tags
  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

#descriptionString? (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_receiverString (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

#nameString (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_tagsArray<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
  @resource_tags
end

#ruleAWSCDK::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_disabledBoolean, ... (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_propertiesObject



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_jsiiObject



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