File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: MPL-2.0
2+ # Copyright 2020-2022 John Mille <[email protected] > 3+
4+
5+ """AWS Managed Prometheus Service"""
6+
7+ import re
8+
9+ APS_WORKSPACE_ARN_RE = re .compile (
10+ r"arn:(?P<partition>[a-z\d\-]+):aps:(?P<region>[a-z\d\-]+):(?P<accountid>[\d]{12})"
11+ r":workspace/(?P<id>[a-zA-Z\d\-]+)$"
12+ )
Original file line number Diff line number Diff line change 22# Copyright 2020-2022 John Mille <[email protected] > 33
44from compose_x_common .aws .acm import ACM_ARN_RE
5+ from compose_x_common .aws .aps import APS_WORKSPACE_ARN_RE
56from compose_x_common .aws .cloudmap import NAMESPACE_ARN_RE
67from compose_x_common .aws .codeguru_profiler import PROFILER_ARN_RE
78from compose_x_common .aws .cognito_userpool import USER_POOL_RE
5960 "AWS::MSK::Configuration" : MSK_CONFIGURATION_ARN_RE ,
6061 "AWS::MSK::ServerlessCluster" : MSK_CLUSTER_ARN_RE ,
6162 "AWS::Glue::Registry" : GLUE_SR_ARN_RE ,
63+ "AWS::APS::Workspace" : APS_WORKSPACE_ARN_RE ,
6264}
6365
6466ARNS_PER_TAGGINGAPI_TYPE = {
8385 "firehose:deliverystream" : KINESIS_FIREHOSE_ARN_RE ,
8486 "ecs:service" : SERVICE_ARN_RE ,
8587 "kafka:cluster" : MSK_CLUSTER_ARN_RE ,
88+ "aps:workspace" : APS_WORKSPACE_ARN_RE ,
8689}
You can’t perform that action at this time.
0 commit comments