aws-cdk-lib 2.114.0__py3-none-any.whl → 2.115.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 +7 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.114.0.jsii.tgz → aws-cdk-lib@2.115.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +6 -0
- aws_cdk/aws_apigatewayv2/__init__.py +223 -574
- aws_cdk/aws_autoscaling/__init__.py +99 -86
- aws_cdk/aws_bedrock/__init__.py +355 -0
- aws_cdk/aws_billingconductor/__init__.py +41 -0
- aws_cdk/aws_cleanrooms/__init__.py +46 -20
- aws_cdk/aws_cloudformation/__init__.py +5 -1
- aws_cdk/aws_cloudtrail/__init__.py +89 -0
- aws_cdk/aws_codedeploy/__init__.py +233 -1
- aws_cdk/aws_connect/__init__.py +49 -2
- aws_cdk/aws_dlm/__init__.py +8 -11
- aws_cdk/aws_dms/__init__.py +3861 -1643
- aws_cdk/aws_ec2/__init__.py +91 -47
- aws_cdk/aws_ecs/__init__.py +18 -0
- aws_cdk/aws_efs/__init__.py +1 -1
- aws_cdk/aws_eks/__init__.py +26 -13
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +110 -54
- aws_cdk/aws_emr/__init__.py +287 -18
- aws_cdk/aws_eventschemas/__init__.py +1 -1
- aws_cdk/aws_fis/__init__.py +466 -34
- aws_cdk/aws_iam/__init__.py +47 -35
- aws_cdk/aws_internetmonitor/__init__.py +10 -12
- aws_cdk/aws_lightsail/__init__.py +4 -2
- aws_cdk/aws_logs/__init__.py +5 -4
- aws_cdk/aws_opensearchservice/__init__.py +47 -0
- aws_cdk/aws_osis/__init__.py +272 -32
- aws_cdk/aws_rds/__init__.py +205 -87
- aws_cdk/aws_resiliencehub/__init__.py +9 -14
- aws_cdk/aws_rolesanywhere/__init__.py +41 -53
- aws_cdk/aws_route53/__init__.py +3 -3
- aws_cdk/aws_route53_targets/__init__.py +2 -2
- aws_cdk/aws_s3/__init__.py +2 -6
- aws_cdk/aws_s3express/__init__.py +3 -3
- aws_cdk/aws_sagemaker/__init__.py +82 -11
- aws_cdk/aws_sns/__init__.py +181 -0
- aws_cdk/aws_stepfunctions/__init__.py +16 -8
- aws_cdk/aws_stepfunctions_tasks/__init__.py +975 -139
- aws_cdk/aws_workspacesthinclient/__init__.py +44 -35
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/RECORD +47 -46
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.114.0.dist-info → aws_cdk_lib-2.115.0.dist-info}/top_level.txt +0 -0
|
@@ -1987,18 +1987,20 @@ class BaseApplicationListenerProps:
|
|
|
1987
1987
|
|
|
1988
1988
|
Example::
|
|
1989
1989
|
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
#
|
|
1990
|
+
# cluster: ecs.Cluster
|
|
1991
|
+
# task_definition: ecs.TaskDefinition
|
|
1992
|
+
# vpc: ec2.Vpc
|
|
1993
1993
|
|
|
1994
|
-
|
|
1995
|
-
listener.add_targets("target",
|
|
1996
|
-
port=80
|
|
1997
|
-
)
|
|
1994
|
+
service = ecs.FargateService(self, "Service", cluster=cluster, task_definition=task_definition)
|
|
1998
1995
|
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1996
|
+
lb = elbv2.ApplicationLoadBalancer(self, "LB", vpc=vpc, internet_facing=True)
|
|
1997
|
+
listener = lb.add_listener("Listener", port=80)
|
|
1998
|
+
service.register_load_balancer_targets(
|
|
1999
|
+
container_name="web",
|
|
2000
|
+
container_port=80,
|
|
2001
|
+
new_target_group_id="ECS",
|
|
2002
|
+
listener=ecs.ListenerConfig.application_listener(listener,
|
|
2003
|
+
protocol=elbv2.ApplicationProtocol.HTTPS
|
|
2002
2004
|
)
|
|
2003
2005
|
)
|
|
2004
2006
|
'''
|
|
@@ -2762,18 +2764,26 @@ class BaseNetworkListenerProps:
|
|
|
2762
2764
|
|
|
2763
2765
|
Example::
|
|
2764
2766
|
|
|
2765
|
-
|
|
2767
|
+
import aws_cdk.aws_elasticloadbalancing as elb
|
|
2768
|
+
import aws_cdk.aws_elasticloadbalancingv2 as elb2
|
|
2766
2769
|
|
|
2770
|
+
# clb: elb.LoadBalancer
|
|
2771
|
+
# alb: elb2.ApplicationLoadBalancer
|
|
2772
|
+
# nlb: elb2.NetworkLoadBalancer
|
|
2767
2773
|
|
|
2768
|
-
vpc = ec2.Vpc(self, "VPC")
|
|
2769
|
-
lb = elbv2.NetworkLoadBalancer(self, "lb", vpc=vpc)
|
|
2770
|
-
listener = lb.add_listener("listener", port=80)
|
|
2771
|
-
listener.add_targets("target",
|
|
2772
|
-
port=80
|
|
2773
|
-
)
|
|
2774
2774
|
|
|
2775
|
-
|
|
2776
|
-
|
|
2775
|
+
alb_listener = alb.add_listener("ALBListener", port=80)
|
|
2776
|
+
alb_target_group = alb_listener.add_targets("ALBFleet", port=80)
|
|
2777
|
+
|
|
2778
|
+
nlb_listener = nlb.add_listener("NLBListener", port=80)
|
|
2779
|
+
nlb_target_group = nlb_listener.add_targets("NLBFleet", port=80)
|
|
2780
|
+
|
|
2781
|
+
deployment_group = codedeploy.ServerDeploymentGroup(self, "DeploymentGroup",
|
|
2782
|
+
load_balancers=[
|
|
2783
|
+
codedeploy.LoadBalancer.classic(clb),
|
|
2784
|
+
codedeploy.LoadBalancer.application(alb_target_group),
|
|
2785
|
+
codedeploy.LoadBalancer.network(nlb_target_group)
|
|
2786
|
+
]
|
|
2777
2787
|
)
|
|
2778
2788
|
'''
|
|
2779
2789
|
if __debug__:
|
|
@@ -15528,6 +15538,7 @@ class NetworkLoadBalancer(
|
|
|
15528
15538
|
|
|
15529
15539
|
integration = apigateway.Integration(
|
|
15530
15540
|
type=apigateway.IntegrationType.HTTP_PROXY,
|
|
15541
|
+
integration_http_method="ANY",
|
|
15531
15542
|
options=apigateway.IntegrationOptions(
|
|
15532
15543
|
connection_type=apigateway.ConnectionType.VPC_LINK,
|
|
15533
15544
|
vpc_link=link
|
|
@@ -16318,6 +16329,7 @@ class NetworkLoadBalancerProps(BaseLoadBalancerProps):
|
|
|
16318
16329
|
|
|
16319
16330
|
integration = apigateway.Integration(
|
|
16320
16331
|
type=apigateway.IntegrationType.HTTP_PROXY,
|
|
16332
|
+
integration_http_method="ANY",
|
|
16321
16333
|
options=apigateway.IntegrationOptions(
|
|
16322
16334
|
connection_type=apigateway.ConnectionType.VPC_LINK,
|
|
16323
16335
|
vpc_link=link
|
|
@@ -18705,18 +18717,21 @@ class ApplicationLoadBalancerProps(BaseLoadBalancerProps):
|
|
|
18705
18717
|
|
|
18706
18718
|
Example::
|
|
18707
18719
|
|
|
18708
|
-
|
|
18709
|
-
|
|
18720
|
+
# cluster: ecs.Cluster
|
|
18721
|
+
# task_definition: ecs.TaskDefinition
|
|
18722
|
+
# vpc: ec2.Vpc
|
|
18710
18723
|
|
|
18711
|
-
|
|
18712
|
-
lb = elbv2.ApplicationLoadBalancer(self, "lb", vpc=vpc)
|
|
18713
|
-
listener = lb.add_listener("listener", port=80)
|
|
18714
|
-
listener.add_targets("target",
|
|
18715
|
-
port=80
|
|
18716
|
-
)
|
|
18724
|
+
service = ecs.FargateService(self, "Service", cluster=cluster, task_definition=task_definition)
|
|
18717
18725
|
|
|
18718
|
-
|
|
18719
|
-
|
|
18726
|
+
lb = elbv2.ApplicationLoadBalancer(self, "LB", vpc=vpc, internet_facing=True)
|
|
18727
|
+
listener = lb.add_listener("Listener", port=80)
|
|
18728
|
+
service.register_load_balancer_targets(
|
|
18729
|
+
container_name="web",
|
|
18730
|
+
container_port=80,
|
|
18731
|
+
new_target_group_id="ECS",
|
|
18732
|
+
listener=ecs.ListenerConfig.application_listener(listener,
|
|
18733
|
+
protocol=elbv2.ApplicationProtocol.HTTPS
|
|
18734
|
+
)
|
|
18720
18735
|
)
|
|
18721
18736
|
'''
|
|
18722
18737
|
if isinstance(vpc_subnets, dict):
|
|
@@ -19888,18 +19903,28 @@ class NetworkListener(
|
|
|
19888
19903
|
|
|
19889
19904
|
Example::
|
|
19890
19905
|
|
|
19891
|
-
|
|
19906
|
+
# vpc: ec2.Vpc
|
|
19907
|
+
# asg: autoscaling.AutoScalingGroup
|
|
19908
|
+
# sg: ec2.ISecurityGroup
|
|
19892
19909
|
|
|
19893
19910
|
|
|
19894
|
-
|
|
19895
|
-
|
|
19896
|
-
|
|
19897
|
-
|
|
19898
|
-
|
|
19911
|
+
# Create the load balancer in a VPC. 'internetFacing' is 'false'
|
|
19912
|
+
# by default, which creates an internal load balancer.
|
|
19913
|
+
lb = elbv2.NetworkLoadBalancer(self, "LB",
|
|
19914
|
+
vpc=vpc,
|
|
19915
|
+
internet_facing=True,
|
|
19916
|
+
security_groups=[sg]
|
|
19917
|
+
)
|
|
19918
|
+
|
|
19919
|
+
# Add a listener on a particular port.
|
|
19920
|
+
listener = lb.add_listener("Listener",
|
|
19921
|
+
port=443
|
|
19899
19922
|
)
|
|
19900
19923
|
|
|
19901
|
-
|
|
19902
|
-
|
|
19924
|
+
# Add targets on a particular port.
|
|
19925
|
+
listener.add_targets("AppFleet",
|
|
19926
|
+
port=443,
|
|
19927
|
+
targets=[asg]
|
|
19903
19928
|
)
|
|
19904
19929
|
'''
|
|
19905
19930
|
|
|
@@ -20374,19 +20399,34 @@ class ApplicationListener(
|
|
|
20374
20399
|
|
|
20375
20400
|
Example::
|
|
20376
20401
|
|
|
20377
|
-
from aws_cdk.
|
|
20402
|
+
from aws_cdk.aws_autoscaling import AutoScalingGroup
|
|
20403
|
+
# asg: AutoScalingGroup
|
|
20404
|
+
# vpc: ec2.Vpc
|
|
20378
20405
|
|
|
20379
|
-
# lb: elbv2.ApplicationLoadBalancer
|
|
20380
20406
|
|
|
20381
|
-
|
|
20382
|
-
|
|
20383
|
-
|
|
20407
|
+
# Create the load balancer in a VPC. 'internetFacing' is 'false'
|
|
20408
|
+
# by default, which creates an internal load balancer.
|
|
20409
|
+
lb = elbv2.ApplicationLoadBalancer(self, "LB",
|
|
20410
|
+
vpc=vpc,
|
|
20411
|
+
internet_facing=True
|
|
20384
20412
|
)
|
|
20385
20413
|
|
|
20386
|
-
|
|
20387
|
-
|
|
20388
|
-
|
|
20389
|
-
|
|
20414
|
+
# Add a listener and open up the load balancer's security group
|
|
20415
|
+
# to the world.
|
|
20416
|
+
listener = lb.add_listener("Listener",
|
|
20417
|
+
port=80,
|
|
20418
|
+
|
|
20419
|
+
# 'open: true' is the default, you can leave it out if you want. Set it
|
|
20420
|
+
# to 'false' and use `listener.connections` if you want to be selective
|
|
20421
|
+
# about who can access the load balancer.
|
|
20422
|
+
open=True
|
|
20423
|
+
)
|
|
20424
|
+
|
|
20425
|
+
# Create an AutoScaling group and add it as a load balancing
|
|
20426
|
+
# target to the listener.
|
|
20427
|
+
listener.add_targets("ApplicationFleet",
|
|
20428
|
+
port=8080,
|
|
20429
|
+
targets=[asg]
|
|
20390
20430
|
)
|
|
20391
20431
|
'''
|
|
20392
20432
|
|
|
@@ -20705,18 +20745,34 @@ class ApplicationLoadBalancer(
|
|
|
20705
20745
|
|
|
20706
20746
|
Example::
|
|
20707
20747
|
|
|
20708
|
-
from aws_cdk.
|
|
20748
|
+
from aws_cdk.aws_autoscaling import AutoScalingGroup
|
|
20749
|
+
# asg: AutoScalingGroup
|
|
20750
|
+
# vpc: ec2.Vpc
|
|
20709
20751
|
|
|
20710
20752
|
|
|
20711
|
-
|
|
20712
|
-
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
|
|
20753
|
+
# Create the load balancer in a VPC. 'internetFacing' is 'false'
|
|
20754
|
+
# by default, which creates an internal load balancer.
|
|
20755
|
+
lb = elbv2.ApplicationLoadBalancer(self, "LB",
|
|
20756
|
+
vpc=vpc,
|
|
20757
|
+
internet_facing=True
|
|
20716
20758
|
)
|
|
20717
20759
|
|
|
20718
|
-
|
|
20719
|
-
|
|
20760
|
+
# Add a listener and open up the load balancer's security group
|
|
20761
|
+
# to the world.
|
|
20762
|
+
listener = lb.add_listener("Listener",
|
|
20763
|
+
port=80,
|
|
20764
|
+
|
|
20765
|
+
# 'open: true' is the default, you can leave it out if you want. Set it
|
|
20766
|
+
# to 'false' and use `listener.connections` if you want to be selective
|
|
20767
|
+
# about who can access the load balancer.
|
|
20768
|
+
open=True
|
|
20769
|
+
)
|
|
20770
|
+
|
|
20771
|
+
# Create an AutoScaling group and add it as a load balancing
|
|
20772
|
+
# target to the listener.
|
|
20773
|
+
listener.add_targets("ApplicationFleet",
|
|
20774
|
+
port=8080,
|
|
20775
|
+
targets=[asg]
|
|
20720
20776
|
)
|
|
20721
20777
|
'''
|
|
20722
20778
|
|