RoleConfigurationProperty Struct
The role configuration in an Amazon Managed Service for Prometheus scraper.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
sourceRoleArnoptionalstringsource_role_arnoptionalstrsourceRoleArnoptionalStringSourceRoleArnoptionalstringSourceRoleArnoptional*string #The ARN of the source role.
targetRoleArnoptionalstringtarget_role_arnoptionalstrtargetRoleArnoptionalStringTargetRoleArnoptionalstringTargetRoleArnoptional*string #The ARN of the target role.