Class CfnMonitor
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
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 in the Amazon CloudWatch User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.internetmonitor.*;
CfnMonitor cfnMonitor = CfnMonitor.Builder.create(this, "MyCfnMonitor")
.monitorName("monitorName")
// the properties below are optional
.internetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryProperty.builder()
.s3Config(S3ConfigProperty.builder()
.bucketName("bucketName")
.bucketPrefix("bucketPrefix")
.logDeliveryStatus("logDeliveryStatus")
.build())
.build())
.maxCityNetworksToMonitor(123)
.resources(List.of("resources"))
.resourcesToAdd(List.of("resourcesToAdd"))
.resourcesToRemove(List.of("resourcesToRemove"))
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.trafficPercentageToMonitor(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnMonitor.static interfaceExample:static interfaceThe configuration for publishing Amazon CloudWatch Internet Monitor internet measurements to Amazon S3.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnMonitor(Construct scope, String id, CfnMonitorProps props) Create a newAWS::InternetMonitor::Monitor.protectedCfnMonitor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMonitor(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe time when the monitor was created.The last time that the monitor was modified.The Amazon Resource Name (ARN) of the monitor.The health of data processing for the monitor.Additional information about the health of the data processing for the monitor.Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket.The maximum number of city-networks to monitor for your resources.The name of the monitor.The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs).The resources to add to a monitor, which you provide as a set of Amazon Resource Names (ARNs).The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs).The status of a monitor.getTags()The tags for a monitor, listed as a set of key:value pairs.The percentage of the internet-facing traffic for your application that you want to monitor.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidPublish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket.voidPublish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket.voidThe maximum number of city-networks to monitor for your resources.voidsetMonitorName(String value) The name of the monitor.voidsetResources(List<String> value) The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs).voidsetResourcesToAdd(List<String> value) The resources to add to a monitor, which you provide as a set of Amazon Resource Names (ARNs).voidsetResourcesToRemove(List<String> value) The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs).voidThe status of a monitor.voidThe percentage of the internet-facing traffic for your application that you want to monitor.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMonitor
protected CfnMonitor(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMonitor
protected CfnMonitor(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMonitor
@Stability(Stable) public CfnMonitor(@NotNull Construct scope, @NotNull String id, @NotNull CfnMonitorProps props) Create a newAWS::InternetMonitor::Monitor.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The time when the monitor was created. -
getAttrModifiedAt
The last time that the monitor was modified. -
getAttrMonitorArn
The Amazon Resource Name (ARN) of the monitor. -
getAttrProcessingStatus
The health of data processing for the monitor.For more information, see
ProcessingStatusunder MonitorListMember in the Amazon CloudWatch Internet Monitor API Reference . -
getAttrProcessingStatusInfo
Additional information about the health of the data processing for the monitor. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags for a monitor, listed as a set of key:value pairs. -
getMonitorName
The name of the monitor.A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_).
-
setMonitorName
The name of the monitor.A monitor name can contain only alphanumeric characters, dashes (-), periods (.), and underscores (_).
-
getInternetMeasurementsLogDelivery
Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket.Measurements are also published to Amazon CloudWatch Logs for the first 500 (by traffic volume) city-networks (client locations and ASNs, typically internet service providers or ISPs).
-
setInternetMeasurementsLogDelivery
@Stability(Stable) public void setInternetMeasurementsLogDelivery(@Nullable CfnMonitor.InternetMeasurementsLogDeliveryProperty value) Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket.Measurements are also published to Amazon CloudWatch Logs for the first 500 (by traffic volume) city-networks (client locations and ASNs, typically internet service providers or ISPs).
-
setInternetMeasurementsLogDelivery
Publish internet measurements for a monitor for all city-networks (up to the 500,000 service limit) to another location, such as an Amazon S3 bucket.Measurements are also published to Amazon CloudWatch Logs for the first 500 (by traffic volume) city-networks (client locations and ASNs, typically internet service providers or ISPs).
-
getMaxCityNetworksToMonitor
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 in Using Amazon CloudWatch Internet Monitor .
-
setMaxCityNetworksToMonitor
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 in Using Amazon CloudWatch Internet Monitor .
-
getResources
The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs). -
setResources
The resources that have been added for the monitor, listed by their Amazon Resource Names (ARNs). -
getResourcesToAdd
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.
-
setResourcesToAdd
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.
-
getResourcesToRemove
The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs). -
setResourcesToRemove
The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs). -
getStatus
The status of a monitor.The accepted values that you can specify for
StatusareACTIVEandINACTIVE. -
setStatus
The status of a monitor.The accepted values that you can specify for
StatusareACTIVEandINACTIVE. -
getTrafficPercentageToMonitor
The percentage of the internet-facing traffic for your application that you want to monitor.You can also, optionally, set a limit for the number of city-networks (client locations and ASNs, typically internet service providers) that Internet Monitor will monitor traffic for. The city-networks maximum limit caps the number of city-networks that Internet Monitor monitors for your application, regardless of the percentage of traffic that you choose to monitor.
-
setTrafficPercentageToMonitor
The percentage of the internet-facing traffic for your application that you want to monitor.You can also, optionally, set a limit for the number of city-networks (client locations and ASNs, typically internet service providers) that Internet Monitor will monitor traffic for. The city-networks maximum limit caps the number of city-networks that Internet Monitor monitors for your application, regardless of the percentage of traffic that you choose to monitor.
-