libZSservicesZSamazonka-iamZSamazonka-iam
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.IAM.RemoveRoleFromInstanceProfile

Description

Removes the specified IAM role from the specified EC2 instance profile.

Make sure that you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance might break any applications running on the instance.

For more information about IAM roles, see Working with roles. For more information about instance profiles, see About instance profiles.

Synopsis

Creating a Request

data RemoveRoleFromInstanceProfile Source #

See: newRemoveRoleFromInstanceProfile smart constructor.

Constructors

RemoveRoleFromInstanceProfile' 

Fields

  • instanceProfileName :: Text

    The name of the instance profile to update.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

  • roleName :: Text

    The name of the role to remove.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Instances

Instances details
Eq RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

Read RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

Show RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

Generic RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

Associated Types

type Rep RemoveRoleFromInstanceProfile :: Type -> Type #

NFData RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

Hashable RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

AWSRequest RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

ToHeaders RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

ToPath RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

ToQuery RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

type Rep RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

type Rep RemoveRoleFromInstanceProfile = D1 ('MetaData "RemoveRoleFromInstanceProfile" "Amazonka.IAM.RemoveRoleFromInstanceProfile" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "RemoveRoleFromInstanceProfile'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceProfileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse RemoveRoleFromInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

newRemoveRoleFromInstanceProfile Source #

Create a value of RemoveRoleFromInstanceProfile 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:instanceProfileName:RemoveRoleFromInstanceProfile', removeRoleFromInstanceProfile_instanceProfileName - The name of the instance profile to update.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

$sel:roleName:RemoveRoleFromInstanceProfile', removeRoleFromInstanceProfile_roleName - The name of the role to remove.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Request Lenses

removeRoleFromInstanceProfile_instanceProfileName :: Lens' RemoveRoleFromInstanceProfile Text Source #

The name of the instance profile to update.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

removeRoleFromInstanceProfile_roleName :: Lens' RemoveRoleFromInstanceProfile Text Source #

The name of the role to remove.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

Destructuring the Response

data RemoveRoleFromInstanceProfileResponse Source #

Instances

Instances details
Eq RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

Read RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

Show RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

Generic RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

NFData RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

type Rep RemoveRoleFromInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.RemoveRoleFromInstanceProfile

type Rep RemoveRoleFromInstanceProfileResponse = D1 ('MetaData "RemoveRoleFromInstanceProfileResponse" "Amazonka.IAM.RemoveRoleFromInstanceProfile" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "RemoveRoleFromInstanceProfileResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newRemoveRoleFromInstanceProfileResponse :: RemoveRoleFromInstanceProfileResponse Source #

Create a value of RemoveRoleFromInstanceProfileResponse with all optional fields omitted.

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