Class: AWSCDK::DataZone::CfnOwner::OwnerPropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataZone::CfnOwner::OwnerPropertiesProperty
- Defined in:
- data_zone/cfn_owner.rb
Overview
The properties of a domain unit's owner.
Instance Attribute Summary collapse
-
#group ⇒ AWSCDK::IResolvable, ...
readonly
Specifies that the domain unit owner is a group.
-
#user ⇒ AWSCDK::IResolvable, ...
readonly
Specifies that the domain unit owner is a user.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(group: nil, user: nil) ⇒ OwnerPropertiesProperty
constructor
A new instance of OwnerPropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(group: nil, user: nil) ⇒ OwnerPropertiesProperty
Returns a new instance of OwnerPropertiesProperty.
582 583 584 585 586 587 |
# File 'data_zone/cfn_owner.rb', line 582 def initialize(group: nil, user: nil) @group = group.is_a?(Hash) ? ::AWSCDK::DataZone::CfnOwner::OwnerGroupPropertiesProperty.new(**group.transform_keys(&:to_sym)) : group Jsii::Type.check_type(@group, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Pd25lci5Pd25lckdyb3VwUHJvcGVydGllc1Byb3BlcnR5In1dfX0=")), "group") unless @group.nil? @user = user.is_a?(Hash) ? ::AWSCDK::DataZone::CfnOwner::OwnerUserPropertiesProperty.new(**user.transform_keys(&:to_sym)) : user Jsii::Type.check_type(@user, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Pd25lci5Pd25lclVzZXJQcm9wZXJ0aWVzUHJvcGVydHkifV19fQ==")), "user") unless @user.nil? end |
Instance Attribute Details
#group ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies that the domain unit owner is a group.
593 594 595 |
# File 'data_zone/cfn_owner.rb', line 593 def group @group end |
#user ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies that the domain unit owner is a user.
598 599 600 |
# File 'data_zone/cfn_owner.rb', line 598 def user @user end |
Class Method Details
.jsii_properties ⇒ Object
600 601 602 603 604 605 |
# File 'data_zone/cfn_owner.rb', line 600 def self.jsii_properties { :group => "group", :user => "user", } end |
Instance Method Details
#to_jsii ⇒ Object
607 608 609 610 611 612 613 614 |
# File 'data_zone/cfn_owner.rb', line 607 def to_jsii result = {} result.merge!({ "group" => @group, "user" => @user, }) result.compact end |