aws-cdk-lib 2.114.1__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.

Files changed (47) hide show
  1. aws_cdk/__init__.py +7 -1
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.114.1.jsii.tgz → aws-cdk-lib@2.115.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigateway/__init__.py +6 -0
  5. aws_cdk/aws_apigatewayv2/__init__.py +223 -574
  6. aws_cdk/aws_autoscaling/__init__.py +99 -86
  7. aws_cdk/aws_bedrock/__init__.py +355 -0
  8. aws_cdk/aws_billingconductor/__init__.py +41 -0
  9. aws_cdk/aws_cleanrooms/__init__.py +46 -20
  10. aws_cdk/aws_cloudformation/__init__.py +5 -1
  11. aws_cdk/aws_cloudtrail/__init__.py +89 -0
  12. aws_cdk/aws_codedeploy/__init__.py +233 -1
  13. aws_cdk/aws_connect/__init__.py +49 -2
  14. aws_cdk/aws_dlm/__init__.py +8 -11
  15. aws_cdk/aws_dms/__init__.py +3861 -1643
  16. aws_cdk/aws_ec2/__init__.py +91 -47
  17. aws_cdk/aws_ecs/__init__.py +18 -0
  18. aws_cdk/aws_efs/__init__.py +1 -1
  19. aws_cdk/aws_eks/__init__.py +26 -13
  20. aws_cdk/aws_elasticloadbalancingv2/__init__.py +110 -54
  21. aws_cdk/aws_emr/__init__.py +287 -18
  22. aws_cdk/aws_eventschemas/__init__.py +1 -1
  23. aws_cdk/aws_fis/__init__.py +466 -34
  24. aws_cdk/aws_iam/__init__.py +47 -35
  25. aws_cdk/aws_internetmonitor/__init__.py +10 -12
  26. aws_cdk/aws_lightsail/__init__.py +4 -2
  27. aws_cdk/aws_logs/__init__.py +5 -4
  28. aws_cdk/aws_opensearchservice/__init__.py +47 -0
  29. aws_cdk/aws_osis/__init__.py +272 -32
  30. aws_cdk/aws_rds/__init__.py +205 -87
  31. aws_cdk/aws_resiliencehub/__init__.py +9 -14
  32. aws_cdk/aws_rolesanywhere/__init__.py +41 -53
  33. aws_cdk/aws_route53/__init__.py +3 -3
  34. aws_cdk/aws_route53_targets/__init__.py +2 -2
  35. aws_cdk/aws_s3/__init__.py +2 -6
  36. aws_cdk/aws_s3express/__init__.py +3 -3
  37. aws_cdk/aws_sagemaker/__init__.py +82 -11
  38. aws_cdk/aws_sns/__init__.py +181 -0
  39. aws_cdk/aws_stepfunctions/__init__.py +16 -8
  40. aws_cdk/aws_stepfunctions_tasks/__init__.py +975 -139
  41. aws_cdk/aws_workspacesthinclient/__init__.py +44 -35
  42. {aws_cdk_lib-2.114.1.dist-info → aws_cdk_lib-2.115.0.dist-info}/METADATA +2 -2
  43. {aws_cdk_lib-2.114.1.dist-info → aws_cdk_lib-2.115.0.dist-info}/RECORD +47 -46
  44. {aws_cdk_lib-2.114.1.dist-info → aws_cdk_lib-2.115.0.dist-info}/LICENSE +0 -0
  45. {aws_cdk_lib-2.114.1.dist-info → aws_cdk_lib-2.115.0.dist-info}/NOTICE +0 -0
  46. {aws_cdk_lib-2.114.1.dist-info → aws_cdk_lib-2.115.0.dist-info}/WHEEL +0 -0
  47. {aws_cdk_lib-2.114.1.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
- from aws_cdk.aws_apigatewayv2_integrations import HttpAlbIntegration
1991
-
1992
- # lb: elbv2.ApplicationLoadBalancer
1990
+ # cluster: ecs.Cluster
1991
+ # task_definition: ecs.TaskDefinition
1992
+ # vpc: ec2.Vpc
1993
1993
 
1994
- listener = lb.add_listener("listener", port=80)
1995
- listener.add_targets("target",
1996
- port=80
1997
- )
1994
+ service = ecs.FargateService(self, "Service", cluster=cluster, task_definition=task_definition)
1998
1995
 
1999
- http_endpoint = apigwv2.HttpApi(self, "HttpProxyPrivateApi",
2000
- default_integration=HttpAlbIntegration("DefaultIntegration", listener,
2001
- parameter_mapping=apigwv2.ParameterMapping().append_header("header2", apigwv2.MappingValue.request_header("header1")).remove_header("header1")
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
- from aws_cdk.aws_apigatewayv2_integrations import HttpNlbIntegration
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
- http_endpoint = apigwv2.HttpApi(self, "HttpProxyPrivateApi",
2776
- default_integration=HttpNlbIntegration("DefaultIntegration", listener)
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
- from aws_cdk.aws_apigatewayv2_integrations import HttpAlbIntegration
18709
-
18720
+ # cluster: ecs.Cluster
18721
+ # task_definition: ecs.TaskDefinition
18722
+ # vpc: ec2.Vpc
18710
18723
 
18711
- vpc = ec2.Vpc(self, "VPC")
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
- http_endpoint = apigwv2.HttpApi(self, "HttpProxyPrivateApi",
18719
- default_integration=HttpAlbIntegration("DefaultIntegration", listener)
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
- from aws_cdk.aws_apigatewayv2_integrations import HttpNlbIntegration
19906
+ # vpc: ec2.Vpc
19907
+ # asg: autoscaling.AutoScalingGroup
19908
+ # sg: ec2.ISecurityGroup
19892
19909
 
19893
19910
 
19894
- vpc = ec2.Vpc(self, "VPC")
19895
- lb = elbv2.NetworkLoadBalancer(self, "lb", vpc=vpc)
19896
- listener = lb.add_listener("listener", port=80)
19897
- listener.add_targets("target",
19898
- port=80
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
- http_endpoint = apigwv2.HttpApi(self, "HttpProxyPrivateApi",
19902
- default_integration=HttpNlbIntegration("DefaultIntegration", listener)
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.aws_apigatewayv2_integrations import HttpAlbIntegration
20402
+ from aws_cdk.aws_autoscaling import AutoScalingGroup
20403
+ # asg: AutoScalingGroup
20404
+ # vpc: ec2.Vpc
20378
20405
 
20379
- # lb: elbv2.ApplicationLoadBalancer
20380
20406
 
20381
- listener = lb.add_listener("listener", port=80)
20382
- listener.add_targets("target",
20383
- port=80
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
- http_endpoint = apigwv2.HttpApi(self, "HttpProxyPrivateApi",
20387
- default_integration=HttpAlbIntegration("DefaultIntegration", listener,
20388
- parameter_mapping=apigwv2.ParameterMapping().custom("myKey", "myValue")
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.aws_apigatewayv2_integrations import HttpAlbIntegration
20748
+ from aws_cdk.aws_autoscaling import AutoScalingGroup
20749
+ # asg: AutoScalingGroup
20750
+ # vpc: ec2.Vpc
20709
20751
 
20710
20752
 
20711
- vpc = ec2.Vpc(self, "VPC")
20712
- lb = elbv2.ApplicationLoadBalancer(self, "lb", vpc=vpc)
20713
- listener = lb.add_listener("listener", port=80)
20714
- listener.add_targets("target",
20715
- port=80
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
- http_endpoint = apigwv2.HttpApi(self, "HttpProxyPrivateApi",
20719
- default_integration=HttpAlbIntegration("DefaultIntegration", listener)
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