libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory
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.CloudDirectory.AttachPolicy

Description

Attaches a policy object to a regular object. An object can have a limited number of attached policies.

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

Read AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

Show AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

Generic AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

Associated Types

type Rep AttachPolicy :: Type -> Type #

NFData AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

Methods

rnf :: AttachPolicy -> () #

Hashable AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

ToJSON AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

AWSRequest AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

Associated Types

type AWSResponse AttachPolicy #

ToHeaders AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

ToPath AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

ToQuery AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

type Rep AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

type Rep AttachPolicy = D1 ('MetaData "AttachPolicy" "Amazonka.CloudDirectory.AttachPolicy" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" 'False) (C1 ('MetaCons "AttachPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "directoryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "policyReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ObjectReference) :*: S1 ('MetaSel ('Just "objectReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ObjectReference))))
type AWSResponse AttachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.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:directoryArn:AttachPolicy', attachPolicy_directoryArn - The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns.

$sel:policyReference:AttachPolicy', attachPolicy_policyReference - The reference that is associated with the policy object.

$sel:objectReference:AttachPolicy', attachPolicy_objectReference - The reference that identifies the object to which the policy will be attached.

Request Lenses

attachPolicy_directoryArn :: Lens' AttachPolicy Text Source #

The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns.

attachPolicy_policyReference :: Lens' AttachPolicy ObjectReference Source #

The reference that is associated with the policy object.

attachPolicy_objectReference :: Lens' AttachPolicy ObjectReference Source #

The reference that identifies the object to which the policy will be attached.

Destructuring the Response

data AttachPolicyResponse Source #

See: newAttachPolicyResponse smart constructor.

Constructors

AttachPolicyResponse' 

Fields

Instances

Instances details
Eq AttachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

Read AttachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

Show AttachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

Generic AttachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

Associated Types

type Rep AttachPolicyResponse :: Type -> Type #

NFData AttachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

Methods

rnf :: AttachPolicyResponse -> () #

type Rep AttachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.AttachPolicy

type Rep AttachPolicyResponse = D1 ('MetaData "AttachPolicyResponse" "Amazonka.CloudDirectory.AttachPolicy" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" 'False) (C1 ('MetaCons "AttachPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAttachPolicyResponse Source #

Create a value of AttachPolicyResponse 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:httpStatus:AttachPolicyResponse', attachPolicyResponse_httpStatus - The response's http status code.

Response Lenses