# DBInstanceRoleProperty

Information about an AWS Identity and Access Management (IAM) role that is associated with a DB instance.

- 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_rds as rds } from 'aws-cdk-lib';
const dBInstanceRoleProperty: rds.CfnDBInstance.DBInstanceRoleProperty = {
  featureName: 'featureName',
  roleArn: 'roleArn',
};
```

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_rds as rds

d_b_instance_role_property = rds.CfnDBInstance.DBInstanceRoleProperty(
    feature_name="featureName",
    role_arn="roleArn"
)
```

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

DBInstanceRoleProperty dBInstanceRoleProperty = DBInstanceRoleProperty.builder()
        .featureName("featureName")
        .roleArn("roleArn")
        .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.RDS;

var dBInstanceRoleProperty = new DBInstanceRoleProperty {
    FeatureName = "featureName",
    RoleArn = "roleArn"
};
```

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"

dBInstanceRoleProperty := &DBInstanceRoleProperty{
	FeatureName: jsii.String("featureName"),
	RoleArn: jsii.String("roleArn"),
}
```

## Properties

- `featureName`: string (required) — The name of the feature associated with the AWS Identity and Access Management (IAM) role.

  IAM roles that are associated with a DB instance grant permission for the DB instance to access other AWS services on your behalf. For the list of supported feature names, see the `SupportedFeatureNames` description in [DBEngineVersion](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBEngineVersion.html) in the *Amazon RDS API Reference* .

- `roleArn`: string (required) — The Amazon Resource Name (ARN) of the IAM role that is associated with the DB instance.
