| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.Route53Domains.GetDomainSuggestions
Description
The GetDomainSuggestions operation returns a list of suggested domain names given a string, which can either be a domain name or simply a word or phrase (without spaces).
Synopsis
- getDomainSuggestions :: Text -> Int -> Bool -> GetDomainSuggestions
- data GetDomainSuggestions
- gdsDomainName :: Lens' GetDomainSuggestions Text
- gdsSuggestionCount :: Lens' GetDomainSuggestions Int
- gdsOnlyAvailable :: Lens' GetDomainSuggestions Bool
- getDomainSuggestionsResponse :: Int -> GetDomainSuggestionsResponse
- data GetDomainSuggestionsResponse
- gdsrsSuggestionsList :: Lens' GetDomainSuggestionsResponse [DomainSuggestion]
- gdsrsResponseStatus :: Lens' GetDomainSuggestionsResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Int | |
| -> Bool | |
| -> GetDomainSuggestions |
Creates a value of GetDomainSuggestions with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdsDomainName- A domain name that you want to use as the basis for a list of possible domain names. The domain name must contain a top-level domain (TLD), such as .com, that Amazon Route 53 supports. For a list of TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide .gdsSuggestionCount- The number of suggested domain names that you want Amazon Route 53 to return.gdsOnlyAvailable- IfOnlyAvailableistrue, Amazon Route 53 returns only domain names that are available. IfOnlyAvailableisfalse, Amazon Route 53 returns domain names without checking whether they're available to be registered. To determine whether the domain is available, you can callcheckDomainAvailabilityfor each suggestion.
data GetDomainSuggestions Source #
See: getDomainSuggestions smart constructor.
Instances
Request Lenses
gdsDomainName :: Lens' GetDomainSuggestions Text Source #
A domain name that you want to use as the basis for a list of possible domain names. The domain name must contain a top-level domain (TLD), such as .com, that Amazon Route 53 supports. For a list of TLDs, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide .
gdsSuggestionCount :: Lens' GetDomainSuggestions Int Source #
The number of suggested domain names that you want Amazon Route 53 to return.
gdsOnlyAvailable :: Lens' GetDomainSuggestions Bool Source #
If OnlyAvailable is true , Amazon Route 53 returns only domain names that are available. If OnlyAvailable is false , Amazon Route 53 returns domain names without checking whether they're available to be registered. To determine whether the domain is available, you can call checkDomainAvailability for each suggestion.
Destructuring the Response
getDomainSuggestionsResponse Source #
Arguments
| :: Int | |
| -> GetDomainSuggestionsResponse |
Creates a value of GetDomainSuggestionsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdsrsSuggestionsList- A list of possible domain names. If you specifiedtrueforOnlyAvailablein the request, the list contains only domains that are available for registration.gdsrsResponseStatus- -- | The response status code.
data GetDomainSuggestionsResponse Source #
See: getDomainSuggestionsResponse smart constructor.
Instances
Response Lenses
gdsrsSuggestionsList :: Lens' GetDomainSuggestionsResponse [DomainSuggestion] Source #
A list of possible domain names. If you specified true for OnlyAvailable in the request, the list contains only domains that are available for registration.
gdsrsResponseStatus :: Lens' GetDomainSuggestionsResponse Int Source #
- - | The response status code.