Skip to content
v2.278.0

CfnSiteProps Struct ​

Properties for defining a CfnSite.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkmanager as networkmanager } from 'aws-cdk-lib';
const cfnSiteProps: networkmanager.CfnSiteProps = {
  globalNetworkId: 'globalNetworkId',

  // the properties below are optional
  description: 'description',
  location: {
    address: 'address',
    latitude: 'latitude',
    longitude: 'longitude',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkmanager as networkmanager

cfn_site_props = networkmanager.CfnSiteProps(
    global_network_id="globalNetworkId",

    # the properties below are optional
    description="description",
    location=networkmanager.CfnSite.LocationProperty(
        address="address",
        latitude="latitude",
        longitude="longitude"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkmanager.*;

CfnSiteProps cfnSiteProps = CfnSiteProps.builder()
        .globalNetworkId("globalNetworkId")

        // the properties below are optional
        .description("description")
        .location(LocationProperty.builder()
                .address("address")
                .latitude("latitude")
                .longitude("longitude")
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkManager;

var cfnSiteProps = new CfnSiteProps {
    GlobalNetworkId = "globalNetworkId",

    // the properties below are optional
    Description = "description",
    Location = new LocationProperty {
        Address = "address",
        Latitude = "latitude",
        Longitude = "longitude"
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnSiteProps := &CfnSiteProps{
	GlobalNetworkId: jsii.String("globalNetworkId"),

	// the properties below are optional
	Description: jsii.String("description"),
	Location: &LocationProperty{
		Address: jsii.String("address"),
		Latitude: jsii.String("latitude"),
		Longitude: jsii.String("longitude"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description of your site.

Constraints: Maximum length of 256 characters.

globalNetworkIdstringglobal_network_idstrglobalNetworkIdStringGlobalNetworkIdstringGlobalNetworkId*string required #
The ID of the global network.
locationoptionalIResolvable | CfnSite.LocationPropertylocationoptionaltyping.Union[IResolvable, LocationProperty]locationoptionalIResolvableLocationoptionalIResolvableLocationoptionalinterface{} #
The site location.
notes

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.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags for the site.