Skip to content
v2.278.0

CfnScopeProps Struct ​

Properties for defining a CfnScope.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networksecuritymanager as networksecuritymanager } from 'aws-cdk-lib';
const cfnScopeProps: networksecuritymanager.CfnScopeProps = {
  scopeName: 'scopeName',

  // the properties below are optional
  scopeConfiguration: 'scopeConfiguration',
  scopeDescription: 'scopeDescription',
  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_networksecuritymanager as networksecuritymanager

cfn_scope_props = networksecuritymanager.CfnScopeProps(
    scope_name="scopeName",

    # the properties below are optional
    scope_configuration="scopeConfiguration",
    scope_description="scopeDescription",
    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.networksecuritymanager.*;

CfnScopeProps cfnScopeProps = CfnScopeProps.builder()
        .scopeName("scopeName")

        // the properties below are optional
        .scopeConfiguration("scopeConfiguration")
        .scopeDescription("scopeDescription")
        .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.NetworkSecurityManager;

var cfnScopeProps = new CfnScopeProps {
    ScopeName = "scopeName",

    // the properties below are optional
    ScopeConfiguration = "scopeConfiguration",
    ScopeDescription = "scopeDescription",
    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"

cfnScopeProps := &CfnScopeProps{
	ScopeName: jsii.String("scopeName"),

	// the properties below are optional
	ScopeConfiguration: jsii.String("scopeConfiguration"),
	ScopeDescription: jsii.String("scopeDescription"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

scopeConfigurationoptionalstringscope_configurationoptionalstrscopeConfigurationoptionalStringScopeConfigurationoptionalstringScopeConfigurationoptional*string #
The scope configuration as a JSON string.
scopeDescriptionoptionalstringscope_descriptionoptionalstrscopeDescriptionoptionalStringScopeDescriptionoptionalstringScopeDescriptionoptional*string #
A description of the scope.
scopeNamestringscope_namestrscopeNameStringScopeNamestringScopeName*string required #
The name of the scope.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags associated with the scope.