aws-cdk-lib 2.220.0__py3-none-any.whl → 2.221.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +21 -18
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.220.0.jsii.tgz → aws-cdk-lib@2.221.0.jsii.tgz} +0 -0
- aws_cdk/alexa_ask/__init__.py +3 -0
- aws_cdk/aws_accessanalyzer/__init__.py +3 -0
- aws_cdk/aws_acmpca/__init__.py +4 -1
- aws_cdk/aws_aiops/__init__.py +3 -0
- aws_cdk/aws_amazonmq/__init__.py +3 -29
- aws_cdk/aws_amplify/__init__.py +3 -0
- aws_cdk/aws_amplifyuibuilder/__init__.py +3 -0
- aws_cdk/aws_apigateway/__init__.py +3 -0
- aws_cdk/aws_apigatewayv2/__init__.py +3 -0
- aws_cdk/aws_appconfig/__init__.py +3 -29
- aws_cdk/aws_appflow/__init__.py +3 -0
- aws_cdk/aws_appintegrations/__init__.py +3 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +3 -0
- aws_cdk/aws_applicationinsights/__init__.py +3 -0
- aws_cdk/aws_applicationsignals/__init__.py +4 -1
- aws_cdk/aws_appmesh/__init__.py +3 -0
- aws_cdk/aws_apprunner/__init__.py +3 -0
- aws_cdk/aws_appstream/__init__.py +3 -0
- aws_cdk/aws_appsync/__init__.py +3 -0
- aws_cdk/aws_apptest/__init__.py +3 -0
- aws_cdk/aws_aps/__init__.py +1168 -83
- aws_cdk/aws_arcregionswitch/__init__.py +3 -0
- aws_cdk/aws_arczonalshift/__init__.py +3 -0
- aws_cdk/aws_athena/__init__.py +3 -0
- aws_cdk/aws_auditmanager/__init__.py +3 -0
- aws_cdk/aws_autoscaling/__init__.py +3 -0
- aws_cdk/aws_autoscaling_common/__init__.py +3 -0
- aws_cdk/aws_autoscalingplans/__init__.py +3 -0
- aws_cdk/aws_b2bi/__init__.py +3 -0
- aws_cdk/aws_backup/__init__.py +3 -29
- aws_cdk/aws_backupgateway/__init__.py +3 -0
- aws_cdk/aws_batch/__init__.py +3 -0
- aws_cdk/aws_bcmdataexports/__init__.py +3 -0
- aws_cdk/aws_bedrock/__init__.py +9 -29
- aws_cdk/aws_bedrockagentcore/__init__.py +782 -169
- aws_cdk/aws_billingconductor/__init__.py +3 -0
- aws_cdk/aws_budgets/__init__.py +3 -0
- aws_cdk/aws_cassandra/__init__.py +3 -0
- aws_cdk/aws_ce/__init__.py +3 -0
- aws_cdk/aws_certificatemanager/__init__.py +3 -0
- aws_cdk/aws_chatbot/__init__.py +3 -0
- aws_cdk/aws_cleanrooms/__init__.py +3 -0
- aws_cdk/aws_cleanroomsml/__init__.py +3 -0
- aws_cdk/aws_cloud9/__init__.py +3 -0
- aws_cdk/aws_cloudformation/__init__.py +3 -0
- aws_cdk/aws_cloudfront/__init__.py +69 -3
- aws_cdk/aws_cloudtrail/__init__.py +3 -0
- aws_cdk/aws_cloudwatch/__init__.py +3 -0
- aws_cdk/aws_codeartifact/__init__.py +3 -0
- aws_cdk/aws_codebuild/__init__.py +3 -0
- aws_cdk/aws_codecommit/__init__.py +3 -0
- aws_cdk/aws_codeconnections/__init__.py +3 -0
- aws_cdk/aws_codedeploy/__init__.py +3 -0
- aws_cdk/aws_codeguruprofiler/__init__.py +3 -0
- aws_cdk/aws_codegurureviewer/__init__.py +3 -0
- aws_cdk/aws_codepipeline/__init__.py +3 -0
- aws_cdk/aws_codepipeline_actions/__init__.py +3 -0
- aws_cdk/aws_codestar/__init__.py +3 -0
- aws_cdk/aws_codestarconnections/__init__.py +3 -0
- aws_cdk/aws_codestarnotifications/__init__.py +3 -0
- aws_cdk/aws_cognito/__init__.py +3 -0
- aws_cdk/aws_cognito_identitypool/__init__.py +3 -0
- aws_cdk/aws_comprehend/__init__.py +3 -0
- aws_cdk/aws_config/__init__.py +3 -0
- aws_cdk/aws_connect/__init__.py +1232 -2
- aws_cdk/aws_connectcampaigns/__init__.py +3 -0
- aws_cdk/aws_connectcampaignsv2/__init__.py +3 -0
- aws_cdk/aws_controltower/__init__.py +3 -0
- aws_cdk/aws_cur/__init__.py +3 -0
- aws_cdk/aws_customerprofiles/__init__.py +3 -29
- aws_cdk/aws_databrew/__init__.py +3 -0
- aws_cdk/aws_datapipeline/__init__.py +3 -0
- aws_cdk/aws_datasync/__init__.py +3 -0
- aws_cdk/aws_datazone/__init__.py +17 -15
- aws_cdk/aws_dax/__init__.py +3 -0
- aws_cdk/aws_deadline/__init__.py +3 -0
- aws_cdk/aws_detective/__init__.py +3 -0
- aws_cdk/aws_devicefarm/__init__.py +3 -0
- aws_cdk/aws_devopsguru/__init__.py +3 -0
- aws_cdk/aws_directoryservice/__init__.py +3 -0
- aws_cdk/aws_dlm/__init__.py +3 -0
- aws_cdk/aws_dms/__init__.py +3 -0
- aws_cdk/aws_docdb/__init__.py +14 -3
- aws_cdk/aws_docdbelastic/__init__.py +3 -0
- aws_cdk/aws_dsql/__init__.py +3 -0
- aws_cdk/aws_dynamodb/__init__.py +3 -0
- aws_cdk/aws_ec2/__init__.py +106 -40
- aws_cdk/aws_ecr/__init__.py +156 -33
- aws_cdk/aws_ecs/__init__.py +87 -48
- aws_cdk/aws_efs/__init__.py +3 -0
- aws_cdk/aws_eks/__init__.py +3 -58
- aws_cdk/aws_elasticache/__init__.py +3 -0
- aws_cdk/aws_elasticbeanstalk/__init__.py +3 -0
- aws_cdk/aws_elasticloadbalancing/__init__.py +3 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +445 -36
- aws_cdk/aws_elasticsearch/__init__.py +3 -0
- aws_cdk/aws_emr/__init__.py +3 -0
- aws_cdk/aws_emrcontainers/__init__.py +3 -0
- aws_cdk/aws_emrserverless/__init__.py +12 -11
- aws_cdk/aws_entityresolution/__init__.py +3 -0
- aws_cdk/aws_events/__init__.py +73 -29
- aws_cdk/aws_events_targets/__init__.py +3 -0
- aws_cdk/aws_eventschemas/__init__.py +3 -0
- aws_cdk/aws_evidently/__init__.py +3 -0
- aws_cdk/aws_evs/__init__.py +3 -0
- aws_cdk/aws_finspace/__init__.py +3 -0
- aws_cdk/aws_fis/__init__.py +3 -0
- aws_cdk/aws_fms/__init__.py +3 -0
- aws_cdk/aws_forecast/__init__.py +3 -0
- aws_cdk/aws_frauddetector/__init__.py +3 -0
- aws_cdk/aws_fsx/__init__.py +3 -0
- aws_cdk/aws_gamelift/__init__.py +3 -0
- aws_cdk/aws_gameliftstreams/__init__.py +8 -5
- aws_cdk/aws_globalaccelerator/__init__.py +3 -0
- aws_cdk/aws_glue/__init__.py +11 -80
- aws_cdk/aws_grafana/__init__.py +3 -0
- aws_cdk/aws_greengrass/__init__.py +3 -0
- aws_cdk/aws_greengrassv2/__init__.py +3 -0
- aws_cdk/aws_groundstation/__init__.py +3 -0
- aws_cdk/aws_guardduty/__init__.py +3 -0
- aws_cdk/aws_healthimaging/__init__.py +3 -0
- aws_cdk/aws_healthlake/__init__.py +3 -0
- aws_cdk/aws_iam/__init__.py +30 -32
- aws_cdk/aws_identitystore/__init__.py +3 -0
- aws_cdk/aws_imagebuilder/__init__.py +499 -0
- aws_cdk/aws_inspector/__init__.py +3 -0
- aws_cdk/aws_inspectorv2/__init__.py +3 -0
- aws_cdk/aws_internetmonitor/__init__.py +3 -0
- aws_cdk/aws_invoicing/__init__.py +3 -0
- aws_cdk/aws_iot/__init__.py +3 -0
- aws_cdk/aws_iotanalytics/__init__.py +3 -0
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +3 -0
- aws_cdk/aws_iotevents/__init__.py +3 -0
- aws_cdk/aws_iotfleethub/__init__.py +3 -0
- aws_cdk/aws_iotfleetwise/__init__.py +3 -0
- aws_cdk/aws_iotsitewise/__init__.py +3 -0
- aws_cdk/aws_iotthingsgraph/__init__.py +3 -0
- aws_cdk/aws_iottwinmaker/__init__.py +3 -87
- aws_cdk/aws_iotwireless/__init__.py +61 -0
- aws_cdk/aws_ivs/__init__.py +3 -0
- aws_cdk/aws_ivschat/__init__.py +3 -0
- aws_cdk/aws_kafkaconnect/__init__.py +3 -0
- aws_cdk/aws_kendra/__init__.py +3 -58
- aws_cdk/aws_kendraranking/__init__.py +3 -0
- aws_cdk/aws_kinesis/__init__.py +3 -0
- aws_cdk/aws_kinesisanalytics/__init__.py +3 -0
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +3 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +1709 -10
- aws_cdk/aws_kinesisvideo/__init__.py +3 -29
- aws_cdk/aws_kms/__init__.py +3 -0
- aws_cdk/aws_lakeformation/__init__.py +3 -0
- aws_cdk/aws_lambda/__init__.py +14 -7
- aws_cdk/aws_lambda_nodejs/__init__.py +3 -0
- aws_cdk/aws_launchwizard/__init__.py +3 -0
- aws_cdk/aws_lex/__init__.py +3 -29
- aws_cdk/aws_licensemanager/__init__.py +3 -0
- aws_cdk/aws_lightsail/__init__.py +3 -0
- aws_cdk/aws_location/__init__.py +3 -0
- aws_cdk/aws_logs/__init__.py +226 -9
- aws_cdk/aws_lookoutequipment/__init__.py +3 -29
- aws_cdk/aws_lookoutmetrics/__init__.py +3 -0
- aws_cdk/aws_lookoutvision/__init__.py +3 -0
- aws_cdk/aws_m2/__init__.py +3 -0
- aws_cdk/aws_macie/__init__.py +3 -0
- aws_cdk/aws_managedblockchain/__init__.py +3 -0
- aws_cdk/aws_mediaconnect/__init__.py +3 -0
- aws_cdk/aws_mediaconvert/__init__.py +3 -0
- aws_cdk/aws_medialive/__init__.py +171 -33
- aws_cdk/aws_mediapackage/__init__.py +3 -0
- aws_cdk/aws_mediapackagev2/__init__.py +3 -0
- aws_cdk/aws_mediastore/__init__.py +3 -0
- aws_cdk/aws_mediatailor/__init__.py +3 -58
- aws_cdk/aws_memorydb/__init__.py +3 -0
- aws_cdk/aws_mpa/__init__.py +3 -0
- aws_cdk/aws_msk/__init__.py +3 -0
- aws_cdk/aws_mwaa/__init__.py +3 -0
- aws_cdk/aws_neptune/__init__.py +55 -0
- aws_cdk/aws_neptunegraph/__init__.py +3 -0
- aws_cdk/aws_networkfirewall/__init__.py +3 -0
- aws_cdk/aws_networkmanager/__init__.py +3 -0
- aws_cdk/aws_nimblestudio/__init__.py +3 -0
- aws_cdk/aws_notifications/__init__.py +3 -0
- aws_cdk/aws_notificationscontacts/__init__.py +3 -0
- aws_cdk/aws_oam/__init__.py +3 -0
- aws_cdk/aws_observabilityadmin/__init__.py +171 -137
- aws_cdk/aws_odb/__init__.py +4 -1
- aws_cdk/aws_omics/__init__.py +3 -0
- aws_cdk/aws_opensearchserverless/__init__.py +3 -0
- aws_cdk/aws_opensearchservice/__init__.py +3 -0
- aws_cdk/aws_opsworks/__init__.py +3 -0
- aws_cdk/aws_opsworkscm/__init__.py +3 -0
- aws_cdk/aws_organizations/__init__.py +3 -116
- aws_cdk/aws_osis/__init__.py +157 -0
- aws_cdk/aws_panorama/__init__.py +3 -0
- aws_cdk/aws_paymentcryptography/__init__.py +3 -0
- aws_cdk/aws_pcaconnectorad/__init__.py +3 -0
- aws_cdk/aws_pcaconnectorscep/__init__.py +3 -0
- aws_cdk/aws_pcs/__init__.py +3 -0
- aws_cdk/aws_personalize/__init__.py +3 -0
- aws_cdk/aws_pinpoint/__init__.py +3 -58
- aws_cdk/aws_pinpointemail/__init__.py +3 -0
- aws_cdk/aws_pipes/__init__.py +3 -0
- aws_cdk/aws_proton/__init__.py +3 -0
- aws_cdk/aws_qbusiness/__init__.py +3 -174
- aws_cdk/aws_qldb/__init__.py +3 -29
- aws_cdk/aws_quicksight/__init__.py +418 -411
- aws_cdk/aws_ram/__init__.py +3 -0
- aws_cdk/aws_rbin/__init__.py +3 -0
- aws_cdk/aws_rds/__init__.py +42 -19
- aws_cdk/aws_redshift/__init__.py +3 -0
- aws_cdk/aws_redshiftserverless/__init__.py +3 -0
- aws_cdk/aws_refactorspaces/__init__.py +3 -0
- aws_cdk/aws_rekognition/__init__.py +3 -29
- aws_cdk/aws_resiliencehub/__init__.py +3 -0
- aws_cdk/aws_resourceexplorer2/__init__.py +3 -0
- aws_cdk/aws_resourcegroups/__init__.py +3 -0
- aws_cdk/aws_robomaker/__init__.py +3 -0
- aws_cdk/aws_rolesanywhere/__init__.py +3 -0
- aws_cdk/aws_route53/__init__.py +18 -18
- aws_cdk/aws_route53_targets/__init__.py +3 -0
- aws_cdk/aws_route53profiles/__init__.py +3 -0
- aws_cdk/aws_route53recoverycontrol/__init__.py +3 -0
- aws_cdk/aws_route53recoveryreadiness/__init__.py +3 -0
- aws_cdk/aws_route53resolver/__init__.py +11 -4
- aws_cdk/aws_rum/__init__.py +3 -0
- aws_cdk/aws_s3/__init__.py +51 -41
- aws_cdk/aws_s3_deployment/__init__.py +3 -0
- aws_cdk/aws_s3express/__init__.py +3 -0
- aws_cdk/aws_s3objectlambda/__init__.py +3 -0
- aws_cdk/aws_s3outposts/__init__.py +3 -0
- aws_cdk/aws_s3tables/__init__.py +3 -0
- aws_cdk/aws_sagemaker/__init__.py +166 -87
- aws_cdk/aws_sam/__init__.py +3 -0
- aws_cdk/aws_scheduler/__init__.py +3 -29
- aws_cdk/aws_sdb/__init__.py +3 -0
- aws_cdk/aws_secretsmanager/__init__.py +3 -0
- aws_cdk/aws_securityhub/__init__.py +3 -0
- aws_cdk/aws_securitylake/__init__.py +3 -0
- aws_cdk/aws_servicecatalog/__init__.py +136 -124
- aws_cdk/aws_servicecatalogappregistry/__init__.py +3 -0
- aws_cdk/aws_servicediscovery/__init__.py +3 -0
- aws_cdk/aws_ses/__init__.py +3 -0
- aws_cdk/aws_shield/__init__.py +3 -0
- aws_cdk/aws_signer/__init__.py +3 -0
- aws_cdk/aws_simspaceweaver/__init__.py +3 -0
- aws_cdk/aws_smsvoice/__init__.py +3 -29
- aws_cdk/aws_sns/__init__.py +3 -0
- aws_cdk/aws_sqs/__init__.py +3 -0
- aws_cdk/aws_ssm/__init__.py +10 -3
- aws_cdk/aws_ssmcontacts/__init__.py +3 -0
- aws_cdk/aws_ssmguiconnect/__init__.py +3 -0
- aws_cdk/aws_ssmincidents/__init__.py +3 -0
- aws_cdk/aws_ssmquicksetup/__init__.py +467 -0
- aws_cdk/aws_sso/__init__.py +3 -0
- aws_cdk/aws_stepfunctions/__init__.py +23 -19
- aws_cdk/aws_stepfunctions_tasks/__init__.py +6 -3
- aws_cdk/aws_supportapp/__init__.py +3 -0
- aws_cdk/aws_synthetics/__init__.py +59 -26
- aws_cdk/aws_systemsmanagersap/__init__.py +3 -0
- aws_cdk/aws_timestream/__init__.py +3 -29
- aws_cdk/aws_transfer/__init__.py +20 -34
- aws_cdk/aws_verifiedpermissions/__init__.py +3 -0
- aws_cdk/aws_voiceid/__init__.py +3 -0
- aws_cdk/aws_vpclattice/__init__.py +7 -4
- aws_cdk/aws_waf/__init__.py +3 -0
- aws_cdk/aws_wafregional/__init__.py +3 -0
- aws_cdk/aws_wafv2/__init__.py +3 -0
- aws_cdk/aws_wisdom/__init__.py +3 -116
- aws_cdk/aws_workspaces/__init__.py +3 -0
- aws_cdk/aws_workspacesinstances/__init__.py +3 -0
- aws_cdk/aws_workspacesthinclient/__init__.py +3 -0
- aws_cdk/aws_workspacesweb/__init__.py +3 -0
- aws_cdk/aws_xray/__init__.py +3 -0
- aws_cdk/cloud_assembly_schema/__init__.py +3 -0
- aws_cdk/cx_api/__init__.py +34 -0
- aws_cdk/pipelines/__init__.py +3 -0
- aws_cdk/region_info/__init__.py +3 -0
- aws_cdk/triggers/__init__.py +3 -0
- {aws_cdk_lib-2.220.0.dist-info → aws_cdk_lib-2.221.0.dist-info}/METADATA +2 -2
- aws_cdk_lib-2.221.0.dist-info/RECORD +313 -0
- aws_cdk_lib-2.220.0.dist-info/RECORD +0 -313
- {aws_cdk_lib-2.220.0.dist-info → aws_cdk_lib-2.221.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.220.0.dist-info → aws_cdk_lib-2.221.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.220.0.dist-info → aws_cdk_lib-2.221.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.220.0.dist-info → aws_cdk_lib-2.221.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_aps/__init__.py
CHANGED
|
@@ -70,6 +70,243 @@ from .. import (
|
|
|
70
70
|
)
|
|
71
71
|
|
|
72
72
|
|
|
73
|
+
@jsii.data_type(
|
|
74
|
+
jsii_type="aws-cdk-lib.aws_aps.AnomalyDetectorReference",
|
|
75
|
+
jsii_struct_bases=[],
|
|
76
|
+
name_mapping={"anomaly_detector_arn": "anomalyDetectorArn"},
|
|
77
|
+
)
|
|
78
|
+
class AnomalyDetectorReference:
|
|
79
|
+
def __init__(self, *, anomaly_detector_arn: builtins.str) -> None:
|
|
80
|
+
'''A reference to a AnomalyDetector resource.
|
|
81
|
+
|
|
82
|
+
:param anomaly_detector_arn: The Arn of the AnomalyDetector resource.
|
|
83
|
+
|
|
84
|
+
:exampleMetadata: fixture=_generated
|
|
85
|
+
|
|
86
|
+
Example::
|
|
87
|
+
|
|
88
|
+
# The code below shows an example of how to instantiate this type.
|
|
89
|
+
# The values are placeholders you should change.
|
|
90
|
+
from aws_cdk import aws_aps as aps
|
|
91
|
+
|
|
92
|
+
anomaly_detector_reference = aps.AnomalyDetectorReference(
|
|
93
|
+
anomaly_detector_arn="anomalyDetectorArn"
|
|
94
|
+
)
|
|
95
|
+
'''
|
|
96
|
+
if __debug__:
|
|
97
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d8f087ddf091d7802928e5eb9ae2c35d5aea0cb5cb3e0d1494e32ce693f67efa)
|
|
98
|
+
check_type(argname="argument anomaly_detector_arn", value=anomaly_detector_arn, expected_type=type_hints["anomaly_detector_arn"])
|
|
99
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
100
|
+
"anomaly_detector_arn": anomaly_detector_arn,
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@builtins.property
|
|
104
|
+
def anomaly_detector_arn(self) -> builtins.str:
|
|
105
|
+
'''The Arn of the AnomalyDetector resource.'''
|
|
106
|
+
result = self._values.get("anomaly_detector_arn")
|
|
107
|
+
assert result is not None, "Required property 'anomaly_detector_arn' is missing"
|
|
108
|
+
return typing.cast(builtins.str, result)
|
|
109
|
+
|
|
110
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
111
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
112
|
+
|
|
113
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
114
|
+
return not (rhs == self)
|
|
115
|
+
|
|
116
|
+
def __repr__(self) -> str:
|
|
117
|
+
return "AnomalyDetectorReference(%s)" % ", ".join(
|
|
118
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
@jsii.data_type(
|
|
123
|
+
jsii_type="aws-cdk-lib.aws_aps.CfnAnomalyDetectorProps",
|
|
124
|
+
jsii_struct_bases=[],
|
|
125
|
+
name_mapping={
|
|
126
|
+
"alias": "alias",
|
|
127
|
+
"configuration": "configuration",
|
|
128
|
+
"workspace": "workspace",
|
|
129
|
+
"evaluation_interval_in_seconds": "evaluationIntervalInSeconds",
|
|
130
|
+
"labels": "labels",
|
|
131
|
+
"missing_data_action": "missingDataAction",
|
|
132
|
+
"tags": "tags",
|
|
133
|
+
},
|
|
134
|
+
)
|
|
135
|
+
class CfnAnomalyDetectorProps:
|
|
136
|
+
def __init__(
|
|
137
|
+
self,
|
|
138
|
+
*,
|
|
139
|
+
alias: builtins.str,
|
|
140
|
+
configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnomalyDetector.AnomalyDetectorConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
141
|
+
workspace: builtins.str,
|
|
142
|
+
evaluation_interval_in_seconds: typing.Optional[jsii.Number] = None,
|
|
143
|
+
labels: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnomalyDetector.LabelProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
144
|
+
missing_data_action: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnomalyDetector.MissingDataActionProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
145
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
146
|
+
) -> None:
|
|
147
|
+
'''Properties for defining a ``CfnAnomalyDetector``.
|
|
148
|
+
|
|
149
|
+
:param alias: The AnomalyDetector alias.
|
|
150
|
+
:param configuration:
|
|
151
|
+
:param workspace: An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.
|
|
152
|
+
:param evaluation_interval_in_seconds: The AnomalyDetector period of detection and metric generation. Default: - 60
|
|
153
|
+
:param labels: An array of key-value pairs to provide meta-data.
|
|
154
|
+
:param missing_data_action:
|
|
155
|
+
:param tags: An array of key-value pairs to apply to this resource.
|
|
156
|
+
|
|
157
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-anomalydetector.html
|
|
158
|
+
:exampleMetadata: fixture=_generated
|
|
159
|
+
|
|
160
|
+
Example::
|
|
161
|
+
|
|
162
|
+
# The code below shows an example of how to instantiate this type.
|
|
163
|
+
# The values are placeholders you should change.
|
|
164
|
+
from aws_cdk import aws_aps as aps
|
|
165
|
+
|
|
166
|
+
cfn_anomaly_detector_props = aps.CfnAnomalyDetectorProps(
|
|
167
|
+
alias="alias",
|
|
168
|
+
configuration=aps.CfnAnomalyDetector.AnomalyDetectorConfigurationProperty(
|
|
169
|
+
random_cut_forest=aps.CfnAnomalyDetector.RandomCutForestConfigurationProperty(
|
|
170
|
+
query="query",
|
|
171
|
+
|
|
172
|
+
# the properties below are optional
|
|
173
|
+
ignore_near_expected_from_above=aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
|
|
174
|
+
amount=123,
|
|
175
|
+
ratio=123
|
|
176
|
+
),
|
|
177
|
+
ignore_near_expected_from_below=aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
|
|
178
|
+
amount=123,
|
|
179
|
+
ratio=123
|
|
180
|
+
),
|
|
181
|
+
sample_size=123,
|
|
182
|
+
shingle_size=123
|
|
183
|
+
)
|
|
184
|
+
),
|
|
185
|
+
workspace="workspace",
|
|
186
|
+
|
|
187
|
+
# the properties below are optional
|
|
188
|
+
evaluation_interval_in_seconds=123,
|
|
189
|
+
labels=[aps.CfnAnomalyDetector.LabelProperty(
|
|
190
|
+
key="key",
|
|
191
|
+
value="value"
|
|
192
|
+
)],
|
|
193
|
+
missing_data_action=aps.CfnAnomalyDetector.MissingDataActionProperty(
|
|
194
|
+
mark_as_anomaly=False,
|
|
195
|
+
skip=False
|
|
196
|
+
),
|
|
197
|
+
tags=[CfnTag(
|
|
198
|
+
key="key",
|
|
199
|
+
value="value"
|
|
200
|
+
)]
|
|
201
|
+
)
|
|
202
|
+
'''
|
|
203
|
+
if __debug__:
|
|
204
|
+
type_hints = typing.get_type_hints(_typecheckingstub__be017a909bcb870b1880c9bb2c099abc51df504e0f9199ca315deb7fa50b9d6b)
|
|
205
|
+
check_type(argname="argument alias", value=alias, expected_type=type_hints["alias"])
|
|
206
|
+
check_type(argname="argument configuration", value=configuration, expected_type=type_hints["configuration"])
|
|
207
|
+
check_type(argname="argument workspace", value=workspace, expected_type=type_hints["workspace"])
|
|
208
|
+
check_type(argname="argument evaluation_interval_in_seconds", value=evaluation_interval_in_seconds, expected_type=type_hints["evaluation_interval_in_seconds"])
|
|
209
|
+
check_type(argname="argument labels", value=labels, expected_type=type_hints["labels"])
|
|
210
|
+
check_type(argname="argument missing_data_action", value=missing_data_action, expected_type=type_hints["missing_data_action"])
|
|
211
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
212
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
213
|
+
"alias": alias,
|
|
214
|
+
"configuration": configuration,
|
|
215
|
+
"workspace": workspace,
|
|
216
|
+
}
|
|
217
|
+
if evaluation_interval_in_seconds is not None:
|
|
218
|
+
self._values["evaluation_interval_in_seconds"] = evaluation_interval_in_seconds
|
|
219
|
+
if labels is not None:
|
|
220
|
+
self._values["labels"] = labels
|
|
221
|
+
if missing_data_action is not None:
|
|
222
|
+
self._values["missing_data_action"] = missing_data_action
|
|
223
|
+
if tags is not None:
|
|
224
|
+
self._values["tags"] = tags
|
|
225
|
+
|
|
226
|
+
@builtins.property
|
|
227
|
+
def alias(self) -> builtins.str:
|
|
228
|
+
'''The AnomalyDetector alias.
|
|
229
|
+
|
|
230
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-anomalydetector.html#cfn-aps-anomalydetector-alias
|
|
231
|
+
'''
|
|
232
|
+
result = self._values.get("alias")
|
|
233
|
+
assert result is not None, "Required property 'alias' is missing"
|
|
234
|
+
return typing.cast(builtins.str, result)
|
|
235
|
+
|
|
236
|
+
@builtins.property
|
|
237
|
+
def configuration(
|
|
238
|
+
self,
|
|
239
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.AnomalyDetectorConfigurationProperty"]:
|
|
240
|
+
'''
|
|
241
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-anomalydetector.html#cfn-aps-anomalydetector-configuration
|
|
242
|
+
'''
|
|
243
|
+
result = self._values.get("configuration")
|
|
244
|
+
assert result is not None, "Required property 'configuration' is missing"
|
|
245
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.AnomalyDetectorConfigurationProperty"], result)
|
|
246
|
+
|
|
247
|
+
@builtins.property
|
|
248
|
+
def workspace(self) -> builtins.str:
|
|
249
|
+
'''An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.
|
|
250
|
+
|
|
251
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-anomalydetector.html#cfn-aps-anomalydetector-workspace
|
|
252
|
+
'''
|
|
253
|
+
result = self._values.get("workspace")
|
|
254
|
+
assert result is not None, "Required property 'workspace' is missing"
|
|
255
|
+
return typing.cast(builtins.str, result)
|
|
256
|
+
|
|
257
|
+
@builtins.property
|
|
258
|
+
def evaluation_interval_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
259
|
+
'''The AnomalyDetector period of detection and metric generation.
|
|
260
|
+
|
|
261
|
+
:default: - 60
|
|
262
|
+
|
|
263
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-anomalydetector.html#cfn-aps-anomalydetector-evaluationintervalinseconds
|
|
264
|
+
'''
|
|
265
|
+
result = self._values.get("evaluation_interval_in_seconds")
|
|
266
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
267
|
+
|
|
268
|
+
@builtins.property
|
|
269
|
+
def labels(
|
|
270
|
+
self,
|
|
271
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.LabelProperty"]]]]:
|
|
272
|
+
'''An array of key-value pairs to provide meta-data.
|
|
273
|
+
|
|
274
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-anomalydetector.html#cfn-aps-anomalydetector-labels
|
|
275
|
+
'''
|
|
276
|
+
result = self._values.get("labels")
|
|
277
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.LabelProperty"]]]], result)
|
|
278
|
+
|
|
279
|
+
@builtins.property
|
|
280
|
+
def missing_data_action(
|
|
281
|
+
self,
|
|
282
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.MissingDataActionProperty"]]:
|
|
283
|
+
'''
|
|
284
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-anomalydetector.html#cfn-aps-anomalydetector-missingdataaction
|
|
285
|
+
'''
|
|
286
|
+
result = self._values.get("missing_data_action")
|
|
287
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.MissingDataActionProperty"]], result)
|
|
288
|
+
|
|
289
|
+
@builtins.property
|
|
290
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
291
|
+
'''An array of key-value pairs to apply to this resource.
|
|
292
|
+
|
|
293
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-anomalydetector.html#cfn-aps-anomalydetector-tags
|
|
294
|
+
'''
|
|
295
|
+
result = self._values.get("tags")
|
|
296
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
297
|
+
|
|
298
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
299
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
300
|
+
|
|
301
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
302
|
+
return not (rhs == self)
|
|
303
|
+
|
|
304
|
+
def __repr__(self) -> str:
|
|
305
|
+
return "CfnAnomalyDetectorProps(%s)" % ", ".join(
|
|
306
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
307
|
+
)
|
|
308
|
+
|
|
309
|
+
|
|
73
310
|
@jsii.data_type(
|
|
74
311
|
jsii_type="aws-cdk-lib.aws_aps.CfnResourcePolicyProps",
|
|
75
312
|
jsii_struct_bases=[],
|
|
@@ -657,6 +894,46 @@ class CfnWorkspaceProps:
|
|
|
657
894
|
)
|
|
658
895
|
|
|
659
896
|
|
|
897
|
+
@jsii.interface(jsii_type="aws-cdk-lib.aws_aps.IAnomalyDetectorRef")
|
|
898
|
+
class IAnomalyDetectorRef(_constructs_77d1e7e8.IConstruct, typing_extensions.Protocol):
|
|
899
|
+
'''(experimental) Indicates that this resource can be referenced as a AnomalyDetector.
|
|
900
|
+
|
|
901
|
+
:stability: experimental
|
|
902
|
+
'''
|
|
903
|
+
|
|
904
|
+
@builtins.property
|
|
905
|
+
@jsii.member(jsii_name="anomalyDetectorRef")
|
|
906
|
+
def anomaly_detector_ref(self) -> AnomalyDetectorReference:
|
|
907
|
+
'''(experimental) A reference to a AnomalyDetector resource.
|
|
908
|
+
|
|
909
|
+
:stability: experimental
|
|
910
|
+
'''
|
|
911
|
+
...
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
class _IAnomalyDetectorRefProxy(
|
|
915
|
+
jsii.proxy_for(_constructs_77d1e7e8.IConstruct), # type: ignore[misc]
|
|
916
|
+
):
|
|
917
|
+
'''(experimental) Indicates that this resource can be referenced as a AnomalyDetector.
|
|
918
|
+
|
|
919
|
+
:stability: experimental
|
|
920
|
+
'''
|
|
921
|
+
|
|
922
|
+
__jsii_type__: typing.ClassVar[str] = "aws-cdk-lib.aws_aps.IAnomalyDetectorRef"
|
|
923
|
+
|
|
924
|
+
@builtins.property
|
|
925
|
+
@jsii.member(jsii_name="anomalyDetectorRef")
|
|
926
|
+
def anomaly_detector_ref(self) -> AnomalyDetectorReference:
|
|
927
|
+
'''(experimental) A reference to a AnomalyDetector resource.
|
|
928
|
+
|
|
929
|
+
:stability: experimental
|
|
930
|
+
'''
|
|
931
|
+
return typing.cast(AnomalyDetectorReference, jsii.get(self, "anomalyDetectorRef"))
|
|
932
|
+
|
|
933
|
+
# Adding a "__jsii_proxy_class__(): typing.Type" function to the interface
|
|
934
|
+
typing.cast(typing.Any, IAnomalyDetectorRef).__jsii_proxy_class__ = lambda : _IAnomalyDetectorRefProxy
|
|
935
|
+
|
|
936
|
+
|
|
660
937
|
@jsii.interface(jsii_type="aws-cdk-lib.aws_aps.IResourcePolicyRef")
|
|
661
938
|
class IResourcePolicyRef(_constructs_77d1e7e8.IConstruct, typing_extensions.Protocol):
|
|
662
939
|
'''(experimental) Indicates that this resource can be referenced as a ResourcePolicy.
|
|
@@ -909,111 +1186,781 @@ class RuleGroupsNamespaceReference:
|
|
|
909
1186
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
910
1187
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
911
1188
|
|
|
912
|
-
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
913
|
-
return not (rhs == self)
|
|
1189
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1190
|
+
return not (rhs == self)
|
|
1191
|
+
|
|
1192
|
+
def __repr__(self) -> str:
|
|
1193
|
+
return "RuleGroupsNamespaceReference(%s)" % ", ".join(
|
|
1194
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1195
|
+
)
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
@jsii.data_type(
|
|
1199
|
+
jsii_type="aws-cdk-lib.aws_aps.ScraperReference",
|
|
1200
|
+
jsii_struct_bases=[],
|
|
1201
|
+
name_mapping={"scraper_arn": "scraperArn"},
|
|
1202
|
+
)
|
|
1203
|
+
class ScraperReference:
|
|
1204
|
+
def __init__(self, *, scraper_arn: builtins.str) -> None:
|
|
1205
|
+
'''A reference to a Scraper resource.
|
|
1206
|
+
|
|
1207
|
+
:param scraper_arn: The Arn of the Scraper resource.
|
|
1208
|
+
|
|
1209
|
+
:exampleMetadata: fixture=_generated
|
|
1210
|
+
|
|
1211
|
+
Example::
|
|
1212
|
+
|
|
1213
|
+
# The code below shows an example of how to instantiate this type.
|
|
1214
|
+
# The values are placeholders you should change.
|
|
1215
|
+
from aws_cdk import aws_aps as aps
|
|
1216
|
+
|
|
1217
|
+
scraper_reference = aps.ScraperReference(
|
|
1218
|
+
scraper_arn="scraperArn"
|
|
1219
|
+
)
|
|
1220
|
+
'''
|
|
1221
|
+
if __debug__:
|
|
1222
|
+
type_hints = typing.get_type_hints(_typecheckingstub__374a5fc232eb102ac8a6793598055a5f55853e59ffcefdb5264aa89a04f77bb4)
|
|
1223
|
+
check_type(argname="argument scraper_arn", value=scraper_arn, expected_type=type_hints["scraper_arn"])
|
|
1224
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1225
|
+
"scraper_arn": scraper_arn,
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
@builtins.property
|
|
1229
|
+
def scraper_arn(self) -> builtins.str:
|
|
1230
|
+
'''The Arn of the Scraper resource.'''
|
|
1231
|
+
result = self._values.get("scraper_arn")
|
|
1232
|
+
assert result is not None, "Required property 'scraper_arn' is missing"
|
|
1233
|
+
return typing.cast(builtins.str, result)
|
|
1234
|
+
|
|
1235
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1236
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1237
|
+
|
|
1238
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1239
|
+
return not (rhs == self)
|
|
1240
|
+
|
|
1241
|
+
def __repr__(self) -> str:
|
|
1242
|
+
return "ScraperReference(%s)" % ", ".join(
|
|
1243
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1244
|
+
)
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
@jsii.data_type(
|
|
1248
|
+
jsii_type="aws-cdk-lib.aws_aps.WorkspaceReference",
|
|
1249
|
+
jsii_struct_bases=[],
|
|
1250
|
+
name_mapping={"workspace_arn": "workspaceArn"},
|
|
1251
|
+
)
|
|
1252
|
+
class WorkspaceReference:
|
|
1253
|
+
def __init__(self, *, workspace_arn: builtins.str) -> None:
|
|
1254
|
+
'''A reference to a Workspace resource.
|
|
1255
|
+
|
|
1256
|
+
:param workspace_arn: The Arn of the Workspace resource.
|
|
1257
|
+
|
|
1258
|
+
:exampleMetadata: fixture=_generated
|
|
1259
|
+
|
|
1260
|
+
Example::
|
|
1261
|
+
|
|
1262
|
+
# The code below shows an example of how to instantiate this type.
|
|
1263
|
+
# The values are placeholders you should change.
|
|
1264
|
+
from aws_cdk import aws_aps as aps
|
|
1265
|
+
|
|
1266
|
+
workspace_reference = aps.WorkspaceReference(
|
|
1267
|
+
workspace_arn="workspaceArn"
|
|
1268
|
+
)
|
|
1269
|
+
'''
|
|
1270
|
+
if __debug__:
|
|
1271
|
+
type_hints = typing.get_type_hints(_typecheckingstub__aa321cfca0087100b6387ec771252167e8e12904e76c51b3da5c058ba6c23f46)
|
|
1272
|
+
check_type(argname="argument workspace_arn", value=workspace_arn, expected_type=type_hints["workspace_arn"])
|
|
1273
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1274
|
+
"workspace_arn": workspace_arn,
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
@builtins.property
|
|
1278
|
+
def workspace_arn(self) -> builtins.str:
|
|
1279
|
+
'''The Arn of the Workspace resource.'''
|
|
1280
|
+
result = self._values.get("workspace_arn")
|
|
1281
|
+
assert result is not None, "Required property 'workspace_arn' is missing"
|
|
1282
|
+
return typing.cast(builtins.str, result)
|
|
1283
|
+
|
|
1284
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1285
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1286
|
+
|
|
1287
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1288
|
+
return not (rhs == self)
|
|
1289
|
+
|
|
1290
|
+
def __repr__(self) -> str:
|
|
1291
|
+
return "WorkspaceReference(%s)" % ", ".join(
|
|
1292
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1293
|
+
)
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
@jsii.implements(_IInspectable_c2943556, IAnomalyDetectorRef, _ITaggableV2_4e6798f8)
|
|
1297
|
+
class CfnAnomalyDetector(
|
|
1298
|
+
_CfnResource_9df397a6,
|
|
1299
|
+
metaclass=jsii.JSIIMeta,
|
|
1300
|
+
jsii_type="aws-cdk-lib.aws_aps.CfnAnomalyDetector",
|
|
1301
|
+
):
|
|
1302
|
+
'''AnomalyDetector schema for cloudformation.
|
|
1303
|
+
|
|
1304
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-anomalydetector.html
|
|
1305
|
+
:cloudformationResource: AWS::APS::AnomalyDetector
|
|
1306
|
+
:exampleMetadata: fixture=_generated
|
|
1307
|
+
|
|
1308
|
+
Example::
|
|
1309
|
+
|
|
1310
|
+
# The code below shows an example of how to instantiate this type.
|
|
1311
|
+
# The values are placeholders you should change.
|
|
1312
|
+
from aws_cdk import aws_aps as aps
|
|
1313
|
+
|
|
1314
|
+
cfn_anomaly_detector = aps.CfnAnomalyDetector(self, "MyCfnAnomalyDetector",
|
|
1315
|
+
alias="alias",
|
|
1316
|
+
configuration=aps.CfnAnomalyDetector.AnomalyDetectorConfigurationProperty(
|
|
1317
|
+
random_cut_forest=aps.CfnAnomalyDetector.RandomCutForestConfigurationProperty(
|
|
1318
|
+
query="query",
|
|
1319
|
+
|
|
1320
|
+
# the properties below are optional
|
|
1321
|
+
ignore_near_expected_from_above=aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
|
|
1322
|
+
amount=123,
|
|
1323
|
+
ratio=123
|
|
1324
|
+
),
|
|
1325
|
+
ignore_near_expected_from_below=aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
|
|
1326
|
+
amount=123,
|
|
1327
|
+
ratio=123
|
|
1328
|
+
),
|
|
1329
|
+
sample_size=123,
|
|
1330
|
+
shingle_size=123
|
|
1331
|
+
)
|
|
1332
|
+
),
|
|
1333
|
+
workspace="workspace",
|
|
1334
|
+
|
|
1335
|
+
# the properties below are optional
|
|
1336
|
+
evaluation_interval_in_seconds=123,
|
|
1337
|
+
labels=[aps.CfnAnomalyDetector.LabelProperty(
|
|
1338
|
+
key="key",
|
|
1339
|
+
value="value"
|
|
1340
|
+
)],
|
|
1341
|
+
missing_data_action=aps.CfnAnomalyDetector.MissingDataActionProperty(
|
|
1342
|
+
mark_as_anomaly=False,
|
|
1343
|
+
skip=False
|
|
1344
|
+
),
|
|
1345
|
+
tags=[CfnTag(
|
|
1346
|
+
key="key",
|
|
1347
|
+
value="value"
|
|
1348
|
+
)]
|
|
1349
|
+
)
|
|
1350
|
+
'''
|
|
1351
|
+
|
|
1352
|
+
def __init__(
|
|
1353
|
+
self,
|
|
1354
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
1355
|
+
id: builtins.str,
|
|
1356
|
+
*,
|
|
1357
|
+
alias: builtins.str,
|
|
1358
|
+
configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnomalyDetector.AnomalyDetectorConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
1359
|
+
workspace: builtins.str,
|
|
1360
|
+
evaluation_interval_in_seconds: typing.Optional[jsii.Number] = None,
|
|
1361
|
+
labels: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnomalyDetector.LabelProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1362
|
+
missing_data_action: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnomalyDetector.MissingDataActionProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1363
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1364
|
+
) -> None:
|
|
1365
|
+
'''
|
|
1366
|
+
:param scope: Scope in which this resource is defined.
|
|
1367
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
1368
|
+
:param alias: The AnomalyDetector alias.
|
|
1369
|
+
:param configuration:
|
|
1370
|
+
:param workspace: An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.
|
|
1371
|
+
:param evaluation_interval_in_seconds: The AnomalyDetector period of detection and metric generation. Default: - 60
|
|
1372
|
+
:param labels: An array of key-value pairs to provide meta-data.
|
|
1373
|
+
:param missing_data_action:
|
|
1374
|
+
:param tags: An array of key-value pairs to apply to this resource.
|
|
1375
|
+
'''
|
|
1376
|
+
if __debug__:
|
|
1377
|
+
type_hints = typing.get_type_hints(_typecheckingstub__58b3184629f18780da9f7c9eb2f8acdbdbb5190c9fc3ae41fdbbe34341ba0f26)
|
|
1378
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
1379
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
1380
|
+
props = CfnAnomalyDetectorProps(
|
|
1381
|
+
alias=alias,
|
|
1382
|
+
configuration=configuration,
|
|
1383
|
+
workspace=workspace,
|
|
1384
|
+
evaluation_interval_in_seconds=evaluation_interval_in_seconds,
|
|
1385
|
+
labels=labels,
|
|
1386
|
+
missing_data_action=missing_data_action,
|
|
1387
|
+
tags=tags,
|
|
1388
|
+
)
|
|
1389
|
+
|
|
1390
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
1391
|
+
|
|
1392
|
+
@jsii.member(jsii_name="inspect")
|
|
1393
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
1394
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
1395
|
+
|
|
1396
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
1397
|
+
'''
|
|
1398
|
+
if __debug__:
|
|
1399
|
+
type_hints = typing.get_type_hints(_typecheckingstub__36a9fa3c67c466703717001e2774dacca3fa612b6ec02f8b6361ad6736da0ec7)
|
|
1400
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
1401
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
1402
|
+
|
|
1403
|
+
@jsii.member(jsii_name="renderProperties")
|
|
1404
|
+
def _render_properties(
|
|
1405
|
+
self,
|
|
1406
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
1407
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1408
|
+
'''
|
|
1409
|
+
:param props: -
|
|
1410
|
+
'''
|
|
1411
|
+
if __debug__:
|
|
1412
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1edc3473fdf33536207faf87047c2bef23ac4e4aecad53d1e0338308f0e5ab91)
|
|
1413
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1414
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
1415
|
+
|
|
1416
|
+
@jsii.python.classproperty
|
|
1417
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
1418
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
1419
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
1420
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
1421
|
+
|
|
1422
|
+
@builtins.property
|
|
1423
|
+
@jsii.member(jsii_name="anomalyDetectorRef")
|
|
1424
|
+
def anomaly_detector_ref(self) -> AnomalyDetectorReference:
|
|
1425
|
+
'''A reference to a AnomalyDetector resource.'''
|
|
1426
|
+
return typing.cast(AnomalyDetectorReference, jsii.get(self, "anomalyDetectorRef"))
|
|
1427
|
+
|
|
1428
|
+
@builtins.property
|
|
1429
|
+
@jsii.member(jsii_name="attrArn")
|
|
1430
|
+
def attr_arn(self) -> builtins.str:
|
|
1431
|
+
'''The AnomalyDetector ARN.
|
|
1432
|
+
|
|
1433
|
+
:cloudformationAttribute: Arn
|
|
1434
|
+
'''
|
|
1435
|
+
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
1436
|
+
|
|
1437
|
+
@builtins.property
|
|
1438
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
1439
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
1440
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
1441
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
1442
|
+
|
|
1443
|
+
@builtins.property
|
|
1444
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
1445
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
1446
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
1447
|
+
|
|
1448
|
+
@builtins.property
|
|
1449
|
+
@jsii.member(jsii_name="alias")
|
|
1450
|
+
def alias(self) -> builtins.str:
|
|
1451
|
+
'''The AnomalyDetector alias.'''
|
|
1452
|
+
return typing.cast(builtins.str, jsii.get(self, "alias"))
|
|
1453
|
+
|
|
1454
|
+
@alias.setter
|
|
1455
|
+
def alias(self, value: builtins.str) -> None:
|
|
1456
|
+
if __debug__:
|
|
1457
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fe3aa1b72ccc7677675b2ae76ae8e5e1dfd2146dae8eba7520a981184cdf780d)
|
|
1458
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1459
|
+
jsii.set(self, "alias", value) # pyright: ignore[reportArgumentType]
|
|
1460
|
+
|
|
1461
|
+
@builtins.property
|
|
1462
|
+
@jsii.member(jsii_name="configuration")
|
|
1463
|
+
def configuration(
|
|
1464
|
+
self,
|
|
1465
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.AnomalyDetectorConfigurationProperty"]:
|
|
1466
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.AnomalyDetectorConfigurationProperty"], jsii.get(self, "configuration"))
|
|
1467
|
+
|
|
1468
|
+
@configuration.setter
|
|
1469
|
+
def configuration(
|
|
1470
|
+
self,
|
|
1471
|
+
value: typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.AnomalyDetectorConfigurationProperty"],
|
|
1472
|
+
) -> None:
|
|
1473
|
+
if __debug__:
|
|
1474
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1394fe6b497d7add7f3c437f746b83234bfd1714418b007d2ca77fcaf2e486fa)
|
|
1475
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1476
|
+
jsii.set(self, "configuration", value) # pyright: ignore[reportArgumentType]
|
|
1477
|
+
|
|
1478
|
+
@builtins.property
|
|
1479
|
+
@jsii.member(jsii_name="workspace")
|
|
1480
|
+
def workspace(self) -> builtins.str:
|
|
1481
|
+
'''An Amazon Managed Service for Prometheus workspace is a logical and isolated Prometheus server dedicated to ingesting, storing, and querying your Prometheus-compatible metrics.'''
|
|
1482
|
+
return typing.cast(builtins.str, jsii.get(self, "workspace"))
|
|
1483
|
+
|
|
1484
|
+
@workspace.setter
|
|
1485
|
+
def workspace(self, value: builtins.str) -> None:
|
|
1486
|
+
if __debug__:
|
|
1487
|
+
type_hints = typing.get_type_hints(_typecheckingstub__51d01d3c64410491a2005087b379e01fe1749ffd4be8e8dae194b7cc8e5e19b8)
|
|
1488
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1489
|
+
jsii.set(self, "workspace", value) # pyright: ignore[reportArgumentType]
|
|
1490
|
+
|
|
1491
|
+
@builtins.property
|
|
1492
|
+
@jsii.member(jsii_name="evaluationIntervalInSeconds")
|
|
1493
|
+
def evaluation_interval_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
1494
|
+
'''The AnomalyDetector period of detection and metric generation.'''
|
|
1495
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "evaluationIntervalInSeconds"))
|
|
1496
|
+
|
|
1497
|
+
@evaluation_interval_in_seconds.setter
|
|
1498
|
+
def evaluation_interval_in_seconds(
|
|
1499
|
+
self,
|
|
1500
|
+
value: typing.Optional[jsii.Number],
|
|
1501
|
+
) -> None:
|
|
1502
|
+
if __debug__:
|
|
1503
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ce3cb5189478c72429dee4d6fa1ed9635e537559491f15b775c279a89020cb75)
|
|
1504
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1505
|
+
jsii.set(self, "evaluationIntervalInSeconds", value) # pyright: ignore[reportArgumentType]
|
|
1506
|
+
|
|
1507
|
+
@builtins.property
|
|
1508
|
+
@jsii.member(jsii_name="labels")
|
|
1509
|
+
def labels(
|
|
1510
|
+
self,
|
|
1511
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.LabelProperty"]]]]:
|
|
1512
|
+
'''An array of key-value pairs to provide meta-data.'''
|
|
1513
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.LabelProperty"]]]], jsii.get(self, "labels"))
|
|
1514
|
+
|
|
1515
|
+
@labels.setter
|
|
1516
|
+
def labels(
|
|
1517
|
+
self,
|
|
1518
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.LabelProperty"]]]],
|
|
1519
|
+
) -> None:
|
|
1520
|
+
if __debug__:
|
|
1521
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0d15555eb30ee6b4decc1dba71c708714ce1a7f00e658c2ce9c617f35dbea119)
|
|
1522
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1523
|
+
jsii.set(self, "labels", value) # pyright: ignore[reportArgumentType]
|
|
1524
|
+
|
|
1525
|
+
@builtins.property
|
|
1526
|
+
@jsii.member(jsii_name="missingDataAction")
|
|
1527
|
+
def missing_data_action(
|
|
1528
|
+
self,
|
|
1529
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.MissingDataActionProperty"]]:
|
|
1530
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.MissingDataActionProperty"]], jsii.get(self, "missingDataAction"))
|
|
1531
|
+
|
|
1532
|
+
@missing_data_action.setter
|
|
1533
|
+
def missing_data_action(
|
|
1534
|
+
self,
|
|
1535
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.MissingDataActionProperty"]],
|
|
1536
|
+
) -> None:
|
|
1537
|
+
if __debug__:
|
|
1538
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e639ced06e0101ba2e1108f2a5748e988f60e8c6ecadbb32ca0f2dc6162a53e8)
|
|
1539
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1540
|
+
jsii.set(self, "missingDataAction", value) # pyright: ignore[reportArgumentType]
|
|
1541
|
+
|
|
1542
|
+
@builtins.property
|
|
1543
|
+
@jsii.member(jsii_name="tags")
|
|
1544
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1545
|
+
'''An array of key-value pairs to apply to this resource.'''
|
|
1546
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
1547
|
+
|
|
1548
|
+
@tags.setter
|
|
1549
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
1550
|
+
if __debug__:
|
|
1551
|
+
type_hints = typing.get_type_hints(_typecheckingstub__dc8b42c0f027d8c1c104a6037d9c3752efbfb2ae169c30d63f35dee5bad63b3f)
|
|
1552
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1553
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
1554
|
+
|
|
1555
|
+
@jsii.data_type(
|
|
1556
|
+
jsii_type="aws-cdk-lib.aws_aps.CfnAnomalyDetector.AnomalyDetectorConfigurationProperty",
|
|
1557
|
+
jsii_struct_bases=[],
|
|
1558
|
+
name_mapping={"random_cut_forest": "randomCutForest"},
|
|
1559
|
+
)
|
|
1560
|
+
class AnomalyDetectorConfigurationProperty:
|
|
1561
|
+
def __init__(
|
|
1562
|
+
self,
|
|
1563
|
+
*,
|
|
1564
|
+
random_cut_forest: typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnomalyDetector.RandomCutForestConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
1565
|
+
) -> None:
|
|
1566
|
+
'''
|
|
1567
|
+
:param random_cut_forest:
|
|
1568
|
+
|
|
1569
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-anomalydetectorconfiguration.html
|
|
1570
|
+
:exampleMetadata: fixture=_generated
|
|
1571
|
+
|
|
1572
|
+
Example::
|
|
1573
|
+
|
|
1574
|
+
# The code below shows an example of how to instantiate this type.
|
|
1575
|
+
# The values are placeholders you should change.
|
|
1576
|
+
from aws_cdk import aws_aps as aps
|
|
1577
|
+
|
|
1578
|
+
anomaly_detector_configuration_property = aps.CfnAnomalyDetector.AnomalyDetectorConfigurationProperty(
|
|
1579
|
+
random_cut_forest=aps.CfnAnomalyDetector.RandomCutForestConfigurationProperty(
|
|
1580
|
+
query="query",
|
|
1581
|
+
|
|
1582
|
+
# the properties below are optional
|
|
1583
|
+
ignore_near_expected_from_above=aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
|
|
1584
|
+
amount=123,
|
|
1585
|
+
ratio=123
|
|
1586
|
+
),
|
|
1587
|
+
ignore_near_expected_from_below=aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
|
|
1588
|
+
amount=123,
|
|
1589
|
+
ratio=123
|
|
1590
|
+
),
|
|
1591
|
+
sample_size=123,
|
|
1592
|
+
shingle_size=123
|
|
1593
|
+
)
|
|
1594
|
+
)
|
|
1595
|
+
'''
|
|
1596
|
+
if __debug__:
|
|
1597
|
+
type_hints = typing.get_type_hints(_typecheckingstub__aca672630a5e19c23bb68b82c63c873a7687610464d166cef0da5d6cde142082)
|
|
1598
|
+
check_type(argname="argument random_cut_forest", value=random_cut_forest, expected_type=type_hints["random_cut_forest"])
|
|
1599
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1600
|
+
"random_cut_forest": random_cut_forest,
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
@builtins.property
|
|
1604
|
+
def random_cut_forest(
|
|
1605
|
+
self,
|
|
1606
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.RandomCutForestConfigurationProperty"]:
|
|
1607
|
+
'''
|
|
1608
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-anomalydetectorconfiguration.html#cfn-aps-anomalydetector-anomalydetectorconfiguration-randomcutforest
|
|
1609
|
+
'''
|
|
1610
|
+
result = self._values.get("random_cut_forest")
|
|
1611
|
+
assert result is not None, "Required property 'random_cut_forest' is missing"
|
|
1612
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.RandomCutForestConfigurationProperty"], result)
|
|
1613
|
+
|
|
1614
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1615
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1616
|
+
|
|
1617
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1618
|
+
return not (rhs == self)
|
|
1619
|
+
|
|
1620
|
+
def __repr__(self) -> str:
|
|
1621
|
+
return "AnomalyDetectorConfigurationProperty(%s)" % ", ".join(
|
|
1622
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1623
|
+
)
|
|
1624
|
+
|
|
1625
|
+
@jsii.data_type(
|
|
1626
|
+
jsii_type="aws-cdk-lib.aws_aps.CfnAnomalyDetector.IgnoreNearExpectedProperty",
|
|
1627
|
+
jsii_struct_bases=[],
|
|
1628
|
+
name_mapping={"amount": "amount", "ratio": "ratio"},
|
|
1629
|
+
)
|
|
1630
|
+
class IgnoreNearExpectedProperty:
|
|
1631
|
+
def __init__(
|
|
1632
|
+
self,
|
|
1633
|
+
*,
|
|
1634
|
+
amount: typing.Optional[jsii.Number] = None,
|
|
1635
|
+
ratio: typing.Optional[jsii.Number] = None,
|
|
1636
|
+
) -> None:
|
|
1637
|
+
'''
|
|
1638
|
+
:param amount:
|
|
1639
|
+
:param ratio:
|
|
1640
|
+
|
|
1641
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-ignorenearexpected.html
|
|
1642
|
+
:exampleMetadata: fixture=_generated
|
|
1643
|
+
|
|
1644
|
+
Example::
|
|
1645
|
+
|
|
1646
|
+
# The code below shows an example of how to instantiate this type.
|
|
1647
|
+
# The values are placeholders you should change.
|
|
1648
|
+
from aws_cdk import aws_aps as aps
|
|
1649
|
+
|
|
1650
|
+
ignore_near_expected_property = aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
|
|
1651
|
+
amount=123,
|
|
1652
|
+
ratio=123
|
|
1653
|
+
)
|
|
1654
|
+
'''
|
|
1655
|
+
if __debug__:
|
|
1656
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e3e1cf276ea5a24efc7ebe9d526fad4e86dd66a3f55ea5a0dcb3a617b8d62dff)
|
|
1657
|
+
check_type(argname="argument amount", value=amount, expected_type=type_hints["amount"])
|
|
1658
|
+
check_type(argname="argument ratio", value=ratio, expected_type=type_hints["ratio"])
|
|
1659
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1660
|
+
if amount is not None:
|
|
1661
|
+
self._values["amount"] = amount
|
|
1662
|
+
if ratio is not None:
|
|
1663
|
+
self._values["ratio"] = ratio
|
|
1664
|
+
|
|
1665
|
+
@builtins.property
|
|
1666
|
+
def amount(self) -> typing.Optional[jsii.Number]:
|
|
1667
|
+
'''
|
|
1668
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-ignorenearexpected.html#cfn-aps-anomalydetector-ignorenearexpected-amount
|
|
1669
|
+
'''
|
|
1670
|
+
result = self._values.get("amount")
|
|
1671
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
1672
|
+
|
|
1673
|
+
@builtins.property
|
|
1674
|
+
def ratio(self) -> typing.Optional[jsii.Number]:
|
|
1675
|
+
'''
|
|
1676
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-ignorenearexpected.html#cfn-aps-anomalydetector-ignorenearexpected-ratio
|
|
1677
|
+
'''
|
|
1678
|
+
result = self._values.get("ratio")
|
|
1679
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
1680
|
+
|
|
1681
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1682
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1683
|
+
|
|
1684
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1685
|
+
return not (rhs == self)
|
|
1686
|
+
|
|
1687
|
+
def __repr__(self) -> str:
|
|
1688
|
+
return "IgnoreNearExpectedProperty(%s)" % ", ".join(
|
|
1689
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1690
|
+
)
|
|
1691
|
+
|
|
1692
|
+
@jsii.data_type(
|
|
1693
|
+
jsii_type="aws-cdk-lib.aws_aps.CfnAnomalyDetector.LabelProperty",
|
|
1694
|
+
jsii_struct_bases=[],
|
|
1695
|
+
name_mapping={"key": "key", "value": "value"},
|
|
1696
|
+
)
|
|
1697
|
+
class LabelProperty:
|
|
1698
|
+
def __init__(self, *, key: builtins.str, value: builtins.str) -> None:
|
|
1699
|
+
'''A key-value pair to provide meta-data and multi-dimensional data analysis for filtering and aggregation.
|
|
1700
|
+
|
|
1701
|
+
:param key: The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
|
|
1702
|
+
:param value: The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
|
|
1703
|
+
|
|
1704
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-label.html
|
|
1705
|
+
:exampleMetadata: fixture=_generated
|
|
1706
|
+
|
|
1707
|
+
Example::
|
|
1708
|
+
|
|
1709
|
+
# The code below shows an example of how to instantiate this type.
|
|
1710
|
+
# The values are placeholders you should change.
|
|
1711
|
+
from aws_cdk import aws_aps as aps
|
|
1712
|
+
|
|
1713
|
+
label_property = aps.CfnAnomalyDetector.LabelProperty(
|
|
1714
|
+
key="key",
|
|
1715
|
+
value="value"
|
|
1716
|
+
)
|
|
1717
|
+
'''
|
|
1718
|
+
if __debug__:
|
|
1719
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3f784d604d60c49dd5fb567dcfedcd9d16e2ce47ba899589a373c9322818035a)
|
|
1720
|
+
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
1721
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1722
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1723
|
+
"key": key,
|
|
1724
|
+
"value": value,
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
@builtins.property
|
|
1728
|
+
def key(self) -> builtins.str:
|
|
1729
|
+
'''The key name of the tag.
|
|
1730
|
+
|
|
1731
|
+
You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
|
|
1732
|
+
|
|
1733
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-label.html#cfn-aps-anomalydetector-label-key
|
|
1734
|
+
'''
|
|
1735
|
+
result = self._values.get("key")
|
|
1736
|
+
assert result is not None, "Required property 'key' is missing"
|
|
1737
|
+
return typing.cast(builtins.str, result)
|
|
1738
|
+
|
|
1739
|
+
@builtins.property
|
|
1740
|
+
def value(self) -> builtins.str:
|
|
1741
|
+
'''The value for the tag.
|
|
1742
|
+
|
|
1743
|
+
You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
|
|
1744
|
+
|
|
1745
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-label.html#cfn-aps-anomalydetector-label-value
|
|
1746
|
+
'''
|
|
1747
|
+
result = self._values.get("value")
|
|
1748
|
+
assert result is not None, "Required property 'value' is missing"
|
|
1749
|
+
return typing.cast(builtins.str, result)
|
|
1750
|
+
|
|
1751
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1752
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1753
|
+
|
|
1754
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1755
|
+
return not (rhs == self)
|
|
1756
|
+
|
|
1757
|
+
def __repr__(self) -> str:
|
|
1758
|
+
return "LabelProperty(%s)" % ", ".join(
|
|
1759
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1760
|
+
)
|
|
1761
|
+
|
|
1762
|
+
@jsii.data_type(
|
|
1763
|
+
jsii_type="aws-cdk-lib.aws_aps.CfnAnomalyDetector.MissingDataActionProperty",
|
|
1764
|
+
jsii_struct_bases=[],
|
|
1765
|
+
name_mapping={"mark_as_anomaly": "markAsAnomaly", "skip": "skip"},
|
|
1766
|
+
)
|
|
1767
|
+
class MissingDataActionProperty:
|
|
1768
|
+
def __init__(
|
|
1769
|
+
self,
|
|
1770
|
+
*,
|
|
1771
|
+
mark_as_anomaly: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1772
|
+
skip: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1773
|
+
) -> None:
|
|
1774
|
+
'''
|
|
1775
|
+
:param mark_as_anomaly:
|
|
1776
|
+
:param skip:
|
|
1777
|
+
|
|
1778
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-missingdataaction.html
|
|
1779
|
+
:exampleMetadata: fixture=_generated
|
|
914
1780
|
|
|
915
|
-
|
|
916
|
-
return "RuleGroupsNamespaceReference(%s)" % ", ".join(
|
|
917
|
-
k + "=" + repr(v) for k, v in self._values.items()
|
|
918
|
-
)
|
|
1781
|
+
Example::
|
|
919
1782
|
|
|
1783
|
+
# The code below shows an example of how to instantiate this type.
|
|
1784
|
+
# The values are placeholders you should change.
|
|
1785
|
+
from aws_cdk import aws_aps as aps
|
|
1786
|
+
|
|
1787
|
+
missing_data_action_property = aps.CfnAnomalyDetector.MissingDataActionProperty(
|
|
1788
|
+
mark_as_anomaly=False,
|
|
1789
|
+
skip=False
|
|
1790
|
+
)
|
|
1791
|
+
'''
|
|
1792
|
+
if __debug__:
|
|
1793
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e5b8457b72ba87aa14000e26b68e021fa4b19e4e88f3a022910dcd18542039d0)
|
|
1794
|
+
check_type(argname="argument mark_as_anomaly", value=mark_as_anomaly, expected_type=type_hints["mark_as_anomaly"])
|
|
1795
|
+
check_type(argname="argument skip", value=skip, expected_type=type_hints["skip"])
|
|
1796
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1797
|
+
if mark_as_anomaly is not None:
|
|
1798
|
+
self._values["mark_as_anomaly"] = mark_as_anomaly
|
|
1799
|
+
if skip is not None:
|
|
1800
|
+
self._values["skip"] = skip
|
|
920
1801
|
|
|
921
|
-
@
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
1802
|
+
@builtins.property
|
|
1803
|
+
def mark_as_anomaly(
|
|
1804
|
+
self,
|
|
1805
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
1806
|
+
'''
|
|
1807
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-missingdataaction.html#cfn-aps-anomalydetector-missingdataaction-markasanomaly
|
|
1808
|
+
'''
|
|
1809
|
+
result = self._values.get("mark_as_anomaly")
|
|
1810
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
929
1811
|
|
|
930
|
-
|
|
1812
|
+
@builtins.property
|
|
1813
|
+
def skip(
|
|
1814
|
+
self,
|
|
1815
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
1816
|
+
'''
|
|
1817
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-missingdataaction.html#cfn-aps-anomalydetector-missingdataaction-skip
|
|
1818
|
+
'''
|
|
1819
|
+
result = self._values.get("skip")
|
|
1820
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
931
1821
|
|
|
932
|
-
:
|
|
1822
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1823
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
933
1824
|
|
|
934
|
-
|
|
1825
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1826
|
+
return not (rhs == self)
|
|
935
1827
|
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
scraper_reference = aps.ScraperReference(
|
|
941
|
-
scraper_arn="scraperArn"
|
|
1828
|
+
def __repr__(self) -> str:
|
|
1829
|
+
return "MissingDataActionProperty(%s)" % ", ".join(
|
|
1830
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
942
1831
|
)
|
|
943
|
-
'''
|
|
944
|
-
if __debug__:
|
|
945
|
-
type_hints = typing.get_type_hints(_typecheckingstub__374a5fc232eb102ac8a6793598055a5f55853e59ffcefdb5264aa89a04f77bb4)
|
|
946
|
-
check_type(argname="argument scraper_arn", value=scraper_arn, expected_type=type_hints["scraper_arn"])
|
|
947
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
948
|
-
"scraper_arn": scraper_arn,
|
|
949
|
-
}
|
|
950
1832
|
|
|
951
|
-
@
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
1833
|
+
@jsii.data_type(
|
|
1834
|
+
jsii_type="aws-cdk-lib.aws_aps.CfnAnomalyDetector.RandomCutForestConfigurationProperty",
|
|
1835
|
+
jsii_struct_bases=[],
|
|
1836
|
+
name_mapping={
|
|
1837
|
+
"query": "query",
|
|
1838
|
+
"ignore_near_expected_from_above": "ignoreNearExpectedFromAbove",
|
|
1839
|
+
"ignore_near_expected_from_below": "ignoreNearExpectedFromBelow",
|
|
1840
|
+
"sample_size": "sampleSize",
|
|
1841
|
+
"shingle_size": "shingleSize",
|
|
1842
|
+
},
|
|
1843
|
+
)
|
|
1844
|
+
class RandomCutForestConfigurationProperty:
|
|
1845
|
+
def __init__(
|
|
1846
|
+
self,
|
|
1847
|
+
*,
|
|
1848
|
+
query: builtins.str,
|
|
1849
|
+
ignore_near_expected_from_above: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnomalyDetector.IgnoreNearExpectedProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1850
|
+
ignore_near_expected_from_below: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAnomalyDetector.IgnoreNearExpectedProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1851
|
+
sample_size: typing.Optional[jsii.Number] = None,
|
|
1852
|
+
shingle_size: typing.Optional[jsii.Number] = None,
|
|
1853
|
+
) -> None:
|
|
1854
|
+
'''
|
|
1855
|
+
:param query:
|
|
1856
|
+
:param ignore_near_expected_from_above:
|
|
1857
|
+
:param ignore_near_expected_from_below:
|
|
1858
|
+
:param sample_size: Default: - 256
|
|
1859
|
+
:param shingle_size: Default: - 8
|
|
957
1860
|
|
|
958
|
-
|
|
959
|
-
|
|
1861
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-randomcutforestconfiguration.html
|
|
1862
|
+
:exampleMetadata: fixture=_generated
|
|
960
1863
|
|
|
961
|
-
|
|
962
|
-
return not (rhs == self)
|
|
1864
|
+
Example::
|
|
963
1865
|
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
1866
|
+
# The code below shows an example of how to instantiate this type.
|
|
1867
|
+
# The values are placeholders you should change.
|
|
1868
|
+
from aws_cdk import aws_aps as aps
|
|
1869
|
+
|
|
1870
|
+
random_cut_forest_configuration_property = aps.CfnAnomalyDetector.RandomCutForestConfigurationProperty(
|
|
1871
|
+
query="query",
|
|
1872
|
+
|
|
1873
|
+
# the properties below are optional
|
|
1874
|
+
ignore_near_expected_from_above=aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
|
|
1875
|
+
amount=123,
|
|
1876
|
+
ratio=123
|
|
1877
|
+
),
|
|
1878
|
+
ignore_near_expected_from_below=aps.CfnAnomalyDetector.IgnoreNearExpectedProperty(
|
|
1879
|
+
amount=123,
|
|
1880
|
+
ratio=123
|
|
1881
|
+
),
|
|
1882
|
+
sample_size=123,
|
|
1883
|
+
shingle_size=123
|
|
1884
|
+
)
|
|
1885
|
+
'''
|
|
1886
|
+
if __debug__:
|
|
1887
|
+
type_hints = typing.get_type_hints(_typecheckingstub__83993f42a131a948093792cb8cd7b4f710c6b4dffce6b17f386497f1cbe514ea)
|
|
1888
|
+
check_type(argname="argument query", value=query, expected_type=type_hints["query"])
|
|
1889
|
+
check_type(argname="argument ignore_near_expected_from_above", value=ignore_near_expected_from_above, expected_type=type_hints["ignore_near_expected_from_above"])
|
|
1890
|
+
check_type(argname="argument ignore_near_expected_from_below", value=ignore_near_expected_from_below, expected_type=type_hints["ignore_near_expected_from_below"])
|
|
1891
|
+
check_type(argname="argument sample_size", value=sample_size, expected_type=type_hints["sample_size"])
|
|
1892
|
+
check_type(argname="argument shingle_size", value=shingle_size, expected_type=type_hints["shingle_size"])
|
|
1893
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1894
|
+
"query": query,
|
|
1895
|
+
}
|
|
1896
|
+
if ignore_near_expected_from_above is not None:
|
|
1897
|
+
self._values["ignore_near_expected_from_above"] = ignore_near_expected_from_above
|
|
1898
|
+
if ignore_near_expected_from_below is not None:
|
|
1899
|
+
self._values["ignore_near_expected_from_below"] = ignore_near_expected_from_below
|
|
1900
|
+
if sample_size is not None:
|
|
1901
|
+
self._values["sample_size"] = sample_size
|
|
1902
|
+
if shingle_size is not None:
|
|
1903
|
+
self._values["shingle_size"] = shingle_size
|
|
968
1904
|
|
|
1905
|
+
@builtins.property
|
|
1906
|
+
def query(self) -> builtins.str:
|
|
1907
|
+
'''
|
|
1908
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-randomcutforestconfiguration.html#cfn-aps-anomalydetector-randomcutforestconfiguration-query
|
|
1909
|
+
'''
|
|
1910
|
+
result = self._values.get("query")
|
|
1911
|
+
assert result is not None, "Required property 'query' is missing"
|
|
1912
|
+
return typing.cast(builtins.str, result)
|
|
969
1913
|
|
|
970
|
-
@
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
1914
|
+
@builtins.property
|
|
1915
|
+
def ignore_near_expected_from_above(
|
|
1916
|
+
self,
|
|
1917
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.IgnoreNearExpectedProperty"]]:
|
|
1918
|
+
'''
|
|
1919
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-randomcutforestconfiguration.html#cfn-aps-anomalydetector-randomcutforestconfiguration-ignorenearexpectedfromabove
|
|
1920
|
+
'''
|
|
1921
|
+
result = self._values.get("ignore_near_expected_from_above")
|
|
1922
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.IgnoreNearExpectedProperty"]], result)
|
|
978
1923
|
|
|
979
|
-
|
|
1924
|
+
@builtins.property
|
|
1925
|
+
def ignore_near_expected_from_below(
|
|
1926
|
+
self,
|
|
1927
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.IgnoreNearExpectedProperty"]]:
|
|
1928
|
+
'''
|
|
1929
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-randomcutforestconfiguration.html#cfn-aps-anomalydetector-randomcutforestconfiguration-ignorenearexpectedfrombelow
|
|
1930
|
+
'''
|
|
1931
|
+
result = self._values.get("ignore_near_expected_from_below")
|
|
1932
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAnomalyDetector.IgnoreNearExpectedProperty"]], result)
|
|
980
1933
|
|
|
981
|
-
|
|
1934
|
+
@builtins.property
|
|
1935
|
+
def sample_size(self) -> typing.Optional[jsii.Number]:
|
|
1936
|
+
'''
|
|
1937
|
+
:default: - 256
|
|
982
1938
|
|
|
983
|
-
|
|
1939
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-randomcutforestconfiguration.html#cfn-aps-anomalydetector-randomcutforestconfiguration-samplesize
|
|
1940
|
+
'''
|
|
1941
|
+
result = self._values.get("sample_size")
|
|
1942
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
984
1943
|
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
workspace_reference = aps.WorkspaceReference(
|
|
990
|
-
workspace_arn="workspaceArn"
|
|
991
|
-
)
|
|
992
|
-
'''
|
|
993
|
-
if __debug__:
|
|
994
|
-
type_hints = typing.get_type_hints(_typecheckingstub__aa321cfca0087100b6387ec771252167e8e12904e76c51b3da5c058ba6c23f46)
|
|
995
|
-
check_type(argname="argument workspace_arn", value=workspace_arn, expected_type=type_hints["workspace_arn"])
|
|
996
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
997
|
-
"workspace_arn": workspace_arn,
|
|
998
|
-
}
|
|
1944
|
+
@builtins.property
|
|
1945
|
+
def shingle_size(self) -> typing.Optional[jsii.Number]:
|
|
1946
|
+
'''
|
|
1947
|
+
:default: - 8
|
|
999
1948
|
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
assert result is not None, "Required property 'workspace_arn' is missing"
|
|
1005
|
-
return typing.cast(builtins.str, result)
|
|
1949
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-anomalydetector-randomcutforestconfiguration.html#cfn-aps-anomalydetector-randomcutforestconfiguration-shinglesize
|
|
1950
|
+
'''
|
|
1951
|
+
result = self._values.get("shingle_size")
|
|
1952
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
1006
1953
|
|
|
1007
|
-
|
|
1008
|
-
|
|
1954
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1955
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1009
1956
|
|
|
1010
|
-
|
|
1011
|
-
|
|
1957
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1958
|
+
return not (rhs == self)
|
|
1012
1959
|
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1960
|
+
def __repr__(self) -> str:
|
|
1961
|
+
return "RandomCutForestConfigurationProperty(%s)" % ", ".join(
|
|
1962
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1963
|
+
)
|
|
1017
1964
|
|
|
1018
1965
|
|
|
1019
1966
|
@jsii.implements(_IInspectable_c2943556, IResourcePolicyRef)
|
|
@@ -3245,6 +4192,9 @@ class CfnWorkspace(
|
|
|
3245
4192
|
|
|
3246
4193
|
|
|
3247
4194
|
__all__ = [
|
|
4195
|
+
"AnomalyDetectorReference",
|
|
4196
|
+
"CfnAnomalyDetector",
|
|
4197
|
+
"CfnAnomalyDetectorProps",
|
|
3248
4198
|
"CfnResourcePolicy",
|
|
3249
4199
|
"CfnResourcePolicyProps",
|
|
3250
4200
|
"CfnRuleGroupsNamespace",
|
|
@@ -3253,6 +4203,7 @@ __all__ = [
|
|
|
3253
4203
|
"CfnScraperProps",
|
|
3254
4204
|
"CfnWorkspace",
|
|
3255
4205
|
"CfnWorkspaceProps",
|
|
4206
|
+
"IAnomalyDetectorRef",
|
|
3256
4207
|
"IResourcePolicyRef",
|
|
3257
4208
|
"IRuleGroupsNamespaceRef",
|
|
3258
4209
|
"IScraperRef",
|
|
@@ -3265,6 +4216,26 @@ __all__ = [
|
|
|
3265
4216
|
|
|
3266
4217
|
publication.publish()
|
|
3267
4218
|
|
|
4219
|
+
def _typecheckingstub__d8f087ddf091d7802928e5eb9ae2c35d5aea0cb5cb3e0d1494e32ce693f67efa(
|
|
4220
|
+
*,
|
|
4221
|
+
anomaly_detector_arn: builtins.str,
|
|
4222
|
+
) -> None:
|
|
4223
|
+
"""Type checking stubs"""
|
|
4224
|
+
pass
|
|
4225
|
+
|
|
4226
|
+
def _typecheckingstub__be017a909bcb870b1880c9bb2c099abc51df504e0f9199ca315deb7fa50b9d6b(
|
|
4227
|
+
*,
|
|
4228
|
+
alias: builtins.str,
|
|
4229
|
+
configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnomalyDetector.AnomalyDetectorConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4230
|
+
workspace: builtins.str,
|
|
4231
|
+
evaluation_interval_in_seconds: typing.Optional[jsii.Number] = None,
|
|
4232
|
+
labels: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnomalyDetector.LabelProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4233
|
+
missing_data_action: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnomalyDetector.MissingDataActionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4234
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4235
|
+
) -> None:
|
|
4236
|
+
"""Type checking stubs"""
|
|
4237
|
+
pass
|
|
4238
|
+
|
|
3268
4239
|
def _typecheckingstub__bb05747fc90b1776c66fd40ec5d261399f93ac6b367fc973d5df8b912bd30997(
|
|
3269
4240
|
*,
|
|
3270
4241
|
policy_document: builtins.str,
|
|
@@ -3337,6 +4308,117 @@ def _typecheckingstub__aa321cfca0087100b6387ec771252167e8e12904e76c51b3da5c058ba
|
|
|
3337
4308
|
"""Type checking stubs"""
|
|
3338
4309
|
pass
|
|
3339
4310
|
|
|
4311
|
+
def _typecheckingstub__58b3184629f18780da9f7c9eb2f8acdbdbb5190c9fc3ae41fdbbe34341ba0f26(
|
|
4312
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
4313
|
+
id: builtins.str,
|
|
4314
|
+
*,
|
|
4315
|
+
alias: builtins.str,
|
|
4316
|
+
configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnomalyDetector.AnomalyDetectorConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4317
|
+
workspace: builtins.str,
|
|
4318
|
+
evaluation_interval_in_seconds: typing.Optional[jsii.Number] = None,
|
|
4319
|
+
labels: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnomalyDetector.LabelProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4320
|
+
missing_data_action: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnomalyDetector.MissingDataActionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4321
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4322
|
+
) -> None:
|
|
4323
|
+
"""Type checking stubs"""
|
|
4324
|
+
pass
|
|
4325
|
+
|
|
4326
|
+
def _typecheckingstub__36a9fa3c67c466703717001e2774dacca3fa612b6ec02f8b6361ad6736da0ec7(
|
|
4327
|
+
inspector: _TreeInspector_488e0dd5,
|
|
4328
|
+
) -> None:
|
|
4329
|
+
"""Type checking stubs"""
|
|
4330
|
+
pass
|
|
4331
|
+
|
|
4332
|
+
def _typecheckingstub__1edc3473fdf33536207faf87047c2bef23ac4e4aecad53d1e0338308f0e5ab91(
|
|
4333
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
4334
|
+
) -> None:
|
|
4335
|
+
"""Type checking stubs"""
|
|
4336
|
+
pass
|
|
4337
|
+
|
|
4338
|
+
def _typecheckingstub__fe3aa1b72ccc7677675b2ae76ae8e5e1dfd2146dae8eba7520a981184cdf780d(
|
|
4339
|
+
value: builtins.str,
|
|
4340
|
+
) -> None:
|
|
4341
|
+
"""Type checking stubs"""
|
|
4342
|
+
pass
|
|
4343
|
+
|
|
4344
|
+
def _typecheckingstub__1394fe6b497d7add7f3c437f746b83234bfd1714418b007d2ca77fcaf2e486fa(
|
|
4345
|
+
value: typing.Union[_IResolvable_da3f097b, CfnAnomalyDetector.AnomalyDetectorConfigurationProperty],
|
|
4346
|
+
) -> None:
|
|
4347
|
+
"""Type checking stubs"""
|
|
4348
|
+
pass
|
|
4349
|
+
|
|
4350
|
+
def _typecheckingstub__51d01d3c64410491a2005087b379e01fe1749ffd4be8e8dae194b7cc8e5e19b8(
|
|
4351
|
+
value: builtins.str,
|
|
4352
|
+
) -> None:
|
|
4353
|
+
"""Type checking stubs"""
|
|
4354
|
+
pass
|
|
4355
|
+
|
|
4356
|
+
def _typecheckingstub__ce3cb5189478c72429dee4d6fa1ed9635e537559491f15b775c279a89020cb75(
|
|
4357
|
+
value: typing.Optional[jsii.Number],
|
|
4358
|
+
) -> None:
|
|
4359
|
+
"""Type checking stubs"""
|
|
4360
|
+
pass
|
|
4361
|
+
|
|
4362
|
+
def _typecheckingstub__0d15555eb30ee6b4decc1dba71c708714ce1a7f00e658c2ce9c617f35dbea119(
|
|
4363
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnAnomalyDetector.LabelProperty]]]],
|
|
4364
|
+
) -> None:
|
|
4365
|
+
"""Type checking stubs"""
|
|
4366
|
+
pass
|
|
4367
|
+
|
|
4368
|
+
def _typecheckingstub__e639ced06e0101ba2e1108f2a5748e988f60e8c6ecadbb32ca0f2dc6162a53e8(
|
|
4369
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAnomalyDetector.MissingDataActionProperty]],
|
|
4370
|
+
) -> None:
|
|
4371
|
+
"""Type checking stubs"""
|
|
4372
|
+
pass
|
|
4373
|
+
|
|
4374
|
+
def _typecheckingstub__dc8b42c0f027d8c1c104a6037d9c3752efbfb2ae169c30d63f35dee5bad63b3f(
|
|
4375
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
4376
|
+
) -> None:
|
|
4377
|
+
"""Type checking stubs"""
|
|
4378
|
+
pass
|
|
4379
|
+
|
|
4380
|
+
def _typecheckingstub__aca672630a5e19c23bb68b82c63c873a7687610464d166cef0da5d6cde142082(
|
|
4381
|
+
*,
|
|
4382
|
+
random_cut_forest: typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnomalyDetector.RandomCutForestConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
4383
|
+
) -> None:
|
|
4384
|
+
"""Type checking stubs"""
|
|
4385
|
+
pass
|
|
4386
|
+
|
|
4387
|
+
def _typecheckingstub__e3e1cf276ea5a24efc7ebe9d526fad4e86dd66a3f55ea5a0dcb3a617b8d62dff(
|
|
4388
|
+
*,
|
|
4389
|
+
amount: typing.Optional[jsii.Number] = None,
|
|
4390
|
+
ratio: typing.Optional[jsii.Number] = None,
|
|
4391
|
+
) -> None:
|
|
4392
|
+
"""Type checking stubs"""
|
|
4393
|
+
pass
|
|
4394
|
+
|
|
4395
|
+
def _typecheckingstub__3f784d604d60c49dd5fb567dcfedcd9d16e2ce47ba899589a373c9322818035a(
|
|
4396
|
+
*,
|
|
4397
|
+
key: builtins.str,
|
|
4398
|
+
value: builtins.str,
|
|
4399
|
+
) -> None:
|
|
4400
|
+
"""Type checking stubs"""
|
|
4401
|
+
pass
|
|
4402
|
+
|
|
4403
|
+
def _typecheckingstub__e5b8457b72ba87aa14000e26b68e021fa4b19e4e88f3a022910dcd18542039d0(
|
|
4404
|
+
*,
|
|
4405
|
+
mark_as_anomaly: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
4406
|
+
skip: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
4407
|
+
) -> None:
|
|
4408
|
+
"""Type checking stubs"""
|
|
4409
|
+
pass
|
|
4410
|
+
|
|
4411
|
+
def _typecheckingstub__83993f42a131a948093792cb8cd7b4f710c6b4dffce6b17f386497f1cbe514ea(
|
|
4412
|
+
*,
|
|
4413
|
+
query: builtins.str,
|
|
4414
|
+
ignore_near_expected_from_above: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnomalyDetector.IgnoreNearExpectedProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4415
|
+
ignore_near_expected_from_below: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAnomalyDetector.IgnoreNearExpectedProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4416
|
+
sample_size: typing.Optional[jsii.Number] = None,
|
|
4417
|
+
shingle_size: typing.Optional[jsii.Number] = None,
|
|
4418
|
+
) -> None:
|
|
4419
|
+
"""Type checking stubs"""
|
|
4420
|
+
pass
|
|
4421
|
+
|
|
3340
4422
|
def _typecheckingstub__54f89d9ee1d6d400f40f83801fe40dee056ce969e9e0501ca1390285aab7cb82(
|
|
3341
4423
|
scope: _constructs_77d1e7e8.Construct,
|
|
3342
4424
|
id: builtins.str,
|
|
@@ -3705,3 +4787,6 @@ def _typecheckingstub__8d8bd4b9a39be1594ef4681992e92f89f24816c775c0e0c40e340be13
|
|
|
3705
4787
|
) -> None:
|
|
3706
4788
|
"""Type checking stubs"""
|
|
3707
4789
|
pass
|
|
4790
|
+
|
|
4791
|
+
for cls in [IAnomalyDetectorRef, IResourcePolicyRef, IRuleGroupsNamespaceRef, IScraperRef, IWorkspaceRef]:
|
|
4792
|
+
typing.cast(typing.Any, cls).__protocol_attrs__ = typing.cast(typing.Any, cls).__protocol_attrs__ - set(['__jsii_proxy_class__', '__jsii_type__'])
|