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 site in a global network.
Synopsis
- data CreateSite = CreateSite' {}
- newCreateSite :: Text -> CreateSite
- createSite_location :: Lens' CreateSite (Maybe Location)
- createSite_description :: Lens' CreateSite (Maybe Text)
- createSite_tags :: Lens' CreateSite (Maybe [Tag])
- createSite_globalNetworkId :: Lens' CreateSite Text
- data CreateSiteResponse = CreateSiteResponse' {
- site :: Maybe Site
- httpStatus :: Int
- newCreateSiteResponse :: Int -> CreateSiteResponse
- createSiteResponse_site :: Lens' CreateSiteResponse (Maybe Site)
- createSiteResponse_httpStatus :: Lens' CreateSiteResponse Int
Creating a Request
data CreateSite Source #
See: newCreateSite
smart constructor.
CreateSite' | |
|
Instances
Create a value of CreateSite
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:location:CreateSite'
, createSite_location
- The site location. This information is used for visualization in the
Network Manager console. If you specify the address, the latitude and
longitude are automatically calculated.
Address
: The physical address of the site.Latitude
: The latitude of the site.Longitude
: The longitude of the site.
$sel:description:CreateSite'
, createSite_description
- A description of your site.
Length Constraints: Maximum length of 256 characters.
$sel:tags:CreateSite'
, createSite_tags
- The tags to apply to the resource during creation.
$sel:globalNetworkId:CreateSite'
, createSite_globalNetworkId
- The ID of the global network.
Request Lenses
createSite_location :: Lens' CreateSite (Maybe Location) Source #
The site location. This information is used for visualization in the Network Manager console. If you specify the address, the latitude and longitude are automatically calculated.
Address
: The physical address of the site.Latitude
: The latitude of the site.Longitude
: The longitude of the site.
createSite_description :: Lens' CreateSite (Maybe Text) Source #
A description of your site.
Length Constraints: Maximum length of 256 characters.
createSite_tags :: Lens' CreateSite (Maybe [Tag]) Source #
The tags to apply to the resource during creation.
createSite_globalNetworkId :: Lens' CreateSite Text Source #
The ID of the global network.
Destructuring the Response
data CreateSiteResponse Source #
See: newCreateSiteResponse
smart constructor.
CreateSiteResponse' | |
|
Instances
newCreateSiteResponse Source #
Create a value of CreateSiteResponse
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:site:CreateSiteResponse'
, createSiteResponse_site
- Information about the site.
$sel:httpStatus:CreateSiteResponse'
, createSiteResponse_httpStatus
- The response's http status code.
Response Lenses
createSiteResponse_site :: Lens' CreateSiteResponse (Maybe Site) Source #
Information about the site.
createSiteResponse_httpStatus :: Lens' CreateSiteResponse Int Source #
The response's http status code.