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

Description

Removes the specified member AWS account as a delegated administrator for the specified AWS service.

Deregistering a delegated administrator can have unintended impacts on the functionality of the enabled AWS 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 AWS services that support this feature. For a current list of services that support it, see the column /Supports Delegated Administrator/ in the table at AWS Services that you can use with AWS Organizations in the AWS 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 AWS service for which the account is a delegated administrator.

    Delegated administrator privileges are revoked for only the specified AWS 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
Eq DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Read DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Show 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 #

NFData DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

Hashable DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

ToJSON DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

AWSRequest 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

type Rep DeregisterDelegatedAdministrator Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

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

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

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:

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

$sel:servicePrincipal:DeregisterDelegatedAdministrator', deregisterDelegatedAdministrator_servicePrincipal - The service principal name of an AWS service for which the account is a delegated administrator.

Delegated administrator privileges are revoked for only the specified AWS 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 AWS service for which the account is a delegated administrator.

Delegated administrator privileges are revoked for only the specified AWS 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
Eq 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

Generic DeregisterDelegatedAdministratorResponse Source # 
Instance details

Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator

NFData 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" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" '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.