aws-cdk-lib 2.203.1__py3-none-any.whl → 2.205.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 +208 -92
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.203.1.jsii.tgz → aws-cdk-lib@2.205.0.jsii.tgz} +0 -0
- aws_cdk/aws_aiops/__init__.py +89 -39
- aws_cdk/aws_apigateway/__init__.py +164 -0
- aws_cdk/aws_apigatewayv2/__init__.py +412 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +2 -2
- aws_cdk/aws_arczonalshift/__init__.py +4 -1
- aws_cdk/aws_b2bi/__init__.py +32 -16
- aws_cdk/aws_bedrock/__init__.py +198 -10
- aws_cdk/aws_cassandra/__init__.py +156 -0
- aws_cdk/aws_certificatemanager/__init__.py +28 -0
- aws_cdk/aws_chatbot/__init__.py +28 -0
- aws_cdk/aws_cloudformation/__init__.py +74 -72
- aws_cdk/aws_cloudfront/__init__.py +1273 -485
- aws_cdk/aws_cloudfront/experimental/__init__.py +32 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +26 -21
- aws_cdk/aws_cloudwatch/__init__.py +278 -23
- aws_cdk/aws_codebuild/__init__.py +300 -36
- aws_cdk/aws_datasync/__init__.py +2 -2
- aws_cdk/aws_docdb/__init__.py +78 -0
- aws_cdk/aws_dynamodb/__init__.py +523 -37
- aws_cdk/aws_ec2/__init__.py +126 -30
- aws_cdk/aws_ecs/__init__.py +64 -19
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +724 -0
- aws_cdk/aws_elasticsearch/__init__.py +260 -0
- aws_cdk/aws_emrserverless/__init__.py +5 -5
- aws_cdk/aws_events/__init__.py +58 -3
- aws_cdk/aws_events_targets/__init__.py +7 -2
- aws_cdk/aws_evs/__init__.py +7 -7
- aws_cdk/aws_fsx/__init__.py +138 -78
- aws_cdk/aws_gamelift/__init__.py +19 -0
- aws_cdk/aws_glue/__init__.py +3 -3
- aws_cdk/aws_iot/__init__.py +1 -1
- aws_cdk/aws_kinesis/__init__.py +391 -13
- aws_cdk/aws_kinesisfirehose/__init__.py +128 -1
- aws_cdk/aws_lambda/__init__.py +144 -0
- aws_cdk/aws_lex/__init__.py +36 -19
- aws_cdk/aws_logs/__init__.py +58 -0
- aws_cdk/aws_neptune/__init__.py +12 -12
- aws_cdk/aws_odb/__init__.py +4049 -0
- aws_cdk/aws_omics/__init__.py +1 -1
- aws_cdk/aws_opensearchservice/__init__.py +260 -0
- aws_cdk/aws_qbusiness/__init__.py +471 -4
- aws_cdk/aws_quicksight/__init__.py +185 -16
- aws_cdk/aws_rds/__init__.py +553 -17
- aws_cdk/aws_redshiftserverless/__init__.py +72 -45
- aws_cdk/aws_route53/__init__.py +41 -19
- aws_cdk/aws_s3tables/__init__.py +1005 -0
- aws_cdk/aws_sagemaker/__init__.py +20 -0
- aws_cdk/aws_scheduler/__init__.py +210 -0
- aws_cdk/aws_sns/__init__.py +164 -0
- aws_cdk/aws_sqs/__init__.py +164 -0
- aws_cdk/aws_stepfunctions/__init__.py +288 -0
- aws_cdk/aws_synthetics/__init__.py +159 -37
- aws_cdk/aws_transfer/__init__.py +23 -1
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/RECORD +62 -61
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.203.1.dist-info → aws_cdk_lib-2.205.0.dist-info}/top_level.txt +0 -0
|
@@ -261,9 +261,72 @@ codebuild.Project(self, "Project",
|
|
|
261
261
|
)
|
|
262
262
|
```
|
|
263
263
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
the
|
|
264
|
+
If you want to [share the same cache between multiple projects](https://docs.aws.amazon.com/codebuild/latest/userguide/caching-s3.html#caching-s3-sharing), you must must do the following:
|
|
265
|
+
|
|
266
|
+
* Use the same `cacheNamespace`.
|
|
267
|
+
* Specify the same cache key.
|
|
268
|
+
* Define identical cache paths.
|
|
269
|
+
* Use the same Amazon S3 buckets and `pathPrefix` if set.
|
|
270
|
+
|
|
271
|
+
```python
|
|
272
|
+
# source_bucket: s3.Bucket
|
|
273
|
+
# my_caching_bucket: s3.Bucket
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
codebuild.Project(self, "ProjectA",
|
|
277
|
+
source=codebuild.Source.s3(
|
|
278
|
+
bucket=source_bucket,
|
|
279
|
+
path="path/to/source-a.zip"
|
|
280
|
+
),
|
|
281
|
+
# configure the same bucket and path prefix
|
|
282
|
+
cache=codebuild.Cache.bucket(my_caching_bucket,
|
|
283
|
+
prefix="cache",
|
|
284
|
+
# use the same cache namespace
|
|
285
|
+
cache_namespace="cache-namespace"
|
|
286
|
+
),
|
|
287
|
+
build_spec=codebuild.BuildSpec.from_object({
|
|
288
|
+
"version": "0.2",
|
|
289
|
+
"phases": {
|
|
290
|
+
"build": {
|
|
291
|
+
"commands": ["..."]
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
# specify the same cache key and paths
|
|
295
|
+
"cache": {
|
|
296
|
+
"key": "unique-key",
|
|
297
|
+
"paths": ["/root/cachedir/**/*"
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
})
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
codebuild.Project(self, "ProjectB",
|
|
304
|
+
source=codebuild.Source.s3(
|
|
305
|
+
bucket=source_bucket,
|
|
306
|
+
path="path/to/source-b.zip"
|
|
307
|
+
),
|
|
308
|
+
# configure the same bucket and path prefix
|
|
309
|
+
cache=codebuild.Cache.bucket(my_caching_bucket,
|
|
310
|
+
prefix="cache",
|
|
311
|
+
# use the same cache namespace
|
|
312
|
+
cache_namespace="cache-namespace"
|
|
313
|
+
),
|
|
314
|
+
build_spec=codebuild.BuildSpec.from_object({
|
|
315
|
+
"version": "0.2",
|
|
316
|
+
"phases": {
|
|
317
|
+
"build": {
|
|
318
|
+
"commands": ["..."]
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
# specify the same cache key and paths
|
|
322
|
+
"cache": {
|
|
323
|
+
"key": "unique-key",
|
|
324
|
+
"paths": ["/root/cachedir/**/*"
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
})
|
|
328
|
+
)
|
|
329
|
+
```
|
|
267
330
|
|
|
268
331
|
### Local Caching
|
|
269
332
|
|
|
@@ -1463,32 +1526,104 @@ class BitBucketSourceCredentialsProps:
|
|
|
1463
1526
|
@jsii.data_type(
|
|
1464
1527
|
jsii_type="aws-cdk-lib.aws_codebuild.BucketCacheOptions",
|
|
1465
1528
|
jsii_struct_bases=[],
|
|
1466
|
-
name_mapping={"prefix": "prefix"},
|
|
1529
|
+
name_mapping={"cache_namespace": "cacheNamespace", "prefix": "prefix"},
|
|
1467
1530
|
)
|
|
1468
1531
|
class BucketCacheOptions:
|
|
1469
|
-
def __init__(
|
|
1532
|
+
def __init__(
|
|
1533
|
+
self,
|
|
1534
|
+
*,
|
|
1535
|
+
cache_namespace: typing.Optional[builtins.str] = None,
|
|
1536
|
+
prefix: typing.Optional[builtins.str] = None,
|
|
1537
|
+
) -> None:
|
|
1470
1538
|
'''
|
|
1539
|
+
:param cache_namespace: Defines the scope of the cache. You can use this namespace to share a cache across multiple projects. Default: undefined - No cache namespace, which means that the cache is not shared across multiple projects.
|
|
1471
1540
|
:param prefix: The prefix to use to store the cache in the bucket.
|
|
1472
1541
|
|
|
1473
|
-
:exampleMetadata:
|
|
1542
|
+
:exampleMetadata: infused
|
|
1474
1543
|
|
|
1475
1544
|
Example::
|
|
1476
1545
|
|
|
1477
|
-
#
|
|
1478
|
-
#
|
|
1479
|
-
|
|
1546
|
+
# source_bucket: s3.Bucket
|
|
1547
|
+
# my_caching_bucket: s3.Bucket
|
|
1548
|
+
|
|
1480
1549
|
|
|
1481
|
-
|
|
1482
|
-
|
|
1550
|
+
codebuild.Project(self, "ProjectA",
|
|
1551
|
+
source=codebuild.Source.s3(
|
|
1552
|
+
bucket=source_bucket,
|
|
1553
|
+
path="path/to/source-a.zip"
|
|
1554
|
+
),
|
|
1555
|
+
# configure the same bucket and path prefix
|
|
1556
|
+
cache=codebuild.Cache.bucket(my_caching_bucket,
|
|
1557
|
+
prefix="cache",
|
|
1558
|
+
# use the same cache namespace
|
|
1559
|
+
cache_namespace="cache-namespace"
|
|
1560
|
+
),
|
|
1561
|
+
build_spec=codebuild.BuildSpec.from_object({
|
|
1562
|
+
"version": "0.2",
|
|
1563
|
+
"phases": {
|
|
1564
|
+
"build": {
|
|
1565
|
+
"commands": ["..."]
|
|
1566
|
+
}
|
|
1567
|
+
},
|
|
1568
|
+
# specify the same cache key and paths
|
|
1569
|
+
"cache": {
|
|
1570
|
+
"key": "unique-key",
|
|
1571
|
+
"paths": ["/root/cachedir/**/*"
|
|
1572
|
+
]
|
|
1573
|
+
}
|
|
1574
|
+
})
|
|
1575
|
+
)
|
|
1576
|
+
|
|
1577
|
+
codebuild.Project(self, "ProjectB",
|
|
1578
|
+
source=codebuild.Source.s3(
|
|
1579
|
+
bucket=source_bucket,
|
|
1580
|
+
path="path/to/source-b.zip"
|
|
1581
|
+
),
|
|
1582
|
+
# configure the same bucket and path prefix
|
|
1583
|
+
cache=codebuild.Cache.bucket(my_caching_bucket,
|
|
1584
|
+
prefix="cache",
|
|
1585
|
+
# use the same cache namespace
|
|
1586
|
+
cache_namespace="cache-namespace"
|
|
1587
|
+
),
|
|
1588
|
+
build_spec=codebuild.BuildSpec.from_object({
|
|
1589
|
+
"version": "0.2",
|
|
1590
|
+
"phases": {
|
|
1591
|
+
"build": {
|
|
1592
|
+
"commands": ["..."]
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
# specify the same cache key and paths
|
|
1596
|
+
"cache": {
|
|
1597
|
+
"key": "unique-key",
|
|
1598
|
+
"paths": ["/root/cachedir/**/*"
|
|
1599
|
+
]
|
|
1600
|
+
}
|
|
1601
|
+
})
|
|
1483
1602
|
)
|
|
1484
1603
|
'''
|
|
1485
1604
|
if __debug__:
|
|
1486
1605
|
type_hints = typing.get_type_hints(_typecheckingstub__0964d02b7c6a99cc65ab53a8ae83bdb47d0901ee8a6f094b815d479e0fd8cb10)
|
|
1606
|
+
check_type(argname="argument cache_namespace", value=cache_namespace, expected_type=type_hints["cache_namespace"])
|
|
1487
1607
|
check_type(argname="argument prefix", value=prefix, expected_type=type_hints["prefix"])
|
|
1488
1608
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1609
|
+
if cache_namespace is not None:
|
|
1610
|
+
self._values["cache_namespace"] = cache_namespace
|
|
1489
1611
|
if prefix is not None:
|
|
1490
1612
|
self._values["prefix"] = prefix
|
|
1491
1613
|
|
|
1614
|
+
@builtins.property
|
|
1615
|
+
def cache_namespace(self) -> typing.Optional[builtins.str]:
|
|
1616
|
+
'''Defines the scope of the cache.
|
|
1617
|
+
|
|
1618
|
+
You can use this namespace to share a cache across multiple projects.
|
|
1619
|
+
|
|
1620
|
+
:default: undefined - No cache namespace, which means that the cache is not shared across multiple projects.
|
|
1621
|
+
|
|
1622
|
+
:see: https://docs.aws.amazon.com/codebuild/latest/userguide/caching-s3.html#caching-s3-sharing
|
|
1623
|
+
'''
|
|
1624
|
+
result = self._values.get("cache_namespace")
|
|
1625
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1626
|
+
|
|
1492
1627
|
@builtins.property
|
|
1493
1628
|
def prefix(self) -> typing.Optional[builtins.str]:
|
|
1494
1629
|
'''The prefix to use to store the cache in the bucket.'''
|
|
@@ -2103,31 +2238,53 @@ class Cache(
|
|
|
2103
2238
|
|
|
2104
2239
|
Example::
|
|
2105
2240
|
|
|
2106
|
-
#
|
|
2241
|
+
# vpc: ec2.Vpc
|
|
2242
|
+
# my_security_group: ec2.SecurityGroup
|
|
2107
2243
|
|
|
2244
|
+
pipelines.CodeBuildStep("Synth",
|
|
2245
|
+
# ...standard ShellStep props...
|
|
2246
|
+
commands=[],
|
|
2247
|
+
env={},
|
|
2108
2248
|
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2249
|
+
# If you are using a CodeBuildStep explicitly, set the 'cdk.out' directory
|
|
2250
|
+
# to be the synth step's output.
|
|
2251
|
+
primary_output_directory="cdk.out",
|
|
2252
|
+
|
|
2253
|
+
# Control the name of the project
|
|
2254
|
+
project_name="MyProject",
|
|
2255
|
+
|
|
2256
|
+
# Control parts of the BuildSpec other than the regular 'build' and 'install' commands
|
|
2257
|
+
partial_build_spec=codebuild.BuildSpec.from_object({
|
|
2258
|
+
"version": "0.2"
|
|
2259
|
+
}),
|
|
2260
|
+
|
|
2261
|
+
# Control the build environment
|
|
2262
|
+
build_environment=codebuild.BuildEnvironment(
|
|
2263
|
+
compute_type=codebuild.ComputeType.LARGE,
|
|
2264
|
+
privileged=True
|
|
2113
2265
|
),
|
|
2266
|
+
timeout=Duration.minutes(90),
|
|
2267
|
+
file_system_locations=[
|
|
2268
|
+
codebuild.FileSystemLocation.efs(
|
|
2269
|
+
identifier="myidentifier2",
|
|
2270
|
+
location="myclodation.mydnsroot.com:/loc",
|
|
2271
|
+
mount_point="/media",
|
|
2272
|
+
mount_options="opts"
|
|
2273
|
+
)
|
|
2274
|
+
],
|
|
2114
2275
|
|
|
2115
|
-
|
|
2276
|
+
# Control Elastic Network Interface creation
|
|
2277
|
+
vpc=vpc,
|
|
2278
|
+
subnet_selection=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS),
|
|
2279
|
+
security_groups=[my_security_group],
|
|
2116
2280
|
|
|
2117
|
-
#
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
}
|
|
2125
|
-
},
|
|
2126
|
-
"cache": {
|
|
2127
|
-
"paths": ["/root/cachedir/**/*"
|
|
2128
|
-
]
|
|
2129
|
-
}
|
|
2130
|
-
})
|
|
2281
|
+
# Control caching
|
|
2282
|
+
cache=codebuild.Cache.bucket(s3.Bucket(self, "Cache")),
|
|
2283
|
+
|
|
2284
|
+
# Additional policy statements for the execution role
|
|
2285
|
+
role_policy_statements=[
|
|
2286
|
+
iam.PolicyStatement()
|
|
2287
|
+
]
|
|
2131
2288
|
)
|
|
2132
2289
|
'''
|
|
2133
2290
|
|
|
@@ -2140,17 +2297,19 @@ class Cache(
|
|
|
2140
2297
|
cls,
|
|
2141
2298
|
bucket: _IBucket_42e086fd,
|
|
2142
2299
|
*,
|
|
2300
|
+
cache_namespace: typing.Optional[builtins.str] = None,
|
|
2143
2301
|
prefix: typing.Optional[builtins.str] = None,
|
|
2144
2302
|
) -> "Cache":
|
|
2145
2303
|
'''Create an S3 caching strategy.
|
|
2146
2304
|
|
|
2147
2305
|
:param bucket: the S3 bucket to use for caching.
|
|
2306
|
+
:param cache_namespace: Defines the scope of the cache. You can use this namespace to share a cache across multiple projects. Default: undefined - No cache namespace, which means that the cache is not shared across multiple projects.
|
|
2148
2307
|
:param prefix: The prefix to use to store the cache in the bucket.
|
|
2149
2308
|
'''
|
|
2150
2309
|
if __debug__:
|
|
2151
2310
|
type_hints = typing.get_type_hints(_typecheckingstub__17e53da7d0dcdb63a4024e7a2681ef7faa68be13f710db0f237c0a06196e2279)
|
|
2152
2311
|
check_type(argname="argument bucket", value=bucket, expected_type=type_hints["bucket"])
|
|
2153
|
-
options = BucketCacheOptions(prefix=prefix)
|
|
2312
|
+
options = BucketCacheOptions(cache_namespace=cache_namespace, prefix=prefix)
|
|
2154
2313
|
|
|
2155
2314
|
return typing.cast("Cache", jsii.sinvoke(cls, "bucket", [bucket, options]))
|
|
2156
2315
|
|
|
@@ -10704,6 +10863,7 @@ class IProject(
|
|
|
10704
10863
|
account: typing.Optional[builtins.str] = None,
|
|
10705
10864
|
color: typing.Optional[builtins.str] = None,
|
|
10706
10865
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
10866
|
+
id: typing.Optional[builtins.str] = None,
|
|
10707
10867
|
label: typing.Optional[builtins.str] = None,
|
|
10708
10868
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
10709
10869
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -10711,12 +10871,14 @@ class IProject(
|
|
|
10711
10871
|
stack_region: typing.Optional[builtins.str] = None,
|
|
10712
10872
|
statistic: typing.Optional[builtins.str] = None,
|
|
10713
10873
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
10874
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
10714
10875
|
) -> _Metric_e396a4dc:
|
|
10715
10876
|
'''
|
|
10716
10877
|
:param metric_name: The name of the metric.
|
|
10717
10878
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
10718
10879
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
10719
10880
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
10881
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
10720
10882
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
10721
10883
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
10722
10884
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -10724,6 +10886,7 @@ class IProject(
|
|
|
10724
10886
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
10725
10887
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
10726
10888
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
10889
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
10727
10890
|
|
|
10728
10891
|
:return: a CloudWatch metric associated with this build project.
|
|
10729
10892
|
'''
|
|
@@ -10736,6 +10899,7 @@ class IProject(
|
|
|
10736
10899
|
account: typing.Optional[builtins.str] = None,
|
|
10737
10900
|
color: typing.Optional[builtins.str] = None,
|
|
10738
10901
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
10902
|
+
id: typing.Optional[builtins.str] = None,
|
|
10739
10903
|
label: typing.Optional[builtins.str] = None,
|
|
10740
10904
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
10741
10905
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -10743,6 +10907,7 @@ class IProject(
|
|
|
10743
10907
|
stack_region: typing.Optional[builtins.str] = None,
|
|
10744
10908
|
statistic: typing.Optional[builtins.str] = None,
|
|
10745
10909
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
10910
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
10746
10911
|
) -> _Metric_e396a4dc:
|
|
10747
10912
|
'''Measures the number of builds triggered.
|
|
10748
10913
|
|
|
@@ -10753,6 +10918,7 @@ class IProject(
|
|
|
10753
10918
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
10754
10919
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
10755
10920
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
10921
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
10756
10922
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
10757
10923
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
10758
10924
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -10760,6 +10926,7 @@ class IProject(
|
|
|
10760
10926
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
10761
10927
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
10762
10928
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
10929
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
10763
10930
|
|
|
10764
10931
|
:default: sum over 5 minutes
|
|
10765
10932
|
'''
|
|
@@ -10772,6 +10939,7 @@ class IProject(
|
|
|
10772
10939
|
account: typing.Optional[builtins.str] = None,
|
|
10773
10940
|
color: typing.Optional[builtins.str] = None,
|
|
10774
10941
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
10942
|
+
id: typing.Optional[builtins.str] = None,
|
|
10775
10943
|
label: typing.Optional[builtins.str] = None,
|
|
10776
10944
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
10777
10945
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -10779,6 +10947,7 @@ class IProject(
|
|
|
10779
10947
|
stack_region: typing.Optional[builtins.str] = None,
|
|
10780
10948
|
statistic: typing.Optional[builtins.str] = None,
|
|
10781
10949
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
10950
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
10782
10951
|
) -> _Metric_e396a4dc:
|
|
10783
10952
|
'''Measures the duration of all builds over time.
|
|
10784
10953
|
|
|
@@ -10789,6 +10958,7 @@ class IProject(
|
|
|
10789
10958
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
10790
10959
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
10791
10960
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
10961
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
10792
10962
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
10793
10963
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
10794
10964
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -10796,6 +10966,7 @@ class IProject(
|
|
|
10796
10966
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
10797
10967
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
10798
10968
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
10969
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
10799
10970
|
|
|
10800
10971
|
:default: average over 5 minutes
|
|
10801
10972
|
'''
|
|
@@ -10808,6 +10979,7 @@ class IProject(
|
|
|
10808
10979
|
account: typing.Optional[builtins.str] = None,
|
|
10809
10980
|
color: typing.Optional[builtins.str] = None,
|
|
10810
10981
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
10982
|
+
id: typing.Optional[builtins.str] = None,
|
|
10811
10983
|
label: typing.Optional[builtins.str] = None,
|
|
10812
10984
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
10813
10985
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -10815,6 +10987,7 @@ class IProject(
|
|
|
10815
10987
|
stack_region: typing.Optional[builtins.str] = None,
|
|
10816
10988
|
statistic: typing.Optional[builtins.str] = None,
|
|
10817
10989
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
10990
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
10818
10991
|
) -> _Metric_e396a4dc:
|
|
10819
10992
|
'''Measures the number of builds that failed because of client error or because of a timeout.
|
|
10820
10993
|
|
|
@@ -10825,6 +10998,7 @@ class IProject(
|
|
|
10825
10998
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
10826
10999
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
10827
11000
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
11001
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
10828
11002
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
10829
11003
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
10830
11004
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -10832,6 +11006,7 @@ class IProject(
|
|
|
10832
11006
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
10833
11007
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
10834
11008
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
11009
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
10835
11010
|
|
|
10836
11011
|
:default: sum over 5 minutes
|
|
10837
11012
|
'''
|
|
@@ -10844,6 +11019,7 @@ class IProject(
|
|
|
10844
11019
|
account: typing.Optional[builtins.str] = None,
|
|
10845
11020
|
color: typing.Optional[builtins.str] = None,
|
|
10846
11021
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
11022
|
+
id: typing.Optional[builtins.str] = None,
|
|
10847
11023
|
label: typing.Optional[builtins.str] = None,
|
|
10848
11024
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
10849
11025
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -10851,6 +11027,7 @@ class IProject(
|
|
|
10851
11027
|
stack_region: typing.Optional[builtins.str] = None,
|
|
10852
11028
|
statistic: typing.Optional[builtins.str] = None,
|
|
10853
11029
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
11030
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
10854
11031
|
) -> _Metric_e396a4dc:
|
|
10855
11032
|
'''Measures the number of successful builds.
|
|
10856
11033
|
|
|
@@ -10861,6 +11038,7 @@ class IProject(
|
|
|
10861
11038
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
10862
11039
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
10863
11040
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
11041
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
10864
11042
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
10865
11043
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
10866
11044
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -10868,6 +11046,7 @@ class IProject(
|
|
|
10868
11046
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
10869
11047
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
10870
11048
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
11049
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
10871
11050
|
|
|
10872
11051
|
:default: sum over 5 minutes
|
|
10873
11052
|
'''
|
|
@@ -11168,6 +11347,7 @@ class _IProjectProxy(
|
|
|
11168
11347
|
account: typing.Optional[builtins.str] = None,
|
|
11169
11348
|
color: typing.Optional[builtins.str] = None,
|
|
11170
11349
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
11350
|
+
id: typing.Optional[builtins.str] = None,
|
|
11171
11351
|
label: typing.Optional[builtins.str] = None,
|
|
11172
11352
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
11173
11353
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -11175,12 +11355,14 @@ class _IProjectProxy(
|
|
|
11175
11355
|
stack_region: typing.Optional[builtins.str] = None,
|
|
11176
11356
|
statistic: typing.Optional[builtins.str] = None,
|
|
11177
11357
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
11358
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
11178
11359
|
) -> _Metric_e396a4dc:
|
|
11179
11360
|
'''
|
|
11180
11361
|
:param metric_name: The name of the metric.
|
|
11181
11362
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
11182
11363
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
11183
11364
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
11365
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
11184
11366
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
11185
11367
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
11186
11368
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -11188,6 +11370,7 @@ class _IProjectProxy(
|
|
|
11188
11370
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
11189
11371
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
11190
11372
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
11373
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
11191
11374
|
|
|
11192
11375
|
:return: a CloudWatch metric associated with this build project.
|
|
11193
11376
|
'''
|
|
@@ -11198,6 +11381,7 @@ class _IProjectProxy(
|
|
|
11198
11381
|
account=account,
|
|
11199
11382
|
color=color,
|
|
11200
11383
|
dimensions_map=dimensions_map,
|
|
11384
|
+
id=id,
|
|
11201
11385
|
label=label,
|
|
11202
11386
|
period=period,
|
|
11203
11387
|
region=region,
|
|
@@ -11205,6 +11389,7 @@ class _IProjectProxy(
|
|
|
11205
11389
|
stack_region=stack_region,
|
|
11206
11390
|
statistic=statistic,
|
|
11207
11391
|
unit=unit,
|
|
11392
|
+
visible=visible,
|
|
11208
11393
|
)
|
|
11209
11394
|
|
|
11210
11395
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metric", [metric_name, props]))
|
|
@@ -11216,6 +11401,7 @@ class _IProjectProxy(
|
|
|
11216
11401
|
account: typing.Optional[builtins.str] = None,
|
|
11217
11402
|
color: typing.Optional[builtins.str] = None,
|
|
11218
11403
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
11404
|
+
id: typing.Optional[builtins.str] = None,
|
|
11219
11405
|
label: typing.Optional[builtins.str] = None,
|
|
11220
11406
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
11221
11407
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -11223,6 +11409,7 @@ class _IProjectProxy(
|
|
|
11223
11409
|
stack_region: typing.Optional[builtins.str] = None,
|
|
11224
11410
|
statistic: typing.Optional[builtins.str] = None,
|
|
11225
11411
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
11412
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
11226
11413
|
) -> _Metric_e396a4dc:
|
|
11227
11414
|
'''Measures the number of builds triggered.
|
|
11228
11415
|
|
|
@@ -11233,6 +11420,7 @@ class _IProjectProxy(
|
|
|
11233
11420
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
11234
11421
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
11235
11422
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
11423
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
11236
11424
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
11237
11425
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
11238
11426
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -11240,6 +11428,7 @@ class _IProjectProxy(
|
|
|
11240
11428
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
11241
11429
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
11242
11430
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
11431
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
11243
11432
|
|
|
11244
11433
|
:default: sum over 5 minutes
|
|
11245
11434
|
'''
|
|
@@ -11247,6 +11436,7 @@ class _IProjectProxy(
|
|
|
11247
11436
|
account=account,
|
|
11248
11437
|
color=color,
|
|
11249
11438
|
dimensions_map=dimensions_map,
|
|
11439
|
+
id=id,
|
|
11250
11440
|
label=label,
|
|
11251
11441
|
period=period,
|
|
11252
11442
|
region=region,
|
|
@@ -11254,6 +11444,7 @@ class _IProjectProxy(
|
|
|
11254
11444
|
stack_region=stack_region,
|
|
11255
11445
|
statistic=statistic,
|
|
11256
11446
|
unit=unit,
|
|
11447
|
+
visible=visible,
|
|
11257
11448
|
)
|
|
11258
11449
|
|
|
11259
11450
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricBuilds", [props]))
|
|
@@ -11265,6 +11456,7 @@ class _IProjectProxy(
|
|
|
11265
11456
|
account: typing.Optional[builtins.str] = None,
|
|
11266
11457
|
color: typing.Optional[builtins.str] = None,
|
|
11267
11458
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
11459
|
+
id: typing.Optional[builtins.str] = None,
|
|
11268
11460
|
label: typing.Optional[builtins.str] = None,
|
|
11269
11461
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
11270
11462
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -11272,6 +11464,7 @@ class _IProjectProxy(
|
|
|
11272
11464
|
stack_region: typing.Optional[builtins.str] = None,
|
|
11273
11465
|
statistic: typing.Optional[builtins.str] = None,
|
|
11274
11466
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
11467
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
11275
11468
|
) -> _Metric_e396a4dc:
|
|
11276
11469
|
'''Measures the duration of all builds over time.
|
|
11277
11470
|
|
|
@@ -11282,6 +11475,7 @@ class _IProjectProxy(
|
|
|
11282
11475
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
11283
11476
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
11284
11477
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
11478
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
11285
11479
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
11286
11480
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
11287
11481
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -11289,6 +11483,7 @@ class _IProjectProxy(
|
|
|
11289
11483
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
11290
11484
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
11291
11485
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
11486
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
11292
11487
|
|
|
11293
11488
|
:default: average over 5 minutes
|
|
11294
11489
|
'''
|
|
@@ -11296,6 +11491,7 @@ class _IProjectProxy(
|
|
|
11296
11491
|
account=account,
|
|
11297
11492
|
color=color,
|
|
11298
11493
|
dimensions_map=dimensions_map,
|
|
11494
|
+
id=id,
|
|
11299
11495
|
label=label,
|
|
11300
11496
|
period=period,
|
|
11301
11497
|
region=region,
|
|
@@ -11303,6 +11499,7 @@ class _IProjectProxy(
|
|
|
11303
11499
|
stack_region=stack_region,
|
|
11304
11500
|
statistic=statistic,
|
|
11305
11501
|
unit=unit,
|
|
11502
|
+
visible=visible,
|
|
11306
11503
|
)
|
|
11307
11504
|
|
|
11308
11505
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricDuration", [props]))
|
|
@@ -11314,6 +11511,7 @@ class _IProjectProxy(
|
|
|
11314
11511
|
account: typing.Optional[builtins.str] = None,
|
|
11315
11512
|
color: typing.Optional[builtins.str] = None,
|
|
11316
11513
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
11514
|
+
id: typing.Optional[builtins.str] = None,
|
|
11317
11515
|
label: typing.Optional[builtins.str] = None,
|
|
11318
11516
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
11319
11517
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -11321,6 +11519,7 @@ class _IProjectProxy(
|
|
|
11321
11519
|
stack_region: typing.Optional[builtins.str] = None,
|
|
11322
11520
|
statistic: typing.Optional[builtins.str] = None,
|
|
11323
11521
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
11522
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
11324
11523
|
) -> _Metric_e396a4dc:
|
|
11325
11524
|
'''Measures the number of builds that failed because of client error or because of a timeout.
|
|
11326
11525
|
|
|
@@ -11331,6 +11530,7 @@ class _IProjectProxy(
|
|
|
11331
11530
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
11332
11531
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
11333
11532
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
11533
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
11334
11534
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
11335
11535
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
11336
11536
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -11338,6 +11538,7 @@ class _IProjectProxy(
|
|
|
11338
11538
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
11339
11539
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
11340
11540
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
11541
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
11341
11542
|
|
|
11342
11543
|
:default: sum over 5 minutes
|
|
11343
11544
|
'''
|
|
@@ -11345,6 +11546,7 @@ class _IProjectProxy(
|
|
|
11345
11546
|
account=account,
|
|
11346
11547
|
color=color,
|
|
11347
11548
|
dimensions_map=dimensions_map,
|
|
11549
|
+
id=id,
|
|
11348
11550
|
label=label,
|
|
11349
11551
|
period=period,
|
|
11350
11552
|
region=region,
|
|
@@ -11352,6 +11554,7 @@ class _IProjectProxy(
|
|
|
11352
11554
|
stack_region=stack_region,
|
|
11353
11555
|
statistic=statistic,
|
|
11354
11556
|
unit=unit,
|
|
11557
|
+
visible=visible,
|
|
11355
11558
|
)
|
|
11356
11559
|
|
|
11357
11560
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricFailedBuilds", [props]))
|
|
@@ -11363,6 +11566,7 @@ class _IProjectProxy(
|
|
|
11363
11566
|
account: typing.Optional[builtins.str] = None,
|
|
11364
11567
|
color: typing.Optional[builtins.str] = None,
|
|
11365
11568
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
11569
|
+
id: typing.Optional[builtins.str] = None,
|
|
11366
11570
|
label: typing.Optional[builtins.str] = None,
|
|
11367
11571
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
11368
11572
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -11370,6 +11574,7 @@ class _IProjectProxy(
|
|
|
11370
11574
|
stack_region: typing.Optional[builtins.str] = None,
|
|
11371
11575
|
statistic: typing.Optional[builtins.str] = None,
|
|
11372
11576
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
11577
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
11373
11578
|
) -> _Metric_e396a4dc:
|
|
11374
11579
|
'''Measures the number of successful builds.
|
|
11375
11580
|
|
|
@@ -11380,6 +11585,7 @@ class _IProjectProxy(
|
|
|
11380
11585
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
11381
11586
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
11382
11587
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
11588
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
11383
11589
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
11384
11590
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
11385
11591
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -11387,6 +11593,7 @@ class _IProjectProxy(
|
|
|
11387
11593
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
11388
11594
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
11389
11595
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
11596
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
11390
11597
|
|
|
11391
11598
|
:default: sum over 5 minutes
|
|
11392
11599
|
'''
|
|
@@ -11394,6 +11601,7 @@ class _IProjectProxy(
|
|
|
11394
11601
|
account=account,
|
|
11395
11602
|
color=color,
|
|
11396
11603
|
dimensions_map=dimensions_map,
|
|
11604
|
+
id=id,
|
|
11397
11605
|
label=label,
|
|
11398
11606
|
period=period,
|
|
11399
11607
|
region=region,
|
|
@@ -11401,6 +11609,7 @@ class _IProjectProxy(
|
|
|
11401
11609
|
stack_region=stack_region,
|
|
11402
11610
|
statistic=statistic,
|
|
11403
11611
|
unit=unit,
|
|
11612
|
+
visible=visible,
|
|
11404
11613
|
)
|
|
11405
11614
|
|
|
11406
11615
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricSucceededBuilds", [props]))
|
|
@@ -14193,6 +14402,7 @@ class Project(
|
|
|
14193
14402
|
account: typing.Optional[builtins.str] = None,
|
|
14194
14403
|
color: typing.Optional[builtins.str] = None,
|
|
14195
14404
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
14405
|
+
id: typing.Optional[builtins.str] = None,
|
|
14196
14406
|
label: typing.Optional[builtins.str] = None,
|
|
14197
14407
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
14198
14408
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -14200,12 +14410,14 @@ class Project(
|
|
|
14200
14410
|
stack_region: typing.Optional[builtins.str] = None,
|
|
14201
14411
|
statistic: typing.Optional[builtins.str] = None,
|
|
14202
14412
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
14413
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
14203
14414
|
) -> _Metric_e396a4dc:
|
|
14204
14415
|
'''
|
|
14205
14416
|
:param metric_name: The name of the metric.
|
|
14206
14417
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
14207
14418
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
14208
14419
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
14420
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
14209
14421
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
14210
14422
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
14211
14423
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -14213,6 +14425,7 @@ class Project(
|
|
|
14213
14425
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
14214
14426
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
14215
14427
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
14428
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
14216
14429
|
|
|
14217
14430
|
:return: a CloudWatch metric associated with this build project.
|
|
14218
14431
|
'''
|
|
@@ -14223,6 +14436,7 @@ class Project(
|
|
|
14223
14436
|
account=account,
|
|
14224
14437
|
color=color,
|
|
14225
14438
|
dimensions_map=dimensions_map,
|
|
14439
|
+
id=id,
|
|
14226
14440
|
label=label,
|
|
14227
14441
|
period=period,
|
|
14228
14442
|
region=region,
|
|
@@ -14230,6 +14444,7 @@ class Project(
|
|
|
14230
14444
|
stack_region=stack_region,
|
|
14231
14445
|
statistic=statistic,
|
|
14232
14446
|
unit=unit,
|
|
14447
|
+
visible=visible,
|
|
14233
14448
|
)
|
|
14234
14449
|
|
|
14235
14450
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metric", [metric_name, props]))
|
|
@@ -14241,6 +14456,7 @@ class Project(
|
|
|
14241
14456
|
account: typing.Optional[builtins.str] = None,
|
|
14242
14457
|
color: typing.Optional[builtins.str] = None,
|
|
14243
14458
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
14459
|
+
id: typing.Optional[builtins.str] = None,
|
|
14244
14460
|
label: typing.Optional[builtins.str] = None,
|
|
14245
14461
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
14246
14462
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -14248,6 +14464,7 @@ class Project(
|
|
|
14248
14464
|
stack_region: typing.Optional[builtins.str] = None,
|
|
14249
14465
|
statistic: typing.Optional[builtins.str] = None,
|
|
14250
14466
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
14467
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
14251
14468
|
) -> _Metric_e396a4dc:
|
|
14252
14469
|
'''Measures the number of builds triggered.
|
|
14253
14470
|
|
|
@@ -14258,6 +14475,7 @@ class Project(
|
|
|
14258
14475
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
14259
14476
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
14260
14477
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
14478
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
14261
14479
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
14262
14480
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
14263
14481
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -14265,6 +14483,7 @@ class Project(
|
|
|
14265
14483
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
14266
14484
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
14267
14485
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
14486
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
14268
14487
|
|
|
14269
14488
|
:default: sum over 5 minutes
|
|
14270
14489
|
'''
|
|
@@ -14272,6 +14491,7 @@ class Project(
|
|
|
14272
14491
|
account=account,
|
|
14273
14492
|
color=color,
|
|
14274
14493
|
dimensions_map=dimensions_map,
|
|
14494
|
+
id=id,
|
|
14275
14495
|
label=label,
|
|
14276
14496
|
period=period,
|
|
14277
14497
|
region=region,
|
|
@@ -14279,6 +14499,7 @@ class Project(
|
|
|
14279
14499
|
stack_region=stack_region,
|
|
14280
14500
|
statistic=statistic,
|
|
14281
14501
|
unit=unit,
|
|
14502
|
+
visible=visible,
|
|
14282
14503
|
)
|
|
14283
14504
|
|
|
14284
14505
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricBuilds", [props]))
|
|
@@ -14290,6 +14511,7 @@ class Project(
|
|
|
14290
14511
|
account: typing.Optional[builtins.str] = None,
|
|
14291
14512
|
color: typing.Optional[builtins.str] = None,
|
|
14292
14513
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
14514
|
+
id: typing.Optional[builtins.str] = None,
|
|
14293
14515
|
label: typing.Optional[builtins.str] = None,
|
|
14294
14516
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
14295
14517
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -14297,6 +14519,7 @@ class Project(
|
|
|
14297
14519
|
stack_region: typing.Optional[builtins.str] = None,
|
|
14298
14520
|
statistic: typing.Optional[builtins.str] = None,
|
|
14299
14521
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
14522
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
14300
14523
|
) -> _Metric_e396a4dc:
|
|
14301
14524
|
'''Measures the duration of all builds over time.
|
|
14302
14525
|
|
|
@@ -14307,6 +14530,7 @@ class Project(
|
|
|
14307
14530
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
14308
14531
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
14309
14532
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
14533
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
14310
14534
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
14311
14535
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
14312
14536
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -14314,6 +14538,7 @@ class Project(
|
|
|
14314
14538
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
14315
14539
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
14316
14540
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
14541
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
14317
14542
|
|
|
14318
14543
|
:default: average over 5 minutes
|
|
14319
14544
|
'''
|
|
@@ -14321,6 +14546,7 @@ class Project(
|
|
|
14321
14546
|
account=account,
|
|
14322
14547
|
color=color,
|
|
14323
14548
|
dimensions_map=dimensions_map,
|
|
14549
|
+
id=id,
|
|
14324
14550
|
label=label,
|
|
14325
14551
|
period=period,
|
|
14326
14552
|
region=region,
|
|
@@ -14328,6 +14554,7 @@ class Project(
|
|
|
14328
14554
|
stack_region=stack_region,
|
|
14329
14555
|
statistic=statistic,
|
|
14330
14556
|
unit=unit,
|
|
14557
|
+
visible=visible,
|
|
14331
14558
|
)
|
|
14332
14559
|
|
|
14333
14560
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricDuration", [props]))
|
|
@@ -14339,6 +14566,7 @@ class Project(
|
|
|
14339
14566
|
account: typing.Optional[builtins.str] = None,
|
|
14340
14567
|
color: typing.Optional[builtins.str] = None,
|
|
14341
14568
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
14569
|
+
id: typing.Optional[builtins.str] = None,
|
|
14342
14570
|
label: typing.Optional[builtins.str] = None,
|
|
14343
14571
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
14344
14572
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -14346,6 +14574,7 @@ class Project(
|
|
|
14346
14574
|
stack_region: typing.Optional[builtins.str] = None,
|
|
14347
14575
|
statistic: typing.Optional[builtins.str] = None,
|
|
14348
14576
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
14577
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
14349
14578
|
) -> _Metric_e396a4dc:
|
|
14350
14579
|
'''Measures the number of builds that failed because of client error or because of a timeout.
|
|
14351
14580
|
|
|
@@ -14356,6 +14585,7 @@ class Project(
|
|
|
14356
14585
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
14357
14586
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
14358
14587
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
14588
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
14359
14589
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
14360
14590
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
14361
14591
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -14363,6 +14593,7 @@ class Project(
|
|
|
14363
14593
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
14364
14594
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
14365
14595
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
14596
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
14366
14597
|
|
|
14367
14598
|
:default: sum over 5 minutes
|
|
14368
14599
|
'''
|
|
@@ -14370,6 +14601,7 @@ class Project(
|
|
|
14370
14601
|
account=account,
|
|
14371
14602
|
color=color,
|
|
14372
14603
|
dimensions_map=dimensions_map,
|
|
14604
|
+
id=id,
|
|
14373
14605
|
label=label,
|
|
14374
14606
|
period=period,
|
|
14375
14607
|
region=region,
|
|
@@ -14377,6 +14609,7 @@ class Project(
|
|
|
14377
14609
|
stack_region=stack_region,
|
|
14378
14610
|
statistic=statistic,
|
|
14379
14611
|
unit=unit,
|
|
14612
|
+
visible=visible,
|
|
14380
14613
|
)
|
|
14381
14614
|
|
|
14382
14615
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricFailedBuilds", [props]))
|
|
@@ -14388,6 +14621,7 @@ class Project(
|
|
|
14388
14621
|
account: typing.Optional[builtins.str] = None,
|
|
14389
14622
|
color: typing.Optional[builtins.str] = None,
|
|
14390
14623
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
14624
|
+
id: typing.Optional[builtins.str] = None,
|
|
14391
14625
|
label: typing.Optional[builtins.str] = None,
|
|
14392
14626
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
14393
14627
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -14395,6 +14629,7 @@ class Project(
|
|
|
14395
14629
|
stack_region: typing.Optional[builtins.str] = None,
|
|
14396
14630
|
statistic: typing.Optional[builtins.str] = None,
|
|
14397
14631
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
14632
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
14398
14633
|
) -> _Metric_e396a4dc:
|
|
14399
14634
|
'''Measures the number of successful builds.
|
|
14400
14635
|
|
|
@@ -14405,6 +14640,7 @@ class Project(
|
|
|
14405
14640
|
:param account: Account which this metric comes from. Default: - Deployment account.
|
|
14406
14641
|
:param color: The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The ``Color`` class has a set of standard colors that can be used here. Default: - Automatic color
|
|
14407
14642
|
:param dimensions_map: Dimensions of the metric. Default: - No dimensions.
|
|
14643
|
+
:param id: Unique identifier for this metric when used in dashboard widgets. The id can be used as a variable to represent this metric in math expressions. Valid characters are letters, numbers, and underscore. The first character must be a lowercase letter. Default: - No ID
|
|
14408
14644
|
:param label: Label for this metric when added to a Graph in a Dashboard. You can use `dynamic labels <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html>`_ to show summary information about the entire displayed time series in the legend. For example, if you use:: [max: ${MAX}] MyMetric As the metric label, the maximum value in the visible range will be shown next to the time series name in the graph's legend. Default: - No label
|
|
14409
14645
|
:param period: The period over which the specified statistic is applied. Default: Duration.minutes(5)
|
|
14410
14646
|
:param region: Region which this metric comes from. Default: - Deployment region.
|
|
@@ -14412,6 +14648,7 @@ class Project(
|
|
|
14412
14648
|
:param stack_region: Region of the stack this metric is attached to. Default: - Deployment region.
|
|
14413
14649
|
:param statistic: What function to use for aggregating. Use the ``aws_cloudwatch.Stats`` helper class to construct valid input strings. Can be one of the following: - "Minimum" | "min" - "Maximum" | "max" - "Average" | "avg" - "Sum" | "sum" - "SampleCount | "n" - "pNN.NN" - "tmNN.NN" | "tm(NN.NN%:NN.NN%)" - "iqm" - "wmNN.NN" | "wm(NN.NN%:NN.NN%)" - "tcNN.NN" | "tc(NN.NN%:NN.NN%)" - "tsNN.NN" | "ts(NN.NN%:NN.NN%)" Default: Average
|
|
14414
14650
|
:param unit: Unit used to filter the metric stream. Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units. The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases. CloudWatch does not honor this property for graphs. Default: - All metric datums in the given metric stream
|
|
14651
|
+
:param visible: Whether this metric should be visible in dashboard graphs. Setting this to false is useful when you want to hide raw metrics that are used in math expressions, and show only the expression results. Default: true
|
|
14415
14652
|
|
|
14416
14653
|
:default: sum over 5 minutes
|
|
14417
14654
|
'''
|
|
@@ -14419,6 +14656,7 @@ class Project(
|
|
|
14419
14656
|
account=account,
|
|
14420
14657
|
color=color,
|
|
14421
14658
|
dimensions_map=dimensions_map,
|
|
14659
|
+
id=id,
|
|
14422
14660
|
label=label,
|
|
14423
14661
|
period=period,
|
|
14424
14662
|
region=region,
|
|
@@ -14426,6 +14664,7 @@ class Project(
|
|
|
14426
14664
|
stack_region=stack_region,
|
|
14427
14665
|
statistic=statistic,
|
|
14428
14666
|
unit=unit,
|
|
14667
|
+
visible=visible,
|
|
14429
14668
|
)
|
|
14430
14669
|
|
|
14431
14670
|
return typing.cast(_Metric_e396a4dc, jsii.invoke(self, "metricSucceededBuilds", [props]))
|
|
@@ -16127,12 +16366,31 @@ class Source(
|
|
|
16127
16366
|
|
|
16128
16367
|
Example::
|
|
16129
16368
|
|
|
16130
|
-
|
|
16131
|
-
|
|
16132
|
-
|
|
16369
|
+
# my_caching_bucket: s3.Bucket
|
|
16370
|
+
|
|
16371
|
+
|
|
16372
|
+
codebuild.Project(self, "Project",
|
|
16373
|
+
source=codebuild.Source.bit_bucket(
|
|
16133
16374
|
owner="awslabs",
|
|
16134
16375
|
repo="aws-cdk"
|
|
16135
|
-
)
|
|
16376
|
+
),
|
|
16377
|
+
|
|
16378
|
+
cache=codebuild.Cache.bucket(my_caching_bucket),
|
|
16379
|
+
|
|
16380
|
+
# BuildSpec with a 'cache' section necessary for S3 caching. This can
|
|
16381
|
+
# also come from 'buildspec.yml' in your source.
|
|
16382
|
+
build_spec=codebuild.BuildSpec.from_object({
|
|
16383
|
+
"version": "0.2",
|
|
16384
|
+
"phases": {
|
|
16385
|
+
"build": {
|
|
16386
|
+
"commands": ["..."]
|
|
16387
|
+
}
|
|
16388
|
+
},
|
|
16389
|
+
"cache": {
|
|
16390
|
+
"paths": ["/root/cachedir/**/*"
|
|
16391
|
+
]
|
|
16392
|
+
}
|
|
16393
|
+
})
|
|
16136
16394
|
)
|
|
16137
16395
|
'''
|
|
16138
16396
|
|
|
@@ -18843,6 +19101,7 @@ def _typecheckingstub__ebef68770fb5be7ec641650b4d069caf22f7652724d683d64610af210
|
|
|
18843
19101
|
|
|
18844
19102
|
def _typecheckingstub__0964d02b7c6a99cc65ab53a8ae83bdb47d0901ee8a6f094b815d479e0fd8cb10(
|
|
18845
19103
|
*,
|
|
19104
|
+
cache_namespace: typing.Optional[builtins.str] = None,
|
|
18846
19105
|
prefix: typing.Optional[builtins.str] = None,
|
|
18847
19106
|
) -> None:
|
|
18848
19107
|
"""Type checking stubs"""
|
|
@@ -18909,6 +19168,7 @@ def _typecheckingstub__4da3d788faa6a5e8ccf7b7a0f950b8fdc88fa2e5bd876f8b662b8fce2
|
|
|
18909
19168
|
def _typecheckingstub__17e53da7d0dcdb63a4024e7a2681ef7faa68be13f710db0f237c0a06196e2279(
|
|
18910
19169
|
bucket: _IBucket_42e086fd,
|
|
18911
19170
|
*,
|
|
19171
|
+
cache_namespace: typing.Optional[builtins.str] = None,
|
|
18912
19172
|
prefix: typing.Optional[builtins.str] = None,
|
|
18913
19173
|
) -> None:
|
|
18914
19174
|
"""Type checking stubs"""
|
|
@@ -19940,6 +20200,7 @@ def _typecheckingstub__4f7884de76ff7cb0ba58cc48d1d7bc265a2e8da34c1f3bde4ea5a96e3
|
|
|
19940
20200
|
account: typing.Optional[builtins.str] = None,
|
|
19941
20201
|
color: typing.Optional[builtins.str] = None,
|
|
19942
20202
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
20203
|
+
id: typing.Optional[builtins.str] = None,
|
|
19943
20204
|
label: typing.Optional[builtins.str] = None,
|
|
19944
20205
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
19945
20206
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -19947,6 +20208,7 @@ def _typecheckingstub__4f7884de76ff7cb0ba58cc48d1d7bc265a2e8da34c1f3bde4ea5a96e3
|
|
|
19947
20208
|
stack_region: typing.Optional[builtins.str] = None,
|
|
19948
20209
|
statistic: typing.Optional[builtins.str] = None,
|
|
19949
20210
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
20211
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
19950
20212
|
) -> None:
|
|
19951
20213
|
"""Type checking stubs"""
|
|
19952
20214
|
pass
|
|
@@ -20354,6 +20616,7 @@ def _typecheckingstub__685fd8fff031c8a93196b514789bd4f8ac1a27018ed911a6883d21b80
|
|
|
20354
20616
|
account: typing.Optional[builtins.str] = None,
|
|
20355
20617
|
color: typing.Optional[builtins.str] = None,
|
|
20356
20618
|
dimensions_map: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
20619
|
+
id: typing.Optional[builtins.str] = None,
|
|
20357
20620
|
label: typing.Optional[builtins.str] = None,
|
|
20358
20621
|
period: typing.Optional[_Duration_4839e8c3] = None,
|
|
20359
20622
|
region: typing.Optional[builtins.str] = None,
|
|
@@ -20361,6 +20624,7 @@ def _typecheckingstub__685fd8fff031c8a93196b514789bd4f8ac1a27018ed911a6883d21b80
|
|
|
20361
20624
|
stack_region: typing.Optional[builtins.str] = None,
|
|
20362
20625
|
statistic: typing.Optional[builtins.str] = None,
|
|
20363
20626
|
unit: typing.Optional[_Unit_61bc6f70] = None,
|
|
20627
|
+
visible: typing.Optional[builtins.bool] = None,
|
|
20364
20628
|
) -> None:
|
|
20365
20629
|
"""Type checking stubs"""
|
|
20366
20630
|
pass
|