# RoleConfigurationProperty

The role configuration in an Amazon Managed Service for Prometheus scraper.

- Source: Generated at build time
- Type last changed: v2.178.0 · 6 Feb 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_aps as aps } from 'aws-cdk-lib';
const roleConfigurationProperty: aps.CfnScraper.RoleConfigurationProperty = {
  sourceRoleArn: 'sourceRoleArn',
  targetRoleArn: 'targetRoleArn',
};
```

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_aps as aps

role_configuration_property = aps.CfnScraper.RoleConfigurationProperty(
    source_role_arn="sourceRoleArn",
    target_role_arn="targetRoleArn"
)
```

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

RoleConfigurationProperty roleConfigurationProperty = RoleConfigurationProperty.builder()
        .sourceRoleArn("sourceRoleArn")
        .targetRoleArn("targetRoleArn")
        .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.APS;

var roleConfigurationProperty = new RoleConfigurationProperty {
    SourceRoleArn = "sourceRoleArn",
    TargetRoleArn = "targetRoleArn"
};
```

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"

roleConfigurationProperty := &RoleConfigurationProperty{
	SourceRoleArn: jsii.String("sourceRoleArn"),
	TargetRoleArn: jsii.String("targetRoleArn"),
}
```

## Properties

- `sourceRoleArn`: string — The ARN of the source role.

- `targetRoleArn`: string — The ARN of the target role.
