| 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.CloudSearch.UpdateAvailabilityOptions
Description
Configures the availability options for a domain. Enabling the Multi-AZ option expands an Amazon CloudSearch domain to an additional Availability Zone in the same Region to increase fault tolerance in the event of a service disruption. Changes to the Multi-AZ option can take about half an hour to become active. For more information, see Configuring Availability Options in the Amazon CloudSearch Developer Guide.
Synopsis
- data UpdateAvailabilityOptions = UpdateAvailabilityOptions' {
- domainName :: Text
- multiAZ :: Bool
- newUpdateAvailabilityOptions :: Text -> Bool -> UpdateAvailabilityOptions
- updateAvailabilityOptions_domainName :: Lens' UpdateAvailabilityOptions Text
- updateAvailabilityOptions_multiAZ :: Lens' UpdateAvailabilityOptions Bool
- data UpdateAvailabilityOptionsResponse = UpdateAvailabilityOptionsResponse' {}
- newUpdateAvailabilityOptionsResponse :: Int -> UpdateAvailabilityOptionsResponse
- updateAvailabilityOptionsResponse_availabilityOptions :: Lens' UpdateAvailabilityOptionsResponse (Maybe AvailabilityOptionsStatus)
- updateAvailabilityOptionsResponse_httpStatus :: Lens' UpdateAvailabilityOptionsResponse Int
Creating a Request
data UpdateAvailabilityOptions Source #
Container for the parameters to the UpdateAvailabilityOptions
operation. Specifies the name of the domain you want to update and the
Multi-AZ availability option.
See: newUpdateAvailabilityOptions smart constructor.
Constructors
| UpdateAvailabilityOptions' | |
Fields
| |
Instances
newUpdateAvailabilityOptions Source #
Arguments
| :: Text | |
| -> Bool | |
| -> UpdateAvailabilityOptions |
Create a value of UpdateAvailabilityOptions 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:
UpdateAvailabilityOptions, updateAvailabilityOptions_domainName - Undocumented member.
$sel:multiAZ:UpdateAvailabilityOptions', updateAvailabilityOptions_multiAZ - You expand an existing search domain to a second Availability Zone by
setting the Multi-AZ option to true. Similarly, you can turn off the
Multi-AZ option to downgrade the domain to a single Availability Zone by
setting the Multi-AZ option to false.
Request Lenses
updateAvailabilityOptions_domainName :: Lens' UpdateAvailabilityOptions Text Source #
Undocumented member.
updateAvailabilityOptions_multiAZ :: Lens' UpdateAvailabilityOptions Bool Source #
You expand an existing search domain to a second Availability Zone by
setting the Multi-AZ option to true. Similarly, you can turn off the
Multi-AZ option to downgrade the domain to a single Availability Zone by
setting the Multi-AZ option to false.
Destructuring the Response
data UpdateAvailabilityOptionsResponse Source #
The result of a UpdateAvailabilityOptions request. Contains the status
of the domain's availability options.
See: newUpdateAvailabilityOptionsResponse smart constructor.
Constructors
| UpdateAvailabilityOptionsResponse' | |
Fields
| |
Instances
newUpdateAvailabilityOptionsResponse Source #
Arguments
| :: Int | |
| -> UpdateAvailabilityOptionsResponse |
Create a value of UpdateAvailabilityOptionsResponse 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:availabilityOptions:UpdateAvailabilityOptionsResponse', updateAvailabilityOptionsResponse_availabilityOptions - The newly-configured availability options. Indicates whether Multi-AZ is
enabled for the domain.
$sel:httpStatus:UpdateAvailabilityOptionsResponse', updateAvailabilityOptionsResponse_httpStatus - The response's http status code.
Response Lenses
updateAvailabilityOptionsResponse_availabilityOptions :: Lens' UpdateAvailabilityOptionsResponse (Maybe AvailabilityOptionsStatus) Source #
The newly-configured availability options. Indicates whether Multi-AZ is enabled for the domain.
updateAvailabilityOptionsResponse_httpStatus :: Lens' UpdateAvailabilityOptionsResponse Int Source #
The response's http status code.