CfnScopeProps Struct
Properties for defining a CfnScope.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkflowmonitor as networkflowmonitor } from 'aws-cdk-lib';
const cfnScopeProps: networkflowmonitor.CfnScopeProps = {
targets: [{
region: 'region',
targetIdentifier: {
targetId: {
accountId: 'accountId',
},
targetType: 'targetType',
},
}],
// the properties below are optional
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_networkflowmonitor as networkflowmonitor
cfn_scope_props = networkflowmonitor.CfnScopeProps(
targets=[networkflowmonitor.CfnScope.TargetResourceProperty(
region="region",
target_identifier=networkflowmonitor.CfnScope.TargetIdentifierProperty(
target_id=networkflowmonitor.CfnScope.TargetIdProperty(
account_id="accountId"
),
target_type="targetType"
)
)],
# the properties below are optional
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.networkflowmonitor.*;
CfnScopeProps cfnScopeProps = CfnScopeProps.builder()
.targets(List.of(TargetResourceProperty.builder()
.region("region")
.targetIdentifier(TargetIdentifierProperty.builder()
.targetId(TargetIdProperty.builder()
.accountId("accountId")
.build())
.targetType("targetType")
.build())
.build()))
// the properties below are optional
.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.NetworkFlowMonitor;
var cfnScopeProps = new CfnScopeProps {
Targets = new [] { new TargetResourceProperty {
Region = "region",
TargetIdentifier = new TargetIdentifierProperty {
TargetId = new TargetIdProperty {
AccountId = "accountId"
},
TargetType = "targetType"
}
} },
// the properties below are optional
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{
Targets: []interface{}{
&TargetResourceProperty{
Region: jsii.String("region"),
TargetIdentifier: &TargetIdentifierProperty{
TargetId: &TargetIdProperty{
AccountId: jsii.String("accountId"),
},
TargetType: jsii.String("targetType"),
},
},
},
// the properties below are optional
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The tags for the scope.
targetsIResolvable | IResolvable | CfnScope.TargetResourceProperty[]targetstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TargetResourceProperty]]]targetsIResolvableTargetsIResolvableTargetsinterface{} required #The targets for the scope.