> **Experimental**
>
> `@aws-cdk/aws-applicationsignals-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# CloudWatchAgentVersion

Provides version information and image selection for CloudWatch Agent.

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/enablement/ecs-cloudwatch-agent.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-applicationsignals-alpha/lib/enablement/ecs-cloudwatch-agent.ts#L8)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as applicationsignals_alpha from '@aws-cdk/aws-applicationsignals-alpha';
const cloudWatchAgentVersion = new applicationsignals_alpha.CloudWatchAgentVersion();
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_applicationsignals_alpha as applicationsignals_alpha

cloud_watch_agent_version = applicationsignals_alpha.CloudWatchAgentVersion()
```

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.applicationsignals.alpha.*;

CloudWatchAgentVersion cloudWatchAgentVersion = new CloudWatchAgentVersion();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.ApplicationSignals.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationSignals.Alpha;

var cloudWatchAgentVersion = new CloudWatchAgentVersion();
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkapplicationsignalsalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import applicationsignals_alpha "github.com/aws/aws-cdk-go/awscdkapplicationsignalsalpha"

cloudWatchAgentVersion := applicationsignals_alpha.NewCloudWatchAgentVersion()
```

## Initializer

TypeScript:

```ts
new CloudWatchAgentVersion()
```

Python:

```python
CloudWatchAgentVersion()
```

Java:

```java
new CloudWatchAgentVersion()
```

C# / .NET:

```csharp
new CloudWatchAgentVersion()
```

Golang:

```go
NewCloudWatchAgentVersion()
```

## Properties

- `CLOUDWATCH_AGENT_IMAGE`: string (static) — Default CloudWatch Agent image for Linux.

- `CLOUDWATCH_AGENT_IMAGE_WIN2019`: string (static) — CloudWatch Agent image for Windows Server 2019.

- `CLOUDWATCH_AGENT_IMAGE_WIN2022`: string (static) — CloudWatch Agent image for Windows Server 2022.

## Methods

- `getCloudWatchAgentImage(operatingSystemFamily?: OperatingSystemFamily): string` (static) — Gets the appropriate CloudWatch Agent image based on the operating system.

  **Parameters**

  - `operatingSystemFamily` — - The ECS operating system family.

  **Returns:** The CloudWatch Agent image URI
