Class: AWSCDK::PCS::CfnCluster::JwtAuthProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pcs/cfn_cluster.rb

Overview

The JWT authentication configuration for Slurm REST API access.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(jwt_key: nil) ⇒ JwtAuthProperty

Returns a new instance of JwtAuthProperty.

Parameters:



885
886
887
888
# File 'pcs/cfn_cluster.rb', line 885

def initialize(jwt_key: nil)
  @jwt_key = jwt_key.is_a?(Hash) ? ::AWSCDK::PCS::CfnCluster::JwtKeyProperty.new(**jwt_key.transform_keys(&:to_sym)) : jwt_key
  Jsii::Type.check_type(@jwt_key, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19wY3MuQ2ZuQ2x1c3Rlci5Kd3RLZXlQcm9wZXJ0eSJ9XX19")), "jwtKey") unless @jwt_key.nil?
end

Instance Attribute Details

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

The JWT key for Slurm REST API authentication.



894
895
896
# File 'pcs/cfn_cluster.rb', line 894

def jwt_key
  @jwt_key
end

Class Method Details

.jsii_propertiesObject



896
897
898
899
900
# File 'pcs/cfn_cluster.rb', line 896

def self.jsii_properties
  {
    :jwt_key => "jwtKey",
  }
end

Instance Method Details

#to_jsiiObject



902
903
904
905
906
907
908
# File 'pcs/cfn_cluster.rb', line 902

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