Skip to content
v2.278.0

DBInstanceRoleProperty Struct ​

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

Example ​

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
# 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
// 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();
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"
};
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 ​

featureNamestringfeature_namestrfeatureNameStringFeatureNamestringFeatureName*string required #
The name of the feature associated with the AWS Identity and Access Management (IAM) role.
notes

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 in the Amazon RDS API Reference .

roleArnstringrole_arnstrroleArnStringRoleArnstringRoleArn*string required #
The Amazon Resource Name (ARN) of the IAM role that is associated with the DB instance.