Class: AWSCDK::WorkspacesInstances::CfnWorkspaceInstance::IAMInstanceProfileSpecificationProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn: nil, name: nil) ⇒ IAMInstanceProfileSpecificationProperty

Returns a new instance of IAMInstanceProfileSpecificationProperty.

Parameters:

  • arn (String, nil) (defaults to: nil)
  • name (String, nil) (defaults to: nil)


908
909
910
911
912
913
# File 'workspaces_instances/cfn_workspace_instance.rb', line 908

def initialize(arn: nil, name: nil)
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
end

Instance Attribute Details

#arnString? (readonly)



917
918
919
# File 'workspaces_instances/cfn_workspace_instance.rb', line 917

def arn
  @arn
end

#nameString? (readonly)



920
921
922
# File 'workspaces_instances/cfn_workspace_instance.rb', line 920

def name
  @name
end

Class Method Details

.jsii_propertiesObject



922
923
924
925
926
927
# File 'workspaces_instances/cfn_workspace_instance.rb', line 922

def self.jsii_properties
  {
    :arn => "arn",
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



929
930
931
932
933
934
935
936
# File 'workspaces_instances/cfn_workspace_instance.rb', line 929

def to_jsii
  result = {}
  result.merge!({
    "arn" => @arn,
    "name" => @name,
  })
  result.compact
end