libZSservicesZSamazonka-networkmanagerZSamazonka-networkmanager
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • 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.
  • description :: Maybe Text

    A description of your site.

    Length Constraints: Maximum length of 256 characters.

  • tags :: Maybe [Tag]

    The tags to apply to the resource during creation.

  • globalNetworkId :: Text

    The ID of the global network.

Instances

Instances details
Eq CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Show CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Generic CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Associated Types

type Rep CreateSite :: Type -> Type #

NFData CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Methods

rnf :: CreateSite -> () #

Hashable CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

ToJSON CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

AWSRequest CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Associated Types

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

type Rep CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

type Rep CreateSite = D1 ('MetaData "CreateSite" "Amazonka.NetworkManager.CreateSite" "libZSservicesZSamazonka-networkmanagerZSamazonka-networkmanager" 'False) (C1 ('MetaCons "CreateSite'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Location))) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "globalNetworkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateSite Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

newCreateSite Source #

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.

Constructors

CreateSiteResponse' 

Fields

Instances

Instances details
Eq CreateSiteResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Show CreateSiteResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Generic CreateSiteResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Associated Types

type Rep CreateSiteResponse :: Type -> Type #

NFData CreateSiteResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

Methods

rnf :: CreateSiteResponse -> () #

type Rep CreateSiteResponse Source # 
Instance details

Defined in Amazonka.NetworkManager.CreateSite

type Rep CreateSiteResponse = D1 ('MetaData "CreateSiteResponse" "Amazonka.NetworkManager.CreateSite" "libZSservicesZSamazonka-networkmanagerZSamazonka-networkmanager" '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