# AnalysisLoadBalancerTargetProperty

Describes a load balancer target.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `address`: string — The IP address.

- `availabilityZone`: string — The Availability Zone.

- `instance`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNetworkInsightsAnalysis.AnalysisComponentProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnNetworkInsightsAnalysis.AnalysisComponentProperty.html) — Information about the instance.

- `port`: number — The port on which the target is listening.
