Class: AWSCDK::Grafana::CfnWorkspace::AssertionAttributesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
grafana/cfn_workspace.rb

Overview

A structure that defines which attributes in the IdP assertion are to be used to define information about the users authenticated by the IdP to use the workspace.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(email: nil, groups: nil, login: nil, name: nil, org: nil, role: nil) ⇒ AssertionAttributesProperty

Returns a new instance of AssertionAttributesProperty.

Parameters:

  • email (String, nil) (defaults to: nil)

    The name of the attribute within the SAML assertion to use as the email names for SAML users.

  • groups (String, nil) (defaults to: nil)

    The name of the attribute within the SAML assertion to use as the user full "friendly" names for user groups.

  • login (String, nil) (defaults to: nil)

    The name of the attribute within the SAML assertion to use as the login names for SAML users.

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

    The name of the attribute within the SAML assertion to use as the user full "friendly" names for SAML users.

  • org (String, nil) (defaults to: nil)

    The name of the attribute within the SAML assertion to use as the user full "friendly" names for the users' organizations.

  • role (String, nil) (defaults to: nil)

    The name of the attribute within the SAML assertion to use as the user roles.



794
795
796
797
798
799
800
801
802
803
804
805
806
807
# File 'grafana/cfn_workspace.rb', line 794

def initialize(email: nil, groups: nil, login: nil, name: nil, org: nil, role: nil)
  @email = email
  Jsii::Type.check_type(@email, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "email") unless @email.nil?
  @groups = groups
  Jsii::Type.check_type(@groups, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groups") unless @groups.nil?
  @login = 
  Jsii::Type.check_type(@login, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "login") unless @login.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @org = org
  Jsii::Type.check_type(@org, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "org") unless @org.nil?
  @role = role
  Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "role") unless @role.nil?
end

Instance Attribute Details

#emailString? (readonly)

The name of the attribute within the SAML assertion to use as the email names for SAML users.



813
814
815
# File 'grafana/cfn_workspace.rb', line 813

def email
  @email
end

#groupsString? (readonly)

The name of the attribute within the SAML assertion to use as the user full "friendly" names for user groups.



818
819
820
# File 'grafana/cfn_workspace.rb', line 818

def groups
  @groups
end

#loginString? (readonly)

The name of the attribute within the SAML assertion to use as the login names for SAML users.



823
824
825
# File 'grafana/cfn_workspace.rb', line 823

def 
  @login
end

#nameString? (readonly)

The name of the attribute within the SAML assertion to use as the user full "friendly" names for SAML users.



828
829
830
# File 'grafana/cfn_workspace.rb', line 828

def name
  @name
end

#orgString? (readonly)

The name of the attribute within the SAML assertion to use as the user full "friendly" names for the users' organizations.



833
834
835
# File 'grafana/cfn_workspace.rb', line 833

def org
  @org
end

#roleString? (readonly)

The name of the attribute within the SAML assertion to use as the user roles.



838
839
840
# File 'grafana/cfn_workspace.rb', line 838

def role
  @role
end

Class Method Details

.jsii_propertiesObject



840
841
842
843
844
845
846
847
848
849
# File 'grafana/cfn_workspace.rb', line 840

def self.jsii_properties
  {
    :email => "email",
    :groups => "groups",
    :login => "login",
    :name => "name",
    :org => "org",
    :role => "role",
  }
end

Instance Method Details

#to_jsiiObject



851
852
853
854
855
856
857
858
859
860
861
862
# File 'grafana/cfn_workspace.rb', line 851

def to_jsii
  result = {}
  result.merge!({
    "email" => @email,
    "groups" => @groups,
    "login" => @login,
    "name" => @name,
    "org" => @org,
    "role" => @role,
  })
  result.compact
end