amazonka-iam-2.0: Amazon Identity and Access Management 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.IAM.DeleteUserPolicy

Description

Deletes the specified inline policy that is embedded in the specified IAM user.

A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy. For more information about policies, refer to Managed policies and inline policies in the IAM User Guide.

Synopsis

Creating a Request

data DeleteUserPolicy Source #

See: newDeleteUserPolicy smart constructor.

Constructors

DeleteUserPolicy' 

Fields

  • userName :: Text

    The name (friendly name, not ARN) identifying the user that the policy is embedded in.

    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: _+=,.@-

  • policyName :: Text

    The name identifying the policy document 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
ToHeaders DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

ToPath DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

ToQuery DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

AWSRequest DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Associated Types

type AWSResponse DeleteUserPolicy #

Generic DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Associated Types

type Rep DeleteUserPolicy :: Type -> Type #

Read DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Show DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

NFData DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Methods

rnf :: DeleteUserPolicy -> () #

Eq DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Hashable DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

type AWSResponse DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

type Rep DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

type Rep DeleteUserPolicy = D1 ('MetaData "DeleteUserPolicy" "Amazonka.IAM.DeleteUserPolicy" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "DeleteUserPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteUserPolicy Source #

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

DeleteUserPolicy, deleteUserPolicy_userName - The name (friendly name, not ARN) identifying the user that the policy is embedded in.

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: _+=,.@-

DeleteUserPolicy, deleteUserPolicy_policyName - The name identifying the policy document 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

deleteUserPolicy_userName :: Lens' DeleteUserPolicy Text Source #

The name (friendly name, not ARN) identifying the user that the policy is embedded in.

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: _+=,.@-

deleteUserPolicy_policyName :: Lens' DeleteUserPolicy Text Source #

The name identifying the policy document 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 DeleteUserPolicyResponse Source #

See: newDeleteUserPolicyResponse smart constructor.

Instances

Instances details
Generic DeleteUserPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Associated Types

type Rep DeleteUserPolicyResponse :: Type -> Type #

Read DeleteUserPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Show DeleteUserPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

NFData DeleteUserPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Eq DeleteUserPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

type Rep DeleteUserPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

type Rep DeleteUserPolicyResponse = D1 ('MetaData "DeleteUserPolicyResponse" "Amazonka.IAM.DeleteUserPolicy" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "DeleteUserPolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteUserPolicyResponse :: DeleteUserPolicyResponse Source #

Create a value of DeleteUserPolicyResponse with all optional fields omitted.

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