Class: AWSCDK::WorkspacesInstances::CfnWorkspaceInstanceProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
workspaces_instances/cfn_workspace_instance_props.rb

Overview

Properties for defining a CfnWorkspaceInstance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(managed_instance: nil, tags: nil) ⇒ CfnWorkspaceInstanceProps

Returns a new instance of CfnWorkspaceInstanceProps.

Parameters:



11
12
13
14
15
16
# File 'workspaces_instances/cfn_workspace_instance_props.rb', line 11

def initialize(managed_instance: nil, tags: nil)
  @managed_instance = managed_instance.is_a?(Hash) ? ::AWSCDK::WorkspacesInstances::CfnWorkspaceInstance::ManagedInstanceProperty.new(**managed_instance.transform_keys(&:to_sym)) : managed_instance
  Jsii::Type.check_type(@managed_instance, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193b3Jrc3BhY2VzaW5zdGFuY2VzLkNmbldvcmtzcGFjZUluc3RhbmNlLk1hbmFnZWRJbnN0YW5jZVByb3BlcnR5In1dfX0=")), "managedInstance") unless @managed_instance.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#managed_instanceAWSCDK::IResolvable, ... (readonly)



20
21
22
# File 'workspaces_instances/cfn_workspace_instance_props.rb', line 20

def managed_instance
  @managed_instance
end

#tagsArray<AWSCDK::CfnTag>? (readonly)



23
24
25
# File 'workspaces_instances/cfn_workspace_instance_props.rb', line 23

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'workspaces_instances/cfn_workspace_instance_props.rb', line 25

def self.jsii_properties
  {
    :managed_instance => "managedInstance",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'workspaces_instances/cfn_workspace_instance_props.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "managedInstance" => @managed_instance,
    "tags" => @tags,
  })
  result.compact
end