| 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 |
Amazonka.NetworkManager.CreateSite
Description
Creates a new site in a global network.
Synopsis
- data CreateSite = CreateSite' {}
- newCreateSite :: Text -> CreateSite
- createSite_description :: Lens' CreateSite (Maybe Text)
- createSite_location :: Lens' CreateSite (Maybe Location)
- 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.
Constructors
| CreateSite' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateSite |
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:
CreateSite, createSite_description - A description of your site.
Constraints: Maximum length of 256 characters.
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.
CreateSite, createSite_tags - The tags to apply to the resource during creation.
CreateSite, createSite_globalNetworkId - The ID of the global network.
Request Lenses
createSite_description :: Lens' CreateSite (Maybe Text) Source #
A description of your site.
Constraints: Maximum length of 256 characters.
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_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.
Constructors
| CreateSiteResponse' | |
Fields
| |
Instances
newCreateSiteResponse Source #
Arguments
| :: Int | |
| -> CreateSiteResponse |
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.