Skip to content

Resource: awsNetworkmanagerSite

Creates a site in a global network.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsNetworkmanagerGlobalNetworkExample =
  new aws.networkmanagerGlobalNetwork.NetworkmanagerGlobalNetwork(
    this,
    "example",
    {}
  );
const awsNetworkmanagerSiteExample =
  new aws.networkmanagerSite.NetworkmanagerSite(this, "example_1", {
    globalNetworkId: awsNetworkmanagerGlobalNetworkExample.id,
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsNetworkmanagerSiteExample.overrideLogicalId("example");

Argument Reference

The following arguments are supported:

  • globalNetworkId - (Required) The ID of the Global Network to create the site in.
  • description - (Optional) Description of the Site.
  • location - (Optional) The site location as documented below.
  • tags - (Optional) Key-value tags for the Site. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

The location object supports the following:

  • address - (Optional) Address of the location.
  • latitude - (Optional) Latitude of the location.
  • longitude - (Optional) Longitude of the location.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - Site Amazon Resource Name (ARN)
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Import

awsNetworkmanagerSite can be imported using the site ARN, e.g.

$ terraform import aws_networkmanager_site.example arn:aws:networkmanager::123456789012:site/global-network-0d47f6t230mz46dy4/site-444555aaabbb11223