Class: AWSCDK::ExternalAnthropic::CfnWorkspaceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ExternalAnthropic::CfnWorkspaceProps
- Defined in:
- external_anthropic/cfn_workspace_props.rb
Overview
Properties for defining a CfnWorkspace.
Instance Attribute Summary collapse
-
#data_residency ⇒ AWSCDK::IResolvable, ...
readonly
Data residency configuration for the workspace.
-
#name ⇒ String
readonly
The name of the workspace.
-
#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(name:, data_residency: nil, tags: nil) ⇒ CfnWorkspaceProps
constructor
A new instance of CfnWorkspaceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, data_residency: nil, tags: nil) ⇒ CfnWorkspaceProps
Returns a new instance of CfnWorkspaceProps.
12 13 14 15 16 17 18 19 |
# File 'external_anthropic/cfn_workspace_props.rb', line 12 def initialize(name:, data_residency: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @data_residency = data_residency.is_a?(Hash) ? ::AWSCDK::ExternalAnthropic::CfnWorkspace::DataResidencyProperty.new(**data_residency.transform_keys(&:to_sym)) : data_residency Jsii::Type.check_type(@data_residency, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hd3NleHRlcm5hbGFudGhyb3BpYy5DZm5Xb3Jrc3BhY2UuRGF0YVJlc2lkZW5jeVByb3BlcnR5In1dfX0=")), "dataResidency") unless @data_residency.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
#data_residency ⇒ AWSCDK::IResolvable, ... (readonly)
Data residency configuration for the workspace.
WorkspaceGeo is immutable after creation.
32 33 34 |
# File 'external_anthropic/cfn_workspace_props.rb', line 32 def data_residency @data_residency end |
#name ⇒ String (readonly)
The name of the workspace.
25 26 27 |
# File 'external_anthropic/cfn_workspace_props.rb', line 25 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
37 38 39 |
# File 'external_anthropic/cfn_workspace_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'external_anthropic/cfn_workspace_props.rb', line 39 def self.jsii_properties { :name => "name", :data_residency => "dataResidency", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'external_anthropic/cfn_workspace_props.rb', line 47 def to_jsii result = {} result.merge!({ "name" => @name, "dataResidency" => @data_residency, "tags" => @tags, }) result.compact end |