# RoleProperty

The `Role` property type specifies the wrapper that contains AWS Audit Manager role information, such as the role type and IAM Amazon Resource Name (ARN).

- 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_auditmanager as auditmanager } from 'aws-cdk-lib';
const roleProperty: auditmanager.CfnAssessment.RoleProperty = {
  roleArn: 'roleArn',
  roleType: 'roleType',
};
```

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_auditmanager as auditmanager

role_property = auditmanager.CfnAssessment.RoleProperty(
    role_arn="roleArn",
    role_type="roleType"
)
```

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.auditmanager.*;

RoleProperty roleProperty = RoleProperty.builder()
        .roleArn("roleArn")
        .roleType("roleType")
        .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.AuditManager;

var roleProperty = new RoleProperty {
    RoleArn = "roleArn",
    RoleType = "roleType"
};
```

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"

roleProperty := &RoleProperty{
	RoleArn: jsii.String("roleArn"),
	RoleType: jsii.String("roleType"),
}
```

## Properties

- `roleArn`: string — The Amazon Resource Name (ARN) of the IAM role.

- `roleType`: string — The type of customer persona.

  > In `CreateAssessment` , `roleType` can only be `PROCESS_OWNER` .
  >
  > In `UpdateSettings` , `roleType` can only be `PROCESS_OWNER` .
  >
  > In `BatchCreateDelegationByAssessment` , `roleType` can only be `RESOURCE_OWNER` .
