Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data DeregisterDelegatedAdministrator = DeregisterDelegatedAdministrator' {}
- newDeregisterDelegatedAdministrator :: Text -> Text -> DeregisterDelegatedAdministrator
- deregisterDelegatedAdministrator_accountId :: Lens' DeregisterDelegatedAdministrator Text
- deregisterDelegatedAdministrator_servicePrincipal :: Lens' DeregisterDelegatedAdministrator Text
- data DeregisterDelegatedAdministratorResponse = DeregisterDelegatedAdministratorResponse' {
- newDeregisterDelegatedAdministratorResponse :: DeregisterDelegatedAdministratorResponse
Creating a Request
data DeregisterDelegatedAdministrator Source #
See: newDeregisterDelegatedAdministrator
smart constructor.
DeregisterDelegatedAdministrator' | |
|
Instances
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 #
See: newDeregisterDelegatedAdministratorResponse
smart constructor.
Instances
Generic DeregisterDelegatedAdministratorResponse Source # | |
Defined in Amazonka.Organizations.DeregisterDelegatedAdministrator type Rep DeregisterDelegatedAdministratorResponse :: Type -> Type # | |
Read DeregisterDelegatedAdministratorResponse Source # | |
Show DeregisterDelegatedAdministratorResponse Source # | |
NFData DeregisterDelegatedAdministratorResponse Source # | |
Eq DeregisterDelegatedAdministratorResponse Source # | |
type Rep DeregisterDelegatedAdministratorResponse Source # | |
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.