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

Description

Disables an organizational policy type in a root. A policy of a certain type can be attached to entities in a root only if that type is enabled in the root. After you perform this operation, you no longer can attach policies of the specified type to that root or to any organizational unit (OU) or account in that root. You can undo this by using the EnablePolicyType operation.

This is an asynchronous request that AWS performs in the background. If you disable a policy type for a root, it still appears enabled for the organization if all features are enabled for the organization. AWS recommends that you first use ListRoots to see the status of policy types for a specified root, and then use this operation.

This operation can be called only from the organization's management account.

To view the status of available policy types in the organization, use DescribeOrganization.

Synopsis

Creating a Request

data DisablePolicyType Source #

See: newDisablePolicyType smart constructor.

Constructors

DisablePolicyType' 

Fields

Instances

Instances details
Eq DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

Read DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

Show DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

Generic DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

Associated Types

type Rep DisablePolicyType :: Type -> Type #

NFData DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

Methods

rnf :: DisablePolicyType -> () #

Hashable DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

ToJSON DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

AWSRequest DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

Associated Types

type AWSResponse DisablePolicyType #

ToHeaders DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

ToPath DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

ToQuery DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

type Rep DisablePolicyType Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

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

Defined in Amazonka.Organizations.DisablePolicyType

newDisablePolicyType Source #

Create a value of DisablePolicyType 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:rootId:DisablePolicyType', disablePolicyType_rootId - The unique identifier (ID) of the root in which you want to disable a policy type. You can get the ID from the ListRoots operation.

The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.

$sel:policyType:DisablePolicyType', disablePolicyType_policyType - The policy type that you want to disable in this root. You can specify one of the following values:

Request Lenses

disablePolicyType_rootId :: Lens' DisablePolicyType Text Source #

The unique identifier (ID) of the root in which you want to disable a policy type. You can get the ID from the ListRoots operation.

The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.

disablePolicyType_policyType :: Lens' DisablePolicyType PolicyType Source #

The policy type that you want to disable in this root. You can specify one of the following values:

Destructuring the Response

data DisablePolicyTypeResponse Source #

See: newDisablePolicyTypeResponse smart constructor.

Constructors

DisablePolicyTypeResponse' 

Fields

  • root :: Maybe Root

    A structure that shows the root with the updated list of enabled policy types.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DisablePolicyTypeResponse Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

Read DisablePolicyTypeResponse Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

Show DisablePolicyTypeResponse Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

Generic DisablePolicyTypeResponse Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

Associated Types

type Rep DisablePolicyTypeResponse :: Type -> Type #

NFData DisablePolicyTypeResponse Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

type Rep DisablePolicyTypeResponse Source # 
Instance details

Defined in Amazonka.Organizations.DisablePolicyType

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

newDisablePolicyTypeResponse Source #

Create a value of DisablePolicyTypeResponse 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:root:DisablePolicyTypeResponse', disablePolicyTypeResponse_root - A structure that shows the root with the updated list of enabled policy types.

$sel:httpStatus:DisablePolicyTypeResponse', disablePolicyTypeResponse_httpStatus - The response's http status code.

Response Lenses

disablePolicyTypeResponse_root :: Lens' DisablePolicyTypeResponse (Maybe Root) Source #

A structure that shows the root with the updated list of enabled policy types.