Class: AWSCDK::DataZone::CfnOwnerProps

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

Overview

Properties for defining a CfnOwner.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_identifier:, entity_identifier:, entity_type:, owner:) ⇒ CfnOwnerProps

Returns a new instance of CfnOwnerProps.

Parameters:

  • domain_identifier (String)

    The ID of the domain in which you want to add the entity owner.

  • entity_identifier (String)

    The ID of the entity to which you want to add an owner.

  • entity_type (String)

    The type of an entity.

  • owner (AWSCDK::IResolvable, AWSCDK::DataZone::CfnOwner::OwnerPropertiesProperty)

    The owner that you want to add to the entity.



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

def initialize(domain_identifier:, entity_identifier:, entity_type:, owner:)
  @domain_identifier = domain_identifier
  Jsii::Type.check_type(@domain_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainIdentifier")
  @entity_identifier = entity_identifier
  Jsii::Type.check_type(@entity_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityIdentifier")
  @entity_type = entity_type
  Jsii::Type.check_type(@entity_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityType")
  @owner = owner.is_a?(Hash) ? ::AWSCDK::DataZone::CfnOwner::OwnerPropertiesProperty.new(**owner.transform_keys(&:to_sym)) : owner
  Jsii::Type.check_type(@owner, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Pd25lci5Pd25lclByb3BlcnRpZXNQcm9wZXJ0eSJ9XX19")), "owner")
end

Instance Attribute Details

#domain_identifierString (readonly)

The ID of the domain in which you want to add the entity owner.



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

def domain_identifier
  @domain_identifier
end

#entity_identifierString (readonly)

The ID of the entity to which you want to add an owner.



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

def entity_identifier
  @entity_identifier
end

#entity_typeString (readonly)

The type of an entity.



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

def entity_type
  @entity_type
end

#ownerAWSCDK::IResolvable, AWSCDK::DataZone::CfnOwner::OwnerPropertiesProperty (readonly)

The owner that you want to add to the entity.



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

def owner
  @owner
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :domain_identifier => "domainIdentifier",
    :entity_identifier => "entityIdentifier",
    :entity_type => "entityType",
    :owner => "owner",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "domainIdentifier" => @domain_identifier,
    "entityIdentifier" => @entity_identifier,
    "entityType" => @entity_type,
    "owner" => @owner,
  })
  result.compact
end