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 |
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:
$sel:description:UpdateDomain'
, updateDomain_description
- A brief description about this domain.
$sel:domainId:UpdateDomain'
, updateDomain_domainId
- The identifier of the domain to be updated.
$sel:name:UpdateDomain'
, updateDomain_name
- The name of the domain.
$sel:serverSideEncryptionConfiguration:UpdateDomain'
, updateDomain_serverSideEncryptionConfiguration
- The configuration, containing the KMS Key Identifier, to be used by
Voice ID for the server-side encryption of your data. Note that all the
existing data in the domain are still encrypted using the existing key,
only the data added to domain after updating the key is encrypted using
the new key.
Request Lenses
updateDomain_description :: Lens' UpdateDomain (Maybe Text) Source #
A brief description about this 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. Note that all the existing data in the domain are still encrypted using the existing key, only the data added to domain after updating the key is encrypted using the new key.
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.