Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: AWS API Reference for UpdateAvailabilityOptions.
- updateAvailabilityOptions :: Text -> Bool -> UpdateAvailabilityOptions
- data UpdateAvailabilityOptions
- uaoDomainName :: Lens' UpdateAvailabilityOptions Text
- uaoMultiAZ :: Lens' UpdateAvailabilityOptions Bool
- updateAvailabilityOptionsResponse :: Int -> UpdateAvailabilityOptionsResponse
- data UpdateAvailabilityOptionsResponse
- uaorsAvailabilityOptions :: Lens' UpdateAvailabilityOptionsResponse (Maybe AvailabilityOptionsStatus)
- uaorsResponseStatus :: Lens' UpdateAvailabilityOptionsResponse Int
Creating a Request
updateAvailabilityOptions Source
Creates a value of UpdateAvailabilityOptions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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: updateAvailabilityOptions
smart constructor.
Request Lenses
uaoDomainName :: Lens' UpdateAvailabilityOptions Text Source
Undocumented member.
uaoMultiAZ :: 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
updateAvailabilityOptionsResponse Source
Creates a value of UpdateAvailabilityOptionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateAvailabilityOptionsResponse Source
The result of a UpdateAvailabilityOptions
request. Contains the status
of the domain's availability options.
See: updateAvailabilityOptionsResponse
smart constructor.
Response Lenses
uaorsAvailabilityOptions :: Lens' UpdateAvailabilityOptionsResponse (Maybe AvailabilityOptionsStatus) Source
The newly-configured availability options. Indicates whether Multi-AZ is enabled for the domain.
uaorsResponseStatus :: Lens' UpdateAvailabilityOptionsResponse Int Source
The response status code.