Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
.
Synopsis
- data AddRoleToDBInstance = AddRoleToDBInstance' {}
- newAddRoleToDBInstance :: Text -> Text -> Text -> AddRoleToDBInstance
- addRoleToDBInstance_dbInstanceIdentifier :: Lens' AddRoleToDBInstance Text
- addRoleToDBInstance_roleArn :: Lens' AddRoleToDBInstance Text
- addRoleToDBInstance_featureName :: Lens' AddRoleToDBInstance Text
- data AddRoleToDBInstanceResponse = AddRoleToDBInstanceResponse' {
- newAddRoleToDBInstanceResponse :: AddRoleToDBInstanceResponse
Creating a Request
data AddRoleToDBInstance Source #
See: newAddRoleToDBInstance
smart constructor.
AddRoleToDBInstance' | |
|
Instances
newAddRoleToDBInstance Source #
:: Text | |
-> Text | |
-> Text | |
-> AddRoleToDBInstance |
Create a value of AddRoleToDBInstance
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dbInstanceIdentifier:AddRoleToDBInstance'
, addRoleToDBInstance_dbInstanceIdentifier
- The name of the DB instance to associate the IAM role with.
$sel:roleArn:AddRoleToDBInstance'
, addRoleToDBInstance_roleArn
- The Amazon Resource Name (ARN) of the IAM role to associate with the DB
instance, for example arn:aws:iam::123456789012:role/AccessRole
.
$sel:featureName:AddRoleToDBInstance'
, addRoleToDBInstance_featureName
- The name of the feature for the DB instance that the IAM role is to be
associated with. For the list of supported feature names, see
DBEngineVersion.
Request Lenses
addRoleToDBInstance_dbInstanceIdentifier :: Lens' AddRoleToDBInstance Text Source #
The name of the DB instance to associate the IAM role with.
addRoleToDBInstance_roleArn :: Lens' AddRoleToDBInstance Text Source #
The Amazon Resource Name (ARN) of the IAM role to associate with the DB
instance, for example arn:aws:iam::123456789012:role/AccessRole
.
addRoleToDBInstance_featureName :: Lens' AddRoleToDBInstance Text Source #
The name of the feature for the DB instance that the IAM role is to be associated with. For the list of supported feature names, see DBEngineVersion.
Destructuring the Response
data AddRoleToDBInstanceResponse Source #
See: newAddRoleToDBInstanceResponse
smart constructor.
Instances
newAddRoleToDBInstanceResponse :: AddRoleToDBInstanceResponse Source #
Create a value of AddRoleToDBInstanceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.