UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

186 lines (185 loc) 10.1 kB
import * as constructs from 'constructs'; import * as cdk from '../../core'; import * as cfn_parse from '../../core/lib/helpers-internal'; /** * Properties for defining a `CfnMonitor` * * @struct * @stability external * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html */ export interface CfnMonitorProps { /** * The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where clients access your application resources from and the network, such as an internet service provider, that clients access the resources through. * * For more information, see [Choosing a city-network maximum value](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html) in *Using Amazon CloudWatch Internet Monitor* . * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-maxcitynetworkstomonitor */ readonly maxCityNetworksToMonitor?: number; /** * The name of the monitor. A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_). * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-monitorname */ readonly monitorName?: string; /** * The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs). * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-resources */ readonly resources?: string[]; /** * The resources to add to a monitor, which you provide as a set of Amazon Resource Names (ARNs). * * You can add a combination of Virtual Private Clouds (VPCs) and Amazon CloudFront distributions, or you can add WorkSpaces directories. You can't add all three types of resources. * * > If you add only VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure that it has internet connectivity. * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-resourcestoadd */ readonly resourcesToAdd?: string[]; /** * The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs). * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-resourcestoremove */ readonly resourcesToRemove?: string[]; /** * The status of a monitor. The accepted values that you can specify for `Status` are `ACTIVE` and `INACTIVE` . * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-status */ readonly status?: string; /** * The tags for a monitor, listed as a set of *key:value* pairs. * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-tags */ readonly tags?: cdk.CfnTag[]; } /** * A CloudFormation `AWS::InternetMonitor::Monitor` * * The `AWS::InternetMonitor::Monitor` resource is an Internet Monitor resource type that contains information about how you create a monitor in Amazon CloudWatch Internet Monitor. A monitor in Internet Monitor provides visibility into performance and availability between your applications hosted on AWS and your end users, using a traffic profile that it creates based on the application resources that you add: Virtual Private Clouds (VPCs), Amazon CloudFront distributions, or WorkSpaces directories. * * Internet Monitor also alerts you to internet issues that impact your application in the city-networks (geographies and networks) where your end users use it. With Internet Monitor, you can quickly pinpoint the locations and providers that are affected, so that you can address the issue. * * For more information, see [Using Amazon CloudWatch Internet Monitor](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-InternetMonitor.html) in the *Amazon CloudWatch User Guide* . * * @cloudformationResource AWS::InternetMonitor::Monitor * @stability external * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html */ export declare class CfnMonitor extends cdk.CfnResource implements cdk.IInspectable { /** * The CloudFormation resource type name for this resource class. */ static readonly CFN_RESOURCE_TYPE_NAME = "AWS::InternetMonitor::Monitor"; /** * A factory method that creates a new instance of this class from an object * containing the CloudFormation properties of this resource. * Used in the @aws-cdk/cloudformation-include module. * * @internal */ static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnMonitor; /** * The time when the monitor was created. * @cloudformationAttribute CreatedAt */ readonly attrCreatedAt: string; /** * The last time that the monitor was modified. * @cloudformationAttribute ModifiedAt */ readonly attrModifiedAt: string; /** * The Amazon Resource Name (ARN) of the monitor. * @cloudformationAttribute MonitorArn */ readonly attrMonitorArn: string; /** * The health of data processing for the monitor. For more information, see `ProcessingStatus` under [MonitorListMember](https://docs.aws.amazon.com/internet-monitor/latest/api/API_MonitorListMember.html) in the *Amazon CloudWatch Internet Monitor API Reference* . * @cloudformationAttribute ProcessingStatus */ readonly attrProcessingStatus: string; /** * Additional information about the health of the data processing for the monitor. * @cloudformationAttribute ProcessingStatusInfo */ readonly attrProcessingStatusInfo: string; /** * The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where clients access your application resources from and the network, such as an internet service provider, that clients access the resources through. * * For more information, see [Choosing a city-network maximum value](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/IMCityNetworksMaximum.html) in *Using Amazon CloudWatch Internet Monitor* . * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-maxcitynetworkstomonitor */ maxCityNetworksToMonitor: number | undefined; /** * The name of the monitor. A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_). * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-monitorname */ monitorName: string | undefined; /** * The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs). * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-resources */ resources: string[] | undefined; /** * The resources to add to a monitor, which you provide as a set of Amazon Resource Names (ARNs). * * You can add a combination of Virtual Private Clouds (VPCs) and Amazon CloudFront distributions, or you can add WorkSpaces directories. You can't add all three types of resources. * * > If you add only VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure that it has internet connectivity. * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-resourcestoadd */ resourcesToAdd: string[] | undefined; /** * The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs). * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-resourcestoremove */ resourcesToRemove: string[] | undefined; /** * The status of a monitor. The accepted values that you can specify for `Status` are `ACTIVE` and `INACTIVE` . * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-status */ status: string | undefined; /** * The tags for a monitor, listed as a set of *key:value* pairs. * * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-internetmonitor-monitor.html#cfn-internetmonitor-monitor-tags */ readonly tags: cdk.TagManager; /** * Create a new `AWS::InternetMonitor::Monitor`. * * @param scope - scope in which this resource is defined * @param id - scoped id of the resource * @param props - resource properties */ constructor(scope: constructs.Construct, id: string, props?: CfnMonitorProps); /** * Examines the CloudFormation resource and discloses attributes. * * @param inspector - tree inspector to collect and process attributes * */ inspect(inspector: cdk.TreeInspector): void; protected get cfnProperties(): { [key: string]: any; }; protected renderProperties(props: { [key: string]: any; }): { [key: string]: any; }; }