AnalysisLoadBalancerTargetProperty Struct
Describes a load balancer target.
| 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_ec2 as ec2 } from 'aws-cdk-lib';
const analysisLoadBalancerTargetProperty: ec2.CfnNetworkInsightsAnalysis.AnalysisLoadBalancerTargetProperty = {
address: 'address',
availabilityZone: 'availabilityZone',
instance: {
arn: 'arn',
id: 'id',
},
port: 123,
};
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_ec2 as ec2
analysis_load_balancer_target_property = ec2.CfnNetworkInsightsAnalysis.AnalysisLoadBalancerTargetProperty(
address="address",
availability_zone="availabilityZone",
instance=ec2.CfnNetworkInsightsAnalysis.AnalysisComponentProperty(
arn="arn",
id="id"
),
port=123
)
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.ec2.*;
AnalysisLoadBalancerTargetProperty analysisLoadBalancerTargetProperty = AnalysisLoadBalancerTargetProperty.builder()
.address("address")
.availabilityZone("availabilityZone")
.instance(AnalysisComponentProperty.builder()
.arn("arn")
.id("id")
.build())
.port(123)
.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.EC2;
var analysisLoadBalancerTargetProperty = new AnalysisLoadBalancerTargetProperty {
Address = "address",
AvailabilityZone = "availabilityZone",
Instance = new AnalysisComponentProperty {
Arn = "arn",
Id = "id"
},
Port = 123
};
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"
analysisLoadBalancerTargetProperty := &AnalysisLoadBalancerTargetProperty{
Address: jsii.String("address"),
AvailabilityZone: jsii.String("availabilityZone"),
Instance: &AnalysisComponentProperty{
Arn: jsii.String("arn"),
Id: jsii.String("id"),
},
Port: jsii.Number(123),
}
Properties
addressoptionalstringaddressoptionalstraddressoptionalStringAddressoptionalstringAddressoptional*string #The IP address.
availabilityZoneoptionalstringavailability_zoneoptionalstravailabilityZoneoptionalStringAvailabilityZoneoptionalstringAvailabilityZoneoptional*string #The Availability Zone.
instanceoptionalIResolvable | CfnNetworkInsightsAnalysis.instanceoptionaltyping.Union[IResolvable, AnalysisComponentProperty]instanceoptionalIResolvableInstanceoptionalIResolvableInstanceoptionalinterface{} #Information about the instance.
The port on which the target is listening.