libZSservicesZSamazonka-iotZSamazonka-iot
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.IoT.DetachPolicy

Description

Detaches a policy from the specified target.

Because of the distributed nature of Amazon Web Services, it can take up to five minutes after a policy is detached before it's ready to be deleted.

Requires permission to access the DetachPolicy action.

Synopsis

Creating a Request

data DetachPolicy Source #

See: newDetachPolicy smart constructor.

Constructors

DetachPolicy' 

Fields

Instances

Instances details
Eq DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

Read DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

Show DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

Generic DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

Associated Types

type Rep DetachPolicy :: Type -> Type #

NFData DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

Methods

rnf :: DetachPolicy -> () #

Hashable DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

ToJSON DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

AWSRequest DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

Associated Types

type AWSResponse DetachPolicy #

ToHeaders DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

ToPath DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

ToQuery DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

type Rep DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

type Rep DetachPolicy = D1 ('MetaData "DetachPolicy" "Amazonka.IoT.DetachPolicy" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "DetachPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "target") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DetachPolicy Source # 
Instance details

Defined in Amazonka.IoT.DetachPolicy

newDetachPolicy Source #

Create a value of DetachPolicy 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:policyName:DetachPolicy', detachPolicy_policyName - The policy to detach.

$sel:target:DetachPolicy', detachPolicy_target - The target from which the policy will be detached.

Request Lenses

detachPolicy_target :: Lens' DetachPolicy Text Source #

The target from which the policy will be detached.

Destructuring the Response

data DetachPolicyResponse Source #

See: newDetachPolicyResponse smart constructor.

Constructors

DetachPolicyResponse' 

newDetachPolicyResponse :: DetachPolicyResponse Source #

Create a value of DetachPolicyResponse with all optional fields omitted.

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