Class: AWSCDK::Deadline::CfnQueue::JobRunAsUserProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
deadline/cfn_queue.rb

Overview

Identifies the user for a job.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(run_as:, posix: nil, windows: nil) ⇒ JobRunAsUserProperty

Returns a new instance of JobRunAsUserProperty.

Parameters:



705
706
707
708
709
710
711
712
# File 'deadline/cfn_queue.rb', line 705

def initialize(run_as:, posix: nil, windows: nil)
  @run_as = run_as
  Jsii::Type.check_type(@run_as, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "runAs")
  @posix = posix.is_a?(Hash) ? ::AWSCDK::Deadline::CfnQueue::PosixUserProperty.new(**posix.transform_keys(&:to_sym)) : posix
  Jsii::Type.check_type(@posix, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZWFkbGluZS5DZm5RdWV1ZS5Qb3NpeFVzZXJQcm9wZXJ0eSJ9XX19")), "posix") unless @posix.nil?
  @windows = windows.is_a?(Hash) ? ::AWSCDK::Deadline::CfnQueue::WindowsUserProperty.new(**windows.transform_keys(&:to_sym)) : windows
  Jsii::Type.check_type(@windows, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZWFkbGluZS5DZm5RdWV1ZS5XaW5kb3dzVXNlclByb3BlcnR5In1dfX0=")), "windows") unless @windows.nil?
end

Instance Attribute Details

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

The user and group that the jobs in the queue run as.



723
724
725
# File 'deadline/cfn_queue.rb', line 723

def posix
  @posix
end

#run_asString (readonly)

Specifies whether the job should run using the queue's system user or if the job should run using the worker agent system user.



718
719
720
# File 'deadline/cfn_queue.rb', line 718

def run_as
  @run_as
end

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

Identifies a Microsoft Windows user.



728
729
730
# File 'deadline/cfn_queue.rb', line 728

def windows
  @windows
end

Class Method Details

.jsii_propertiesObject



730
731
732
733
734
735
736
# File 'deadline/cfn_queue.rb', line 730

def self.jsii_properties
  {
    :run_as => "runAs",
    :posix => "posix",
    :windows => "windows",
  }
end

Instance Method Details

#to_jsiiObject



738
739
740
741
742
743
744
745
746
# File 'deadline/cfn_queue.rb', line 738

def to_jsii
  result = {}
  result.merge!({
    "runAs" => @run_as,
    "posix" => @posix,
    "windows" => @windows,
  })
  result.compact
end