AWS::NetworkManager::Site
Creates a new site in a global network.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::NetworkManager::Site", "Properties" : { "Description" :String, "GlobalNetworkId" :String, "Location" :Location, "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::NetworkManager::Site Properties: Description:StringGlobalNetworkId:StringLocation:LocationTags:- Tag
Properties
Description-
A description of your site.
Constraints: Maximum length of 256 characters.
Required: No
Type: String
Minimum:
0Maximum:
256Pattern:
[\s\S]*Update requires: No interruption
GlobalNetworkId-
The ID of the global network.
Required: Yes
Type: String
Minimum:
0Maximum:
50Pattern:
[\s\S]*Update requires: Replacement
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.
Required: No
Type: Location
Update requires: No interruption
-
Tags-
The tags for the site.
Required: No
Type: List of Tag
Update requires: No interruption
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns the IDs of the global network and the site. For example: global-network-01231231231231231|site-444555aaabbb11223.
For more information about using the Reffunction, see Ref.
Fn::GetAtt
The Fn::GetAttintrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAttintrinsic function, see Fn::GetAtt.
Examples
Site
The following example creates a site in a global network.
JSON
{ "Type": "AWS::NetworkManager::Site", "Properties": { "Description": "Chicago office", "GlobalNetworkId": { "Ref": "GlobalNetwork" }, "Location": { "Address": "227 W Monroe St, Chicago, IL 60606", "Latitude": "41.880520", "Longitude": "-87.634720" }, "Tags": [ { "Key": "Network", "Value": "north-america" } ] } }
YAML
Type: AWS::NetworkManager::Site Properties: Description: "Chicago office" GlobalNetworkId: !Ref GlobalNetwork Location: Address: "227 W Monroe St, Chicago, IL 60606" Latitude: "41.880520" Longitude: "-87.634720" Tags: - Key: Network Value: north-america