| 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 |
Amazonka.Backup.UpdateGlobalSettings
Description
Updates whether the Amazon Web Services account is opted in to
cross-account backup. Returns an error if the account is not an
Organizations management account. Use the DescribeGlobalSettings API
to determine the current settings.
Synopsis
- data UpdateGlobalSettings = UpdateGlobalSettings' {
- globalSettings :: Maybe (HashMap Text Text)
- newUpdateGlobalSettings :: UpdateGlobalSettings
- updateGlobalSettings_globalSettings :: Lens' UpdateGlobalSettings (Maybe (HashMap Text Text))
- data UpdateGlobalSettingsResponse = UpdateGlobalSettingsResponse' {
- newUpdateGlobalSettingsResponse :: UpdateGlobalSettingsResponse
Creating a Request
data UpdateGlobalSettings Source #
See: newUpdateGlobalSettings smart constructor.
Constructors
| UpdateGlobalSettings' | |
Fields
| |
Instances
newUpdateGlobalSettings :: UpdateGlobalSettings Source #
Create a value of UpdateGlobalSettings 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:globalSettings:UpdateGlobalSettings', updateGlobalSettings_globalSettings - A value for isCrossAccountBackupEnabled and a Region. Example:
update-global-settings --global-settings isCrossAccountBackupEnabled=false --region us-west-2.
Request Lenses
updateGlobalSettings_globalSettings :: Lens' UpdateGlobalSettings (Maybe (HashMap Text Text)) Source #
A value for isCrossAccountBackupEnabled and a Region. Example:
update-global-settings --global-settings isCrossAccountBackupEnabled=false --region us-west-2.
Destructuring the Response
data UpdateGlobalSettingsResponse Source #
See: newUpdateGlobalSettingsResponse smart constructor.
Constructors
| UpdateGlobalSettingsResponse' | |
Instances
| Generic UpdateGlobalSettingsResponse Source # | |
Defined in Amazonka.Backup.UpdateGlobalSettings Associated Types type Rep UpdateGlobalSettingsResponse :: Type -> Type # | |
| Read UpdateGlobalSettingsResponse Source # | |
| Show UpdateGlobalSettingsResponse Source # | |
Defined in Amazonka.Backup.UpdateGlobalSettings Methods showsPrec :: Int -> UpdateGlobalSettingsResponse -> ShowS # show :: UpdateGlobalSettingsResponse -> String # showList :: [UpdateGlobalSettingsResponse] -> ShowS # | |
| NFData UpdateGlobalSettingsResponse Source # | |
Defined in Amazonka.Backup.UpdateGlobalSettings Methods rnf :: UpdateGlobalSettingsResponse -> () # | |
| Eq UpdateGlobalSettingsResponse Source # | |
Defined in Amazonka.Backup.UpdateGlobalSettings Methods (==) :: UpdateGlobalSettingsResponse -> UpdateGlobalSettingsResponse -> Bool # (/=) :: UpdateGlobalSettingsResponse -> UpdateGlobalSettingsResponse -> Bool # | |
| type Rep UpdateGlobalSettingsResponse Source # | |
Defined in Amazonka.Backup.UpdateGlobalSettings | |
newUpdateGlobalSettingsResponse :: UpdateGlobalSettingsResponse Source #
Create a value of UpdateGlobalSettingsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.