libZSservicesZSamazonka-rdsZSamazonka-rds
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.RDS.AddRoleToDBCluster

Description

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

Creating a Request

data AddRoleToDBCluster Source #

See: newAddRoleToDBCluster smart constructor.

Constructors

AddRoleToDBCluster' 

Fields

  • featureName :: Maybe Text

    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.

  • dbClusterIdentifier :: Text

    The name of the DB cluster to associate the IAM role with.

  • roleArn :: Text

    The Amazon Resource Name (ARN) of the IAM role to associate with the Aurora DB cluster, for example, arn:aws:iam::123456789012:role/AuroraAccessRole.

Instances

Instances details
Eq AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

Read AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

Show AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

Generic AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

Associated Types

type Rep AddRoleToDBCluster :: Type -> Type #

NFData AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

Methods

rnf :: AddRoleToDBCluster -> () #

Hashable AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

AWSRequest AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

Associated Types

type AWSResponse AddRoleToDBCluster #

ToHeaders AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

ToPath AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

ToQuery AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

type Rep AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

type Rep AddRoleToDBCluster = D1 ('MetaData "AddRoleToDBCluster" "Amazonka.RDS.AddRoleToDBCluster" "libZSservicesZSamazonka-rdsZSamazonka-rds" 'False) (C1 ('MetaCons "AddRoleToDBCluster'" 'PrefixI 'True) (S1 ('MetaSel ('Just "featureName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dbClusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AddRoleToDBCluster Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

newAddRoleToDBCluster Source #

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

Instances details
Eq AddRoleToDBClusterResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

Read AddRoleToDBClusterResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

Show AddRoleToDBClusterResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

Generic AddRoleToDBClusterResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

Associated Types

type Rep AddRoleToDBClusterResponse :: Type -> Type #

NFData AddRoleToDBClusterResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

type Rep AddRoleToDBClusterResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBCluster

type Rep AddRoleToDBClusterResponse = D1 ('MetaData "AddRoleToDBClusterResponse" "Amazonka.RDS.AddRoleToDBCluster" "libZSservicesZSamazonka-rdsZSamazonka-rds" 'False) (C1 ('MetaCons "AddRoleToDBClusterResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newAddRoleToDBClusterResponse :: AddRoleToDBClusterResponse Source #

Create a value of AddRoleToDBClusterResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.