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

Description

Deletes the specified instance profile. The instance profile must not have an associated role.

Make sure that you do not have any Amazon EC2 instances running with the instance profile you are about to delete. Deleting a role or instance profile that is associated with a running instance will break any applications running on the instance.

For more information about instance profiles, see About instance profiles.

Synopsis

Creating a Request

data DeleteInstanceProfile Source #

See: newDeleteInstanceProfile smart constructor.

Constructors

DeleteInstanceProfile' 

Fields

  • instanceProfileName :: Text

    The name of the instance profile to delete.

    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 DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

Read DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

Show DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

Generic DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

Associated Types

type Rep DeleteInstanceProfile :: Type -> Type #

NFData DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

Methods

rnf :: DeleteInstanceProfile -> () #

Hashable DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

AWSRequest DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

Associated Types

type AWSResponse DeleteInstanceProfile #

ToHeaders DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

ToPath DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

ToQuery DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

type Rep DeleteInstanceProfile Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

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

Defined in Amazonka.IAM.DeleteInstanceProfile

newDeleteInstanceProfile Source #

Create a value of DeleteInstanceProfile 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:DeleteInstanceProfile', deleteInstanceProfile_instanceProfileName - The name of the instance profile to delete.

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

deleteInstanceProfile_instanceProfileName :: Lens' DeleteInstanceProfile Text Source #

The name of the instance profile to delete.

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 DeleteInstanceProfileResponse Source #

See: newDeleteInstanceProfileResponse smart constructor.

Instances

Instances details
Eq DeleteInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

Read DeleteInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

Show DeleteInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

Generic DeleteInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

Associated Types

type Rep DeleteInstanceProfileResponse :: Type -> Type #

NFData DeleteInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

type Rep DeleteInstanceProfileResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteInstanceProfile

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

newDeleteInstanceProfileResponse :: DeleteInstanceProfileResponse Source #

Create a value of DeleteInstanceProfileResponse with all optional fields omitted.

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