This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
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 Pattern: [\s\S]*Minimum: 0Maximum: 256Update requires: No interruption 
- GlobalNetworkId
- 
                    The ID of the global network. Required: Yes Type: String Pattern: [\s\S]*Minimum: 0Maximum: 50Update 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 
- 
                            
- 
                    The tags for the site. Required: No Type: Array of Tag Update requires: No interruption 
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the IDs of the global network and the site. For example: global-network-01231231231231231|site-444555aaabbb11223.
For more information about using the Ref function, see Ref.
Fn::GetAtt
The Fn::GetAtt intrinsic 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::GetAtt intrinsic function, see Fn::GetAtt.
- CreatedAt
- 
                            The time that the site was created. 
- SiteArn
- 
                            The ARN of the site. For example, arn:aws:networkmanager::123456789012:site/global-network-01231231231231231/site-444555aaabbb11223.
- SiteId
- 
                            The ID of the site. For example, site-444555aaabbb11223.
- State
- 
                            The current state of the site. 
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