Class: AWSCDK::DataZone::CfnOwnerProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataZone::CfnOwnerProps
- Defined in:
- data_zone/cfn_owner_props.rb
Overview
Properties for defining a CfnOwner.
Instance Attribute Summary collapse
-
#domain_identifier ⇒ String
readonly
The ID of the domain in which you want to add the entity owner.
-
#entity_identifier ⇒ String
readonly
The ID of the entity to which you want to add an owner.
-
#entity_type ⇒ String
readonly
The type of an entity.
-
#owner ⇒ AWSCDK::IResolvable, AWSCDK::DataZone::CfnOwner::OwnerPropertiesProperty
readonly
The owner that you want to add to the entity.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain_identifier:, entity_identifier:, entity_type:, owner:) ⇒ CfnOwnerProps
constructor
A new instance of CfnOwnerProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(domain_identifier:, entity_identifier:, entity_type:, owner:) ⇒ CfnOwnerProps
Returns a new instance of CfnOwnerProps.
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_identifier ⇒ String (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_identifier ⇒ String (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_type ⇒ String (readonly)
The type of an entity.
38 39 40 |
# File 'data_zone/cfn_owner_props.rb', line 38 def entity_type @entity_type end |
#owner ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |