Refer to the Terraform Registory for docs: aws_cloudwatch_metric_alarm
.
Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm aws_cloudwatch_metric_alarm}.
import { cloudwatchMetricAlarm } from '@cdktf/aws-cdk'
new cloudwatchMetricAlarm.CloudwatchMetricAlarm(scope: Construct, id: string, config: CloudwatchMetricAlarmConfig)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
The scope in which to define this construct. |
id |
string |
The scoped construct ID. |
config |
CloudwatchMetricAlarmConfig |
No description. |
- Type: constructs.Construct
The scope in which to define this construct.
- Type: string
The scoped construct ID.
Must be unique amongst siblings in the same scope
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
addOverride |
No description. |
overrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
resetOverrideLogicalId |
Resets a previously passed logical Id to use the auto-generated logical id again. |
toMetadata |
No description. |
toTerraform |
Adds this resource to the terraform JSON output. |
getAnyMapAttribute |
No description. |
getBooleanAttribute |
No description. |
getBooleanMapAttribute |
No description. |
getListAttribute |
No description. |
getNumberAttribute |
No description. |
getNumberListAttribute |
No description. |
getNumberMapAttribute |
No description. |
getStringAttribute |
No description. |
getStringMapAttribute |
No description. |
interpolationForAttribute |
No description. |
putMetricQuery |
No description. |
resetActionsEnabled |
No description. |
resetAlarmActions |
No description. |
resetAlarmDescription |
No description. |
resetDatapointsToAlarm |
No description. |
resetDimensions |
No description. |
resetEvaluateLowSampleCountPercentiles |
No description. |
resetExtendedStatistic |
No description. |
resetId |
No description. |
resetInsufficientDataActions |
No description. |
resetMetricName |
No description. |
resetMetricQuery |
No description. |
resetNamespace |
No description. |
resetOkActions |
No description. |
resetPeriod |
No description. |
resetStatistic |
No description. |
resetTags |
No description. |
resetTagsAll |
No description. |
resetThreshold |
No description. |
resetThresholdMetricId |
No description. |
resetTreatMissingData |
No description. |
resetUnit |
No description. |
public toString(): string
Returns a string representation of this construct.
public addOverride(path: string, value: any): void
- Type: string
- Type: any
public overrideLogicalId(newLogicalId: string): void
Overrides the auto-generated logical ID with a specific ID.
- Type: string
The new logical ID to use for this stack element.
public resetOverrideLogicalId(): void
Resets a previously passed logical Id to use the auto-generated logical id again.
public toMetadata(): any
public toTerraform(): any
Adds this resource to the terraform JSON output.
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
- Type: string
public getBooleanAttribute(terraformAttribute: string): IResolvable
- Type: string
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
- Type: string
public getListAttribute(terraformAttribute: string): string[]
- Type: string
public getNumberAttribute(terraformAttribute: string): number
- Type: string
public getNumberListAttribute(terraformAttribute: string): number[]
- Type: string
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
- Type: string
public getStringAttribute(terraformAttribute: string): string
- Type: string
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
- Type: string
public interpolationForAttribute(terraformAttribute: string): IResolvable
- Type: string
public putMetricQuery(value: IResolvable | CloudwatchMetricAlarmMetricQuery[]): void
- Type: cdktf.IResolvable | CloudwatchMetricAlarmMetricQuery[]
public resetActionsEnabled(): void
public resetAlarmActions(): void
public resetAlarmDescription(): void
public resetDatapointsToAlarm(): void
public resetDimensions(): void
public resetEvaluateLowSampleCountPercentiles(): void
public resetExtendedStatistic(): void
public resetId(): void
public resetInsufficientDataActions(): void
public resetMetricName(): void
public resetMetricQuery(): void
public resetNamespace(): void
public resetOkActions(): void
public resetPeriod(): void
public resetStatistic(): void
public resetTags(): void
public resetTagsAll(): void
public resetThreshold(): void
public resetThresholdMetricId(): void
public resetTreatMissingData(): void
public resetUnit(): void
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isTerraformElement |
No description. |
isTerraformResource |
No description. |
import { cloudwatchMetricAlarm } from '@cdktf/aws-cdk'
cloudwatchMetricAlarm.CloudwatchMetricAlarm.isConstruct(x: any)
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: any
Any object.
import { cloudwatchMetricAlarm } from '@cdktf/aws-cdk'
cloudwatchMetricAlarm.CloudwatchMetricAlarm.isTerraformElement(x: any)
- Type: any
import { cloudwatchMetricAlarm } from '@cdktf/aws-cdk'
cloudwatchMetricAlarm.CloudwatchMetricAlarm.isTerraformResource(x: any)
- Type: any
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
cdktfStack |
cdktf.TerraformStack |
No description. |
fqn |
string |
No description. |
friendlyUniqueId |
string |
No description. |
terraformMetaArguments |
{[ key: string ]: any} |
No description. |
terraformResourceType |
string |
No description. |
terraformGeneratorMetadata |
cdktf.TerraformProviderGeneratorMetadata |
No description. |
connection |
cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection |
No description. |
count |
number | cdktf.TerraformCount |
No description. |
dependsOn |
string[] |
No description. |
forEach |
cdktf.ITerraformIterator |
No description. |
lifecycle |
cdktf.TerraformResourceLifecycle |
No description. |
provider |
cdktf.TerraformProvider |
No description. |
provisioners |
cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[] |
No description. |
arn |
string |
No description. |
metricQuery |
CloudwatchMetricAlarmMetricQueryList |
No description. |
actionsEnabledInput |
boolean | cdktf.IResolvable |
No description. |
alarmActionsInput |
string[] |
No description. |
alarmDescriptionInput |
string |
No description. |
alarmNameInput |
string |
No description. |
comparisonOperatorInput |
string |
No description. |
datapointsToAlarmInput |
number |
No description. |
dimensionsInput |
{[ key: string ]: string} |
No description. |
evaluateLowSampleCountPercentilesInput |
string |
No description. |
evaluationPeriodsInput |
number |
No description. |
extendedStatisticInput |
string |
No description. |
idInput |
string |
No description. |
insufficientDataActionsInput |
string[] |
No description. |
metricNameInput |
string |
No description. |
metricQueryInput |
cdktf.IResolvable | CloudwatchMetricAlarmMetricQuery[] |
No description. |
namespaceInput |
string |
No description. |
okActionsInput |
string[] |
No description. |
periodInput |
number |
No description. |
statisticInput |
string |
No description. |
tagsAllInput |
{[ key: string ]: string} |
No description. |
tagsInput |
{[ key: string ]: string} |
No description. |
thresholdInput |
number |
No description. |
thresholdMetricIdInput |
string |
No description. |
treatMissingDataInput |
string |
No description. |
unitInput |
string |
No description. |
actionsEnabled |
boolean | cdktf.IResolvable |
No description. |
alarmActions |
string[] |
No description. |
alarmDescription |
string |
No description. |
alarmName |
string |
No description. |
comparisonOperator |
string |
No description. |
datapointsToAlarm |
number |
No description. |
dimensions |
{[ key: string ]: string} |
No description. |
evaluateLowSampleCountPercentiles |
string |
No description. |
evaluationPeriods |
number |
No description. |
extendedStatistic |
string |
No description. |
id |
string |
No description. |
insufficientDataActions |
string[] |
No description. |
metricName |
string |
No description. |
namespace |
string |
No description. |
okActions |
string[] |
No description. |
period |
number |
No description. |
statistic |
string |
No description. |
tags |
{[ key: string ]: string} |
No description. |
tagsAll |
{[ key: string ]: string} |
No description. |
threshold |
number |
No description. |
thresholdMetricId |
string |
No description. |
treatMissingData |
string |
No description. |
unit |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly cdktfStack: TerraformStack;
- Type: cdktf.TerraformStack
public readonly fqn: string;
- Type: string
public readonly friendlyUniqueId: string;
- Type: string
public readonly terraformMetaArguments: {[ key: string ]: any};
- Type: {[ key: string ]: any}
public readonly terraformResourceType: string;
- Type: string
public readonly terraformGeneratorMetadata: TerraformProviderGeneratorMetadata;
- Type: cdktf.TerraformProviderGeneratorMetadata
public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection;
- Type: cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection
public readonly count: number | TerraformCount;
- Type: number | cdktf.TerraformCount
public readonly dependsOn: string[];
- Type: string[]
public readonly forEach: ITerraformIterator;
- Type: cdktf.ITerraformIterator
public readonly lifecycle: TerraformResourceLifecycle;
- Type: cdktf.TerraformResourceLifecycle
public readonly provider: TerraformProvider;
- Type: cdktf.TerraformProvider
public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[];
- Type: cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[]
public readonly arn: string;
- Type: string
public readonly metricQuery: CloudwatchMetricAlarmMetricQueryList;
public readonly actionsEnabledInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly alarmActionsInput: string[];
- Type: string[]
public readonly alarmDescriptionInput: string;
- Type: string
public readonly alarmNameInput: string;
- Type: string
public readonly comparisonOperatorInput: string;
- Type: string
public readonly datapointsToAlarmInput: number;
- Type: number
public readonly dimensionsInput: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly evaluateLowSampleCountPercentilesInput: string;
- Type: string
public readonly evaluationPeriodsInput: number;
- Type: number
public readonly extendedStatisticInput: string;
- Type: string
public readonly idInput: string;
- Type: string
public readonly insufficientDataActionsInput: string[];
- Type: string[]
public readonly metricNameInput: string;
- Type: string
public readonly metricQueryInput: IResolvable | CloudwatchMetricAlarmMetricQuery[];
- Type: cdktf.IResolvable | CloudwatchMetricAlarmMetricQuery[]
public readonly namespaceInput: string;
- Type: string
public readonly okActionsInput: string[];
- Type: string[]
public readonly periodInput: number;
- Type: number
public readonly statisticInput: string;
- Type: string
public readonly tagsAllInput: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly tagsInput: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly thresholdInput: number;
- Type: number
public readonly thresholdMetricIdInput: string;
- Type: string
public readonly treatMissingDataInput: string;
- Type: string
public readonly unitInput: string;
- Type: string
public readonly actionsEnabled: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly alarmActions: string[];
- Type: string[]
public readonly alarmDescription: string;
- Type: string
public readonly alarmName: string;
- Type: string
public readonly comparisonOperator: string;
- Type: string
public readonly datapointsToAlarm: number;
- Type: number
public readonly dimensions: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly evaluateLowSampleCountPercentiles: string;
- Type: string
public readonly evaluationPeriods: number;
- Type: number
public readonly extendedStatistic: string;
- Type: string
public readonly id: string;
- Type: string
public readonly insufficientDataActions: string[];
- Type: string[]
public readonly metricName: string;
- Type: string
public readonly namespace: string;
- Type: string
public readonly okActions: string[];
- Type: string[]
public readonly period: number;
- Type: number
public readonly statistic: string;
- Type: string
public readonly tags: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly tagsAll: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly threshold: number;
- Type: number
public readonly thresholdMetricId: string;
- Type: string
public readonly treatMissingData: string;
- Type: string
public readonly unit: string;
- Type: string
Name | Type | Description |
---|---|---|
tfResourceType |
string |
No description. |
public readonly tfResourceType: string;
- Type: string
import { cloudwatchMetricAlarm } from '@cdktf/aws-cdk'
const cloudwatchMetricAlarmConfig: cloudwatchMetricAlarm.CloudwatchMetricAlarmConfig = { ... }
public readonly connection: SSHProvisionerConnection | WinrmProvisionerConnection;
- Type: cdktf.SSHProvisionerConnection | cdktf.WinrmProvisionerConnection
public readonly count: number | TerraformCount;
- Type: number | cdktf.TerraformCount
public readonly dependsOn: ITerraformDependable[];
- Type: cdktf.ITerraformDependable[]
public readonly forEach: ITerraformIterator;
- Type: cdktf.ITerraformIterator
public readonly lifecycle: TerraformResourceLifecycle;
- Type: cdktf.TerraformResourceLifecycle
public readonly provider: TerraformProvider;
- Type: cdktf.TerraformProvider
public readonly provisioners: FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner[];
- Type: cdktf.FileProvisioner | cdktf.LocalExecProvisioner | cdktf.RemoteExecProvisioner[]
public readonly alarmName: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#alarm_name CloudwatchMetricAlarm#alarm_name}.
public readonly comparisonOperator: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#comparison_operator CloudwatchMetricAlarm#comparison_operator}.
public readonly evaluationPeriods: number;
- Type: number
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#evaluation_periods CloudwatchMetricAlarm#evaluation_periods}.
public readonly actionsEnabled: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#actions_enabled CloudwatchMetricAlarm#actions_enabled}.
public readonly alarmActions: string[];
- Type: string[]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#alarm_actions CloudwatchMetricAlarm#alarm_actions}.
public readonly alarmDescription: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#alarm_description CloudwatchMetricAlarm#alarm_description}.
public readonly datapointsToAlarm: number;
- Type: number
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#datapoints_to_alarm CloudwatchMetricAlarm#datapoints_to_alarm}.
public readonly dimensions: {[ key: string ]: string};
- Type: {[ key: string ]: string}
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#dimensions CloudwatchMetricAlarm#dimensions}.
public readonly evaluateLowSampleCountPercentiles: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#evaluate_low_sample_count_percentiles CloudwatchMetricAlarm#evaluate_low_sample_count_percentiles}.
public readonly extendedStatistic: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#extended_statistic CloudwatchMetricAlarm#extended_statistic}.
public readonly id: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#id CloudwatchMetricAlarm#id}.
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
public readonly insufficientDataActions: string[];
- Type: string[]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#insufficient_data_actions CloudwatchMetricAlarm#insufficient_data_actions}.
public readonly metricName: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#metric_name CloudwatchMetricAlarm#metric_name}.
public readonly metricQuery: IResolvable | CloudwatchMetricAlarmMetricQuery[];
- Type: cdktf.IResolvable | CloudwatchMetricAlarmMetricQuery[]
metric_query block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#metric_query CloudwatchMetricAlarm#metric_query}
public readonly namespace: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#namespace CloudwatchMetricAlarm#namespace}.
public readonly okActions: string[];
- Type: string[]
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#ok_actions CloudwatchMetricAlarm#ok_actions}.
public readonly period: number;
- Type: number
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#period CloudwatchMetricAlarm#period}.
public readonly statistic: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#statistic CloudwatchMetricAlarm#statistic}.
public readonly tags: {[ key: string ]: string};
- Type: {[ key: string ]: string}
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#tags CloudwatchMetricAlarm#tags}.
public readonly tagsAll: {[ key: string ]: string};
- Type: {[ key: string ]: string}
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#tags_all CloudwatchMetricAlarm#tags_all}.
public readonly threshold: number;
- Type: number
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#threshold CloudwatchMetricAlarm#threshold}.
public readonly thresholdMetricId: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#threshold_metric_id CloudwatchMetricAlarm#threshold_metric_id}.
public readonly treatMissingData: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#treat_missing_data CloudwatchMetricAlarm#treat_missing_data}.
public readonly unit: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#unit CloudwatchMetricAlarm#unit}.
import { cloudwatchMetricAlarm } from '@cdktf/aws-cdk'
const cloudwatchMetricAlarmMetricQuery: cloudwatchMetricAlarm.CloudwatchMetricAlarmMetricQuery = { ... }
public readonly id: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#id CloudwatchMetricAlarm#id}.
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
public readonly accountId: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#account_id CloudwatchMetricAlarm#account_id}.
public readonly expression: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#expression CloudwatchMetricAlarm#expression}.
public readonly label: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#label CloudwatchMetricAlarm#label}.
public readonly metric: CloudwatchMetricAlarmMetricQueryMetric;
metric block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#metric CloudwatchMetricAlarm#metric}
public readonly returnData: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#return_data CloudwatchMetricAlarm#return_data}.
import { cloudwatchMetricAlarm } from '@cdktf/aws-cdk'
const cloudwatchMetricAlarmMetricQueryMetric: cloudwatchMetricAlarm.CloudwatchMetricAlarmMetricQueryMetric = { ... }
public readonly metricName: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#metric_name CloudwatchMetricAlarm#metric_name}.
public readonly period: number;
- Type: number
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#period CloudwatchMetricAlarm#period}.
public readonly stat: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#stat CloudwatchMetricAlarm#stat}.
public readonly dimensions: {[ key: string ]: string};
- Type: {[ key: string ]: string}
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#dimensions CloudwatchMetricAlarm#dimensions}.
public readonly namespace: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#namespace CloudwatchMetricAlarm#namespace}.
public readonly unit: string;
- Type: string
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/3.76.1/docs/resources/cloudwatch_metric_alarm#unit CloudwatchMetricAlarm#unit}.
import { cloudwatchMetricAlarm } from '@cdktf/aws-cdk'
new cloudwatchMetricAlarm.CloudwatchMetricAlarmMetricQueryList(terraformResource: IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean)
Name | Type | Description |
---|---|---|
terraformResource |
cdktf.IInterpolatingParent |
The parent resource. |
terraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
wrapsSet |
boolean |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: string
The attribute on the parent resource this class is referencing.
- Type: boolean
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
computeFqn |
No description. |
resolve |
Produce the Token's value at resolution time. |
toString |
Return a string representation of this resolvable object. |
get |
No description. |
public computeFqn(): string
public resolve(_context: IResolveContext): any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
public toString(): string
Return a string representation of this resolvable object.
Returns a reversible string representation.
public get(index: number): CloudwatchMetricAlarmMetricQueryOutputReference
- Type: number
the index of the item to return.
Name | Type | Description |
---|---|---|
creationStack |
string[] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
string |
No description. |
internalValue |
cdktf.IResolvable | CloudwatchMetricAlarmMetricQuery[] |
No description. |
public readonly creationStack: string[];
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
public readonly fqn: string;
- Type: string
public readonly internalValue: IResolvable | CloudwatchMetricAlarmMetricQuery[];
- Type: cdktf.IResolvable | CloudwatchMetricAlarmMetricQuery[]
import { cloudwatchMetricAlarm } from '@cdktf/aws-cdk'
new cloudwatchMetricAlarm.CloudwatchMetricAlarmMetricQueryMetricOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string)
Name | Type | Description |
---|---|---|
terraformResource |
cdktf.IInterpolatingParent |
The parent resource. |
terraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: string
The attribute on the parent resource this class is referencing.
Name | Description |
---|---|
computeFqn |
No description. |
getAnyMapAttribute |
No description. |
getBooleanAttribute |
No description. |
getBooleanMapAttribute |
No description. |
getListAttribute |
No description. |
getNumberAttribute |
No description. |
getNumberListAttribute |
No description. |
getNumberMapAttribute |
No description. |
getStringAttribute |
No description. |
getStringMapAttribute |
No description. |
interpolationForAttribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
toString |
Return a string representation of this resolvable object. |
resetDimensions |
No description. |
resetNamespace |
No description. |
resetUnit |
No description. |
public computeFqn(): string
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
- Type: string
public getBooleanAttribute(terraformAttribute: string): IResolvable
- Type: string
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
- Type: string
public getListAttribute(terraformAttribute: string): string[]
- Type: string
public getNumberAttribute(terraformAttribute: string): number
- Type: string
public getNumberListAttribute(terraformAttribute: string): number[]
- Type: string
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
- Type: string
public getStringAttribute(terraformAttribute: string): string
- Type: string
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
- Type: string
public interpolationForAttribute(property: string): IResolvable
- Type: string
public resolve(_context: IResolveContext): any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
public toString(): string
Return a string representation of this resolvable object.
Returns a reversible string representation.
public resetDimensions(): void
public resetNamespace(): void
public resetUnit(): void
Name | Type | Description |
---|---|---|
creationStack |
string[] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
string |
No description. |
dimensionsInput |
{[ key: string ]: string} |
No description. |
metricNameInput |
string |
No description. |
namespaceInput |
string |
No description. |
periodInput |
number |
No description. |
statInput |
string |
No description. |
unitInput |
string |
No description. |
dimensions |
{[ key: string ]: string} |
No description. |
metricName |
string |
No description. |
namespace |
string |
No description. |
period |
number |
No description. |
stat |
string |
No description. |
unit |
string |
No description. |
internalValue |
CloudwatchMetricAlarmMetricQueryMetric |
No description. |
public readonly creationStack: string[];
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
public readonly fqn: string;
- Type: string
public readonly dimensionsInput: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly metricNameInput: string;
- Type: string
public readonly namespaceInput: string;
- Type: string
public readonly periodInput: number;
- Type: number
public readonly statInput: string;
- Type: string
public readonly unitInput: string;
- Type: string
public readonly dimensions: {[ key: string ]: string};
- Type: {[ key: string ]: string}
public readonly metricName: string;
- Type: string
public readonly namespace: string;
- Type: string
public readonly period: number;
- Type: number
public readonly stat: string;
- Type: string
public readonly unit: string;
- Type: string
public readonly internalValue: CloudwatchMetricAlarmMetricQueryMetric;
import { cloudwatchMetricAlarm } from '@cdktf/aws-cdk'
new cloudwatchMetricAlarm.CloudwatchMetricAlarmMetricQueryOutputReference(terraformResource: IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean)
Name | Type | Description |
---|---|---|
terraformResource |
cdktf.IInterpolatingParent |
The parent resource. |
terraformAttribute |
string |
The attribute on the parent resource this class is referencing. |
complexObjectIndex |
number |
the index of this item in the list. |
complexObjectIsFromSet |
boolean |
whether the list is wrapping a set (will add tolist() to be able to access an item via an index). |
- Type: cdktf.IInterpolatingParent
The parent resource.
- Type: string
The attribute on the parent resource this class is referencing.
- Type: number
the index of this item in the list.
- Type: boolean
whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
Name | Description |
---|---|
computeFqn |
No description. |
getAnyMapAttribute |
No description. |
getBooleanAttribute |
No description. |
getBooleanMapAttribute |
No description. |
getListAttribute |
No description. |
getNumberAttribute |
No description. |
getNumberListAttribute |
No description. |
getNumberMapAttribute |
No description. |
getStringAttribute |
No description. |
getStringMapAttribute |
No description. |
interpolationForAttribute |
No description. |
resolve |
Produce the Token's value at resolution time. |
toString |
Return a string representation of this resolvable object. |
putMetric |
No description. |
resetAccountId |
No description. |
resetExpression |
No description. |
resetLabel |
No description. |
resetMetric |
No description. |
resetReturnData |
No description. |
public computeFqn(): string
public getAnyMapAttribute(terraformAttribute: string): {[ key: string ]: any}
- Type: string
public getBooleanAttribute(terraformAttribute: string): IResolvable
- Type: string
public getBooleanMapAttribute(terraformAttribute: string): {[ key: string ]: boolean}
- Type: string
public getListAttribute(terraformAttribute: string): string[]
- Type: string
public getNumberAttribute(terraformAttribute: string): number
- Type: string
public getNumberListAttribute(terraformAttribute: string): number[]
- Type: string
public getNumberMapAttribute(terraformAttribute: string): {[ key: string ]: number}
- Type: string
public getStringAttribute(terraformAttribute: string): string
- Type: string
public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: string}
- Type: string
public interpolationForAttribute(property: string): IResolvable
- Type: string
public resolve(_context: IResolveContext): any
Produce the Token's value at resolution time.
- Type: cdktf.IResolveContext
public toString(): string
Return a string representation of this resolvable object.
Returns a reversible string representation.
public putMetric(value: CloudwatchMetricAlarmMetricQueryMetric): void
public resetAccountId(): void
public resetExpression(): void
public resetLabel(): void
public resetMetric(): void
public resetReturnData(): void
Name | Type | Description |
---|---|---|
creationStack |
string[] |
The creation stack of this resolvable which will be appended to errors thrown during resolution. |
fqn |
string |
No description. |
metric |
CloudwatchMetricAlarmMetricQueryMetricOutputReference |
No description. |
accountIdInput |
string |
No description. |
expressionInput |
string |
No description. |
idInput |
string |
No description. |
labelInput |
string |
No description. |
metricInput |
CloudwatchMetricAlarmMetricQueryMetric |
No description. |
returnDataInput |
boolean | cdktf.IResolvable |
No description. |
accountId |
string |
No description. |
expression |
string |
No description. |
id |
string |
No description. |
label |
string |
No description. |
returnData |
boolean | cdktf.IResolvable |
No description. |
internalValue |
cdktf.IResolvable | CloudwatchMetricAlarmMetricQuery |
No description. |
public readonly creationStack: string[];
- Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution.
If this returns an empty array the stack will not be attached.
public readonly fqn: string;
- Type: string
public readonly metric: CloudwatchMetricAlarmMetricQueryMetricOutputReference;
public readonly accountIdInput: string;
- Type: string
public readonly expressionInput: string;
- Type: string
public readonly idInput: string;
- Type: string
public readonly labelInput: string;
- Type: string
public readonly metricInput: CloudwatchMetricAlarmMetricQueryMetric;
public readonly returnDataInput: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly accountId: string;
- Type: string
public readonly expression: string;
- Type: string
public readonly id: string;
- Type: string
public readonly label: string;
- Type: string
public readonly returnData: boolean | IResolvable;
- Type: boolean | cdktf.IResolvable
public readonly internalValue: IResolvable | CloudwatchMetricAlarmMetricQuery;
- Type: cdktf.IResolvable | CloudwatchMetricAlarmMetricQuery