Class: AWSCDK::Grafana::CfnWorkspace::RoleValuesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Grafana::CfnWorkspace::RoleValuesProperty
- Defined in:
- grafana/cfn_workspace.rb
Overview
This structure defines which groups defined in the SAML assertion attribute are to be mapped to the Grafana Admin and Editor roles in the workspace.
SAML authenticated users not part of Admin or Editor role groups have Viewer permission over the workspace.
Instance Attribute Summary collapse
-
#admin ⇒ Array<String>?
readonly
A list of groups from the SAML assertion attribute to grant the Grafana
Adminrole to. -
#editor ⇒ Array<String>?
readonly
A list of groups from the SAML assertion attribute to grant the Grafana
Editorrole to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(admin: nil, editor: nil) ⇒ RoleValuesProperty
constructor
A new instance of RoleValuesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(admin: nil, editor: nil) ⇒ RoleValuesProperty
Returns a new instance of RoleValuesProperty.
987 988 989 990 991 992 |
# File 'grafana/cfn_workspace.rb', line 987 def initialize(admin: nil, editor: nil) @admin = admin Jsii::Type.check_type(@admin, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "admin") unless @admin.nil? @editor = editor Jsii::Type.check_type(@editor, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "editor") unless @editor.nil? end |
Instance Attribute Details
#admin ⇒ Array<String>? (readonly)
A list of groups from the SAML assertion attribute to grant the Grafana Admin role to.
998 999 1000 |
# File 'grafana/cfn_workspace.rb', line 998 def admin @admin end |
#editor ⇒ Array<String>? (readonly)
A list of groups from the SAML assertion attribute to grant the Grafana Editor role to.
1003 1004 1005 |
# File 'grafana/cfn_workspace.rb', line 1003 def editor @editor end |
Class Method Details
.jsii_properties ⇒ Object
1005 1006 1007 1008 1009 1010 |
# File 'grafana/cfn_workspace.rb', line 1005 def self.jsii_properties { :admin => "admin", :editor => "editor", } end |
Instance Method Details
#to_jsii ⇒ Object
1012 1013 1014 1015 1016 1017 1018 1019 |
# File 'grafana/cfn_workspace.rb', line 1012 def to_jsii result = {} result.merge!({ "admin" => @admin, "editor" => @editor, }) result.compact end |