Class: AWSCDK::DataZone::CfnDomainUnitProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
data_zone/cfn_domain_unit_props.rb

Overview

Properties for defining a CfnDomainUnit.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_identifier:, name:, parent_domain_unit_identifier:, description: nil) ⇒ CfnDomainUnitProps

Returns a new instance of CfnDomainUnitProps.

Parameters:

  • domain_identifier (String)

    The ID of the domain where you want to crate a domain unit.

  • name (String)

    The name of the domain unit.

  • parent_domain_unit_identifier (String)

    The ID of the parent domain unit.

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

    The description of the domain unit.



13
14
15
16
17
18
19
20
21
22
# File 'data_zone/cfn_domain_unit_props.rb', line 13

def initialize(domain_identifier:, name:, parent_domain_unit_identifier:, description: nil)
  @domain_identifier = domain_identifier
  Jsii::Type.check_type(@domain_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainIdentifier")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @parent_domain_unit_identifier = parent_domain_unit_identifier
  Jsii::Type.check_type(@parent_domain_unit_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parentDomainUnitIdentifier")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the domain unit.



43
44
45
# File 'data_zone/cfn_domain_unit_props.rb', line 43

def description
  @description
end

#domain_identifierString (readonly)

The ID of the domain where you want to crate a domain unit.



28
29
30
# File 'data_zone/cfn_domain_unit_props.rb', line 28

def domain_identifier
  @domain_identifier
end

#nameString (readonly)

The name of the domain unit.



33
34
35
# File 'data_zone/cfn_domain_unit_props.rb', line 33

def name
  @name
end

#parent_domain_unit_identifierString (readonly)

The ID of the parent domain unit.



38
39
40
# File 'data_zone/cfn_domain_unit_props.rb', line 38

def parent_domain_unit_identifier
  @parent_domain_unit_identifier
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'data_zone/cfn_domain_unit_props.rb', line 45

def self.jsii_properties
  {
    :domain_identifier => "domainIdentifier",
    :name => "name",
    :parent_domain_unit_identifier => "parentDomainUnitIdentifier",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'data_zone/cfn_domain_unit_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "domainIdentifier" => @domain_identifier,
    "name" => @name,
    "parentDomainUnitIdentifier" => @parent_domain_unit_identifier,
    "description" => @description,
  })
  result.compact
end