Skip to content
v2.277.0

CfnCoreNetworkProps Struct ​

Properties for defining a CfnCoreNetwork.

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';

declare const policyDocument: any;
const cfnCoreNetworkProps: networkmanager.CfnCoreNetworkProps = {
  globalNetworkId: 'globalNetworkId',

  // the properties below are optional
  description: 'description',
  policyDocument: policyDocument,
  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

# policy_document: Any

cfn_core_network_props = networkmanager.CfnCoreNetworkProps(
    global_network_id="globalNetworkId",

    # the properties below are optional
    description="description",
    policy_document=policy_document,
    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.*;

Object policyDocument;

CfnCoreNetworkProps cfnCoreNetworkProps = CfnCoreNetworkProps.builder()
        .globalNetworkId("globalNetworkId")

        // the properties below are optional
        .description("description")
        .policyDocument(policyDocument)
        .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 policyDocument;

var cfnCoreNetworkProps = new CfnCoreNetworkProps {
    GlobalNetworkId = "globalNetworkId",

    // the properties below are optional
    Description = "description",
    PolicyDocument = policyDocument,
    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"

var policyDocument interface{}

cfnCoreNetworkProps := &CfnCoreNetworkProps{
	GlobalNetworkId: jsii.String("globalNetworkId"),

	// the properties below are optional
	Description: jsii.String("description"),
	PolicyDocument: policyDocument,
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The description of a core network.
globalNetworkIdstringglobal_network_idstrglobalNetworkIdStringGlobalNetworkIdstringGlobalNetworkId*stringrequired#
The ID of the global network that your core network is a part of.
policyDocumentoptionalanypolicy_documentoptionalAnypolicyDocumentoptionalObjectPolicyDocumentoptionalobjectPolicyDocumentoptionalinterface{}#
Describes a core network policy. For more information, see [Core network policies](https://docs.aws.amazon.com/network-manager/latest/cloudwan/cloudwan-policy-change-sets.html) .

If you update the policy document, CloudFormation will apply the core network change set generated from the updated policy document, and then set it as the LIVE policy.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The list of key-value tags associated with a core network.