Class: AWSCDK::Sagemaker::CfnSpaceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnSpaceProps
- Defined in:
- sagemaker/cfn_space_props.rb
Overview
Properties for defining a CfnSpace.
Instance Attribute Summary collapse
-
#domain_id ⇒ String
readonly
The ID of the associated domain.
-
#ownership_settings ⇒ AWSCDK::IResolvable, ...
readonly
The collection of ownership settings for a space.
-
#space_display_name ⇒ String?
readonly
The name of the space that appears in the Studio UI.
-
#space_name ⇒ String
readonly
The name of the space.
-
#space_settings ⇒ AWSCDK::IResolvable, ...
readonly
A collection of space settings.
-
#space_sharing_settings ⇒ AWSCDK::IResolvable, ...
readonly
A collection of space sharing settings.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain_id:, space_name:, ownership_settings: nil, space_display_name: nil, space_settings: nil, space_sharing_settings: nil, tags: nil) ⇒ CfnSpaceProps
constructor
A new instance of CfnSpaceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(domain_id:, space_name:, ownership_settings: nil, space_display_name: nil, space_settings: nil, space_sharing_settings: nil, tags: nil) ⇒ CfnSpaceProps
Returns a new instance of CfnSpaceProps.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'sagemaker/cfn_space_props.rb', line 16 def initialize(domain_id:, space_name:, ownership_settings: nil, space_display_name: nil, space_settings: nil, space_sharing_settings: nil, tags: nil) @domain_id = domain_id Jsii::Type.check_type(@domain_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainId") @space_name = space_name Jsii::Type.check_type(@space_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "spaceName") @ownership_settings = ownership_settings.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnSpace::OwnershipSettingsProperty.new(**ownership_settings.transform_keys(&:to_sym)) : ownership_settings Jsii::Type.check_type(@ownership_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuU3BhY2UuT3duZXJzaGlwU2V0dGluZ3NQcm9wZXJ0eSJ9XX19")), "ownershipSettings") unless @ownership_settings.nil? @space_display_name = space_display_name Jsii::Type.check_type(@space_display_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "spaceDisplayName") unless @space_display_name.nil? @space_settings = space_settings.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnSpace::SpaceSettingsProperty.new(**space_settings.transform_keys(&:to_sym)) : space_settings Jsii::Type.check_type(@space_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuU3BhY2UuU3BhY2VTZXR0aW5nc1Byb3BlcnR5In1dfX0=")), "spaceSettings") unless @space_settings.nil? @space_sharing_settings = space_sharing_settings.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnSpace::SpaceSharingSettingsProperty.new(**space_sharing_settings.transform_keys(&:to_sym)) : space_sharing_settings Jsii::Type.check_type(@space_sharing_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuU3BhY2UuU3BhY2VTaGFyaW5nU2V0dGluZ3NQcm9wZXJ0eSJ9XX19")), "spaceSharingSettings") unless @space_sharing_settings.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#domain_id ⇒ String (readonly)
The ID of the associated domain.
37 38 39 |
# File 'sagemaker/cfn_space_props.rb', line 37 def domain_id @domain_id end |
#ownership_settings ⇒ AWSCDK::IResolvable, ... (readonly)
The collection of ownership settings for a space.
47 48 49 |
# File 'sagemaker/cfn_space_props.rb', line 47 def ownership_settings @ownership_settings end |
#space_display_name ⇒ String? (readonly)
The name of the space that appears in the Studio UI.
52 53 54 |
# File 'sagemaker/cfn_space_props.rb', line 52 def space_display_name @space_display_name end |
#space_name ⇒ String (readonly)
The name of the space.
42 43 44 |
# File 'sagemaker/cfn_space_props.rb', line 42 def space_name @space_name end |
#space_settings ⇒ AWSCDK::IResolvable, ... (readonly)
A collection of space settings.
57 58 59 |
# File 'sagemaker/cfn_space_props.rb', line 57 def space_settings @space_settings end |
#space_sharing_settings ⇒ AWSCDK::IResolvable, ... (readonly)
A collection of space sharing settings.
62 63 64 |
# File 'sagemaker/cfn_space_props.rb', line 62 def space_sharing_settings @space_sharing_settings end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
69 70 71 |
# File 'sagemaker/cfn_space_props.rb', line 69 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 |
# File 'sagemaker/cfn_space_props.rb', line 71 def self.jsii_properties { :domain_id => "domainId", :space_name => "spaceName", :ownership_settings => "ownershipSettings", :space_display_name => "spaceDisplayName", :space_settings => "spaceSettings", :space_sharing_settings => "spaceSharingSettings", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'sagemaker/cfn_space_props.rb', line 83 def to_jsii result = {} result.merge!({ "domainId" => @domain_id, "spaceName" => @space_name, "ownershipSettings" => @ownership_settings, "spaceDisplayName" => @space_display_name, "spaceSettings" => @space_settings, "spaceSharingSettings" => @space_sharing_settings, "tags" => @tags, }) result.compact end |