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 |
Updates the specified domain. This API has clobber behavior, and clears and replaces all attributes. If an optional field, such as 'Description' is not provided, it is removed from the domain.
Synopsis
- data UpdateDomain = UpdateDomain' {}
- newUpdateDomain :: Text -> Text -> ServerSideEncryptionConfiguration -> UpdateDomain
- updateDomain_description :: Lens' UpdateDomain (Maybe Text)
- updateDomain_domainId :: Lens' UpdateDomain Text
- updateDomain_name :: Lens' UpdateDomain Text
- updateDomain_serverSideEncryptionConfiguration :: Lens' UpdateDomain ServerSideEncryptionConfiguration
- data UpdateDomainResponse = UpdateDomainResponse' {
- domain :: Maybe Domain
- httpStatus :: Int
- newUpdateDomainResponse :: Int -> UpdateDomainResponse
- updateDomainResponse_domain :: Lens' UpdateDomainResponse (Maybe Domain)
- updateDomainResponse_httpStatus :: Lens' UpdateDomainResponse Int
Creating a Request
data UpdateDomain Source #
See: newUpdateDomain
smart constructor.
UpdateDomain' | |
|
Instances
Create a value of UpdateDomain
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:
UpdateDomain
, updateDomain_description
- A brief description of the domain.
UpdateDomain
, updateDomain_domainId
- The identifier of the domain to be updated.
UpdateDomain
, updateDomain_name
- The name of the domain.
UpdateDomain
, updateDomain_serverSideEncryptionConfiguration
- The configuration, containing the KMS key identifier, to be used by
Voice ID for the server-side encryption of your data. Changing the
domain's associated KMS key immediately triggers an asynchronous
process to remove dependency on the old KMS key, such that the domain's
data can only be accessed using the new KMS key. The domain's
ServerSideEncryptionUpdateDetails
contains the details for this
process.
Request Lenses
updateDomain_description :: Lens' UpdateDomain (Maybe Text) Source #
A brief description of the domain.
updateDomain_domainId :: Lens' UpdateDomain Text Source #
The identifier of the domain to be updated.
updateDomain_name :: Lens' UpdateDomain Text Source #
The name of the domain.
updateDomain_serverSideEncryptionConfiguration :: Lens' UpdateDomain ServerSideEncryptionConfiguration Source #
The configuration, containing the KMS key identifier, to be used by
Voice ID for the server-side encryption of your data. Changing the
domain's associated KMS key immediately triggers an asynchronous
process to remove dependency on the old KMS key, such that the domain's
data can only be accessed using the new KMS key. The domain's
ServerSideEncryptionUpdateDetails
contains the details for this
process.
Destructuring the Response
data UpdateDomainResponse Source #
See: newUpdateDomainResponse
smart constructor.
UpdateDomainResponse' | |
|
Instances
newUpdateDomainResponse Source #
Create a value of UpdateDomainResponse
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:domain:UpdateDomainResponse'
, updateDomainResponse_domain
- Details about the updated domain
$sel:httpStatus:UpdateDomainResponse'
, updateDomainResponse_httpStatus
- The response's http status code.
Response Lenses
updateDomainResponse_domain :: Lens' UpdateDomainResponse (Maybe Domain) Source #
Details about the updated domain
updateDomainResponse_httpStatus :: Lens' UpdateDomainResponse Int Source #
The response's http status code.