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

Description

Attaches the specified policy to the specified principal (certificate or other credential).

Requires permission to access the AttachPolicy action.

Synopsis

Creating a Request

data AttachPolicy Source #

See: newAttachPolicy smart constructor.

Constructors

AttachPolicy' 

Fields

Instances

Instances details
Eq AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

Read AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

Show AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

Generic AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

Associated Types

type Rep AttachPolicy :: Type -> Type #

NFData AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

Methods

rnf :: AttachPolicy -> () #

Hashable AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

ToJSON AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

AWSRequest AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

Associated Types

type AWSResponse AttachPolicy #

ToHeaders AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

ToPath AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

ToQuery AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

type Rep AttachPolicy Source # 
Instance details

Defined in Amazonka.IoT.AttachPolicy

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

Defined in Amazonka.IoT.AttachPolicy

newAttachPolicy Source #

Create a value of AttachPolicy 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:AttachPolicy', attachPolicy_policyName - The name of the policy to attach.

$sel:target:AttachPolicy', attachPolicy_target - The identity to which the policy is attached. For example, a thing group or a certificate.

Request Lenses

attachPolicy_policyName :: Lens' AttachPolicy Text Source #

The name of the policy to attach.

attachPolicy_target :: Lens' AttachPolicy Text Source #

The identity to which the policy is attached. For example, a thing group or a certificate.

Destructuring the Response

data AttachPolicyResponse Source #

See: newAttachPolicyResponse smart constructor.

Constructors

AttachPolicyResponse' 

newAttachPolicyResponse :: AttachPolicyResponse Source #

Create a value of AttachPolicyResponse with all optional fields omitted.

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