Skip to content
v2.277.0

RoleValuesProperty Struct ​

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.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_grafana as grafana } from 'aws-cdk-lib';
const roleValuesProperty: grafana.CfnWorkspace.RoleValuesProperty = {
  admin: ['admin'],
  editor: ['editor'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_grafana as grafana

role_values_property = grafana.CfnWorkspace.RoleValuesProperty(
    admin=["admin"],
    editor=["editor"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.grafana.*;

RoleValuesProperty roleValuesProperty = RoleValuesProperty.builder()
        .admin(List.of("admin"))
        .editor(List.of("editor"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Grafana;

var roleValuesProperty = new RoleValuesProperty {
    Admin = new [] { "admin" },
    Editor = new [] { "editor" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

roleValuesProperty := &RoleValuesProperty{
	Admin: []*string{
		jsii.String("admin"),
	},
	Editor: []*string{
		jsii.String("editor"),
	},
}

Properties ​

adminoptionalstring[]adminoptionaltyping.List[str]adminoptionalList<String>Adminoptionalstring[]Adminoptional*[]*string#
A list of groups from the SAML assertion attribute to grant the Grafana `Admin` role to.
editoroptionalstring[]editoroptionaltyping.List[str]editoroptionalList<String>Editoroptionalstring[]Editoroptional*[]*string#
A list of groups from the SAML assertion attribute to grant the Grafana `Editor` role to.