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.AddRoleToDBInstance

Description

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

Creating a Request

data AddRoleToDBInstance Source #

See: newAddRoleToDBInstance smart constructor.

Constructors

AddRoleToDBInstance' 

Fields

  • dbInstanceIdentifier :: Text

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

  • roleArn :: Text

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

  • featureName :: Text

    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.

Instances

Instances details
Eq AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

Read AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

Show AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

Generic AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

Associated Types

type Rep AddRoleToDBInstance :: Type -> Type #

NFData AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

Methods

rnf :: AddRoleToDBInstance -> () #

Hashable AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

AWSRequest AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

Associated Types

type AWSResponse AddRoleToDBInstance #

ToHeaders AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

ToPath AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

ToQuery AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

type Rep AddRoleToDBInstance Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

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

Defined in Amazonka.RDS.AddRoleToDBInstance

newAddRoleToDBInstance Source #

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

Instances details
Eq AddRoleToDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

Read AddRoleToDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

Show AddRoleToDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

Generic AddRoleToDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

Associated Types

type Rep AddRoleToDBInstanceResponse :: Type -> Type #

NFData AddRoleToDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

type Rep AddRoleToDBInstanceResponse Source # 
Instance details

Defined in Amazonka.RDS.AddRoleToDBInstance

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

newAddRoleToDBInstanceResponse :: AddRoleToDBInstanceResponse Source #

Create a value of AddRoleToDBInstanceResponse with all optional fields omitted.

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