Class: AWSCDK::PCS::CfnCluster::JwtAuthProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCS::CfnCluster::JwtAuthProperty
- Defined in:
- pcs/cfn_cluster.rb
Overview
The JWT authentication configuration for Slurm REST API access.
Instance Attribute Summary collapse
-
#jwt_key ⇒ AWSCDK::IResolvable, ...
readonly
The JWT key for Slurm REST API authentication.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(jwt_key: nil) ⇒ JwtAuthProperty
constructor
A new instance of JwtAuthProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(jwt_key: nil) ⇒ JwtAuthProperty
Returns a new instance of JwtAuthProperty.
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_key ⇒ AWSCDK::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_properties ⇒ Object
896 897 898 899 900 |
# File 'pcs/cfn_cluster.rb', line 896 def self.jsii_properties { :jwt_key => "jwtKey", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |