amazonka-clouddirectory-2.0: Amazon CloudDirectory 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.CloudDirectory.DetachPolicy

Description

Detaches a policy from an object.

Synopsis

Creating a Request

data DetachPolicy Source #

See: newDetachPolicy smart constructor.

Constructors

DetachPolicy' 

Fields

Instances

Instances details
ToJSON DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

ToHeaders DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

ToPath DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

ToQuery DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

AWSRequest DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

Associated Types

type AWSResponse DetachPolicy #

Generic DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

Associated Types

type Rep DetachPolicy :: Type -> Type #

Read DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

Show DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

NFData DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

Methods

rnf :: DetachPolicy -> () #

Eq DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

Hashable DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

type AWSResponse DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

type Rep DetachPolicy Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

type Rep DetachPolicy = D1 ('MetaData "DetachPolicy" "Amazonka.CloudDirectory.DetachPolicy" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "DetachPolicy'" '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))))

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:

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

DetachPolicy, detachPolicy_policyReference - Reference that identifies the policy object.

DetachPolicy, detachPolicy_objectReference - Reference that identifies the object whose policy object will be detached.

Request Lenses

detachPolicy_directoryArn :: Lens' DetachPolicy Text Source #

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

detachPolicy_policyReference :: Lens' DetachPolicy ObjectReference Source #

Reference that identifies the policy object.

detachPolicy_objectReference :: Lens' DetachPolicy ObjectReference Source #

Reference that identifies the object whose policy object will be detached.

Destructuring the Response

data DetachPolicyResponse Source #

See: newDetachPolicyResponse smart constructor.

Constructors

DetachPolicyResponse' 

Fields

Instances

Instances details
Generic DetachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

Associated Types

type Rep DetachPolicyResponse :: Type -> Type #

Read DetachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

Show DetachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

NFData DetachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

Methods

rnf :: DetachPolicyResponse -> () #

Eq DetachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

type Rep DetachPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.DetachPolicy

type Rep DetachPolicyResponse = D1 ('MetaData "DetachPolicyResponse" "Amazonka.CloudDirectory.DetachPolicy" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "DetachPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDetachPolicyResponse Source #

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

Response Lenses