amazonka-organizations-2.0: Amazon Organizations 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.Organizations.DeregisterDelegatedAdministrator

Description

Removes the specified member Amazon Web Services account as a delegated administrator for the specified Amazon Web Services service.

Deregistering a delegated administrator can have unintended impacts on the functionality of the enabled Amazon Web Services service. See the documentation for the enabled service before you deregister a delegated administrator so that you understand any potential impacts.

You can run this action only for Amazon Web Services services that support this feature. For a current list of services that support it, see the column Supports Delegated Administrator in the table at Amazon Web Services Services that you can use with Organizations in the Organizations User Guide.

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

Synopsis

Creating a Request

data DeregisterDelegatedAdministrator Source #

See: newDeregisterDelegatedAdministrator smart constructor.

Constructors

DeregisterDelegatedAdministrator' 

Fields

  • accountId :: Text

    The account ID number of the member account in the organization that you want to deregister as a delegated administrator.

  • servicePrincipal :: Text

    The service principal name of an Amazon Web Services service for which the account is a delegated administrator.

    Delegated administrator privileges are revoked for only the specified Amazon Web Services service from the member account. If the specified service is the only service for which the member account is a delegated administrator, the operation also revokes Organizations read action permissions.

Instances

Instances details
ToJSON DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

ToHeaders DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

ToPath DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

ToQuery DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

AWSRequest DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Generic DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Associated Types

type Rep DeregisterDelegatedAdministrator :: Type -> Type #

Read DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Show DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

NFData DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Eq DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Hashable DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

type AWSResponse DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

type Rep DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

type Rep DeregisterDelegatedAdministrator = D1 ('MetaData "DeregisterDelegatedAdministrator" "Amazonka.Organizations.DeregisterDelegatedAdministrator" "amazonka-organizations-2.0-JONpdX4PtttLcKxQshpOlA" 'False) (C1 ('MetaCons "DeregisterDelegatedAdministrator'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "servicePrincipal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeregisterDelegatedAdministrator Source #

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

DeregisterDelegatedAdministrator, deregisterDelegatedAdministrator_accountId - The account ID number of the member account in the organization that you want to deregister as a delegated administrator.

DeregisterDelegatedAdministrator, deregisterDelegatedAdministrator_servicePrincipal - The service principal name of an Amazon Web Services service for which the account is a delegated administrator.

Delegated administrator privileges are revoked for only the specified Amazon Web Services service from the member account. If the specified service is the only service for which the member account is a delegated administrator, the operation also revokes Organizations read action permissions.

Request Lenses

deregisterDelegatedAdministrator_accountId :: Lens' DeregisterDelegatedAdministrator Text Source #

The account ID number of the member account in the organization that you want to deregister as a delegated administrator.

deregisterDelegatedAdministrator_servicePrincipal :: Lens' DeregisterDelegatedAdministrator Text Source #

The service principal name of an Amazon Web Services service for which the account is a delegated administrator.

Delegated administrator privileges are revoked for only the specified Amazon Web Services service from the member account. If the specified service is the only service for which the member account is a delegated administrator, the operation also revokes Organizations read action permissions.

Destructuring the Response

data DeregisterDelegatedAdministratorResponse Source #

Instances

Instances details
Generic DeregisterDelegatedAdministratorResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Read DeregisterDelegatedAdministratorResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Show DeregisterDelegatedAdministratorResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

NFData DeregisterDelegatedAdministratorResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Eq DeregisterDelegatedAdministratorResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

type Rep DeregisterDelegatedAdministratorResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

type Rep DeregisterDelegatedAdministratorResponse = D1 ('MetaData "DeregisterDelegatedAdministratorResponse" "Amazonka.Organizations.DeregisterDelegatedAdministrator" "amazonka-organizations-2.0-JONpdX4PtttLcKxQshpOlA" 'False) (C1 ('MetaCons "DeregisterDelegatedAdministratorResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeregisterDelegatedAdministratorResponse :: DeregisterDelegatedAdministratorResponse Source #

Create a value of DeregisterDelegatedAdministratorResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.