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 Identity and Access Management (IAM) role from an Amazon Aurora DB cluster. For more information, see Authorizing Amazon Aurora MySQL to Access Other Amazon Web Services Services on Your Behalf in the Amazon Aurora User Guide.
This action only applies to Aurora DB clusters.
Synopsis
- data AddRoleToDBCluster = AddRoleToDBCluster' {}
- newAddRoleToDBCluster :: Text -> Text -> AddRoleToDBCluster
- addRoleToDBCluster_featureName :: Lens' AddRoleToDBCluster (Maybe Text)
- addRoleToDBCluster_dbClusterIdentifier :: Lens' AddRoleToDBCluster Text
- addRoleToDBCluster_roleArn :: Lens' AddRoleToDBCluster Text
- data AddRoleToDBClusterResponse = AddRoleToDBClusterResponse' {
- newAddRoleToDBClusterResponse :: AddRoleToDBClusterResponse
Creating a Request
data AddRoleToDBCluster Source #
See: newAddRoleToDBCluster
smart constructor.
AddRoleToDBCluster' | |
|
Instances
newAddRoleToDBCluster Source #
:: Text | |
-> Text | |
-> AddRoleToDBCluster |
Create a value of AddRoleToDBCluster
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:featureName:AddRoleToDBCluster'
, addRoleToDBCluster_featureName
- The name of the feature for the DB cluster that the IAM role is to be
associated with. For the list of supported feature names, see
DBEngineVersion.
$sel:dbClusterIdentifier:AddRoleToDBCluster'
, addRoleToDBCluster_dbClusterIdentifier
- The name of the DB cluster to associate the IAM role with.
$sel:roleArn:AddRoleToDBCluster'
, addRoleToDBCluster_roleArn
- The Amazon Resource Name (ARN) of the IAM role to associate with the
Aurora DB cluster, for example,
arn:aws:iam::123456789012:role/AuroraAccessRole
.
Request Lenses
addRoleToDBCluster_featureName :: Lens' AddRoleToDBCluster (Maybe Text) Source #
The name of the feature for the DB cluster that the IAM role is to be associated with. For the list of supported feature names, see DBEngineVersion.
addRoleToDBCluster_dbClusterIdentifier :: Lens' AddRoleToDBCluster Text Source #
The name of the DB cluster to associate the IAM role with.
addRoleToDBCluster_roleArn :: Lens' AddRoleToDBCluster Text Source #
The Amazon Resource Name (ARN) of the IAM role to associate with the
Aurora DB cluster, for example,
arn:aws:iam::123456789012:role/AuroraAccessRole
.
Destructuring the Response
data AddRoleToDBClusterResponse Source #
See: newAddRoleToDBClusterResponse
smart constructor.
Instances
newAddRoleToDBClusterResponse :: AddRoleToDBClusterResponse Source #
Create a value of AddRoleToDBClusterResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.