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 |
Creates a new search domain. For more information, see Creating a Search Domain in the Amazon CloudSearch Developer Guide.
Synopsis
- data CreateDomain = CreateDomain' {
- domainName :: Text
- newCreateDomain :: Text -> CreateDomain
- createDomain_domainName :: Lens' CreateDomain Text
- data CreateDomainResponse = CreateDomainResponse' {}
- newCreateDomainResponse :: Int -> CreateDomainResponse
- createDomainResponse_domainStatus :: Lens' CreateDomainResponse (Maybe DomainStatus)
- createDomainResponse_httpStatus :: Lens' CreateDomainResponse Int
Creating a Request
data CreateDomain Source #
Container for the parameters to the CreateDomain
operation. Specifies
a name for the new search domain.
See: newCreateDomain
smart constructor.
CreateDomain' | |
|
Instances
Create a value of CreateDomain
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:CreateDomain'
, createDomain_domainName
- A name for the domain you are creating. Allowed characters are a-z
(lower-case letters), 0-9, and hyphen (-). Domain names must start with
a letter or number and be at least 3 and no more than 28 characters
long.
Request Lenses
createDomain_domainName :: Lens' CreateDomain Text Source #
A name for the domain you are creating. Allowed characters are a-z (lower-case letters), 0-9, and hyphen (-). Domain names must start with a letter or number and be at least 3 and no more than 28 characters long.
Destructuring the Response
data CreateDomainResponse Source #
The result of a CreateDomainRequest
. Contains the status of a newly
created domain.
See: newCreateDomainResponse
smart constructor.
CreateDomainResponse' | |
|
Instances
newCreateDomainResponse Source #
Create a value of CreateDomainResponse
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:domainStatus:CreateDomainResponse'
, createDomainResponse_domainStatus
- Undocumented member.
$sel:httpStatus:CreateDomainResponse'
, createDomainResponse_httpStatus
- The response's http status code.
Response Lenses
createDomainResponse_domainStatus :: Lens' CreateDomainResponse (Maybe DomainStatus) Source #
Undocumented member.
createDomainResponse_httpStatus :: Lens' CreateDomainResponse Int Source #
The response's http status code.