A construct that creates an AWS Lambda function to publish applied service quotas metrics to CloudWatch.
import { ServiceQuotasMetricPublisher } from '@time-loop/cdk-service-quotas-metric-publisher'
new ServiceQuotasMetricPublisher(scope: Construct, id: Namer, props: ServiceQuotasMetricPublisherProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
The parent construct. |
id |
multi-convention-namer.Namer |
The ID of the construct. |
props |
ServiceQuotasMetricPublisherProps |
The properties of the construct. |
- Type: constructs.Construct
The parent construct.
- Type: multi-convention-namer.Namer
The ID of the construct.
The properties of the construct.
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { ServiceQuotasMetricPublisher } from '@time-loop/cdk-service-quotas-metric-publisher'
ServiceQuotasMetricPublisher.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
cwNamespace |
string |
No description. |
handler |
aws-cdk-lib.aws_lambda_nodejs.NodejsFunction |
No description. |
publishFrequency |
number |
No description. |
rule |
aws-cdk-lib.aws_events.Rule |
No description. |
serviceQuotas |
IServiceQuota[] |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly cwNamespace: string;
- Type: string
public readonly handler: NodejsFunction;
- Type: aws-cdk-lib.aws_lambda_nodejs.NodejsFunction
public readonly publishFrequency: number;
- Type: number
public readonly rule: Rule;
- Type: aws-cdk-lib.aws_events.Rule
public readonly serviceQuotas: IServiceQuota[];
- Type: IServiceQuota[]
import { ServiceQuotasMetricPublisherProps } from '@time-loop/cdk-service-quotas-metric-publisher'
const serviceQuotasMetricPublisherProps: ServiceQuotasMetricPublisherProps = { ... }
Name | Type | Description |
---|---|---|
cloudwatchLogsRetention |
aws-cdk-lib.aws_logs.RetentionDays |
How long to retain logs published to CloudWatch logs. |
cwNamespace |
string |
The CloudWatch namespace to publish metrics to. |
publishFrequency |
number |
Time intervals that Lambda will be triggered to publish metric in CloudWatch. |
serviceQuotas |
IServiceQuota[] |
The list of service quotas to monitor. |
public readonly cloudwatchLogsRetention: RetentionDays;
- Type: aws-cdk-lib.aws_logs.RetentionDays
- Default: aws_logs.RetentionDays.THREE_MONTHS
How long to retain logs published to CloudWatch logs.
public readonly cwNamespace: string;
- Type: string
- Default: 'AWS/ServiceQuotaLimit'
The CloudWatch namespace to publish metrics to.
public readonly publishFrequency: number;
- Type: number
- Default: 1440 (1 day)
Time intervals that Lambda will be triggered to publish metric in CloudWatch.
public readonly serviceQuotas: IServiceQuota[];
- Type: IServiceQuota[]
- Default: ServiceQuotas[]
The list of service quotas to monitor.
- Implemented By: IServiceQuota
Name | Type | Description |
---|---|---|
quotaCode |
string |
No description. |
serviceCode |
string |
No description. |
public readonly quotaCode: string;
- Type: string
public readonly serviceCode: string;
- Type: string