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

Description

Deletes the access key pair associated with the specified IAM user.

If you do not specify a user name, IAM determines the user name implicitly based on the Amazon Web Services access key ID signing the request. This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated users.

Synopsis

Creating a Request

data DeleteAccessKey Source #

See: newDeleteAccessKey smart constructor.

Constructors

DeleteAccessKey' 

Fields

  • userName :: Maybe Text

    The name of the user whose access key pair you want 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: _+=,.@-

  • accessKeyId :: AccessKey

    The access key ID for the access key ID and secret access key you want to delete.

    This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

Instances

Instances details
Eq DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Read DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Show DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Generic DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Associated Types

type Rep DeleteAccessKey :: Type -> Type #

NFData DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Methods

rnf :: DeleteAccessKey -> () #

Hashable DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

AWSRequest DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Associated Types

type AWSResponse DeleteAccessKey #

ToHeaders DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

ToPath DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

ToQuery DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

type Rep DeleteAccessKey Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

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

Defined in Amazonka.IAM.DeleteAccessKey

newDeleteAccessKey Source #

Create a value of DeleteAccessKey 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:userName:DeleteAccessKey', deleteAccessKey_userName - The name of the user whose access key pair you want 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: _+=,.@-

$sel:accessKeyId:DeleteAccessKey', deleteAccessKey_accessKeyId - The access key ID for the access key ID and secret access key you want to delete.

This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

Request Lenses

deleteAccessKey_userName :: Lens' DeleteAccessKey (Maybe Text) Source #

The name of the user whose access key pair you want 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: _+=,.@-

deleteAccessKey_accessKeyId :: Lens' DeleteAccessKey AccessKey Source #

The access key ID for the access key ID and secret access key you want to delete.

This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

Destructuring the Response

data DeleteAccessKeyResponse Source #

See: newDeleteAccessKeyResponse smart constructor.

Instances

Instances details
Eq DeleteAccessKeyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Read DeleteAccessKeyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Show DeleteAccessKeyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Generic DeleteAccessKeyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Associated Types

type Rep DeleteAccessKeyResponse :: Type -> Type #

NFData DeleteAccessKeyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

Methods

rnf :: DeleteAccessKeyResponse -> () #

type Rep DeleteAccessKeyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteAccessKey

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

newDeleteAccessKeyResponse :: DeleteAccessKeyResponse Source #

Create a value of DeleteAccessKeyResponse with all optional fields omitted.

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