amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.ReplaceIamInstanceProfileAssociation

Description

Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.

Use DescribeIamInstanceProfileAssociations to get the association ID.

Synopsis

Creating a Request

data ReplaceIamInstanceProfileAssociation Source #

Constructors

ReplaceIamInstanceProfileAssociation' 

Fields

Instances

Instances details
ToHeaders ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

ToPath ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

ToQuery ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

AWSRequest ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

Generic ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

Read ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

Show ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

NFData ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

Eq ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

Hashable ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

type AWSResponse ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

type Rep ReplaceIamInstanceProfileAssociation Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

type Rep ReplaceIamInstanceProfileAssociation = D1 ('MetaData "ReplaceIamInstanceProfileAssociation" "Amazonka.EC2.ReplaceIamInstanceProfileAssociation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ReplaceIamInstanceProfileAssociation'" 'PrefixI 'True) (S1 ('MetaSel ('Just "iamInstanceProfile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 IamInstanceProfileSpecification) :*: S1 ('MetaSel ('Just "associationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newReplaceIamInstanceProfileAssociation Source #

Create a value of ReplaceIamInstanceProfileAssociation 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:

ReplaceIamInstanceProfileAssociation, replaceIamInstanceProfileAssociation_iamInstanceProfile - The IAM instance profile.

ReplaceIamInstanceProfileAssociation, replaceIamInstanceProfileAssociation_associationId - The ID of the existing IAM instance profile association.

Request Lenses

Destructuring the Response

data ReplaceIamInstanceProfileAssociationResponse Source #

Constructors

ReplaceIamInstanceProfileAssociationResponse' 

Fields

Instances

Instances details
Generic ReplaceIamInstanceProfileAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

Read ReplaceIamInstanceProfileAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

Show ReplaceIamInstanceProfileAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

NFData ReplaceIamInstanceProfileAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

Eq ReplaceIamInstanceProfileAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

type Rep ReplaceIamInstanceProfileAssociationResponse Source # 
Instance details

Defined in Amazonka.EC2.ReplaceIamInstanceProfileAssociation

type Rep ReplaceIamInstanceProfileAssociationResponse = D1 ('MetaData "ReplaceIamInstanceProfileAssociationResponse" "Amazonka.EC2.ReplaceIamInstanceProfileAssociation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ReplaceIamInstanceProfileAssociationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "iamInstanceProfileAssociation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IamInstanceProfileAssociation)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

Response Lenses