AddNetworkActionProps Struct
Properties for adding a new action to a listener.
| Source | aws-elasticloadbalancingv2/lib/nlb/network-listener.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
declare const networkListenerAction: elbv2.NetworkListenerAction;
const addNetworkActionProps: elbv2.AddNetworkActionProps = {
action: networkListenerAction,
};
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_elasticloadbalancingv2 as elbv2
# network_listener_action: elbv2.NetworkListenerAction
add_network_action_props = elbv2.AddNetworkActionProps(
action=network_listener_action
)
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.elasticloadbalancingv2.*;
NetworkListenerAction networkListenerAction;
AddNetworkActionProps addNetworkActionProps = AddNetworkActionProps.builder()
.action(networkListenerAction)
.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.ElasticLoadBalancingV2;
NetworkListenerAction networkListenerAction;
var addNetworkActionProps = new AddNetworkActionProps {
Action = networkListenerAction
};
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 networkListenerAction NetworkListenerAction
addNetworkActionProps := &AddNetworkActionProps{
Action: networkListenerAction,
}
Properties
actionNetworkListenerActionactionNetworkListenerActionactionNetworkListenerActionActionNetworkListenerActionActionNetworkListenerAction required #Action to perform.