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

Description

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

Synopsis

Creating a Request

data EnableControl Source #

See: newEnableControl smart constructor.

Constructors

EnableControl' 

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 EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

ToHeaders EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

ToPath EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

ToQuery EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

AWSRequest EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

Associated Types

type AWSResponse EnableControl #

Generic EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

Associated Types

type Rep EnableControl :: Type -> Type #

Read EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

Show EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

NFData EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

Methods

rnf :: EnableControl -> () #

Eq EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

Hashable EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

type AWSResponse EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

type Rep EnableControl Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

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

newEnableControl Source #

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

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

$sel:targetIdentifier:EnableControl', enableControl_targetIdentifier - The ARN of the organizational unit.

Request Lenses

enableControl_controlIdentifier :: Lens' EnableControl Text Source #

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

enableControl_targetIdentifier :: Lens' EnableControl Text Source #

The ARN of the organizational unit.

Destructuring the Response

data EnableControlResponse Source #

See: newEnableControlResponse smart constructor.

Constructors

EnableControlResponse' 

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 EnableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

Associated Types

type Rep EnableControlResponse :: Type -> Type #

Read EnableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

Show EnableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

NFData EnableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

Methods

rnf :: EnableControlResponse -> () #

Eq EnableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

type Rep EnableControlResponse Source # 
Instance details

Defined in Amazonka.ControlTower.EnableControl

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

newEnableControlResponse Source #

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

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

Response Lenses

enableControlResponse_operationIdentifier :: Lens' EnableControlResponse Text Source #

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