NetworkTrafficConfigProperty Struct
Network traffic configuration for the pentest.
| 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_securityagent as securityagent } from 'aws-cdk-lib';
const networkTrafficConfigProperty: securityagent.CfnPentest.NetworkTrafficConfigProperty = {
customHeaders: [{
name: 'name',
value: 'value',
}],
rules: [{
effect: 'effect',
networkTrafficRuleType: 'networkTrafficRuleType',
pattern: 'pattern',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_securityagent as securityagent
network_traffic_config_property = securityagent.CfnPentest.NetworkTrafficConfigProperty(
custom_headers=[securityagent.CfnPentest.CustomHeaderProperty(
name="name",
value="value"
)],
rules=[securityagent.CfnPentest.NetworkTrafficRuleProperty(
effect="effect",
network_traffic_rule_type="networkTrafficRuleType",
pattern="pattern"
)]
)
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.securityagent.*;
NetworkTrafficConfigProperty networkTrafficConfigProperty = NetworkTrafficConfigProperty.builder()
.customHeaders(List.of(CustomHeaderProperty.builder()
.name("name")
.value("value")
.build()))
.rules(List.of(NetworkTrafficRuleProperty.builder()
.effect("effect")
.networkTrafficRuleType("networkTrafficRuleType")
.pattern("pattern")
.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.SecurityAgent;
var networkTrafficConfigProperty = new NetworkTrafficConfigProperty {
CustomHeaders = new [] { new CustomHeaderProperty {
Name = "name",
Value = "value"
} },
Rules = new [] { new NetworkTrafficRuleProperty {
Effect = "effect",
NetworkTrafficRuleType = "networkTrafficRuleType",
Pattern = "pattern"
} }
};
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"
networkTrafficConfigProperty := &NetworkTrafficConfigProperty{
CustomHeaders: []interface{}{
&CustomHeaderProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
Rules: []interface{}{
&NetworkTrafficRuleProperty{
Effect: jsii.String("effect"),
NetworkTrafficRuleType: jsii.String("networkTrafficRuleType"),
Pattern: jsii.String("pattern"),
},
},
}
Properties
customHeadersoptionalIResolvable | IResolvable | CfnPentest.CustomHeaderProperty[]custom_headersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CustomHeaderProperty]]]customHeadersoptionalIResolvableCustomHeadersoptionalIResolvableCustomHeadersoptionalinterface{} #Custom headers to include in outbound requests.
rulesoptionalIResolvable | IResolvable | CfnPentest.rulesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, NetworkTrafficRuleProperty]]]rulesoptionalIResolvableRulesoptionalIResolvableRulesoptionalinterface{} #Ordered list of network traffic rules.