aws-cdk-lib 2.75.1__py3-none-any.whl → 2.76.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 +245 -259
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.75.1.jsii.tgz → aws-cdk-lib@2.76.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplifyuibuilder/__init__.py +184 -216
- aws_cdk/aws_apigateway/__init__.py +95 -148
- aws_cdk/aws_appconfig/__init__.py +8 -4
- aws_cdk/aws_appflow/__init__.py +27 -52
- aws_cdk/aws_appmesh/__init__.py +91 -200
- aws_cdk/aws_apprunner/__init__.py +4 -16
- aws_cdk/aws_appstream/__init__.py +18 -82
- aws_cdk/aws_athena/__init__.py +18 -32
- aws_cdk/aws_backup/__init__.py +48 -86
- aws_cdk/aws_billingconductor/__init__.py +12 -7
- aws_cdk/aws_budgets/__init__.py +8 -17
- aws_cdk/aws_certificatemanager/__init__.py +7 -4
- aws_cdk/aws_cloudfront/__init__.py +14 -11
- aws_cdk/aws_cloudfront_origins/__init__.py +18 -8
- aws_cdk/aws_cloudtrail/__init__.py +7 -10
- aws_cdk/aws_cloudwatch/__init__.py +63 -35
- aws_cdk/aws_codebuild/__init__.py +10 -13
- aws_cdk/aws_codecommit/__init__.py +0 -1
- aws_cdk/aws_codedeploy/__init__.py +165 -162
- aws_cdk/aws_codepipeline/__init__.py +0 -4
- aws_cdk/aws_codepipeline_actions/__init__.py +16 -164
- aws_cdk/aws_cognito/__init__.py +195 -100
- aws_cdk/aws_config/__init__.py +28 -51
- aws_cdk/aws_connectcampaigns/__init__.py +5 -6
- aws_cdk/aws_databrew/__init__.py +5 -6
- aws_cdk/aws_dlm/__init__.py +33 -71
- aws_cdk/aws_docdb/__init__.py +20 -76
- aws_cdk/aws_dynamodb/__init__.py +7 -14
- aws_cdk/aws_ec2/__init__.py +1846 -421
- aws_cdk/aws_ecr/__init__.py +1 -2
- aws_cdk/aws_ecr_assets/__init__.py +27 -14
- aws_cdk/aws_ecs/__init__.py +241 -111
- aws_cdk/aws_ecs_patterns/__init__.py +13 -11
- aws_cdk/aws_eks/__init__.py +13 -8
- aws_cdk/aws_elasticloadbalancing/__init__.py +16 -9
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +142 -82
- aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +126 -61
- aws_cdk/aws_elasticsearch/__init__.py +0 -7
- aws_cdk/aws_emr/__init__.py +7 -16
- aws_cdk/aws_emrserverless/__init__.py +14 -18
- aws_cdk/aws_events/__init__.py +33 -29
- aws_cdk/aws_events_targets/__init__.py +248 -89
- aws_cdk/aws_frauddetector/__init__.py +3 -4
- aws_cdk/aws_fsx/__init__.py +13 -7
- aws_cdk/aws_gamelift/__init__.py +11 -20
- aws_cdk/aws_iam/__init__.py +21 -25
- aws_cdk/aws_imagebuilder/__init__.py +58 -80
- aws_cdk/aws_iot/__init__.py +16 -10
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +16 -26
- aws_cdk/aws_iotevents/__init__.py +6 -4
- aws_cdk/aws_iotfleetwise/__init__.py +27 -40
- aws_cdk/aws_iotsitewise/__init__.py +8 -5
- aws_cdk/aws_kinesisfirehose/__init__.py +21 -38
- aws_cdk/aws_lambda/__init__.py +59 -48
- aws_cdk/aws_lambda_event_sources/__init__.py +6 -21
- aws_cdk/aws_logs/__init__.py +5 -7
- aws_cdk/aws_macie/__init__.py +22 -15
- aws_cdk/aws_mediaconnect/__init__.py +5 -8
- aws_cdk/aws_medialive/__init__.py +2 -4
- aws_cdk/aws_mediapackage/__init__.py +9 -18
- aws_cdk/aws_memorydb/__init__.py +5 -10
- aws_cdk/aws_mwaa/__init__.py +8 -4
- aws_cdk/aws_nimblestudio/__init__.py +25 -45
- aws_cdk/aws_opensearchservice/__init__.py +0 -1
- aws_cdk/aws_panorama/__init__.py +11 -12
- aws_cdk/aws_personalize/__init__.py +46 -72
- aws_cdk/aws_pinpoint/__init__.py +36 -65
- aws_cdk/aws_quicksight/__init__.py +9972 -13374
- aws_cdk/aws_rds/__init__.py +23 -22
- aws_cdk/aws_route53/__init__.py +8 -16
- aws_cdk/aws_route53_targets/__init__.py +2 -4
- aws_cdk/aws_s3/__init__.py +25 -85
- aws_cdk/aws_s3_notifications/__init__.py +0 -3
- aws_cdk/aws_sagemaker/__init__.py +6 -2
- aws_cdk/aws_secretsmanager/__init__.py +17 -14
- aws_cdk/aws_servicecatalog/__init__.py +58 -82
- aws_cdk/aws_servicediscovery/__init__.py +4 -6
- aws_cdk/aws_ses/__init__.py +21 -34
- aws_cdk/aws_sns/__init__.py +4 -8
- aws_cdk/aws_ssm/__init__.py +19 -23
- aws_cdk/aws_ssmcontacts/__init__.py +10 -6
- aws_cdk/aws_stepfunctions/__init__.py +3 -12
- aws_cdk/aws_stepfunctions_tasks/__init__.py +7 -12
- aws_cdk/aws_timestream/__init__.py +22 -28
- aws_cdk/aws_xray/__init__.py +15 -22
- aws_cdk/cloud_assembly_schema/__init__.py +14 -6
- aws_cdk/custom_resources/__init__.py +2 -3
- aws_cdk/pipelines/__init__.py +84 -134
- aws_cdk/triggers/__init__.py +46 -61
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/METADATA +47 -92
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/RECORD +98 -98
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_appmesh/__init__.py
CHANGED
|
@@ -12,7 +12,6 @@ For further information on **AWS App Mesh**, visit the [AWS App Mesh Documentati
|
|
|
12
12
|
## Create the App and Stack
|
|
13
13
|
|
|
14
14
|
```python
|
|
15
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
16
15
|
app = cdk.App()
|
|
17
16
|
stack = cdk.Stack(app, "stack")
|
|
18
17
|
```
|
|
@@ -26,7 +25,6 @@ After you create your service mesh, you can create virtual services, virtual nod
|
|
|
26
25
|
The following example creates the `AppMesh` service mesh with the default egress filter of `DROP_ALL`. See [the AWS CloudFormation `EgressFilter` resource](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-mesh-egressfilter.html) for more info on egress filters.
|
|
27
26
|
|
|
28
27
|
```python
|
|
29
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
30
28
|
mesh = appmesh.Mesh(self, "AppMesh",
|
|
31
29
|
mesh_name="myAwsMesh"
|
|
32
30
|
)
|
|
@@ -35,7 +33,6 @@ mesh = appmesh.Mesh(self, "AppMesh",
|
|
|
35
33
|
The mesh can instead be created with the `ALLOW_ALL` egress filter by providing the `egressFilter` property.
|
|
36
34
|
|
|
37
35
|
```python
|
|
38
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
39
36
|
mesh = appmesh.Mesh(self, "AppMesh",
|
|
40
37
|
mesh_name="myAwsMesh",
|
|
41
38
|
egress_filter=appmesh.MeshFilterType.ALLOW_ALL
|
|
@@ -45,7 +42,6 @@ mesh = appmesh.Mesh(self, "AppMesh",
|
|
|
45
42
|
A mesh with an IP preference can be created by providing the property `serviceDiscovery` that specifes an `ipPreference`.
|
|
46
43
|
|
|
47
44
|
```python
|
|
48
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
49
45
|
mesh = appmesh.Mesh(self, "AppMesh",
|
|
50
46
|
mesh_name="myAwsMesh",
|
|
51
47
|
service_discovery=appmesh.MeshServiceDiscovery(
|
|
@@ -62,7 +58,6 @@ Virtual routers handle traffic for one or more virtual services within your mesh
|
|
|
62
58
|
After you create a virtual router, you can create and associate routes to your virtual router that direct incoming requests to different virtual nodes.
|
|
63
59
|
|
|
64
60
|
```python
|
|
65
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
66
61
|
# mesh: appmesh.Mesh
|
|
67
62
|
|
|
68
63
|
router = mesh.add_virtual_router("router",
|
|
@@ -76,7 +71,6 @@ The router can also be created using the `VirtualRouter` constructor (passing in
|
|
|
76
71
|
This is particularly useful when splitting your resources between many stacks: for example, defining the mesh itself as part of an infrastructure stack, but defining the other resources, such as routers, in the application stack:
|
|
77
72
|
|
|
78
73
|
```python
|
|
79
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
80
74
|
# infra_stack: cdk.Stack
|
|
81
75
|
# app_stack: cdk.Stack
|
|
82
76
|
|
|
@@ -115,7 +109,6 @@ When creating a virtual service:
|
|
|
115
109
|
Adding a virtual router as the provider:
|
|
116
110
|
|
|
117
111
|
```python
|
|
118
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
119
112
|
# router: appmesh.VirtualRouter
|
|
120
113
|
|
|
121
114
|
|
|
@@ -128,7 +121,6 @@ appmesh.VirtualService(self, "virtual-service",
|
|
|
128
121
|
Adding a virtual node as the provider:
|
|
129
122
|
|
|
130
123
|
```python
|
|
131
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
132
124
|
# node: appmesh.VirtualNode
|
|
133
125
|
|
|
134
126
|
|
|
@@ -150,7 +142,6 @@ The response metadata for your new virtual node contains the Amazon Resource Nam
|
|
|
150
142
|
> If you require your Envoy stats or tracing to use a different name, you can override the `node.cluster` value that is set by `APPMESH_VIRTUAL_NODE_NAME` with the `APPMESH_VIRTUAL_NODE_CLUSTER` environment variable.
|
|
151
143
|
|
|
152
144
|
```python
|
|
153
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
154
145
|
# mesh: appmesh.Mesh
|
|
155
146
|
vpc = ec2.Vpc(self, "vpc")
|
|
156
147
|
namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace",
|
|
@@ -164,9 +155,9 @@ node = mesh.add_virtual_node("virtual-node",
|
|
|
164
155
|
port=8081,
|
|
165
156
|
health_check=appmesh.HealthCheck.http(
|
|
166
157
|
healthy_threshold=3,
|
|
167
|
-
interval=
|
|
158
|
+
interval=Duration.seconds(5), # minimum
|
|
168
159
|
path="/health-check-path",
|
|
169
|
-
timeout=
|
|
160
|
+
timeout=Duration.seconds(2), # minimum
|
|
170
161
|
unhealthy_threshold=2
|
|
171
162
|
)
|
|
172
163
|
)],
|
|
@@ -177,7 +168,6 @@ node = mesh.add_virtual_node("virtual-node",
|
|
|
177
168
|
Create a `VirtualNode` with the constructor and add tags.
|
|
178
169
|
|
|
179
170
|
```python
|
|
180
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
181
171
|
# mesh: appmesh.Mesh
|
|
182
172
|
# service: cloudmap.Service
|
|
183
173
|
|
|
@@ -189,13 +179,13 @@ node = appmesh.VirtualNode(self, "node",
|
|
|
189
179
|
port=8080,
|
|
190
180
|
health_check=appmesh.HealthCheck.http(
|
|
191
181
|
healthy_threshold=3,
|
|
192
|
-
interval=
|
|
182
|
+
interval=Duration.seconds(5),
|
|
193
183
|
path="/ping",
|
|
194
|
-
timeout=
|
|
184
|
+
timeout=Duration.seconds(2),
|
|
195
185
|
unhealthy_threshold=2
|
|
196
186
|
),
|
|
197
187
|
timeout=appmesh.HttpTimeout(
|
|
198
|
-
idle=
|
|
188
|
+
idle=Duration.seconds(5)
|
|
199
189
|
)
|
|
200
190
|
)],
|
|
201
191
|
backend_defaults=appmesh.BackendDefaults(
|
|
@@ -214,7 +204,6 @@ cdk.Tags.of(node).add("Environment", "Dev")
|
|
|
214
204
|
Create a `VirtualNode` with the constructor and add backend virtual service.
|
|
215
205
|
|
|
216
206
|
```python
|
|
217
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
218
207
|
# mesh: appmesh.Mesh
|
|
219
208
|
# router: appmesh.VirtualRouter
|
|
220
209
|
# service: cloudmap.Service
|
|
@@ -227,13 +216,13 @@ node = appmesh.VirtualNode(self, "node",
|
|
|
227
216
|
port=8080,
|
|
228
217
|
health_check=appmesh.HealthCheck.http(
|
|
229
218
|
healthy_threshold=3,
|
|
230
|
-
interval=
|
|
219
|
+
interval=Duration.seconds(5),
|
|
231
220
|
path="/ping",
|
|
232
|
-
timeout=
|
|
221
|
+
timeout=Duration.seconds(2),
|
|
233
222
|
unhealthy_threshold=2
|
|
234
223
|
),
|
|
235
224
|
timeout=appmesh.HttpTimeout(
|
|
236
|
-
idle=
|
|
225
|
+
idle=Duration.seconds(5)
|
|
237
226
|
)
|
|
238
227
|
)],
|
|
239
228
|
access_log=appmesh.AccessLog.from_file_path("/dev/stdout")
|
|
@@ -256,7 +245,6 @@ The `backendDefaults` property is added to the node while creating the virtual n
|
|
|
256
245
|
The `VirtualNode.addBackend()` method is especially useful if you want to create a circular traffic flow by having a Virtual Service as a backend whose provider is that same Virtual Node:
|
|
257
246
|
|
|
258
247
|
```python
|
|
259
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
260
248
|
# mesh: appmesh.Mesh
|
|
261
249
|
|
|
262
250
|
|
|
@@ -283,7 +271,6 @@ Provide the TLS certificate to the proxy in one of the following ways:
|
|
|
283
271
|
* A certificate provided by a Secrets Discovery Service (SDS) endpoint over local Unix Domain Socket (specify its `secretName`).
|
|
284
272
|
|
|
285
273
|
```python
|
|
286
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
287
274
|
# A Virtual Node with listener TLS from an ACM provided certificate
|
|
288
275
|
# cert: certificatemanager.Certificate
|
|
289
276
|
# mesh: appmesh.Mesh
|
|
@@ -342,7 +329,6 @@ To enable mutual TLS authentication, add the `mutualTlsCertificate` property to
|
|
|
342
329
|
> Currently, a certificate from AWS Certificate Manager (ACM) cannot be used for mutual TLS authentication.
|
|
343
330
|
|
|
344
331
|
```python
|
|
345
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
346
332
|
# mesh: appmesh.Mesh
|
|
347
333
|
|
|
348
334
|
|
|
@@ -388,7 +374,6 @@ The `outlierDetection` property adds outlier detection to a Virtual Node listene
|
|
|
388
374
|
`baseEjectionDuration`, `interval`, `maxEjectionPercent`, and `maxServerErrors` are required.
|
|
389
375
|
|
|
390
376
|
```python
|
|
391
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
392
377
|
# mesh: appmesh.Mesh
|
|
393
378
|
# Cloud Map service discovery is currently required for host ejection by outlier detection
|
|
394
379
|
vpc = ec2.Vpc(self, "vpc")
|
|
@@ -401,8 +386,8 @@ node = mesh.add_virtual_node("virtual-node",
|
|
|
401
386
|
service_discovery=appmesh.ServiceDiscovery.cloud_map(service),
|
|
402
387
|
listeners=[appmesh.VirtualNodeListener.http(
|
|
403
388
|
outlier_detection=appmesh.OutlierDetection(
|
|
404
|
-
base_ejection_duration=
|
|
405
|
-
interval=
|
|
389
|
+
base_ejection_duration=Duration.seconds(10),
|
|
390
|
+
interval=Duration.seconds(30),
|
|
406
391
|
max_ejection_percent=50,
|
|
407
392
|
max_server_errors=5
|
|
408
393
|
)
|
|
@@ -415,7 +400,6 @@ node = mesh.add_virtual_node("virtual-node",
|
|
|
415
400
|
The `connectionPool` property can be added to a Virtual Node listener or Virtual Gateway listener to add a request connection pool. Each listener protocol type has its own connection pool properties.
|
|
416
401
|
|
|
417
402
|
```python
|
|
418
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
419
403
|
# A Virtual Node with a gRPC listener with a connection pool set
|
|
420
404
|
# mesh: appmesh.Mesh
|
|
421
405
|
|
|
@@ -460,20 +444,19 @@ There a four different IP preferences available to use which each specify what I
|
|
|
460
444
|
* `IPv6_PREFERRED` - Prefer IPv6 and fall back to IPv4. For CloudMap service discovery, an IPv6 address will be used if returned from CloudMap. Otherwise, an IPv4 address will be used if available. For DNS service discovery, Envoy's DNS resolver will first attempt to resolve DNS queries using IPv6 and fall back to IPv4.
|
|
461
445
|
|
|
462
446
|
```python
|
|
463
|
-
|
|
464
|
-
mesh = appmesh.Mesh(stack, "mesh",
|
|
447
|
+
mesh = appmesh.Mesh(self, "mesh",
|
|
465
448
|
mesh_name="mesh-with-preference"
|
|
466
449
|
)
|
|
467
450
|
|
|
468
451
|
# Virtual Node with DNS service discovery and an IP preference
|
|
469
|
-
dns_node = appmesh.VirtualNode(
|
|
452
|
+
dns_node = appmesh.VirtualNode(self, "dns-node",
|
|
470
453
|
mesh=mesh,
|
|
471
454
|
service_discovery=appmesh.ServiceDiscovery.dns("test", appmesh.DnsResponseType.LOAD_BALANCER, appmesh.IpPreference.IPV4_ONLY)
|
|
472
455
|
)
|
|
473
456
|
|
|
474
457
|
# Virtual Node with CloudMap service discovery and an IP preference
|
|
475
|
-
vpc = ec2.Vpc(
|
|
476
|
-
namespace = cloudmap.PrivateDnsNamespace(
|
|
458
|
+
vpc = ec2.Vpc(self, "vpc")
|
|
459
|
+
namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace",
|
|
477
460
|
vpc=vpc,
|
|
478
461
|
name="domain.local"
|
|
479
462
|
)
|
|
@@ -482,7 +465,7 @@ service = namespace.create_service("Svc")
|
|
|
482
465
|
instance_attribute = {}
|
|
483
466
|
instance_attribute.test_key = "testValue"
|
|
484
467
|
|
|
485
|
-
cloudmap_node = appmesh.VirtualNode(
|
|
468
|
+
cloudmap_node = appmesh.VirtualNode(self, "cloudmap-node",
|
|
486
469
|
mesh=mesh,
|
|
487
470
|
service_discovery=appmesh.ServiceDiscovery.cloud_map(service, instance_attribute, appmesh.IpPreference.IPV4_ONLY)
|
|
488
471
|
)
|
|
@@ -505,7 +488,6 @@ When specifying the method name, the service name must also be specified.
|
|
|
505
488
|
For example, here's how to add an HTTP route that matches based on a prefix of the URL path:
|
|
506
489
|
|
|
507
490
|
```python
|
|
508
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
509
491
|
# router: appmesh.VirtualRouter
|
|
510
492
|
# node: appmesh.VirtualNode
|
|
511
493
|
|
|
@@ -527,7 +509,6 @@ router.add_route("route-http",
|
|
|
527
509
|
Add an HTTP2 route that matches based on exact path, method, scheme, headers, and query parameters:
|
|
528
510
|
|
|
529
511
|
```python
|
|
530
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
531
512
|
# router: appmesh.VirtualRouter
|
|
532
513
|
# node: appmesh.VirtualNode
|
|
533
514
|
|
|
@@ -559,7 +540,6 @@ router.add_route("route-http2",
|
|
|
559
540
|
Add a single route with two targets and split traffic 50/50:
|
|
560
541
|
|
|
561
542
|
```python
|
|
562
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
563
543
|
# router: appmesh.VirtualRouter
|
|
564
544
|
# node: appmesh.VirtualNode
|
|
565
545
|
|
|
@@ -584,7 +564,6 @@ router.add_route("route-http",
|
|
|
584
564
|
Add an http2 route with retries:
|
|
585
565
|
|
|
586
566
|
```python
|
|
587
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
588
567
|
# router: appmesh.VirtualRouter
|
|
589
568
|
# node: appmesh.VirtualNode
|
|
590
569
|
|
|
@@ -600,7 +579,7 @@ router.add_route("route-http2-retry",
|
|
|
600
579
|
# Retry five times
|
|
601
580
|
retry_attempts=5,
|
|
602
581
|
# Use a 1 second timeout per retry
|
|
603
|
-
retry_timeout=
|
|
582
|
+
retry_timeout=Duration.seconds(1)
|
|
604
583
|
)
|
|
605
584
|
)
|
|
606
585
|
)
|
|
@@ -609,7 +588,6 @@ router.add_route("route-http2-retry",
|
|
|
609
588
|
Add a gRPC route with retries:
|
|
610
589
|
|
|
611
590
|
```python
|
|
612
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
613
591
|
# router: appmesh.VirtualRouter
|
|
614
592
|
# node: appmesh.VirtualNode
|
|
615
593
|
|
|
@@ -626,7 +604,7 @@ router.add_route("route-grpc-retry",
|
|
|
626
604
|
grpc_retry_events=[appmesh.GrpcRetryEvent.CANCELLED, appmesh.GrpcRetryEvent.RESOURCE_EXHAUSTED, appmesh.GrpcRetryEvent.UNAVAILABLE
|
|
627
605
|
],
|
|
628
606
|
retry_attempts=5,
|
|
629
|
-
retry_timeout=
|
|
607
|
+
retry_timeout=Duration.seconds(1)
|
|
630
608
|
)
|
|
631
609
|
)
|
|
632
610
|
)
|
|
@@ -635,7 +613,6 @@ router.add_route("route-grpc-retry",
|
|
|
635
613
|
Add an gRPC route that matches based on method name and metadata:
|
|
636
614
|
|
|
637
615
|
```python
|
|
638
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
639
616
|
# router: appmesh.VirtualRouter
|
|
640
617
|
# node: appmesh.VirtualNode
|
|
641
618
|
|
|
@@ -660,7 +637,6 @@ router.add_route("route-grpc-retry",
|
|
|
660
637
|
Add a gRPC route with timeout:
|
|
661
638
|
|
|
662
639
|
```python
|
|
663
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
664
640
|
# router: appmesh.VirtualRouter
|
|
665
641
|
# node: appmesh.VirtualNode
|
|
666
642
|
|
|
@@ -675,8 +651,8 @@ router.add_route("route-http",
|
|
|
675
651
|
service_name="my-service.default.svc.cluster.local"
|
|
676
652
|
),
|
|
677
653
|
timeout=appmesh.GrpcTimeout(
|
|
678
|
-
idle=
|
|
679
|
-
per_request=
|
|
654
|
+
idle=Duration.seconds(2),
|
|
655
|
+
per_request=Duration.seconds(1)
|
|
680
656
|
)
|
|
681
657
|
)
|
|
682
658
|
)
|
|
@@ -695,7 +671,6 @@ using rules defined in gateway routes which can be added to your virtual gateway
|
|
|
695
671
|
Create a virtual gateway with the constructor:
|
|
696
672
|
|
|
697
673
|
```python
|
|
698
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
699
674
|
# mesh: appmesh.Mesh
|
|
700
675
|
|
|
701
676
|
certificate_authority_arn = "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012"
|
|
@@ -705,7 +680,7 @@ gateway = appmesh.VirtualGateway(self, "gateway",
|
|
|
705
680
|
listeners=[appmesh.VirtualGatewayListener.http(
|
|
706
681
|
port=443,
|
|
707
682
|
health_check=appmesh.HealthCheck.http(
|
|
708
|
-
interval=
|
|
683
|
+
interval=Duration.seconds(10)
|
|
709
684
|
)
|
|
710
685
|
)],
|
|
711
686
|
backend_defaults=appmesh.BackendDefaults(
|
|
@@ -726,7 +701,6 @@ gateway = appmesh.VirtualGateway(self, "gateway",
|
|
|
726
701
|
Add a virtual gateway directly to the mesh:
|
|
727
702
|
|
|
728
703
|
```python
|
|
729
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
730
704
|
# mesh: appmesh.Mesh
|
|
731
705
|
|
|
732
706
|
|
|
@@ -736,7 +710,7 @@ gateway = mesh.add_virtual_gateway("gateway",
|
|
|
736
710
|
listeners=[appmesh.VirtualGatewayListener.http(
|
|
737
711
|
port=443,
|
|
738
712
|
health_check=appmesh.HealthCheck.http(
|
|
739
|
-
interval=
|
|
713
|
+
interval=Duration.seconds(10)
|
|
740
714
|
)
|
|
741
715
|
)]
|
|
742
716
|
)
|
|
@@ -756,7 +730,6 @@ path (prefix, exact, or regex), HTTP method, host name, HTTP headers, and query
|
|
|
756
730
|
By default, HTTP-based gateway routes match all requests.
|
|
757
731
|
|
|
758
732
|
```python
|
|
759
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
760
733
|
# gateway: appmesh.VirtualGateway
|
|
761
734
|
# virtual_service: appmesh.VirtualService
|
|
762
735
|
|
|
@@ -774,7 +747,6 @@ gateway.add_gateway_route("gateway-route-http",
|
|
|
774
747
|
For gRPC-based gateway routes, the `match` field can be used to match on service name, host name, and metadata.
|
|
775
748
|
|
|
776
749
|
```python
|
|
777
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
778
750
|
# gateway: appmesh.VirtualGateway
|
|
779
751
|
# virtual_service: appmesh.VirtualService
|
|
780
752
|
|
|
@@ -793,7 +765,6 @@ For HTTP based gateway routes, App Mesh automatically rewrites the matched prefi
|
|
|
793
765
|
This automatic rewrite configuration can be overwritten in following ways:
|
|
794
766
|
|
|
795
767
|
```python
|
|
796
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
797
768
|
# gateway: appmesh.VirtualGateway
|
|
798
769
|
# virtual_service: appmesh.VirtualService
|
|
799
770
|
|
|
@@ -824,7 +795,6 @@ If matching other path (exact or regex), only specific rewrite path can be speci
|
|
|
824
795
|
Unlike `startsWith()` method above, no default rewrite is performed.
|
|
825
796
|
|
|
826
797
|
```python
|
|
827
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
828
798
|
# gateway: appmesh.VirtualGateway
|
|
829
799
|
# virtual_service: appmesh.VirtualService
|
|
830
800
|
|
|
@@ -845,7 +815,6 @@ the original request received at the Virtual Gateway to the destination Virtual
|
|
|
845
815
|
This default host name rewrite can be configured by specifying the rewrite rule as one of the `match` property:
|
|
846
816
|
|
|
847
817
|
```python
|
|
848
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
849
818
|
# gateway: appmesh.VirtualGateway
|
|
850
819
|
# virtual_service: appmesh.VirtualService
|
|
851
820
|
|
|
@@ -868,13 +837,11 @@ Each App Mesh resource class comes with two static methods, `from<Resource>Arn`
|
|
|
868
837
|
These imported resources can be used with other resources in your mesh as if they were defined directly in your CDK application.
|
|
869
838
|
|
|
870
839
|
```python
|
|
871
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
872
840
|
arn = "arn:aws:appmesh:us-east-1:123456789012:mesh/testMesh/virtualNode/testNode"
|
|
873
841
|
appmesh.VirtualNode.from_virtual_node_arn(self, "importedVirtualNode", arn)
|
|
874
842
|
```
|
|
875
843
|
|
|
876
844
|
```python
|
|
877
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
878
845
|
virtual_node_name = "my-virtual-node"
|
|
879
846
|
appmesh.VirtualNode.from_virtual_node_attributes(self, "imported-virtual-node",
|
|
880
847
|
mesh=appmesh.Mesh.from_mesh_name(self, "Mesh", "testMesh"),
|
|
@@ -885,13 +852,11 @@ appmesh.VirtualNode.from_virtual_node_attributes(self, "imported-virtual-node",
|
|
|
885
852
|
To import a mesh, again there are two static methods, `fromMeshArn` and `fromMeshName`.
|
|
886
853
|
|
|
887
854
|
```python
|
|
888
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
889
855
|
arn = "arn:aws:appmesh:us-east-1:123456789012:mesh/testMesh"
|
|
890
856
|
appmesh.Mesh.from_mesh_arn(self, "imported-mesh", arn)
|
|
891
857
|
```
|
|
892
858
|
|
|
893
859
|
```python
|
|
894
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
895
860
|
appmesh.Mesh.from_mesh_name(self, "imported-mesh", "abc")
|
|
896
861
|
```
|
|
897
862
|
|
|
@@ -901,7 +866,6 @@ appmesh.Mesh.from_mesh_name(self, "imported-mesh", "abc")
|
|
|
901
866
|
Envoy access to stream generated config from App Mesh.
|
|
902
867
|
|
|
903
868
|
```python
|
|
904
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
905
869
|
# mesh: appmesh.Mesh
|
|
906
870
|
|
|
907
871
|
gateway = appmesh.VirtualGateway(self, "testGateway", mesh=mesh)
|
|
@@ -918,7 +882,6 @@ gateway.grant_stream_aggregated_resources(envoy_user)
|
|
|
918
882
|
A shared mesh allows resources created by different accounts to communicate with each other in the same mesh:
|
|
919
883
|
|
|
920
884
|
```python
|
|
921
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
922
885
|
# This is the ARN for the mesh from different AWS IAM account ID.
|
|
923
886
|
# Ensure mesh is properly shared with your account. For more details, see: https://github.com/aws/aws-cdk/issues/15404
|
|
924
887
|
arn = "arn:aws:appmesh:us-east-1:123456789012:mesh/testMesh"
|
|
@@ -972,7 +935,6 @@ class AccessLog(
|
|
|
972
935
|
|
|
973
936
|
Example::
|
|
974
937
|
|
|
975
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
976
938
|
# mesh: appmesh.Mesh
|
|
977
939
|
vpc = ec2.Vpc(self, "vpc")
|
|
978
940
|
namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace",
|
|
@@ -986,9 +948,9 @@ class AccessLog(
|
|
|
986
948
|
port=8081,
|
|
987
949
|
health_check=appmesh.HealthCheck.http(
|
|
988
950
|
healthy_threshold=3,
|
|
989
|
-
interval=
|
|
951
|
+
interval=Duration.seconds(5), # minimum
|
|
990
952
|
path="/health-check-path",
|
|
991
|
-
timeout=
|
|
953
|
+
timeout=Duration.seconds(2), # minimum
|
|
992
954
|
unhealthy_threshold=2
|
|
993
955
|
)
|
|
994
956
|
)],
|
|
@@ -1162,7 +1124,6 @@ class Backend(
|
|
|
1162
1124
|
|
|
1163
1125
|
Example::
|
|
1164
1126
|
|
|
1165
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
1166
1127
|
# mesh: appmesh.Mesh
|
|
1167
1128
|
# router: appmesh.VirtualRouter
|
|
1168
1129
|
# service: cloudmap.Service
|
|
@@ -1175,13 +1136,13 @@ class Backend(
|
|
|
1175
1136
|
port=8080,
|
|
1176
1137
|
health_check=appmesh.HealthCheck.http(
|
|
1177
1138
|
healthy_threshold=3,
|
|
1178
|
-
interval=
|
|
1139
|
+
interval=Duration.seconds(5),
|
|
1179
1140
|
path="/ping",
|
|
1180
|
-
timeout=
|
|
1141
|
+
timeout=Duration.seconds(2),
|
|
1181
1142
|
unhealthy_threshold=2
|
|
1182
1143
|
),
|
|
1183
1144
|
timeout=appmesh.HttpTimeout(
|
|
1184
|
-
idle=
|
|
1145
|
+
idle=Duration.seconds(5)
|
|
1185
1146
|
)
|
|
1186
1147
|
)],
|
|
1187
1148
|
access_log=appmesh.AccessLog.from_file_path("/dev/stdout")
|
|
@@ -1361,7 +1322,6 @@ class BackendDefaults:
|
|
|
1361
1322
|
|
|
1362
1323
|
Example::
|
|
1363
1324
|
|
|
1364
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
1365
1325
|
# mesh: appmesh.Mesh
|
|
1366
1326
|
# service: cloudmap.Service
|
|
1367
1327
|
|
|
@@ -1373,13 +1333,13 @@ class BackendDefaults:
|
|
|
1373
1333
|
port=8080,
|
|
1374
1334
|
health_check=appmesh.HealthCheck.http(
|
|
1375
1335
|
healthy_threshold=3,
|
|
1376
|
-
interval=
|
|
1336
|
+
interval=Duration.seconds(5),
|
|
1377
1337
|
path="/ping",
|
|
1378
|
-
timeout=
|
|
1338
|
+
timeout=Duration.seconds(2),
|
|
1379
1339
|
unhealthy_threshold=2
|
|
1380
1340
|
),
|
|
1381
1341
|
timeout=appmesh.HttpTimeout(
|
|
1382
|
-
idle=
|
|
1342
|
+
idle=Duration.seconds(5)
|
|
1383
1343
|
)
|
|
1384
1344
|
)],
|
|
1385
1345
|
backend_defaults=appmesh.BackendDefaults(
|
|
@@ -18288,7 +18248,6 @@ class DnsResponseType(enum.Enum):
|
|
|
18288
18248
|
|
|
18289
18249
|
Example::
|
|
18290
18250
|
|
|
18291
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
18292
18251
|
# A Virtual Node with a gRPC listener with a connection pool set
|
|
18293
18252
|
# mesh: appmesh.Mesh
|
|
18294
18253
|
|
|
@@ -18424,7 +18383,6 @@ class GatewayRouteBaseProps:
|
|
|
18424
18383
|
|
|
18425
18384
|
Example::
|
|
18426
18385
|
|
|
18427
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
18428
18386
|
# gateway: appmesh.VirtualGateway
|
|
18429
18387
|
# virtual_service: appmesh.VirtualService
|
|
18430
18388
|
|
|
@@ -18488,7 +18446,6 @@ class GatewayRouteHostnameMatch(
|
|
|
18488
18446
|
|
|
18489
18447
|
Example::
|
|
18490
18448
|
|
|
18491
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
18492
18449
|
# gateway: appmesh.VirtualGateway
|
|
18493
18450
|
# virtual_service: appmesh.VirtualService
|
|
18494
18451
|
|
|
@@ -18719,7 +18676,6 @@ class GatewayRouteSpec(
|
|
|
18719
18676
|
|
|
18720
18677
|
Example::
|
|
18721
18678
|
|
|
18722
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
18723
18679
|
# gateway: appmesh.VirtualGateway
|
|
18724
18680
|
# virtual_service: appmesh.VirtualService
|
|
18725
18681
|
|
|
@@ -19136,7 +19092,6 @@ class GrpcConnectionPool:
|
|
|
19136
19092
|
|
|
19137
19093
|
Example::
|
|
19138
19094
|
|
|
19139
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
19140
19095
|
# A Virtual Node with a gRPC listener with a connection pool set
|
|
19141
19096
|
# mesh: appmesh.Mesh
|
|
19142
19097
|
|
|
@@ -19227,7 +19182,6 @@ class GrpcGatewayListenerOptions:
|
|
|
19227
19182
|
|
|
19228
19183
|
Example::
|
|
19229
19184
|
|
|
19230
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
19231
19185
|
# A Virtual Node with listener TLS from an ACM provided certificate
|
|
19232
19186
|
# cert: certificatemanager.Certificate
|
|
19233
19187
|
# mesh: appmesh.Mesh
|
|
@@ -19369,7 +19323,6 @@ class GrpcGatewayRouteMatch:
|
|
|
19369
19323
|
|
|
19370
19324
|
Example::
|
|
19371
19325
|
|
|
19372
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
19373
19326
|
# gateway: appmesh.VirtualGateway
|
|
19374
19327
|
# virtual_service: appmesh.VirtualService
|
|
19375
19328
|
|
|
@@ -19478,7 +19431,6 @@ class GrpcGatewayRouteSpecOptions(CommonGatewayRouteSpecOptions):
|
|
|
19478
19431
|
|
|
19479
19432
|
Example::
|
|
19480
19433
|
|
|
19481
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
19482
19434
|
# gateway: appmesh.VirtualGateway
|
|
19483
19435
|
# virtual_service: appmesh.VirtualService
|
|
19484
19436
|
|
|
@@ -19659,7 +19611,6 @@ class GrpcRetryEvent(enum.Enum):
|
|
|
19659
19611
|
|
|
19660
19612
|
Example::
|
|
19661
19613
|
|
|
19662
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
19663
19614
|
# router: appmesh.VirtualRouter
|
|
19664
19615
|
# node: appmesh.VirtualNode
|
|
19665
19616
|
|
|
@@ -19676,7 +19627,7 @@ class GrpcRetryEvent(enum.Enum):
|
|
|
19676
19627
|
grpc_retry_events=[appmesh.GrpcRetryEvent.CANCELLED, appmesh.GrpcRetryEvent.RESOURCE_EXHAUSTED, appmesh.GrpcRetryEvent.UNAVAILABLE
|
|
19677
19628
|
],
|
|
19678
19629
|
retry_attempts=5,
|
|
19679
|
-
retry_timeout=
|
|
19630
|
+
retry_timeout=Duration.seconds(1)
|
|
19680
19631
|
)
|
|
19681
19632
|
)
|
|
19682
19633
|
)
|
|
@@ -19738,23 +19689,22 @@ class GrpcRouteMatch:
|
|
|
19738
19689
|
|
|
19739
19690
|
Example::
|
|
19740
19691
|
|
|
19741
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
19742
19692
|
# router: appmesh.VirtualRouter
|
|
19743
19693
|
# node: appmesh.VirtualNode
|
|
19744
19694
|
|
|
19745
19695
|
|
|
19746
|
-
router.add_route("route-
|
|
19696
|
+
router.add_route("route-grpc-retry",
|
|
19747
19697
|
route_spec=appmesh.RouteSpec.grpc(
|
|
19748
|
-
weighted_targets=[appmesh.WeightedTarget(
|
|
19749
|
-
virtual_node=node
|
|
19750
|
-
)
|
|
19751
|
-
],
|
|
19698
|
+
weighted_targets=[appmesh.WeightedTarget(virtual_node=node)],
|
|
19752
19699
|
match=appmesh.GrpcRouteMatch(
|
|
19753
|
-
|
|
19754
|
-
|
|
19755
|
-
|
|
19756
|
-
|
|
19757
|
-
|
|
19700
|
+
# When method name is specified, service name must be also specified.
|
|
19701
|
+
method_name="methodname",
|
|
19702
|
+
service_name="servicename",
|
|
19703
|
+
metadata=[
|
|
19704
|
+
# All specified metadata must match for the route to match.
|
|
19705
|
+
appmesh.HeaderMatch.value_starts_with("Content-Type", "application/"),
|
|
19706
|
+
appmesh.HeaderMatch.value_does_not_start_with("Content-Type", "text/")
|
|
19707
|
+
]
|
|
19758
19708
|
)
|
|
19759
19709
|
)
|
|
19760
19710
|
)
|
|
@@ -19836,7 +19786,6 @@ class GrpcTimeout:
|
|
|
19836
19786
|
|
|
19837
19787
|
Example::
|
|
19838
19788
|
|
|
19839
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
19840
19789
|
# router: appmesh.VirtualRouter
|
|
19841
19790
|
# node: appmesh.VirtualNode
|
|
19842
19791
|
|
|
@@ -19851,8 +19800,8 @@ class GrpcTimeout:
|
|
|
19851
19800
|
service_name="my-service.default.svc.cluster.local"
|
|
19852
19801
|
),
|
|
19853
19802
|
timeout=appmesh.GrpcTimeout(
|
|
19854
|
-
idle=
|
|
19855
|
-
per_request=
|
|
19803
|
+
idle=Duration.seconds(2),
|
|
19804
|
+
per_request=Duration.seconds(1)
|
|
19856
19805
|
)
|
|
19857
19806
|
)
|
|
19858
19807
|
)
|
|
@@ -19935,7 +19884,6 @@ class GrpcVirtualNodeListenerOptions:
|
|
|
19935
19884
|
|
|
19936
19885
|
Example::
|
|
19937
19886
|
|
|
19938
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
19939
19887
|
# A Virtual Node with listener TLS from an ACM provided certificate
|
|
19940
19888
|
# cert: certificatemanager.Certificate
|
|
19941
19889
|
# mesh: appmesh.Mesh
|
|
@@ -20085,7 +20033,6 @@ class HeaderMatch(
|
|
|
20085
20033
|
|
|
20086
20034
|
Example::
|
|
20087
20035
|
|
|
20088
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
20089
20036
|
# router: appmesh.VirtualRouter
|
|
20090
20037
|
# node: appmesh.VirtualNode
|
|
20091
20038
|
|
|
@@ -20409,7 +20356,6 @@ class HealthCheck(
|
|
|
20409
20356
|
|
|
20410
20357
|
Example::
|
|
20411
20358
|
|
|
20412
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
20413
20359
|
# mesh: appmesh.Mesh
|
|
20414
20360
|
vpc = ec2.Vpc(self, "vpc")
|
|
20415
20361
|
namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace",
|
|
@@ -20423,9 +20369,9 @@ class HealthCheck(
|
|
|
20423
20369
|
port=8081,
|
|
20424
20370
|
health_check=appmesh.HealthCheck.http(
|
|
20425
20371
|
healthy_threshold=3,
|
|
20426
|
-
interval=
|
|
20372
|
+
interval=Duration.seconds(5), # minimum
|
|
20427
20373
|
path="/health-check-path",
|
|
20428
|
-
timeout=
|
|
20374
|
+
timeout=Duration.seconds(2), # minimum
|
|
20429
20375
|
unhealthy_threshold=2
|
|
20430
20376
|
)
|
|
20431
20377
|
)],
|
|
@@ -20826,7 +20772,6 @@ class Http2GatewayListenerOptions:
|
|
|
20826
20772
|
|
|
20827
20773
|
Example::
|
|
20828
20774
|
|
|
20829
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
20830
20775
|
# A Virtual Node with listener TLS from an ACM provided certificate
|
|
20831
20776
|
# cert: certificatemanager.Certificate
|
|
20832
20777
|
# mesh: appmesh.Mesh
|
|
@@ -21134,7 +21079,6 @@ class HttpConnectionPool:
|
|
|
21134
21079
|
|
|
21135
21080
|
Example::
|
|
21136
21081
|
|
|
21137
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
21138
21082
|
# A Virtual Node with a gRPC listener with a connection pool set
|
|
21139
21083
|
# mesh: appmesh.Mesh
|
|
21140
21084
|
|
|
@@ -21237,7 +21181,6 @@ class HttpGatewayListenerOptions:
|
|
|
21237
21181
|
|
|
21238
21182
|
Example::
|
|
21239
21183
|
|
|
21240
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
21241
21184
|
# mesh: appmesh.Mesh
|
|
21242
21185
|
|
|
21243
21186
|
certificate_authority_arn = "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012"
|
|
@@ -21247,7 +21190,7 @@ class HttpGatewayListenerOptions:
|
|
|
21247
21190
|
listeners=[appmesh.VirtualGatewayListener.http(
|
|
21248
21191
|
port=443,
|
|
21249
21192
|
health_check=appmesh.HealthCheck.http(
|
|
21250
|
-
interval=
|
|
21193
|
+
interval=Duration.seconds(10)
|
|
21251
21194
|
)
|
|
21252
21195
|
)],
|
|
21253
21196
|
backend_defaults=appmesh.BackendDefaults(
|
|
@@ -21368,7 +21311,6 @@ class HttpGatewayRouteMatch:
|
|
|
21368
21311
|
|
|
21369
21312
|
Example::
|
|
21370
21313
|
|
|
21371
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
21372
21314
|
# gateway: appmesh.VirtualGateway
|
|
21373
21315
|
# virtual_service: appmesh.VirtualService
|
|
21374
21316
|
|
|
@@ -21488,7 +21430,6 @@ class HttpGatewayRoutePathMatch(
|
|
|
21488
21430
|
|
|
21489
21431
|
Example::
|
|
21490
21432
|
|
|
21491
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
21492
21433
|
# gateway: appmesh.VirtualGateway
|
|
21493
21434
|
# virtual_service: appmesh.VirtualService
|
|
21494
21435
|
|
|
@@ -21747,7 +21688,6 @@ class HttpGatewayRouteSpecOptions(CommonGatewayRouteSpecOptions):
|
|
|
21747
21688
|
|
|
21748
21689
|
Example::
|
|
21749
21690
|
|
|
21750
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
21751
21691
|
# gateway: appmesh.VirtualGateway
|
|
21752
21692
|
# virtual_service: appmesh.VirtualService
|
|
21753
21693
|
|
|
@@ -21853,7 +21793,6 @@ class HttpHealthCheckOptions:
|
|
|
21853
21793
|
|
|
21854
21794
|
Example::
|
|
21855
21795
|
|
|
21856
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
21857
21796
|
# mesh: appmesh.Mesh
|
|
21858
21797
|
vpc = ec2.Vpc(self, "vpc")
|
|
21859
21798
|
namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace",
|
|
@@ -21867,9 +21806,9 @@ class HttpHealthCheckOptions:
|
|
|
21867
21806
|
port=8081,
|
|
21868
21807
|
health_check=appmesh.HealthCheck.http(
|
|
21869
21808
|
healthy_threshold=3,
|
|
21870
|
-
interval=
|
|
21809
|
+
interval=Duration.seconds(5), # minimum
|
|
21871
21810
|
path="/health-check-path",
|
|
21872
|
-
timeout=
|
|
21811
|
+
timeout=Duration.seconds(2), # minimum
|
|
21873
21812
|
unhealthy_threshold=2
|
|
21874
21813
|
)
|
|
21875
21814
|
)],
|
|
@@ -21960,7 +21899,6 @@ class HttpRetryEvent(enum.Enum):
|
|
|
21960
21899
|
|
|
21961
21900
|
Example::
|
|
21962
21901
|
|
|
21963
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
21964
21902
|
# router: appmesh.VirtualRouter
|
|
21965
21903
|
# node: appmesh.VirtualNode
|
|
21966
21904
|
|
|
@@ -21976,7 +21914,7 @@ class HttpRetryEvent(enum.Enum):
|
|
|
21976
21914
|
# Retry five times
|
|
21977
21915
|
retry_attempts=5,
|
|
21978
21916
|
# Use a 1 second timeout per retry
|
|
21979
|
-
retry_timeout=
|
|
21917
|
+
retry_timeout=Duration.seconds(1)
|
|
21980
21918
|
)
|
|
21981
21919
|
)
|
|
21982
21920
|
)
|
|
@@ -22022,7 +21960,6 @@ class HttpRetryPolicy:
|
|
|
22022
21960
|
|
|
22023
21961
|
Example::
|
|
22024
21962
|
|
|
22025
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
22026
21963
|
# router: appmesh.VirtualRouter
|
|
22027
21964
|
# node: appmesh.VirtualNode
|
|
22028
21965
|
|
|
@@ -22038,7 +21975,7 @@ class HttpRetryPolicy:
|
|
|
22038
21975
|
# Retry five times
|
|
22039
21976
|
retry_attempts=5,
|
|
22040
21977
|
# Use a 1 second timeout per retry
|
|
22041
|
-
retry_timeout=
|
|
21978
|
+
retry_timeout=Duration.seconds(1)
|
|
22042
21979
|
)
|
|
22043
21980
|
)
|
|
22044
21981
|
)
|
|
@@ -22143,7 +22080,6 @@ class HttpRouteMatch:
|
|
|
22143
22080
|
|
|
22144
22081
|
Example::
|
|
22145
22082
|
|
|
22146
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
22147
22083
|
# router: appmesh.VirtualRouter
|
|
22148
22084
|
# node: appmesh.VirtualNode
|
|
22149
22085
|
|
|
@@ -22255,7 +22191,6 @@ class HttpRouteMethod(enum.Enum):
|
|
|
22255
22191
|
|
|
22256
22192
|
Example::
|
|
22257
22193
|
|
|
22258
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
22259
22194
|
# router: appmesh.VirtualRouter
|
|
22260
22195
|
# node: appmesh.VirtualNode
|
|
22261
22196
|
|
|
@@ -22314,7 +22249,6 @@ class HttpRoutePathMatch(
|
|
|
22314
22249
|
|
|
22315
22250
|
Example::
|
|
22316
22251
|
|
|
22317
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
22318
22252
|
# router: appmesh.VirtualRouter
|
|
22319
22253
|
# node: appmesh.VirtualNode
|
|
22320
22254
|
|
|
@@ -22489,7 +22423,6 @@ class HttpRouteProtocol(enum.Enum):
|
|
|
22489
22423
|
|
|
22490
22424
|
Example::
|
|
22491
22425
|
|
|
22492
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
22493
22426
|
# router: appmesh.VirtualRouter
|
|
22494
22427
|
# node: appmesh.VirtualNode
|
|
22495
22428
|
|
|
@@ -22545,7 +22478,6 @@ class HttpTimeout:
|
|
|
22545
22478
|
|
|
22546
22479
|
Example::
|
|
22547
22480
|
|
|
22548
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
22549
22481
|
# mesh: appmesh.Mesh
|
|
22550
22482
|
# service: cloudmap.Service
|
|
22551
22483
|
|
|
@@ -22557,13 +22489,13 @@ class HttpTimeout:
|
|
|
22557
22489
|
port=8080,
|
|
22558
22490
|
health_check=appmesh.HealthCheck.http(
|
|
22559
22491
|
healthy_threshold=3,
|
|
22560
|
-
interval=
|
|
22492
|
+
interval=Duration.seconds(5),
|
|
22561
22493
|
path="/ping",
|
|
22562
|
-
timeout=
|
|
22494
|
+
timeout=Duration.seconds(2),
|
|
22563
22495
|
unhealthy_threshold=2
|
|
22564
22496
|
),
|
|
22565
22497
|
timeout=appmesh.HttpTimeout(
|
|
22566
|
-
idle=
|
|
22498
|
+
idle=Duration.seconds(5)
|
|
22567
22499
|
)
|
|
22568
22500
|
)],
|
|
22569
22501
|
backend_defaults=appmesh.BackendDefaults(
|
|
@@ -22656,7 +22588,6 @@ class HttpVirtualNodeListenerOptions:
|
|
|
22656
22588
|
|
|
22657
22589
|
Example::
|
|
22658
22590
|
|
|
22659
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
22660
22591
|
# mesh: appmesh.Mesh
|
|
22661
22592
|
vpc = ec2.Vpc(self, "vpc")
|
|
22662
22593
|
namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace",
|
|
@@ -22670,9 +22601,9 @@ class HttpVirtualNodeListenerOptions:
|
|
|
22670
22601
|
port=8081,
|
|
22671
22602
|
health_check=appmesh.HealthCheck.http(
|
|
22672
22603
|
healthy_threshold=3,
|
|
22673
|
-
interval=
|
|
22604
|
+
interval=Duration.seconds(5), # minimum
|
|
22674
22605
|
path="/health-check-path",
|
|
22675
|
-
timeout=
|
|
22606
|
+
timeout=Duration.seconds(2), # minimum
|
|
22676
22607
|
unhealthy_threshold=2
|
|
22677
22608
|
)
|
|
22678
22609
|
)],
|
|
@@ -23523,7 +23454,6 @@ class IpPreference(enum.Enum):
|
|
|
23523
23454
|
|
|
23524
23455
|
Example::
|
|
23525
23456
|
|
|
23526
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
23527
23457
|
mesh = appmesh.Mesh(self, "AppMesh",
|
|
23528
23458
|
mesh_name="myAwsMesh",
|
|
23529
23459
|
service_discovery=appmesh.MeshServiceDiscovery(
|
|
@@ -23581,7 +23511,6 @@ class ListenerTlsOptions:
|
|
|
23581
23511
|
|
|
23582
23512
|
Example::
|
|
23583
23513
|
|
|
23584
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
23585
23514
|
# A Virtual Node with listener TLS from an ACM provided certificate
|
|
23586
23515
|
# cert: certificatemanager.Certificate
|
|
23587
23516
|
# mesh: appmesh.Mesh
|
|
@@ -23689,7 +23618,6 @@ class Mesh(
|
|
|
23689
23618
|
|
|
23690
23619
|
Example::
|
|
23691
23620
|
|
|
23692
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
23693
23621
|
# This is the ARN for the mesh from different AWS IAM account ID.
|
|
23694
23622
|
# Ensure mesh is properly shared with your account. For more details, see: https://github.com/aws/aws-cdk/issues/15404
|
|
23695
23623
|
arn = "arn:aws:appmesh:us-east-1:123456789012:mesh/testMesh"
|
|
@@ -23883,7 +23811,6 @@ class MeshFilterType(enum.Enum):
|
|
|
23883
23811
|
|
|
23884
23812
|
Example::
|
|
23885
23813
|
|
|
23886
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
23887
23814
|
mesh = appmesh.Mesh(self, "AppMesh",
|
|
23888
23815
|
mesh_name="myAwsMesh",
|
|
23889
23816
|
egress_filter=appmesh.MeshFilterType.ALLOW_ALL
|
|
@@ -23923,7 +23850,6 @@ class MeshProps:
|
|
|
23923
23850
|
|
|
23924
23851
|
Example::
|
|
23925
23852
|
|
|
23926
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
23927
23853
|
# infra_stack: cdk.Stack
|
|
23928
23854
|
# app_stack: cdk.Stack
|
|
23929
23855
|
|
|
@@ -24009,7 +23935,6 @@ class MeshServiceDiscovery:
|
|
|
24009
23935
|
|
|
24010
23936
|
Example::
|
|
24011
23937
|
|
|
24012
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
24013
23938
|
mesh = appmesh.Mesh(self, "AppMesh",
|
|
24014
23939
|
mesh_name="myAwsMesh",
|
|
24015
23940
|
service_discovery=appmesh.MeshServiceDiscovery(
|
|
@@ -24076,7 +24001,6 @@ class MutualTlsValidation:
|
|
|
24076
24001
|
|
|
24077
24002
|
Example::
|
|
24078
24003
|
|
|
24079
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
24080
24004
|
# mesh: appmesh.Mesh
|
|
24081
24005
|
|
|
24082
24006
|
|
|
@@ -24190,7 +24114,6 @@ class OutlierDetection:
|
|
|
24190
24114
|
|
|
24191
24115
|
Example::
|
|
24192
24116
|
|
|
24193
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
24194
24117
|
# mesh: appmesh.Mesh
|
|
24195
24118
|
# Cloud Map service discovery is currently required for host ejection by outlier detection
|
|
24196
24119
|
vpc = ec2.Vpc(self, "vpc")
|
|
@@ -24203,8 +24126,8 @@ class OutlierDetection:
|
|
|
24203
24126
|
service_discovery=appmesh.ServiceDiscovery.cloud_map(service),
|
|
24204
24127
|
listeners=[appmesh.VirtualNodeListener.http(
|
|
24205
24128
|
outlier_detection=appmesh.OutlierDetection(
|
|
24206
|
-
base_ejection_duration=
|
|
24207
|
-
interval=
|
|
24129
|
+
base_ejection_duration=Duration.seconds(10),
|
|
24130
|
+
interval=Duration.seconds(30),
|
|
24208
24131
|
max_ejection_percent=50,
|
|
24209
24132
|
max_server_errors=5
|
|
24210
24133
|
)
|
|
@@ -24278,7 +24201,6 @@ class QueryParameterMatch(
|
|
|
24278
24201
|
|
|
24279
24202
|
Example::
|
|
24280
24203
|
|
|
24281
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
24282
24204
|
# router: appmesh.VirtualRouter
|
|
24283
24205
|
# node: appmesh.VirtualNode
|
|
24284
24206
|
|
|
@@ -24637,7 +24559,6 @@ class RouteBaseProps:
|
|
|
24637
24559
|
|
|
24638
24560
|
Example::
|
|
24639
24561
|
|
|
24640
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
24641
24562
|
# router: appmesh.VirtualRouter
|
|
24642
24563
|
# node: appmesh.VirtualNode
|
|
24643
24564
|
|
|
@@ -24653,7 +24574,7 @@ class RouteBaseProps:
|
|
|
24653
24574
|
# Retry five times
|
|
24654
24575
|
retry_attempts=5,
|
|
24655
24576
|
# Use a 1 second timeout per retry
|
|
24656
|
-
retry_timeout=
|
|
24577
|
+
retry_timeout=Duration.seconds(1)
|
|
24657
24578
|
)
|
|
24658
24579
|
)
|
|
24659
24580
|
)
|
|
@@ -24809,7 +24730,6 @@ class RouteSpec(
|
|
|
24809
24730
|
|
|
24810
24731
|
Example::
|
|
24811
24732
|
|
|
24812
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
24813
24733
|
# router: appmesh.VirtualRouter
|
|
24814
24734
|
# node: appmesh.VirtualNode
|
|
24815
24735
|
|
|
@@ -24825,7 +24745,7 @@ class RouteSpec(
|
|
|
24825
24745
|
# Retry five times
|
|
24826
24746
|
retry_attempts=5,
|
|
24827
24747
|
# Use a 1 second timeout per retry
|
|
24828
|
-
retry_timeout=
|
|
24748
|
+
retry_timeout=Duration.seconds(1)
|
|
24829
24749
|
)
|
|
24830
24750
|
)
|
|
24831
24751
|
)
|
|
@@ -25380,7 +25300,6 @@ class ServiceDiscovery(
|
|
|
25380
25300
|
|
|
25381
25301
|
Example::
|
|
25382
25302
|
|
|
25383
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
25384
25303
|
# mesh: appmesh.Mesh
|
|
25385
25304
|
vpc = ec2.Vpc(self, "vpc")
|
|
25386
25305
|
namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace",
|
|
@@ -25394,9 +25313,9 @@ class ServiceDiscovery(
|
|
|
25394
25313
|
port=8081,
|
|
25395
25314
|
health_check=appmesh.HealthCheck.http(
|
|
25396
25315
|
healthy_threshold=3,
|
|
25397
|
-
interval=
|
|
25316
|
+
interval=Duration.seconds(5), # minimum
|
|
25398
25317
|
path="/health-check-path",
|
|
25399
|
-
timeout=
|
|
25318
|
+
timeout=Duration.seconds(2), # minimum
|
|
25400
25319
|
unhealthy_threshold=2
|
|
25401
25320
|
)
|
|
25402
25321
|
)],
|
|
@@ -25577,7 +25496,6 @@ class SubjectAlternativeNames(
|
|
|
25577
25496
|
|
|
25578
25497
|
Example::
|
|
25579
25498
|
|
|
25580
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
25581
25499
|
# mesh: appmesh.Mesh
|
|
25582
25500
|
|
|
25583
25501
|
|
|
@@ -25889,7 +25807,6 @@ class TcpRetryEvent(enum.Enum):
|
|
|
25889
25807
|
|
|
25890
25808
|
Example::
|
|
25891
25809
|
|
|
25892
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
25893
25810
|
# router: appmesh.VirtualRouter
|
|
25894
25811
|
# node: appmesh.VirtualNode
|
|
25895
25812
|
|
|
@@ -25905,7 +25822,7 @@ class TcpRetryEvent(enum.Enum):
|
|
|
25905
25822
|
# Retry five times
|
|
25906
25823
|
retry_attempts=5,
|
|
25907
25824
|
# Use a 1 second timeout per retry
|
|
25908
|
-
retry_timeout=
|
|
25825
|
+
retry_timeout=Duration.seconds(1)
|
|
25909
25826
|
)
|
|
25910
25827
|
)
|
|
25911
25828
|
)
|
|
@@ -26254,7 +26171,6 @@ class TlsCertificate(
|
|
|
26254
26171
|
|
|
26255
26172
|
Example::
|
|
26256
26173
|
|
|
26257
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
26258
26174
|
# A Virtual Node with listener TLS from an ACM provided certificate
|
|
26259
26175
|
# cert: certificatemanager.Certificate
|
|
26260
26176
|
# mesh: appmesh.Mesh
|
|
@@ -26466,7 +26382,6 @@ class TlsClientPolicy:
|
|
|
26466
26382
|
|
|
26467
26383
|
Example::
|
|
26468
26384
|
|
|
26469
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
26470
26385
|
# mesh: appmesh.Mesh
|
|
26471
26386
|
# service: cloudmap.Service
|
|
26472
26387
|
|
|
@@ -26478,13 +26393,13 @@ class TlsClientPolicy:
|
|
|
26478
26393
|
port=8080,
|
|
26479
26394
|
health_check=appmesh.HealthCheck.http(
|
|
26480
26395
|
healthy_threshold=3,
|
|
26481
|
-
interval=
|
|
26396
|
+
interval=Duration.seconds(5),
|
|
26482
26397
|
path="/ping",
|
|
26483
|
-
timeout=
|
|
26398
|
+
timeout=Duration.seconds(2),
|
|
26484
26399
|
unhealthy_threshold=2
|
|
26485
26400
|
),
|
|
26486
26401
|
timeout=appmesh.HttpTimeout(
|
|
26487
|
-
idle=
|
|
26402
|
+
idle=Duration.seconds(5)
|
|
26488
26403
|
)
|
|
26489
26404
|
)],
|
|
26490
26405
|
backend_defaults=appmesh.BackendDefaults(
|
|
@@ -26575,7 +26490,6 @@ class TlsMode(enum.Enum):
|
|
|
26575
26490
|
|
|
26576
26491
|
Example::
|
|
26577
26492
|
|
|
26578
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
26579
26493
|
# A Virtual Node with listener TLS from an ACM provided certificate
|
|
26580
26494
|
# cert: certificatemanager.Certificate
|
|
26581
26495
|
# mesh: appmesh.Mesh
|
|
@@ -26652,7 +26566,6 @@ class TlsValidation:
|
|
|
26652
26566
|
|
|
26653
26567
|
Example::
|
|
26654
26568
|
|
|
26655
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
26656
26569
|
# mesh: appmesh.Mesh
|
|
26657
26570
|
# service: cloudmap.Service
|
|
26658
26571
|
|
|
@@ -26664,13 +26577,13 @@ class TlsValidation:
|
|
|
26664
26577
|
port=8080,
|
|
26665
26578
|
health_check=appmesh.HealthCheck.http(
|
|
26666
26579
|
healthy_threshold=3,
|
|
26667
|
-
interval=
|
|
26580
|
+
interval=Duration.seconds(5),
|
|
26668
26581
|
path="/ping",
|
|
26669
|
-
timeout=
|
|
26582
|
+
timeout=Duration.seconds(2),
|
|
26670
26583
|
unhealthy_threshold=2
|
|
26671
26584
|
),
|
|
26672
26585
|
timeout=appmesh.HttpTimeout(
|
|
26673
|
-
idle=
|
|
26586
|
+
idle=Duration.seconds(5)
|
|
26674
26587
|
)
|
|
26675
26588
|
)],
|
|
26676
26589
|
backend_defaults=appmesh.BackendDefaults(
|
|
@@ -26740,7 +26653,6 @@ class TlsValidationTrust(
|
|
|
26740
26653
|
|
|
26741
26654
|
Example::
|
|
26742
26655
|
|
|
26743
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
26744
26656
|
# mesh: appmesh.Mesh
|
|
26745
26657
|
# service: cloudmap.Service
|
|
26746
26658
|
|
|
@@ -26752,13 +26664,13 @@ class TlsValidationTrust(
|
|
|
26752
26664
|
port=8080,
|
|
26753
26665
|
health_check=appmesh.HealthCheck.http(
|
|
26754
26666
|
healthy_threshold=3,
|
|
26755
|
-
interval=
|
|
26667
|
+
interval=Duration.seconds(5),
|
|
26756
26668
|
path="/ping",
|
|
26757
|
-
timeout=
|
|
26669
|
+
timeout=Duration.seconds(2),
|
|
26758
26670
|
unhealthy_threshold=2
|
|
26759
26671
|
),
|
|
26760
26672
|
timeout=appmesh.HttpTimeout(
|
|
26761
|
-
idle=
|
|
26673
|
+
idle=Duration.seconds(5)
|
|
26762
26674
|
)
|
|
26763
26675
|
)],
|
|
26764
26676
|
backend_defaults=appmesh.BackendDefaults(
|
|
@@ -26923,7 +26835,6 @@ class VirtualGateway(
|
|
|
26923
26835
|
|
|
26924
26836
|
Example::
|
|
26925
26837
|
|
|
26926
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
26927
26838
|
# A Virtual Node with a gRPC listener with a connection pool set
|
|
26928
26839
|
# mesh: appmesh.Mesh
|
|
26929
26840
|
|
|
@@ -27191,7 +27102,6 @@ class VirtualGatewayBaseProps:
|
|
|
27191
27102
|
|
|
27192
27103
|
Example::
|
|
27193
27104
|
|
|
27194
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
27195
27105
|
# mesh: appmesh.Mesh
|
|
27196
27106
|
|
|
27197
27107
|
|
|
@@ -27201,7 +27111,7 @@ class VirtualGatewayBaseProps:
|
|
|
27201
27111
|
listeners=[appmesh.VirtualGatewayListener.http(
|
|
27202
27112
|
port=443,
|
|
27203
27113
|
health_check=appmesh.HealthCheck.http(
|
|
27204
|
-
interval=
|
|
27114
|
+
interval=Duration.seconds(10)
|
|
27205
27115
|
)
|
|
27206
27116
|
)]
|
|
27207
27117
|
)
|
|
@@ -27284,7 +27194,6 @@ class VirtualGatewayListener(
|
|
|
27284
27194
|
|
|
27285
27195
|
Example::
|
|
27286
27196
|
|
|
27287
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
27288
27197
|
# mesh: appmesh.Mesh
|
|
27289
27198
|
|
|
27290
27199
|
certificate_authority_arn = "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012"
|
|
@@ -27294,7 +27203,7 @@ class VirtualGatewayListener(
|
|
|
27294
27203
|
listeners=[appmesh.VirtualGatewayListener.http(
|
|
27295
27204
|
port=443,
|
|
27296
27205
|
health_check=appmesh.HealthCheck.http(
|
|
27297
|
-
interval=
|
|
27206
|
+
interval=Duration.seconds(10)
|
|
27298
27207
|
)
|
|
27299
27208
|
)],
|
|
27300
27209
|
backend_defaults=appmesh.BackendDefaults(
|
|
@@ -27585,7 +27494,6 @@ class VirtualGatewayProps(VirtualGatewayBaseProps):
|
|
|
27585
27494
|
|
|
27586
27495
|
Example::
|
|
27587
27496
|
|
|
27588
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
27589
27497
|
# mesh: appmesh.Mesh
|
|
27590
27498
|
|
|
27591
27499
|
certificate_authority_arn = "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012"
|
|
@@ -27595,7 +27503,7 @@ class VirtualGatewayProps(VirtualGatewayBaseProps):
|
|
|
27595
27503
|
listeners=[appmesh.VirtualGatewayListener.http(
|
|
27596
27504
|
port=443,
|
|
27597
27505
|
health_check=appmesh.HealthCheck.http(
|
|
27598
|
-
interval=
|
|
27506
|
+
interval=Duration.seconds(10)
|
|
27599
27507
|
)
|
|
27600
27508
|
)],
|
|
27601
27509
|
backend_defaults=appmesh.BackendDefaults(
|
|
@@ -27707,7 +27615,6 @@ class VirtualNode(
|
|
|
27707
27615
|
|
|
27708
27616
|
Example::
|
|
27709
27617
|
|
|
27710
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
27711
27618
|
# mesh: appmesh.Mesh
|
|
27712
27619
|
# Cloud Map service discovery is currently required for host ejection by outlier detection
|
|
27713
27620
|
vpc = ec2.Vpc(self, "vpc")
|
|
@@ -27720,8 +27627,8 @@ class VirtualNode(
|
|
|
27720
27627
|
service_discovery=appmesh.ServiceDiscovery.cloud_map(service),
|
|
27721
27628
|
listeners=[appmesh.VirtualNodeListener.http(
|
|
27722
27629
|
outlier_detection=appmesh.OutlierDetection(
|
|
27723
|
-
base_ejection_duration=
|
|
27724
|
-
interval=
|
|
27630
|
+
base_ejection_duration=Duration.seconds(10),
|
|
27631
|
+
interval=Duration.seconds(30),
|
|
27725
27632
|
max_ejection_percent=50,
|
|
27726
27633
|
max_server_errors=5
|
|
27727
27634
|
)
|
|
@@ -27893,7 +27800,6 @@ class VirtualNodeAttributes:
|
|
|
27893
27800
|
|
|
27894
27801
|
Example::
|
|
27895
27802
|
|
|
27896
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
27897
27803
|
virtual_node_name = "my-virtual-node"
|
|
27898
27804
|
appmesh.VirtualNode.from_virtual_node_attributes(self, "imported-virtual-node",
|
|
27899
27805
|
mesh=appmesh.Mesh.from_mesh_name(self, "Mesh", "testMesh"),
|
|
@@ -27971,7 +27877,6 @@ class VirtualNodeBaseProps:
|
|
|
27971
27877
|
|
|
27972
27878
|
Example::
|
|
27973
27879
|
|
|
27974
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
27975
27880
|
# mesh: appmesh.Mesh
|
|
27976
27881
|
vpc = ec2.Vpc(self, "vpc")
|
|
27977
27882
|
namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace",
|
|
@@ -27985,9 +27890,9 @@ class VirtualNodeBaseProps:
|
|
|
27985
27890
|
port=8081,
|
|
27986
27891
|
health_check=appmesh.HealthCheck.http(
|
|
27987
27892
|
healthy_threshold=3,
|
|
27988
|
-
interval=
|
|
27893
|
+
interval=Duration.seconds(5), # minimum
|
|
27989
27894
|
path="/health-check-path",
|
|
27990
|
-
timeout=
|
|
27895
|
+
timeout=Duration.seconds(2), # minimum
|
|
27991
27896
|
unhealthy_threshold=2
|
|
27992
27897
|
)
|
|
27993
27898
|
)],
|
|
@@ -28094,7 +27999,6 @@ class VirtualNodeListener(
|
|
|
28094
27999
|
|
|
28095
28000
|
Example::
|
|
28096
28001
|
|
|
28097
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
28098
28002
|
# mesh: appmesh.Mesh
|
|
28099
28003
|
vpc = ec2.Vpc(self, "vpc")
|
|
28100
28004
|
namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace",
|
|
@@ -28108,9 +28012,9 @@ class VirtualNodeListener(
|
|
|
28108
28012
|
port=8081,
|
|
28109
28013
|
health_check=appmesh.HealthCheck.http(
|
|
28110
28014
|
healthy_threshold=3,
|
|
28111
|
-
interval=
|
|
28015
|
+
interval=Duration.seconds(5), # minimum
|
|
28112
28016
|
path="/health-check-path",
|
|
28113
|
-
timeout=
|
|
28017
|
+
timeout=Duration.seconds(2), # minimum
|
|
28114
28018
|
unhealthy_threshold=2
|
|
28115
28019
|
)
|
|
28116
28020
|
)],
|
|
@@ -28494,7 +28398,6 @@ class VirtualNodeProps(VirtualNodeBaseProps):
|
|
|
28494
28398
|
|
|
28495
28399
|
Example::
|
|
28496
28400
|
|
|
28497
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
28498
28401
|
# A Virtual Node with a gRPC listener with a connection pool set
|
|
28499
28402
|
# mesh: appmesh.Mesh
|
|
28500
28403
|
|
|
@@ -28637,7 +28540,6 @@ class VirtualRouter(
|
|
|
28637
28540
|
|
|
28638
28541
|
Example::
|
|
28639
28542
|
|
|
28640
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
28641
28543
|
# mesh: appmesh.Mesh
|
|
28642
28544
|
|
|
28643
28545
|
router = mesh.add_virtual_router("router",
|
|
@@ -28845,7 +28747,6 @@ class VirtualRouterBaseProps:
|
|
|
28845
28747
|
|
|
28846
28748
|
Example::
|
|
28847
28749
|
|
|
28848
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
28849
28750
|
# mesh: appmesh.Mesh
|
|
28850
28751
|
|
|
28851
28752
|
router = mesh.add_virtual_router("router",
|
|
@@ -28902,7 +28803,6 @@ class VirtualRouterListener(
|
|
|
28902
28803
|
|
|
28903
28804
|
Example::
|
|
28904
28805
|
|
|
28905
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
28906
28806
|
# mesh: appmesh.Mesh
|
|
28907
28807
|
|
|
28908
28808
|
router = mesh.add_virtual_router("router",
|
|
@@ -29089,7 +28989,6 @@ class VirtualRouterProps(VirtualRouterBaseProps):
|
|
|
29089
28989
|
|
|
29090
28990
|
Example::
|
|
29091
28991
|
|
|
29092
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
29093
28992
|
# infra_stack: cdk.Stack
|
|
29094
28993
|
# app_stack: cdk.Stack
|
|
29095
28994
|
|
|
@@ -29171,7 +29070,6 @@ class VirtualService(
|
|
|
29171
29070
|
|
|
29172
29071
|
Example::
|
|
29173
29072
|
|
|
29174
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
29175
29073
|
# mesh: appmesh.Mesh
|
|
29176
29074
|
|
|
29177
29075
|
|
|
@@ -29439,7 +29337,6 @@ class VirtualServiceProps:
|
|
|
29439
29337
|
|
|
29440
29338
|
Example::
|
|
29441
29339
|
|
|
29442
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
29443
29340
|
# mesh: appmesh.Mesh
|
|
29444
29341
|
|
|
29445
29342
|
|
|
@@ -29508,7 +29405,6 @@ class VirtualServiceProvider(
|
|
|
29508
29405
|
|
|
29509
29406
|
Example::
|
|
29510
29407
|
|
|
29511
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
29512
29408
|
# mesh: appmesh.Mesh
|
|
29513
29409
|
|
|
29514
29410
|
|
|
@@ -29934,7 +29830,6 @@ class GrpcRetryPolicy(HttpRetryPolicy):
|
|
|
29934
29830
|
|
|
29935
29831
|
Example::
|
|
29936
29832
|
|
|
29937
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
29938
29833
|
# router: appmesh.VirtualRouter
|
|
29939
29834
|
# node: appmesh.VirtualNode
|
|
29940
29835
|
|
|
@@ -29951,7 +29846,7 @@ class GrpcRetryPolicy(HttpRetryPolicy):
|
|
|
29951
29846
|
grpc_retry_events=[appmesh.GrpcRetryEvent.CANCELLED, appmesh.GrpcRetryEvent.RESOURCE_EXHAUSTED, appmesh.GrpcRetryEvent.UNAVAILABLE
|
|
29952
29847
|
],
|
|
29953
29848
|
retry_attempts=5,
|
|
29954
|
-
retry_timeout=
|
|
29849
|
+
retry_timeout=Duration.seconds(1)
|
|
29955
29850
|
)
|
|
29956
29851
|
)
|
|
29957
29852
|
)
|
|
@@ -30071,23 +29966,22 @@ class GrpcRouteSpecOptions(RouteSpecOptionsBase):
|
|
|
30071
29966
|
|
|
30072
29967
|
Example::
|
|
30073
29968
|
|
|
30074
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
30075
29969
|
# router: appmesh.VirtualRouter
|
|
30076
29970
|
# node: appmesh.VirtualNode
|
|
30077
29971
|
|
|
30078
29972
|
|
|
30079
|
-
router.add_route("route-
|
|
29973
|
+
router.add_route("route-grpc-retry",
|
|
30080
29974
|
route_spec=appmesh.RouteSpec.grpc(
|
|
30081
|
-
weighted_targets=[appmesh.WeightedTarget(
|
|
30082
|
-
virtual_node=node
|
|
30083
|
-
)
|
|
30084
|
-
],
|
|
29975
|
+
weighted_targets=[appmesh.WeightedTarget(virtual_node=node)],
|
|
30085
29976
|
match=appmesh.GrpcRouteMatch(
|
|
30086
|
-
|
|
30087
|
-
|
|
30088
|
-
|
|
30089
|
-
|
|
30090
|
-
|
|
29977
|
+
# When method name is specified, service name must be also specified.
|
|
29978
|
+
method_name="methodname",
|
|
29979
|
+
service_name="servicename",
|
|
29980
|
+
metadata=[
|
|
29981
|
+
# All specified metadata must match for the route to match.
|
|
29982
|
+
appmesh.HeaderMatch.value_starts_with("Content-Type", "application/"),
|
|
29983
|
+
appmesh.HeaderMatch.value_does_not_start_with("Content-Type", "text/")
|
|
29984
|
+
]
|
|
30091
29985
|
)
|
|
30092
29986
|
)
|
|
30093
29987
|
)
|
|
@@ -30205,7 +30099,6 @@ class HttpRouteSpecOptions(RouteSpecOptionsBase):
|
|
|
30205
30099
|
|
|
30206
30100
|
Example::
|
|
30207
30101
|
|
|
30208
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
30209
30102
|
# router: appmesh.VirtualRouter
|
|
30210
30103
|
# node: appmesh.VirtualNode
|
|
30211
30104
|
|
|
@@ -30221,7 +30114,7 @@ class HttpRouteSpecOptions(RouteSpecOptionsBase):
|
|
|
30221
30114
|
# Retry five times
|
|
30222
30115
|
retry_attempts=5,
|
|
30223
30116
|
# Use a 1 second timeout per retry
|
|
30224
|
-
retry_timeout=
|
|
30117
|
+
retry_timeout=Duration.seconds(1)
|
|
30225
30118
|
)
|
|
30226
30119
|
)
|
|
30227
30120
|
)
|
|
@@ -30320,7 +30213,6 @@ class MutualTlsCertificate(
|
|
|
30320
30213
|
|
|
30321
30214
|
Example::
|
|
30322
30215
|
|
|
30323
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
30324
30216
|
# mesh: appmesh.Mesh
|
|
30325
30217
|
|
|
30326
30218
|
|
|
@@ -30390,7 +30282,6 @@ class MutualTlsValidationTrust(
|
|
|
30390
30282
|
|
|
30391
30283
|
Example::
|
|
30392
30284
|
|
|
30393
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
30394
30285
|
# mesh: appmesh.Mesh
|
|
30395
30286
|
|
|
30396
30287
|
|