Experimental
@aws-cdk/aws-applicationsignals-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
CloudWatchAgentVersion Class
Provides version information and image selection for CloudWatch Agent.
| Stability | Experimental |
|---|---|
| Source | lib/enablement/ecs-cloudwatch-agent.ts |
Example
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
# 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
// 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();
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();
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
ts
new CloudWatchAgentVersion()
python
CloudWatchAgentVersion()
java
new CloudWatchAgentVersion()
csharp
new CloudWatchAgentVersion()
go
NewCloudWatchAgentVersion()
Properties
CLOUDWATCH_AGENT_IMAGEstringCLOUDWATCH_AGENT_IMAGEstrCLOUDWATCH_AGENT_IMAGEStringCLOUDWATCH_AGENT_IMAGEstringCLOUDWATCH_AGENT_IMAGE*string static #Default CloudWatch Agent image for Linux.
CLOUDWATCH_AGENT_IMAGE_WIN2019stringCLOUDWATCH_AGENT_IMAGE_WIN2019strCLOUDWATCH_AGENT_IMAGE_WIN2019StringCLOUDWATCH_AGENT_IMAGE_WIN2019stringCLOUDWATCH_AGENT_IMAGE_WIN2019*string static #CloudWatch Agent image for Windows Server 2019.
CLOUDWATCH_AGENT_IMAGE_WIN2022stringCLOUDWATCH_AGENT_IMAGE_WIN2022strCLOUDWATCH_AGENT_IMAGE_WIN2022StringCLOUDWATCH_AGENT_IMAGE_WIN2022stringCLOUDWATCH_AGENT_IMAGE_WIN2022*string static #CloudWatch Agent image for Windows Server 2022.
Methods
getCloudWatchAgentImage(operatingSystemFamily?: OperatingSystemFamily): string@staticmethod def get_cloud_watch_agent_image(operating_system_family: typing.Optional[OperatingSystemFamily] = None) -> strpublic static String getCloudWatchAgentImage(OperatingSystemFamily operatingSystemFamily)public static string GetCloudWatchAgentImage(OperatingSystemFamily? operatingSystemFamily = null)func GetCloudWatchAgentImage(OperatingSystemFamily OperatingSystemFamily) *string static #Gets the appropriate CloudWatch Agent image based on the operating system.
1 parameter · returns
Parameters
operatingSystemFamilyoperating_system_familyoperatingSystemFamilyoperatingSystemFamilyOperatingSystemFamily— - The ECS operating system family.
Returns: The CloudWatch Agent image URI