# RoleValuesProperty

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.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `admin`: string[] — A list of groups from the SAML assertion attribute to grant the Grafana `Admin` role to.

- `editor`: string[] — A list of groups from the SAML assertion attribute to grant the Grafana `Editor` role to.
