amazonka-networkmanager-2.0: Amazon Network Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.NetworkManager.CreateSite

Description

Creates a new site in a global network.

Synopsis

Creating a Request

data CreateSite Source #

See: newCreateSite smart constructor.

Constructors

CreateSite' 

Fields

  • description :: Maybe Text

    A description of your site.

    Constraints: Maximum length of 256 characters.

  • location :: Maybe (Sensitive 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.
  • tags :: Maybe [Tag]

    The tags to apply to the resource during creation.

  • globalNetworkId :: Text

    The ID of the global network.

Instances

Instances details
ToJSON CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

ToHeaders CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Methods

toHeaders :: CreateSite -> [Header] #

ToPath CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

ToQuery CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

AWSRequest CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Associated Types

type AWSResponse CreateSite #

Generic CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Associated Types

type Rep CreateSite :: Type -> Type #

Show CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

NFData CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Methods

rnf :: CreateSite -> () #

Eq CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Hashable CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

type AWSResponse CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

type Rep CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

type Rep CreateSite = D1 ('MetaData "CreateSite" "Amazonka.NetworkManager.CreateSite" "amazonka-networkmanager-2.0-4HNcDlBc00x67cUJWWz3sw" 'False) (C1 ('MetaCons "CreateSite'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Location)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "globalNetworkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateSite Source #

Arguments

:: Text

CreateSite

-> 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

Instances details
Generic CreateSiteResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Associated Types

type Rep CreateSiteResponse :: Type -> Type #

Show CreateSiteResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

NFData CreateSiteResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Methods

rnf :: CreateSiteResponse -> () #

Eq CreateSiteResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

type Rep CreateSiteResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

type Rep CreateSiteResponse = D1 ('MetaData "CreateSiteResponse" "Amazonka.NetworkManager.CreateSite" "amazonka-networkmanager-2.0-4HNcDlBc00x67cUJWWz3sw" 'False) (C1 ('MetaCons "CreateSiteResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "site") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Site)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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