addRoleToDbInstance

Associates an Amazon Web Services Identity and Access Management (IAM) role with a DB instance.

To add a role to a DB instance, the status of the DB instance must be available.

This command doesn't apply to RDS Custom.

Samples


fun main() { 
   //sampleStart 
   // The following example adds the role to a DB instance named test instance.
rdsClient.addRoleToDbInstance {
    dbInstanceIdentifier = "test-instance"
    roleArn = "arn:aws:iam::111122223333:role/rds-s3-integration-role"
    featureName = "S3_INTEGRATION"
} 
   //sampleEnd
}