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 |
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.
UpdateAvailabilityOptions' | |
|
Instances
newUpdateAvailabilityOptions Source #
:: 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:
$sel:domainName: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.
UpdateAvailabilityOptionsResponse' | |
|
Instances
Eq UpdateAvailabilityOptionsResponse Source # | |
Read UpdateAvailabilityOptionsResponse Source # | |
Show UpdateAvailabilityOptionsResponse Source # | |
Generic UpdateAvailabilityOptionsResponse Source # | |
NFData UpdateAvailabilityOptionsResponse Source # | |
Defined in Amazonka.CloudSearch.UpdateAvailabilityOptions rnf :: UpdateAvailabilityOptionsResponse -> () # | |
type Rep UpdateAvailabilityOptionsResponse Source # | |
Defined in Amazonka.CloudSearch.UpdateAvailabilityOptions type Rep UpdateAvailabilityOptionsResponse = D1 ('MetaData "UpdateAvailabilityOptionsResponse" "Amazonka.CloudSearch.UpdateAvailabilityOptions" "libZSservicesZSamazonka-cloudsearchZSamazonka-cloudsearch" 'False) (C1 ('MetaCons "UpdateAvailabilityOptionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "availabilityOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AvailabilityOptionsStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateAvailabilityOptionsResponse Source #
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.