aws-cdk-lib 2.181.1__py3-none-any.whl → 2.183.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 (69) hide show
  1. aws_cdk/__init__.py +751 -41
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.181.1.jsii.tgz → aws-cdk-lib@2.183.0.jsii.tgz} +0 -0
  4. aws_cdk/assertions/__init__.py +59 -0
  5. aws_cdk/aws_apigateway/__init__.py +122 -66
  6. aws_cdk/aws_applicationautoscaling/__init__.py +4 -0
  7. aws_cdk/aws_appsync/__init__.py +30 -4
  8. aws_cdk/aws_autoscaling/__init__.py +409 -36
  9. aws_cdk/aws_batch/__init__.py +638 -14
  10. aws_cdk/aws_bedrock/__init__.py +6009 -2326
  11. aws_cdk/aws_ce/__init__.py +141 -3
  12. aws_cdk/aws_certificatemanager/__init__.py +24 -0
  13. aws_cdk/aws_cloudformation/__init__.py +310 -35
  14. aws_cdk/aws_cloudfront/__init__.py +1 -0
  15. aws_cdk/aws_cloudtrail/__init__.py +8 -8
  16. aws_cdk/aws_codebuild/__init__.py +4 -10
  17. aws_cdk/aws_cognito/__init__.py +3 -3
  18. aws_cdk/aws_datazone/__init__.py +82 -0
  19. aws_cdk/aws_dms/__init__.py +350 -0
  20. aws_cdk/aws_ec2/__init__.py +95 -17
  21. aws_cdk/aws_ecr/__init__.py +10 -4
  22. aws_cdk/aws_ecs/__init__.py +58 -9
  23. aws_cdk/aws_eks/__init__.py +32 -3
  24. aws_cdk/aws_elasticache/__init__.py +3 -3
  25. aws_cdk/aws_emr/__init__.py +9 -3
  26. aws_cdk/aws_fsx/__init__.py +2 -0
  27. aws_cdk/aws_gameliftstreams/__init__.py +1205 -0
  28. aws_cdk/aws_guardduty/__init__.py +38 -26
  29. aws_cdk/aws_iam/__init__.py +295 -37
  30. aws_cdk/aws_inspector/__init__.py +180 -1
  31. aws_cdk/aws_iot/__init__.py +616 -22
  32. aws_cdk/aws_iotfleetwise/__init__.py +72 -10
  33. aws_cdk/aws_iotsitewise/__init__.py +14 -11
  34. aws_cdk/aws_kafkaconnect/__init__.py +4 -2
  35. aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
  36. aws_cdk/aws_lambda/__init__.py +17 -0
  37. aws_cdk/aws_logs/__init__.py +135 -0
  38. aws_cdk/aws_medialive/__init__.py +86 -86
  39. aws_cdk/aws_mediapackagev2/__init__.py +22 -14
  40. aws_cdk/aws_msk/__init__.py +236 -128
  41. aws_cdk/aws_neptunegraph/__init__.py +3 -3
  42. aws_cdk/aws_opensearchserverless/__init__.py +1031 -0
  43. aws_cdk/aws_opensearchservice/__init__.py +261 -1
  44. aws_cdk/aws_pcaconnectorad/__init__.py +30 -4
  45. aws_cdk/aws_pipes/__init__.py +6 -2
  46. aws_cdk/aws_quicksight/__init__.py +6712 -20758
  47. aws_cdk/aws_rds/__init__.py +174 -30
  48. aws_cdk/aws_redshift/__init__.py +8 -8
  49. aws_cdk/aws_s3/__init__.py +8 -0
  50. aws_cdk/aws_sagemaker/__init__.py +80 -18
  51. aws_cdk/aws_securitylake/__init__.py +3 -0
  52. aws_cdk/aws_sns/__init__.py +76 -1
  53. aws_cdk/aws_synthetics/__init__.py +2 -0
  54. aws_cdk/aws_transfer/__init__.py +241 -40
  55. aws_cdk/aws_vpclattice/__init__.py +144 -9
  56. aws_cdk/aws_wafv2/__init__.py +790 -0
  57. aws_cdk/aws_wisdom/__init__.py +3 -110
  58. aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
  59. aws_cdk/aws_workspacesweb/__init__.py +179 -2
  60. aws_cdk/aws_xray/__init__.py +195 -0
  61. aws_cdk/cloud_assembly_schema/__init__.py +224 -4
  62. aws_cdk/custom_resources/__init__.py +65 -8
  63. aws_cdk/cx_api/__init__.py +2 -1
  64. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/METADATA +2 -2
  65. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/RECORD +69 -68
  66. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/LICENSE +0 -0
  67. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/NOTICE +0 -0
  68. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/WHEEL +0 -0
  69. {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/top_level.txt +0 -0
@@ -63,10 +63,130 @@ from .. import (
63
63
  CfnTag as _CfnTag_f6864754,
64
64
  IInspectable as _IInspectable_c2943556,
65
65
  IResolvable as _IResolvable_da3f097b,
66
+ IResource as _IResource_c80c4260,
67
+ Resource as _Resource_45bc6135,
68
+ ResourceProps as _ResourceProps_15a65b4e,
66
69
  TreeInspector as _TreeInspector_488e0dd5,
67
70
  )
68
71
 
69
72
 
73
+ class AssessmentTemplate(
74
+ _Resource_45bc6135,
75
+ metaclass=jsii.JSIIMeta,
76
+ jsii_type="aws-cdk-lib.aws_inspector.AssessmentTemplate",
77
+ ):
78
+ '''An Amazon Inspector assessment template.
79
+
80
+ TODO: This class should implement IAssessmentTemplate and "construct-ctor-props-type:aws-cdk-lib.aws_inspector.AssessmentTemplate" should be
81
+ removed from ``awslint.json`` when implementing the L2 construct
82
+
83
+ :exampleMetadata: infused
84
+
85
+ Example::
86
+
87
+ import aws_cdk.aws_inspector as inspector
88
+
89
+ # cfn_assessment_template: inspector.CfnAssessmentTemplate
90
+
91
+
92
+ assessment_template = inspector.AssessmentTemplate.from_cfn_assessment_template(self, "MyAssessmentTemplate", cfn_assessment_template)
93
+
94
+ Schedule(self, "Schedule",
95
+ schedule=ScheduleExpression.rate(Duration.minutes(60)),
96
+ target=targets.InspectorStartAssessmentRun(assessment_template)
97
+ )
98
+ '''
99
+
100
+ def __init__(
101
+ self,
102
+ scope: _constructs_77d1e7e8.Construct,
103
+ id: builtins.str,
104
+ *,
105
+ account: typing.Optional[builtins.str] = None,
106
+ environment_from_arn: typing.Optional[builtins.str] = None,
107
+ physical_name: typing.Optional[builtins.str] = None,
108
+ region: typing.Optional[builtins.str] = None,
109
+ ) -> None:
110
+ '''
111
+ :param scope: -
112
+ :param id: -
113
+ :param account: The AWS account ID this resource belongs to. Default: - the resource is in the same account as the stack it belongs to
114
+ :param environment_from_arn: ARN to deduce region and account from. The ARN is parsed and the account and region are taken from the ARN. This should be used for imported resources. Cannot be supplied together with either ``account`` or ``region``. Default: - take environment from ``account``, ``region`` parameters, or use Stack environment.
115
+ :param physical_name: The value passed in by users to the physical name prop of the resource. - ``undefined`` implies that a physical name will be allocated by CloudFormation during deployment. - a concrete value implies a specific physical name - ``PhysicalName.GENERATE_IF_NEEDED`` is a marker that indicates that a physical will only be generated by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated by CloudFormation. Default: - The physical name will be allocated by CloudFormation at deployment time
116
+ :param region: The AWS region this resource belongs to. Default: - the resource is in the same region as the stack it belongs to
117
+ '''
118
+ if __debug__:
119
+ type_hints = typing.get_type_hints(_typecheckingstub__b2c7d643c93bd242956ccec86b5deef314ea7b86e8724a41b41cfac2a91fb4ee)
120
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
121
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
122
+ props = _ResourceProps_15a65b4e(
123
+ account=account,
124
+ environment_from_arn=environment_from_arn,
125
+ physical_name=physical_name,
126
+ region=region,
127
+ )
128
+
129
+ jsii.create(self.__class__, self, [scope, id, props])
130
+
131
+ @jsii.member(jsii_name="fromCfnAssessmentTemplate")
132
+ @builtins.classmethod
133
+ def from_cfn_assessment_template(
134
+ cls,
135
+ scope: _constructs_77d1e7e8.Construct,
136
+ id: builtins.str,
137
+ template: "CfnAssessmentTemplate",
138
+ ) -> "IAssessmentTemplate":
139
+ '''Creates an AssessmentTemplate from an existing CfnAssessmentTemplate.
140
+
141
+ This method is provided to bridge the gap with L2 constructs since no L2 constructs
142
+ exist for Inspector resources yet. It allows working with CfnAssessmentTemplate (L1)
143
+ resources through the IAssessmentTemplate interface.
144
+
145
+ :param scope: -
146
+ :param id: -
147
+ :param template: -
148
+ '''
149
+ if __debug__:
150
+ type_hints = typing.get_type_hints(_typecheckingstub__27ed524e48f7eb2cf7a80fc6e726970f98769ba4eca8bc25f7d5ae4fb03b0875)
151
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
152
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
153
+ check_type(argname="argument template", value=template, expected_type=type_hints["template"])
154
+ return typing.cast("IAssessmentTemplate", jsii.sinvoke(cls, "fromCfnAssessmentTemplate", [scope, id, template]))
155
+
156
+
157
+ @jsii.data_type(
158
+ jsii_type="aws-cdk-lib.aws_inspector.AssessmentTemplateProps",
159
+ jsii_struct_bases=[],
160
+ name_mapping={},
161
+ )
162
+ class AssessmentTemplateProps:
163
+ def __init__(self) -> None:
164
+ '''Properties for creating an Inspector Assessment Template TODO: Add properties and remove "props-physical-name:aws-cdk-lib.aws_inspector.AssessmentTemplateProps" from ``awslint.json`` when implementing the L2 construct.
165
+
166
+ :exampleMetadata: fixture=_generated
167
+
168
+ Example::
169
+
170
+ # The code below shows an example of how to instantiate this type.
171
+ # The values are placeholders you should change.
172
+ from aws_cdk import aws_inspector as inspector
173
+
174
+ assessment_template_props = inspector.AssessmentTemplateProps()
175
+ '''
176
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
177
+
178
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
179
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
180
+
181
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
182
+ return not (rhs == self)
183
+
184
+ def __repr__(self) -> str:
185
+ return "AssessmentTemplateProps(%s)" % ", ".join(
186
+ k + "=" + repr(v) for k, v in self._values.items()
187
+ )
188
+
189
+
70
190
  @jsii.implements(_IInspectable_c2943556)
71
191
  class CfnAssessmentTarget(
72
192
  _CfnResource_9df397a6,
@@ -281,8 +401,10 @@ class CfnAssessmentTemplate(
281
401
 
282
402
  import aws_cdk.aws_inspector as inspector
283
403
 
284
- # assessment_template: inspector.CfnAssessmentTemplate
404
+ # cfn_assessment_template: inspector.CfnAssessmentTemplate
405
+
285
406
 
407
+ assessment_template = inspector.AssessmentTemplate.from_cfn_assessment_template(self, "MyAssessmentTemplate", cfn_assessment_template)
286
408
 
287
409
  Schedule(self, "Schedule",
288
410
  schedule=ScheduleExpression.rate(Duration.minutes(60)),
@@ -748,17 +870,74 @@ class CfnResourceGroupProps:
748
870
  )
749
871
 
750
872
 
873
+ @jsii.interface(jsii_type="aws-cdk-lib.aws_inspector.IAssessmentTemplate")
874
+ class IAssessmentTemplate(_IResource_c80c4260, typing_extensions.Protocol):
875
+ '''Interface for an Inspector Assessment Template.'''
876
+
877
+ @builtins.property
878
+ @jsii.member(jsii_name="assessmentTemplateArn")
879
+ def assessment_template_arn(self) -> builtins.str:
880
+ '''The Amazon Resource Name (ARN) of the assessment template.
881
+
882
+ :attribute: true
883
+ '''
884
+ ...
885
+
886
+
887
+ class _IAssessmentTemplateProxy(
888
+ jsii.proxy_for(_IResource_c80c4260), # type: ignore[misc]
889
+ ):
890
+ '''Interface for an Inspector Assessment Template.'''
891
+
892
+ __jsii_type__: typing.ClassVar[str] = "aws-cdk-lib.aws_inspector.IAssessmentTemplate"
893
+
894
+ @builtins.property
895
+ @jsii.member(jsii_name="assessmentTemplateArn")
896
+ def assessment_template_arn(self) -> builtins.str:
897
+ '''The Amazon Resource Name (ARN) of the assessment template.
898
+
899
+ :attribute: true
900
+ '''
901
+ return typing.cast(builtins.str, jsii.get(self, "assessmentTemplateArn"))
902
+
903
+ # Adding a "__jsii_proxy_class__(): typing.Type" function to the interface
904
+ typing.cast(typing.Any, IAssessmentTemplate).__jsii_proxy_class__ = lambda : _IAssessmentTemplateProxy
905
+
906
+
751
907
  __all__ = [
908
+ "AssessmentTemplate",
909
+ "AssessmentTemplateProps",
752
910
  "CfnAssessmentTarget",
753
911
  "CfnAssessmentTargetProps",
754
912
  "CfnAssessmentTemplate",
755
913
  "CfnAssessmentTemplateProps",
756
914
  "CfnResourceGroup",
757
915
  "CfnResourceGroupProps",
916
+ "IAssessmentTemplate",
758
917
  ]
759
918
 
760
919
  publication.publish()
761
920
 
921
+ def _typecheckingstub__b2c7d643c93bd242956ccec86b5deef314ea7b86e8724a41b41cfac2a91fb4ee(
922
+ scope: _constructs_77d1e7e8.Construct,
923
+ id: builtins.str,
924
+ *,
925
+ account: typing.Optional[builtins.str] = None,
926
+ environment_from_arn: typing.Optional[builtins.str] = None,
927
+ physical_name: typing.Optional[builtins.str] = None,
928
+ region: typing.Optional[builtins.str] = None,
929
+ ) -> None:
930
+ """Type checking stubs"""
931
+ pass
932
+
933
+ def _typecheckingstub__27ed524e48f7eb2cf7a80fc6e726970f98769ba4eca8bc25f7d5ae4fb03b0875(
934
+ scope: _constructs_77d1e7e8.Construct,
935
+ id: builtins.str,
936
+ template: CfnAssessmentTemplate,
937
+ ) -> None:
938
+ """Type checking stubs"""
939
+ pass
940
+
762
941
  def _typecheckingstub__8b68f769512afe2cc2200d1eaed82952c7d1dda03213723b68dd167dd4a283c7(
763
942
  scope: _constructs_77d1e7e8.Construct,
764
943
  id: builtins.str,