import { FsxLifecycleStatusMonitor } from 'aws-fsx-lifecycle-status-monitor'
new FsxLifecycleStatusMonitor(scope: Construct, id: string, props: FsxLifecycleStatusMonitorProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
- parent construct. |
id |
string |
- unique id. |
props |
FsxLifecycleStatusMonitorProps |
No description. |
- Type: constructs.Construct
parent construct.
- Type: string
unique id.
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
createIamPolicy |
No description. |
createLambdaFunction |
No description. |
createSNSTopic |
Topic linked to the Lambda function. |
public toString(): string
Returns a string representation of this construct.
public createIamPolicy(): Policy
public createLambdaFunction(): Function
public createSNSTopic(): Topic
Topic linked to the Lambda function.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { FsxLifecycleStatusMonitor } from 'aws-fsx-lifecycle-status-monitor'
FsxLifecycleStatusMonitor.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
fn |
aws-cdk-lib.aws_lambda.Function |
The Lambda function that will be triggered by the CloudWatch event. |
logGroup |
aws-cdk-lib.aws_logs.LogGroup |
Log group for the Lambda function. |
policy |
aws-cdk-lib.aws_iam.Policy |
The IAM policy that will be attached to the Lambda function. |
rule |
aws-cdk-lib.aws_events.Rule |
The CloudWatch event rule that will trigger the Lambda function. |
topic |
aws-cdk-lib.aws_sns.Topic |
Topic linked to the Lambda function. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly fn: Function;
- Type: aws-cdk-lib.aws_lambda.Function
The Lambda function that will be triggered by the CloudWatch event.
public readonly logGroup: LogGroup;
- Type: aws-cdk-lib.aws_logs.LogGroup
Log group for the Lambda function.
public readonly policy: Policy;
- Type: aws-cdk-lib.aws_iam.Policy
The IAM policy that will be attached to the Lambda function.
public readonly rule: Rule;
- Type: aws-cdk-lib.aws_events.Rule
The CloudWatch event rule that will trigger the Lambda function.
public readonly topic: Topic;
- Type: aws-cdk-lib.aws_sns.Topic
Topic linked to the Lambda function.
Name | Type | Description |
---|---|---|
DEFAULT_LOG_RETENTION_PERIOD |
aws-cdk-lib.aws_logs.RetentionDays |
Default log retention for the FSx Lifecycle Status Monitor. |
DEFAULT_SCHEDULE |
aws-cdk-lib.aws_events.Schedule |
Default schedule for the FSx Lifecycle Status Monitor. |
public readonly DEFAULT_LOG_RETENTION_PERIOD: RetentionDays;
- Type: aws-cdk-lib.aws_logs.RetentionDays
Default log retention for the FSx Lifecycle Status Monitor.
public readonly DEFAULT_SCHEDULE: Schedule;
- Type: aws-cdk-lib.aws_events.Schedule
Default schedule for the FSx Lifecycle Status Monitor.
Configuration properties for the FSx Lifecycle Status Monitor.
import { FsxLifecycleStatusMonitorProps } from 'aws-fsx-lifecycle-status-monitor'
const fsxLifecycleStatusMonitorProps: FsxLifecycleStatusMonitorProps = { ... }
Name | Type | Description |
---|---|---|
logRetentionDays |
aws-cdk-lib.aws_logs.RetentionDays |
The log retention days for the FSx Lifecycle Status Monitor. |
schedule |
aws-cdk-lib.aws_events.Schedule |
The schedule for the FSx Lifecycle Status Monitor. |
public readonly logRetentionDays: RetentionDays;
- Type: aws-cdk-lib.aws_logs.RetentionDays
- Default: logs.RetentionDays.ONE_YEAR
The log retention days for the FSx Lifecycle Status Monitor.
Example
this.monitor = new FsxLifecycleStatusMonitor(this, "monitor",{
logRetentionDays: logs.RetentionDays.ONE_MONTH
});
public readonly schedule: Schedule;
- Type: aws-cdk-lib.aws_events.Schedule
- Default: "events.Schedule.cron({ minute: '0/10', hour: '', day: '', month: '', year: '' })"
The schedule for the FSx Lifecycle Status Monitor.
Example
this.monitor = new FsxLifecycleStatusMonitor(this, "monitor",{
logRetentionDays: logs.RetentionDays.ONE_MONTH,
schedule: events.Schedule.rate(cdk.Duration.hours(1)),
});