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.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
Eq DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Read DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Show DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Generic DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Associated Types

type Rep DeleteUserPolicy :: Type -> Type #

NFData DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Methods

rnf :: DeleteUserPolicy -> () #

Hashable DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

AWSRequest DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Associated Types

type AWSResponse DeleteUserPolicy #

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

type Rep DeleteUserPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

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

Defined in Amazonka.IAM.DeleteUserPolicy

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:

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

$sel:policyName: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
Eq DeleteUserPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Read DeleteUserPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Show DeleteUserPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Generic DeleteUserPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteUserPolicy

Associated Types

type Rep DeleteUserPolicyResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iamZSamazonka-iam" '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.