amazonka-controltower-2.0: Amazon Control Tower 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.ControlTower.DisableControl

Description

This API call turns off a control. It starts an asynchronous operation that deletes AWS resources on the specified organizational unit and the accounts it contains. The resources will vary according to the control that you specify.

Synopsis

Creating a Request

data DisableControl Source #

See: newDisableControl smart constructor.

Constructors

DisableControl' 

Fields

  • controlIdentifier :: Text

    The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny guardrail.

  • targetIdentifier :: Text

    The ARN of the organizational unit.

Instances

Instances details
ToJSON DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

ToHeaders DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

ToPath DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

ToQuery DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

AWSRequest DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

Associated Types

type AWSResponse DisableControl #

Generic DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

Associated Types

type Rep DisableControl :: Type -> Type #

Read DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

Show DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

NFData DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

Methods

rnf :: DisableControl -> () #

Eq DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

Hashable DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

type AWSResponse DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

type Rep DisableControl Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

type Rep DisableControl = D1 ('MetaData "DisableControl" "Amazonka.ControlTower.DisableControl" "amazonka-controltower-2.0-D5OXoInTRe9EXmxA0ATl1r" 'False) (C1 ('MetaCons "DisableControl'" 'PrefixI 'True) (S1 ('MetaSel ('Just "controlIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "targetIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDisableControl Source #

Create a value of DisableControl 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:

DisableControl, disableControl_controlIdentifier - The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny guardrail.

$sel:targetIdentifier:DisableControl', disableControl_targetIdentifier - The ARN of the organizational unit.

Request Lenses

disableControl_controlIdentifier :: Lens' DisableControl Text Source #

The ARN of the control. Only Strongly recommended and Elective controls are permitted, with the exception of the Region deny guardrail.

disableControl_targetIdentifier :: Lens' DisableControl Text Source #

The ARN of the organizational unit.

Destructuring the Response

data DisableControlResponse Source #

See: newDisableControlResponse smart constructor.

Constructors

DisableControlResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • operationIdentifier :: Text

    The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.

Instances

Instances details
Generic DisableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

Associated Types

type Rep DisableControlResponse :: Type -> Type #

Read DisableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

Show DisableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

NFData DisableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

Methods

rnf :: DisableControlResponse -> () #

Eq DisableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

type Rep DisableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.DisableControl

type Rep DisableControlResponse = D1 ('MetaData "DisableControlResponse" "Amazonka.ControlTower.DisableControl" "amazonka-controltower-2.0-D5OXoInTRe9EXmxA0ATl1r" 'False) (C1 ('MetaCons "DisableControlResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "operationIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDisableControlResponse Source #

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

$sel:operationIdentifier:DisableControlResponse', disableControlResponse_operationIdentifier - The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.

Response Lenses

disableControlResponse_operationIdentifier :: Lens' DisableControlResponse Text Source #

The ID of the asynchronous operation, which is used to track status. The operation is available for 90 days.