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

Description

Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.

Synopsis

Creating a Request

data AssociateIamInstanceProfile Source #

See: newAssociateIamInstanceProfile smart constructor.

Constructors

AssociateIamInstanceProfile' 

Fields

Instances

Instances details
ToHeaders AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

ToPath AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

ToQuery AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

AWSRequest AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

Generic AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

Associated Types

type Rep AssociateIamInstanceProfile :: Type -> Type #

Read AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

Show AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

NFData AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

Eq AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

Hashable AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

type AWSResponse AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

type Rep AssociateIamInstanceProfile Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

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

newAssociateIamInstanceProfile Source #

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

AssociateIamInstanceProfile, associateIamInstanceProfile_iamInstanceProfile - The IAM instance profile.

AssociateIamInstanceProfile, associateIamInstanceProfile_instanceId - The ID of the instance.

Request Lenses

Destructuring the Response

data AssociateIamInstanceProfileResponse Source #

Constructors

AssociateIamInstanceProfileResponse' 

Fields

Instances

Instances details
Generic AssociateIamInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

Read AssociateIamInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

Show AssociateIamInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

NFData AssociateIamInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

Eq AssociateIamInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

type Rep AssociateIamInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.EC2.AssociateIamInstanceProfile

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

newAssociateIamInstanceProfileResponse Source #

Create a value of AssociateIamInstanceProfileResponse 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:iamInstanceProfileAssociation:AssociateIamInstanceProfileResponse', associateIamInstanceProfileResponse_iamInstanceProfileAssociation - Information about the IAM instance profile association.

$sel:httpStatus:AssociateIamInstanceProfileResponse', associateIamInstanceProfileResponse_httpStatus - The response's http status code.

Response Lenses