Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Used to update the configuration related to Organizations. Can only be called from a Security Hub administrator account.
Synopsis
- data UpdateOrganizationConfiguration = UpdateOrganizationConfiguration' {
- autoEnable :: Bool
- newUpdateOrganizationConfiguration :: Bool -> UpdateOrganizationConfiguration
- updateOrganizationConfiguration_autoEnable :: Lens' UpdateOrganizationConfiguration Bool
- data UpdateOrganizationConfigurationResponse = UpdateOrganizationConfigurationResponse' {
- httpStatus :: Int
- newUpdateOrganizationConfigurationResponse :: Int -> UpdateOrganizationConfigurationResponse
- updateOrganizationConfigurationResponse_httpStatus :: Lens' UpdateOrganizationConfigurationResponse Int
Creating a Request
data UpdateOrganizationConfiguration Source #
See: newUpdateOrganizationConfiguration
smart constructor.
UpdateOrganizationConfiguration' | |
|
Instances
newUpdateOrganizationConfiguration Source #
Create a value of UpdateOrganizationConfiguration
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:autoEnable:UpdateOrganizationConfiguration'
, updateOrganizationConfiguration_autoEnable
- Whether to automatically enable Security Hub for new accounts in the
organization.
By default, this is false
, and new accounts are not added
automatically.
To automatically enable Security Hub for new accounts, set this to
true
.
Request Lenses
updateOrganizationConfiguration_autoEnable :: Lens' UpdateOrganizationConfiguration Bool Source #
Whether to automatically enable Security Hub for new accounts in the organization.
By default, this is false
, and new accounts are not added
automatically.
To automatically enable Security Hub for new accounts, set this to
true
.
Destructuring the Response
data UpdateOrganizationConfigurationResponse Source #
See: newUpdateOrganizationConfigurationResponse
smart constructor.
UpdateOrganizationConfigurationResponse' | |
|
Instances
Eq UpdateOrganizationConfigurationResponse Source # | |
Read UpdateOrganizationConfigurationResponse Source # | |
Show UpdateOrganizationConfigurationResponse Source # | |
Generic UpdateOrganizationConfigurationResponse Source # | |
Defined in Amazonka.SecurityHub.UpdateOrganizationConfiguration type Rep UpdateOrganizationConfigurationResponse :: Type -> Type # | |
NFData UpdateOrganizationConfigurationResponse Source # | |
type Rep UpdateOrganizationConfigurationResponse Source # | |
Defined in Amazonka.SecurityHub.UpdateOrganizationConfiguration type Rep UpdateOrganizationConfigurationResponse = D1 ('MetaData "UpdateOrganizationConfigurationResponse" "Amazonka.SecurityHub.UpdateOrganizationConfiguration" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" 'False) (C1 ('MetaCons "UpdateOrganizationConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateOrganizationConfigurationResponse Source #
Create a value of UpdateOrganizationConfigurationResponse
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:UpdateOrganizationConfigurationResponse'
, updateOrganizationConfigurationResponse_httpStatus
- The response's http status code.
Response Lenses
updateOrganizationConfigurationResponse_httpStatus :: Lens' UpdateOrganizationConfigurationResponse Int Source #
The response's http status code.