libZSservicesZSamazonka-organizationsZSamazonka-organizations
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.Organizations.DescribeEffectivePolicy

Description

Returns the contents of the effective policy for specified policy type and account. The effective policy is the aggregation of any policies of the specified type that the account inherits, plus any policy of that type that is directly attached to the account.

This operation applies only to policy types other than service control policies (SCPs).

For more information about policy inheritance, see How Policy Inheritance Works in the AWS Organizations User Guide.

This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an AWS service.

Synopsis

Creating a Request

data DescribeEffectivePolicy Source #

See: newDescribeEffectivePolicy smart constructor.

Constructors

DescribeEffectivePolicy' 

Fields

Instances

Instances details
Eq DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

Read DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

Show DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

Generic DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

Associated Types

type Rep DescribeEffectivePolicy :: Type -> Type #

NFData DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

Methods

rnf :: DescribeEffectivePolicy -> () #

Hashable DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

ToJSON DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

AWSRequest DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

ToHeaders DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

ToPath DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

ToQuery DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

type Rep DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

type Rep DescribeEffectivePolicy = D1 ('MetaData "DescribeEffectivePolicy" "Amazonka.Organizations.DescribeEffectivePolicy" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "DescribeEffectivePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "targetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "policyType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EffectivePolicyType)))
type AWSResponse DescribeEffectivePolicy Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

newDescribeEffectivePolicy Source #

Create a value of DescribeEffectivePolicy 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:targetId:DescribeEffectivePolicy', describeEffectivePolicy_targetId - When you're signed in as the management account, specify the ID of the account that you want details about. Specifying an organization root or organizational unit (OU) as the target is not supported.

$sel:policyType:DescribeEffectivePolicy', describeEffectivePolicy_policyType - The type of policy that you want information about. You can specify one of the following values:

Request Lenses

describeEffectivePolicy_targetId :: Lens' DescribeEffectivePolicy (Maybe Text) Source #

When you're signed in as the management account, specify the ID of the account that you want details about. Specifying an organization root or organizational unit (OU) as the target is not supported.

describeEffectivePolicy_policyType :: Lens' DescribeEffectivePolicy EffectivePolicyType Source #

The type of policy that you want information about. You can specify one of the following values:

Destructuring the Response

data DescribeEffectivePolicyResponse Source #

See: newDescribeEffectivePolicyResponse smart constructor.

Constructors

DescribeEffectivePolicyResponse' 

Fields

Instances

Instances details
Eq DescribeEffectivePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

Read DescribeEffectivePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

Show DescribeEffectivePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

Generic DescribeEffectivePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

Associated Types

type Rep DescribeEffectivePolicyResponse :: Type -> Type #

NFData DescribeEffectivePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

type Rep DescribeEffectivePolicyResponse Source # 
Instance details

Defined in Amazonka.Organizations.DescribeEffectivePolicy

type Rep DescribeEffectivePolicyResponse = D1 ('MetaData "DescribeEffectivePolicyResponse" "Amazonka.Organizations.DescribeEffectivePolicy" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "DescribeEffectivePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "effectivePolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EffectivePolicy)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribeEffectivePolicyResponse Source #

Create a value of DescribeEffectivePolicyResponse 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:effectivePolicy:DescribeEffectivePolicyResponse', describeEffectivePolicyResponse_effectivePolicy - The contents of the effective policy.

$sel:httpStatus:DescribeEffectivePolicyResponse', describeEffectivePolicyResponse_httpStatus - The response's http status code.

Response Lenses