aws-cdk-lib.aws_ec2.CfnLaunchTemplate.MonitoringProperty

interface MonitoringProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnLaunchTemplate.MonitoringProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnLaunchTemplate_MonitoringProperty
Javasoftware.amazon.awscdk.services.ec2.CfnLaunchTemplate.MonitoringProperty
Pythonaws_cdk.aws_ec2.CfnLaunchTemplate.MonitoringProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnLaunchTemplate » MonitoringProperty

Specifies whether detailed monitoring is enabled for an instance.

For more information about detailed monitoring, see Enable or turn off detailed monitoring for your instances in the Amazon EC2 User Guide .

Monitoring is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

Example

// 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 monitoringProperty: ec2.CfnLaunchTemplate.MonitoringProperty = {
  enabled: false,
};

Properties

NameTypeDescription
enabled?boolean | IResolvableSpecify true to enable detailed monitoring.

enabled?

Type: boolean | IResolvable (optional)

Specify true to enable detailed monitoring.

Otherwise, basic monitoring is enabled.