aws-cdk-lib 2.147.3__py3-none-any.whl → 2.148.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.
Files changed (291) hide show
  1. aws_cdk/__init__.py +7 -5
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.147.3.jsii.tgz → aws-cdk-lib@2.148.0.jsii.tgz} +0 -0
  4. aws_cdk/alexa_ask/__init__.py +1 -1
  5. aws_cdk/assertions/__init__.py +1 -1
  6. aws_cdk/aws_accessanalyzer/__init__.py +1 -1
  7. aws_cdk/aws_acmpca/__init__.py +1 -1
  8. aws_cdk/aws_amazonmq/__init__.py +1 -1
  9. aws_cdk/aws_amplify/__init__.py +1 -1
  10. aws_cdk/aws_amplifyuibuilder/__init__.py +1 -1
  11. aws_cdk/aws_apigateway/__init__.py +1 -1
  12. aws_cdk/aws_apigatewayv2/__init__.py +1 -1
  13. aws_cdk/aws_apigatewayv2_authorizers/__init__.py +1 -1
  14. aws_cdk/aws_apigatewayv2_integrations/__init__.py +1 -1
  15. aws_cdk/aws_appconfig/__init__.py +1 -1
  16. aws_cdk/aws_appflow/__init__.py +1 -1
  17. aws_cdk/aws_appintegrations/__init__.py +1 -1
  18. aws_cdk/aws_applicationautoscaling/__init__.py +1 -1
  19. aws_cdk/aws_applicationinsights/__init__.py +1 -1
  20. aws_cdk/aws_applicationsignals/__init__.py +143 -87
  21. aws_cdk/aws_appmesh/__init__.py +1 -1
  22. aws_cdk/aws_apprunner/__init__.py +1 -1
  23. aws_cdk/aws_appstream/__init__.py +1 -1
  24. aws_cdk/aws_appsync/__init__.py +1 -1
  25. aws_cdk/aws_apptest/__init__.py +3042 -0
  26. aws_cdk/aws_aps/__init__.py +1 -1
  27. aws_cdk/aws_arczonalshift/__init__.py +1 -1
  28. aws_cdk/aws_athena/__init__.py +1 -1
  29. aws_cdk/aws_auditmanager/__init__.py +1 -1
  30. aws_cdk/aws_autoscaling/__init__.py +1 -1
  31. aws_cdk/aws_autoscaling_common/__init__.py +1 -1
  32. aws_cdk/aws_autoscaling_hooktargets/__init__.py +1 -1
  33. aws_cdk/aws_autoscalingplans/__init__.py +1 -1
  34. aws_cdk/aws_b2bi/__init__.py +1 -1
  35. aws_cdk/aws_backup/__init__.py +4 -6
  36. aws_cdk/aws_backupgateway/__init__.py +1 -1
  37. aws_cdk/aws_batch/__init__.py +1 -216
  38. aws_cdk/aws_bcmdataexports/__init__.py +1 -1
  39. aws_cdk/aws_bedrock/__init__.py +178 -1
  40. aws_cdk/aws_billingconductor/__init__.py +1 -1
  41. aws_cdk/aws_budgets/__init__.py +1 -1
  42. aws_cdk/aws_cassandra/__init__.py +1 -1
  43. aws_cdk/aws_ce/__init__.py +1 -1
  44. aws_cdk/aws_certificatemanager/__init__.py +1 -1
  45. aws_cdk/aws_chatbot/__init__.py +1 -1
  46. aws_cdk/aws_cleanrooms/__init__.py +1 -1
  47. aws_cdk/aws_cleanroomsml/__init__.py +1 -1
  48. aws_cdk/aws_cloud9/__init__.py +1 -1
  49. aws_cdk/aws_cloudformation/__init__.py +1 -1
  50. aws_cdk/aws_cloudfront/__init__.py +1 -1
  51. aws_cdk/aws_cloudfront/experimental/__init__.py +44 -0
  52. aws_cdk/aws_cloudfront_origins/__init__.py +1 -1
  53. aws_cdk/aws_cloudtrail/__init__.py +20 -12
  54. aws_cdk/aws_cloudwatch/__init__.py +1 -1
  55. aws_cdk/aws_cloudwatch_actions/__init__.py +1 -1
  56. aws_cdk/aws_codeartifact/__init__.py +11 -9
  57. aws_cdk/aws_codebuild/__init__.py +193 -6
  58. aws_cdk/aws_codecommit/__init__.py +1 -1
  59. aws_cdk/aws_codeconnections/__init__.py +1 -1
  60. aws_cdk/aws_codedeploy/__init__.py +35 -4
  61. aws_cdk/aws_codeguruprofiler/__init__.py +1 -1
  62. aws_cdk/aws_codegurureviewer/__init__.py +1 -1
  63. aws_cdk/aws_codepipeline/__init__.py +1 -1
  64. aws_cdk/aws_codepipeline_actions/__init__.py +1 -1
  65. aws_cdk/aws_codestar/__init__.py +1 -1
  66. aws_cdk/aws_codestarconnections/__init__.py +1 -1
  67. aws_cdk/aws_codestarnotifications/__init__.py +1 -1
  68. aws_cdk/aws_cognito/__init__.py +56 -18
  69. aws_cdk/aws_comprehend/__init__.py +1 -1
  70. aws_cdk/aws_config/__init__.py +1 -1
  71. aws_cdk/aws_connect/__init__.py +1 -1
  72. aws_cdk/aws_connectcampaigns/__init__.py +1 -1
  73. aws_cdk/aws_controltower/__init__.py +1 -1
  74. aws_cdk/aws_cur/__init__.py +1 -1
  75. aws_cdk/aws_customerprofiles/__init__.py +1 -1
  76. aws_cdk/aws_databrew/__init__.py +1 -1
  77. aws_cdk/aws_datapipeline/__init__.py +1 -1
  78. aws_cdk/aws_datasync/__init__.py +12 -12
  79. aws_cdk/aws_datazone/__init__.py +1 -1
  80. aws_cdk/aws_dax/__init__.py +1 -1
  81. aws_cdk/aws_deadline/__init__.py +3 -2
  82. aws_cdk/aws_detective/__init__.py +1 -1
  83. aws_cdk/aws_devicefarm/__init__.py +1 -1
  84. aws_cdk/aws_devopsguru/__init__.py +1 -1
  85. aws_cdk/aws_directoryservice/__init__.py +1 -1
  86. aws_cdk/aws_dlm/__init__.py +1 -1
  87. aws_cdk/aws_dms/__init__.py +2 -2
  88. aws_cdk/aws_docdb/__init__.py +1 -1
  89. aws_cdk/aws_docdbelastic/__init__.py +1 -1
  90. aws_cdk/aws_dynamodb/__init__.py +1 -1
  91. aws_cdk/aws_ec2/__init__.py +24 -26
  92. aws_cdk/aws_ecr/__init__.py +1 -1
  93. aws_cdk/aws_ecr_assets/__init__.py +1 -1
  94. aws_cdk/aws_ecs/__init__.py +29 -25
  95. aws_cdk/aws_ecs_patterns/__init__.py +1 -1
  96. aws_cdk/aws_efs/__init__.py +1 -1
  97. aws_cdk/aws_eks/__init__.py +619 -31
  98. aws_cdk/aws_elasticache/__init__.py +29 -18
  99. aws_cdk/aws_elasticbeanstalk/__init__.py +1 -1
  100. aws_cdk/aws_elasticloadbalancing/__init__.py +1 -1
  101. aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -4
  102. aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +1 -1
  103. aws_cdk/aws_elasticloadbalancingv2_targets/__init__.py +1 -1
  104. aws_cdk/aws_elasticsearch/__init__.py +1 -1
  105. aws_cdk/aws_emr/__init__.py +1 -1
  106. aws_cdk/aws_emrcontainers/__init__.py +1 -1
  107. aws_cdk/aws_emrserverless/__init__.py +34 -7
  108. aws_cdk/aws_entityresolution/__init__.py +1 -1
  109. aws_cdk/aws_events/__init__.py +1 -1
  110. aws_cdk/aws_events_targets/__init__.py +1 -1
  111. aws_cdk/aws_eventschemas/__init__.py +1 -1
  112. aws_cdk/aws_evidently/__init__.py +1 -1
  113. aws_cdk/aws_finspace/__init__.py +1 -1
  114. aws_cdk/aws_fis/__init__.py +1 -1
  115. aws_cdk/aws_fms/__init__.py +1 -1
  116. aws_cdk/aws_forecast/__init__.py +1 -1
  117. aws_cdk/aws_frauddetector/__init__.py +1 -1
  118. aws_cdk/aws_fsx/__init__.py +186 -2
  119. aws_cdk/aws_gamelift/__init__.py +10 -6
  120. aws_cdk/aws_globalaccelerator/__init__.py +1 -1
  121. aws_cdk/aws_globalaccelerator_endpoints/__init__.py +1 -1
  122. aws_cdk/aws_glue/__init__.py +18 -14
  123. aws_cdk/aws_grafana/__init__.py +9 -5
  124. aws_cdk/aws_greengrass/__init__.py +1 -1
  125. aws_cdk/aws_greengrassv2/__init__.py +1 -1
  126. aws_cdk/aws_groundstation/__init__.py +1 -1
  127. aws_cdk/aws_guardduty/__init__.py +171 -132
  128. aws_cdk/aws_healthimaging/__init__.py +1 -1
  129. aws_cdk/aws_healthlake/__init__.py +1 -1
  130. aws_cdk/aws_iam/__init__.py +1 -1
  131. aws_cdk/aws_identitystore/__init__.py +1 -1
  132. aws_cdk/aws_imagebuilder/__init__.py +1 -1
  133. aws_cdk/aws_inspector/__init__.py +1 -1
  134. aws_cdk/aws_inspectorv2/__init__.py +1 -1
  135. aws_cdk/aws_internetmonitor/__init__.py +1 -1
  136. aws_cdk/aws_iot/__init__.py +1 -1
  137. aws_cdk/aws_iot1click/__init__.py +1 -1
  138. aws_cdk/aws_iotanalytics/__init__.py +1 -1
  139. aws_cdk/aws_iotcoredeviceadvisor/__init__.py +1 -1
  140. aws_cdk/aws_iotevents/__init__.py +1 -1
  141. aws_cdk/aws_iotfleethub/__init__.py +1 -1
  142. aws_cdk/aws_iotfleetwise/__init__.py +1 -1
  143. aws_cdk/aws_iotsitewise/__init__.py +1 -1
  144. aws_cdk/aws_iotthingsgraph/__init__.py +1 -1
  145. aws_cdk/aws_iottwinmaker/__init__.py +1 -1
  146. aws_cdk/aws_iotwireless/__init__.py +1 -1
  147. aws_cdk/aws_ivs/__init__.py +1 -1
  148. aws_cdk/aws_ivschat/__init__.py +1 -1
  149. aws_cdk/aws_kafkaconnect/__init__.py +1 -1
  150. aws_cdk/aws_kendra/__init__.py +1 -1
  151. aws_cdk/aws_kendraranking/__init__.py +1 -1
  152. aws_cdk/aws_kinesis/__init__.py +1 -1
  153. aws_cdk/aws_kinesisanalytics/__init__.py +93 -1
  154. aws_cdk/aws_kinesisanalyticsv2/__init__.py +93 -1
  155. aws_cdk/aws_kinesisfirehose/__init__.py +301 -94
  156. aws_cdk/aws_kinesisvideo/__init__.py +1 -1
  157. aws_cdk/aws_kms/__init__.py +16 -15
  158. aws_cdk/aws_lakeformation/__init__.py +1 -1
  159. aws_cdk/aws_lambda/__init__.py +160 -1
  160. aws_cdk/aws_lambda_destinations/__init__.py +1 -1
  161. aws_cdk/aws_lambda_event_sources/__init__.py +1 -1
  162. aws_cdk/aws_lambda_nodejs/__init__.py +1 -1
  163. aws_cdk/aws_lex/__init__.py +1 -1
  164. aws_cdk/aws_licensemanager/__init__.py +1 -1
  165. aws_cdk/aws_lightsail/__init__.py +1 -1
  166. aws_cdk/aws_location/__init__.py +1 -1
  167. aws_cdk/aws_logs/__init__.py +1 -1
  168. aws_cdk/aws_logs_destinations/__init__.py +1 -1
  169. aws_cdk/aws_lookoutequipment/__init__.py +1 -1
  170. aws_cdk/aws_lookoutmetrics/__init__.py +1 -1
  171. aws_cdk/aws_lookoutvision/__init__.py +1 -1
  172. aws_cdk/aws_m2/__init__.py +1 -1
  173. aws_cdk/aws_macie/__init__.py +1 -1
  174. aws_cdk/aws_managedblockchain/__init__.py +1 -1
  175. aws_cdk/aws_mediaconnect/__init__.py +1 -1
  176. aws_cdk/aws_mediaconvert/__init__.py +1 -1
  177. aws_cdk/aws_medialive/__init__.py +1 -1
  178. aws_cdk/aws_mediapackage/__init__.py +1 -1
  179. aws_cdk/aws_mediapackagev2/__init__.py +33 -1
  180. aws_cdk/aws_mediastore/__init__.py +1 -1
  181. aws_cdk/aws_mediatailor/__init__.py +1 -1
  182. aws_cdk/aws_memorydb/__init__.py +1 -1
  183. aws_cdk/aws_msk/__init__.py +1 -1
  184. aws_cdk/aws_mwaa/__init__.py +1 -1
  185. aws_cdk/aws_neptune/__init__.py +1 -1
  186. aws_cdk/aws_neptunegraph/__init__.py +1 -1
  187. aws_cdk/aws_networkfirewall/__init__.py +1 -1
  188. aws_cdk/aws_networkmanager/__init__.py +10 -10
  189. aws_cdk/aws_nimblestudio/__init__.py +1 -1
  190. aws_cdk/aws_oam/__init__.py +1 -1
  191. aws_cdk/aws_omics/__init__.py +2 -2
  192. aws_cdk/aws_opensearchserverless/__init__.py +1 -1
  193. aws_cdk/aws_opensearchservice/__init__.py +1 -1
  194. aws_cdk/aws_opsworks/__init__.py +1 -1
  195. aws_cdk/aws_opsworkscm/__init__.py +8 -4
  196. aws_cdk/aws_organizations/__init__.py +1 -1
  197. aws_cdk/aws_osis/__init__.py +1 -1
  198. aws_cdk/aws_panorama/__init__.py +1 -1
  199. aws_cdk/aws_paymentcryptography/__init__.py +1 -1
  200. aws_cdk/aws_pcaconnectorad/__init__.py +1 -1
  201. aws_cdk/aws_personalize/__init__.py +1 -1
  202. aws_cdk/aws_pinpoint/__init__.py +1 -1
  203. aws_cdk/aws_pinpointemail/__init__.py +1 -1
  204. aws_cdk/aws_pipes/__init__.py +1 -1
  205. aws_cdk/aws_proton/__init__.py +1 -1
  206. aws_cdk/aws_qbusiness/__init__.py +1 -1
  207. aws_cdk/aws_qldb/__init__.py +1 -1
  208. aws_cdk/aws_quicksight/__init__.py +1 -1
  209. aws_cdk/aws_ram/__init__.py +1 -1
  210. aws_cdk/aws_rds/__init__.py +515 -34
  211. aws_cdk/aws_redshift/__init__.py +10 -10
  212. aws_cdk/aws_redshiftserverless/__init__.py +1 -1
  213. aws_cdk/aws_refactorspaces/__init__.py +1 -1
  214. aws_cdk/aws_rekognition/__init__.py +1 -1
  215. aws_cdk/aws_resiliencehub/__init__.py +1 -1
  216. aws_cdk/aws_resourceexplorer2/__init__.py +1 -1
  217. aws_cdk/aws_resourcegroups/__init__.py +1 -1
  218. aws_cdk/aws_robomaker/__init__.py +1 -1
  219. aws_cdk/aws_rolesanywhere/__init__.py +1 -1
  220. aws_cdk/aws_route53/__init__.py +1 -1
  221. aws_cdk/aws_route53_patterns/__init__.py +1 -1
  222. aws_cdk/aws_route53_targets/__init__.py +1 -1
  223. aws_cdk/aws_route53profiles/__init__.py +1 -1
  224. aws_cdk/aws_route53recoverycontrol/__init__.py +1 -1
  225. aws_cdk/aws_route53recoveryreadiness/__init__.py +1 -1
  226. aws_cdk/aws_route53resolver/__init__.py +1 -1
  227. aws_cdk/aws_rum/__init__.py +1 -1
  228. aws_cdk/aws_s3/__init__.py +30 -6
  229. aws_cdk/aws_s3_assets/__init__.py +1 -1
  230. aws_cdk/aws_s3_deployment/__init__.py +1 -1
  231. aws_cdk/aws_s3_notifications/__init__.py +1 -1
  232. aws_cdk/aws_s3express/__init__.py +1 -1
  233. aws_cdk/aws_s3objectlambda/__init__.py +1 -1
  234. aws_cdk/aws_s3outposts/__init__.py +1 -1
  235. aws_cdk/aws_sagemaker/__init__.py +1 -1
  236. aws_cdk/aws_sam/__init__.py +1 -1
  237. aws_cdk/aws_scheduler/__init__.py +1 -1
  238. aws_cdk/aws_sdb/__init__.py +1 -1
  239. aws_cdk/aws_secretsmanager/__init__.py +1 -1
  240. aws_cdk/aws_securityhub/__init__.py +1 -1
  241. aws_cdk/aws_securitylake/__init__.py +1 -1
  242. aws_cdk/aws_servicecatalog/__init__.py +1 -1
  243. aws_cdk/aws_servicecatalogappregistry/__init__.py +1 -1
  244. aws_cdk/aws_servicediscovery/__init__.py +21 -4
  245. aws_cdk/aws_ses/__init__.py +86 -1
  246. aws_cdk/aws_ses_actions/__init__.py +1 -1
  247. aws_cdk/aws_shield/__init__.py +1 -1
  248. aws_cdk/aws_signer/__init__.py +42 -1
  249. aws_cdk/aws_simspaceweaver/__init__.py +1 -1
  250. aws_cdk/aws_sns/__init__.py +1 -1
  251. aws_cdk/aws_sns_subscriptions/__init__.py +1 -1
  252. aws_cdk/aws_sqs/__init__.py +7 -9
  253. aws_cdk/aws_ssm/__init__.py +106 -37
  254. aws_cdk/aws_ssmcontacts/__init__.py +1 -1
  255. aws_cdk/aws_ssmincidents/__init__.py +1 -1
  256. aws_cdk/aws_sso/__init__.py +1 -1
  257. aws_cdk/aws_stepfunctions/__init__.py +1 -1
  258. aws_cdk/aws_stepfunctions_tasks/__init__.py +793 -152
  259. aws_cdk/aws_supportapp/__init__.py +1 -1
  260. aws_cdk/aws_synthetics/__init__.py +1 -1
  261. aws_cdk/aws_systemsmanagersap/__init__.py +1 -1
  262. aws_cdk/aws_timestream/__init__.py +1 -1
  263. aws_cdk/aws_transfer/__init__.py +1 -1
  264. aws_cdk/aws_verifiedpermissions/__init__.py +602 -9
  265. aws_cdk/aws_voiceid/__init__.py +1 -1
  266. aws_cdk/aws_vpclattice/__init__.py +1 -1
  267. aws_cdk/aws_waf/__init__.py +1 -1
  268. aws_cdk/aws_wafregional/__init__.py +1 -1
  269. aws_cdk/aws_wafv2/__init__.py +1 -1
  270. aws_cdk/aws_wisdom/__init__.py +1 -1
  271. aws_cdk/aws_workspaces/__init__.py +774 -1
  272. aws_cdk/aws_workspacesthinclient/__init__.py +1 -1
  273. aws_cdk/aws_workspacesweb/__init__.py +5 -5
  274. aws_cdk/aws_xray/__init__.py +1 -1
  275. aws_cdk/cloud_assembly_schema/__init__.py +1 -1
  276. aws_cdk/cloudformation_include/__init__.py +1 -1
  277. aws_cdk/custom_resources/__init__.py +1 -1
  278. aws_cdk/cx_api/__init__.py +19 -1
  279. aws_cdk/lambda_layer_awscli/__init__.py +1 -1
  280. aws_cdk/lambda_layer_kubectl/__init__.py +1 -1
  281. aws_cdk/lambda_layer_node_proxy_agent/__init__.py +1 -1
  282. aws_cdk/pipelines/__init__.py +2 -2
  283. aws_cdk/region_info/__init__.py +1 -1
  284. aws_cdk/triggers/__init__.py +1 -1
  285. {aws_cdk_lib-2.147.3.dist-info → aws_cdk_lib-2.148.0.dist-info}/METADATA +2 -2
  286. aws_cdk_lib-2.148.0.dist-info/RECORD +291 -0
  287. aws_cdk_lib-2.147.3.dist-info/RECORD +0 -290
  288. {aws_cdk_lib-2.147.3.dist-info → aws_cdk_lib-2.148.0.dist-info}/LICENSE +0 -0
  289. {aws_cdk_lib-2.147.3.dist-info → aws_cdk_lib-2.148.0.dist-info}/NOTICE +0 -0
  290. {aws_cdk_lib-2.147.3.dist-info → aws_cdk_lib-2.148.0.dist-info}/WHEEL +0 -0
  291. {aws_cdk_lib-2.147.3.dist-info → aws_cdk_lib-2.148.0.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # Amazon Bedrock Construct Library
3
3
 
4
4
  Amazon Bedrock is a fully managed service that offers a choice of foundation models (FMs)
@@ -131,6 +131,10 @@ class CfnAgent(
131
131
  customer_encryption_key_arn="customerEncryptionKeyArn",
132
132
  description="description",
133
133
  foundation_model="foundationModel",
134
+ guardrail_configuration=bedrock.CfnAgent.GuardrailConfigurationProperty(
135
+ guardrail_identifier="guardrailIdentifier",
136
+ guardrail_version="guardrailVersion"
137
+ ),
134
138
  idle_session_ttl_in_seconds=123,
135
139
  instruction="instruction",
136
140
  knowledge_bases=[bedrock.CfnAgent.AgentKnowledgeBaseProperty(
@@ -181,6 +185,7 @@ class CfnAgent(
181
185
  customer_encryption_key_arn: typing.Optional[builtins.str] = None,
182
186
  description: typing.Optional[builtins.str] = None,
183
187
  foundation_model: typing.Optional[builtins.str] = None,
188
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.GuardrailConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
184
189
  idle_session_ttl_in_seconds: typing.Optional[jsii.Number] = None,
185
190
  instruction: typing.Optional[builtins.str] = None,
186
191
  knowledge_bases: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAgent.AgentKnowledgeBaseProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -199,6 +204,7 @@ class CfnAgent(
199
204
  :param customer_encryption_key_arn: The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the agent.
200
205
  :param description: The description of the agent.
201
206
  :param foundation_model: The foundation model used for orchestration by the agent.
207
+ :param guardrail_configuration: Details about the guardrail associated with the agent.
202
208
  :param idle_session_ttl_in_seconds: The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
203
209
  :param instruction: Instructions that tell the agent what it should do and how it should interact with users.
204
210
  :param knowledge_bases: The knowledge bases associated with the agent.
@@ -219,6 +225,7 @@ class CfnAgent(
219
225
  customer_encryption_key_arn=customer_encryption_key_arn,
220
226
  description=description,
221
227
  foundation_model=foundation_model,
228
+ guardrail_configuration=guardrail_configuration,
222
229
  idle_session_ttl_in_seconds=idle_session_ttl_in_seconds,
223
230
  instruction=instruction,
224
231
  knowledge_bases=knowledge_bases,
@@ -461,6 +468,24 @@ class CfnAgent(
461
468
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
462
469
  jsii.set(self, "foundationModel", value)
463
470
 
471
+ @builtins.property
472
+ @jsii.member(jsii_name="guardrailConfiguration")
473
+ def guardrail_configuration(
474
+ self,
475
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.GuardrailConfigurationProperty"]]:
476
+ '''Details about the guardrail associated with the agent.'''
477
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.GuardrailConfigurationProperty"]], jsii.get(self, "guardrailConfiguration"))
478
+
479
+ @guardrail_configuration.setter
480
+ def guardrail_configuration(
481
+ self,
482
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAgent.GuardrailConfigurationProperty"]],
483
+ ) -> None:
484
+ if __debug__:
485
+ type_hints = typing.get_type_hints(_typecheckingstub__2a943d3334097d01594a34df767861ec6709d99cd525e60d2d4b88bcabd8de9f)
486
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
487
+ jsii.set(self, "guardrailConfiguration", value)
488
+
464
489
  @builtins.property
465
490
  @jsii.member(jsii_name="idleSessionTtlInSeconds")
466
491
  def idle_session_ttl_in_seconds(self) -> typing.Optional[jsii.Number]:
@@ -1233,6 +1258,79 @@ class CfnAgent(
1233
1258
  k + "=" + repr(v) for k, v in self._values.items()
1234
1259
  )
1235
1260
 
1261
+ @jsii.data_type(
1262
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.GuardrailConfigurationProperty",
1263
+ jsii_struct_bases=[],
1264
+ name_mapping={
1265
+ "guardrail_identifier": "guardrailIdentifier",
1266
+ "guardrail_version": "guardrailVersion",
1267
+ },
1268
+ )
1269
+ class GuardrailConfigurationProperty:
1270
+ def __init__(
1271
+ self,
1272
+ *,
1273
+ guardrail_identifier: typing.Optional[builtins.str] = None,
1274
+ guardrail_version: typing.Optional[builtins.str] = None,
1275
+ ) -> None:
1276
+ '''Configuration information for a guardrail that you use with the ``Converse`` action.
1277
+
1278
+ :param guardrail_identifier: The identifier for the guardrail.
1279
+ :param guardrail_version: The version of the guardrail.
1280
+
1281
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-guardrailconfiguration.html
1282
+ :exampleMetadata: fixture=_generated
1283
+
1284
+ Example::
1285
+
1286
+ # The code below shows an example of how to instantiate this type.
1287
+ # The values are placeholders you should change.
1288
+ from aws_cdk import aws_bedrock as bedrock
1289
+
1290
+ guardrail_configuration_property = bedrock.CfnAgent.GuardrailConfigurationProperty(
1291
+ guardrail_identifier="guardrailIdentifier",
1292
+ guardrail_version="guardrailVersion"
1293
+ )
1294
+ '''
1295
+ if __debug__:
1296
+ type_hints = typing.get_type_hints(_typecheckingstub__efdf581de679cb7af4ff41463b76591d2e1035223ca400da555c5c92eed58106)
1297
+ check_type(argname="argument guardrail_identifier", value=guardrail_identifier, expected_type=type_hints["guardrail_identifier"])
1298
+ check_type(argname="argument guardrail_version", value=guardrail_version, expected_type=type_hints["guardrail_version"])
1299
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
1300
+ if guardrail_identifier is not None:
1301
+ self._values["guardrail_identifier"] = guardrail_identifier
1302
+ if guardrail_version is not None:
1303
+ self._values["guardrail_version"] = guardrail_version
1304
+
1305
+ @builtins.property
1306
+ def guardrail_identifier(self) -> typing.Optional[builtins.str]:
1307
+ '''The identifier for the guardrail.
1308
+
1309
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-guardrailconfiguration.html#cfn-bedrock-agent-guardrailconfiguration-guardrailidentifier
1310
+ '''
1311
+ result = self._values.get("guardrail_identifier")
1312
+ return typing.cast(typing.Optional[builtins.str], result)
1313
+
1314
+ @builtins.property
1315
+ def guardrail_version(self) -> typing.Optional[builtins.str]:
1316
+ '''The version of the guardrail.
1317
+
1318
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-agent-guardrailconfiguration.html#cfn-bedrock-agent-guardrailconfiguration-guardrailversion
1319
+ '''
1320
+ result = self._values.get("guardrail_version")
1321
+ return typing.cast(typing.Optional[builtins.str], result)
1322
+
1323
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1324
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1325
+
1326
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1327
+ return not (rhs == self)
1328
+
1329
+ def __repr__(self) -> str:
1330
+ return "GuardrailConfigurationProperty(%s)" % ", ".join(
1331
+ k + "=" + repr(v) for k, v in self._values.items()
1332
+ )
1333
+
1236
1334
  @jsii.data_type(
1237
1335
  jsii_type="aws-cdk-lib.aws_bedrock.CfnAgent.InferenceConfigurationProperty",
1238
1336
  jsii_struct_bases=[],
@@ -2348,6 +2446,7 @@ class CfnAgentAliasProps:
2348
2446
  "customer_encryption_key_arn": "customerEncryptionKeyArn",
2349
2447
  "description": "description",
2350
2448
  "foundation_model": "foundationModel",
2449
+ "guardrail_configuration": "guardrailConfiguration",
2351
2450
  "idle_session_ttl_in_seconds": "idleSessionTtlInSeconds",
2352
2451
  "instruction": "instruction",
2353
2452
  "knowledge_bases": "knowledgeBases",
@@ -2368,6 +2467,7 @@ class CfnAgentProps:
2368
2467
  customer_encryption_key_arn: typing.Optional[builtins.str] = None,
2369
2468
  description: typing.Optional[builtins.str] = None,
2370
2469
  foundation_model: typing.Optional[builtins.str] = None,
2470
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.GuardrailConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
2371
2471
  idle_session_ttl_in_seconds: typing.Optional[jsii.Number] = None,
2372
2472
  instruction: typing.Optional[builtins.str] = None,
2373
2473
  knowledge_bases: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentKnowledgeBaseProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -2385,6 +2485,7 @@ class CfnAgentProps:
2385
2485
  :param customer_encryption_key_arn: The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the agent.
2386
2486
  :param description: The description of the agent.
2387
2487
  :param foundation_model: The foundation model used for orchestration by the agent.
2488
+ :param guardrail_configuration: Details about the guardrail associated with the agent.
2388
2489
  :param idle_session_ttl_in_seconds: The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
2389
2490
  :param instruction: Instructions that tell the agent what it should do and how it should interact with users.
2390
2491
  :param knowledge_bases: The knowledge bases associated with the agent.
@@ -2448,6 +2549,10 @@ class CfnAgentProps:
2448
2549
  customer_encryption_key_arn="customerEncryptionKeyArn",
2449
2550
  description="description",
2450
2551
  foundation_model="foundationModel",
2552
+ guardrail_configuration=bedrock.CfnAgent.GuardrailConfigurationProperty(
2553
+ guardrail_identifier="guardrailIdentifier",
2554
+ guardrail_version="guardrailVersion"
2555
+ ),
2451
2556
  idle_session_ttl_in_seconds=123,
2452
2557
  instruction="instruction",
2453
2558
  knowledge_bases=[bedrock.CfnAgent.AgentKnowledgeBaseProperty(
@@ -2494,6 +2599,7 @@ class CfnAgentProps:
2494
2599
  check_type(argname="argument customer_encryption_key_arn", value=customer_encryption_key_arn, expected_type=type_hints["customer_encryption_key_arn"])
2495
2600
  check_type(argname="argument description", value=description, expected_type=type_hints["description"])
2496
2601
  check_type(argname="argument foundation_model", value=foundation_model, expected_type=type_hints["foundation_model"])
2602
+ check_type(argname="argument guardrail_configuration", value=guardrail_configuration, expected_type=type_hints["guardrail_configuration"])
2497
2603
  check_type(argname="argument idle_session_ttl_in_seconds", value=idle_session_ttl_in_seconds, expected_type=type_hints["idle_session_ttl_in_seconds"])
2498
2604
  check_type(argname="argument instruction", value=instruction, expected_type=type_hints["instruction"])
2499
2605
  check_type(argname="argument knowledge_bases", value=knowledge_bases, expected_type=type_hints["knowledge_bases"])
@@ -2516,6 +2622,8 @@ class CfnAgentProps:
2516
2622
  self._values["description"] = description
2517
2623
  if foundation_model is not None:
2518
2624
  self._values["foundation_model"] = foundation_model
2625
+ if guardrail_configuration is not None:
2626
+ self._values["guardrail_configuration"] = guardrail_configuration
2519
2627
  if idle_session_ttl_in_seconds is not None:
2520
2628
  self._values["idle_session_ttl_in_seconds"] = idle_session_ttl_in_seconds
2521
2629
  if instruction is not None:
@@ -2603,6 +2711,17 @@ class CfnAgentProps:
2603
2711
  result = self._values.get("foundation_model")
2604
2712
  return typing.cast(typing.Optional[builtins.str], result)
2605
2713
 
2714
+ @builtins.property
2715
+ def guardrail_configuration(
2716
+ self,
2717
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAgent.GuardrailConfigurationProperty]]:
2718
+ '''Details about the guardrail associated with the agent.
2719
+
2720
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agent.html#cfn-bedrock-agent-guardrailconfiguration
2721
+ '''
2722
+ result = self._values.get("guardrail_configuration")
2723
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAgent.GuardrailConfigurationProperty]], result)
2724
+
2606
2725
  @builtins.property
2607
2726
  def idle_session_ttl_in_seconds(self) -> typing.Optional[jsii.Number]:
2608
2727
  '''The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.
@@ -6867,6 +6986,12 @@ class FoundationModelIdentifier(
6867
6986
  '''Base model "ai21.j2-grande-instruct".'''
6868
6987
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_J2_GRANDE_INSTRUCT"))
6869
6988
 
6989
+ @jsii.python.classproperty
6990
+ @jsii.member(jsii_name="AI21_J2_JAMBA_INSTRUCT_V1_0")
6991
+ def AI21_J2_JAMBA_INSTRUCT_V1_0(cls) -> "FoundationModelIdentifier":
6992
+ '''Base model "ai21.jamba-instruct-v1:0".'''
6993
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_J2_JAMBA_INSTRUCT_V1_0"))
6994
+
6870
6995
  @jsii.python.classproperty
6871
6996
  @jsii.member(jsii_name="AI21_J2_JUMBO_INSTRUCT")
6872
6997
  def AI21_J2_JUMBO_INSTRUCT(cls) -> "FoundationModelIdentifier":
@@ -6897,6 +7022,12 @@ class FoundationModelIdentifier(
6897
7022
  '''Base model "ai21.j2-ultra-v1".'''
6898
7023
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_LABS_JURASSIC_2_ULTRA_V1"))
6899
7024
 
7025
+ @jsii.python.classproperty
7026
+ @jsii.member(jsii_name="AI21_LABS_JURASSIC_2_ULTRA_V1_0_8K")
7027
+ def AI21_LABS_JURASSIC_2_ULTRA_V1_0_8_K(cls) -> "FoundationModelIdentifier":
7028
+ '''Base model "ai21.j2-ultra-v1:0:8k".'''
7029
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AI21_LABS_JURASSIC_2_ULTRA_V1_0_8K"))
7030
+
6900
7031
  @jsii.python.classproperty
6901
7032
  @jsii.member(jsii_name="AMAZON_TITAN_EMBED_G1_TEXT_02")
6902
7033
  def AMAZON_TITAN_EMBED_G1_TEXT_02(cls) -> "FoundationModelIdentifier":
@@ -6921,6 +7052,12 @@ class FoundationModelIdentifier(
6921
7052
  '''Base model "amazon.titan-embed-text-v2:0".'''
6922
7053
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_TITAN_EMBED_TEXT_V2_0"))
6923
7054
 
7055
+ @jsii.python.classproperty
7056
+ @jsii.member(jsii_name="AMAZON_TITAN_EMBED_TEXT_V2_0_8K")
7057
+ def AMAZON_TITAN_EMBED_TEXT_V2_0_8_K(cls) -> "FoundationModelIdentifier":
7058
+ '''Base model "amazon.titan-embed-text-v2:0:8k".'''
7059
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_TITAN_EMBED_TEXT_V2_0_8K"))
7060
+
6924
7061
  @jsii.python.classproperty
6925
7062
  @jsii.member(jsii_name="AMAZON_TITAN_EMBEDDINGS_G1_TEXT_V1")
6926
7063
  def AMAZON_TITAN_EMBEDDINGS_G1_TEXT_V1(cls) -> "FoundationModelIdentifier":
@@ -6987,6 +7124,12 @@ class FoundationModelIdentifier(
6987
7124
  '''Base model "amazon.titan-tg1-large".'''
6988
7125
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "AMAZON_TITAN_TG1_LARGE"))
6989
7126
 
7127
+ @jsii.python.classproperty
7128
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0")
7129
+ def ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0(cls) -> "FoundationModelIdentifier":
7130
+ '''Base model "anthropic.claude-3-5-sonnet-20240620-v1:0".'''
7131
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_3_5_SONNET_20240620_V1_0"))
7132
+
6990
7133
  @jsii.python.classproperty
6991
7134
  @jsii.member(jsii_name="ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0")
6992
7135
  def ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0(cls) -> "FoundationModelIdentifier":
@@ -7136,12 +7279,24 @@ class FoundationModelIdentifier(
7136
7279
  '''Base model "cohere.embed-english-v3".'''
7137
7280
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "COHERE_EMBED_ENGLISH_V3"))
7138
7281
 
7282
+ @jsii.python.classproperty
7283
+ @jsii.member(jsii_name="COHERE_EMBED_ENGLISH_V3_0_512")
7284
+ def COHERE_EMBED_ENGLISH_V3_0_512(cls) -> "FoundationModelIdentifier":
7285
+ '''Base model "cohere.embed-english-v3:0:512".'''
7286
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "COHERE_EMBED_ENGLISH_V3_0_512"))
7287
+
7139
7288
  @jsii.python.classproperty
7140
7289
  @jsii.member(jsii_name="COHERE_EMBED_MULTILINGUAL_V3")
7141
7290
  def COHERE_EMBED_MULTILINGUAL_V3(cls) -> "FoundationModelIdentifier":
7142
7291
  '''Base model "cohere.embed-multilingual-v3".'''
7143
7292
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "COHERE_EMBED_MULTILINGUAL_V3"))
7144
7293
 
7294
+ @jsii.python.classproperty
7295
+ @jsii.member(jsii_name="COHERE_EMBED_MULTILINGUAL_V3_0_512")
7296
+ def COHERE_EMBED_MULTILINGUAL_V3_0_512(cls) -> "FoundationModelIdentifier":
7297
+ '''Base model "cohere.embed-multilingual-v3:0:512".'''
7298
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "COHERE_EMBED_MULTILINGUAL_V3_0_512"))
7299
+
7145
7300
  @jsii.python.classproperty
7146
7301
  @jsii.member(jsii_name="META_LLAMA_2_13B_CHAT_V1_0_4K")
7147
7302
  def META_LLAMA_2_13_B_CHAT_V1_0_4_K(cls) -> "FoundationModelIdentifier":
@@ -7220,6 +7375,12 @@ class FoundationModelIdentifier(
7220
7375
  '''Base model "mistral.mixtral-8x7b-instruct-v0:1".'''
7221
7376
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "MISTRAL_MIXTRAL_8X7B_INSTRUCT_V0_1"))
7222
7377
 
7378
+ @jsii.python.classproperty
7379
+ @jsii.member(jsii_name="MISTRAL_SMALL_V0_1")
7380
+ def MISTRAL_SMALL_V0_1(cls) -> "FoundationModelIdentifier":
7381
+ '''Base model "mistral.mistral-small-2402-v1:0".'''
7382
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "MISTRAL_SMALL_V0_1"))
7383
+
7223
7384
  @jsii.python.classproperty
7224
7385
  @jsii.member(jsii_name="STABILITY_STABLE_DIFFUSION_XL")
7225
7386
  def STABILITY_STABLE_DIFFUSION_XL(cls) -> "FoundationModelIdentifier":
@@ -7443,6 +7604,7 @@ def _typecheckingstub__facaad57ffe16da42f099d2b7997f3e6fd3b9eba46fd226d8fb5afe28
7443
7604
  customer_encryption_key_arn: typing.Optional[builtins.str] = None,
7444
7605
  description: typing.Optional[builtins.str] = None,
7445
7606
  foundation_model: typing.Optional[builtins.str] = None,
7607
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.GuardrailConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
7446
7608
  idle_session_ttl_in_seconds: typing.Optional[jsii.Number] = None,
7447
7609
  instruction: typing.Optional[builtins.str] = None,
7448
7610
  knowledge_bases: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentKnowledgeBaseProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -7508,6 +7670,12 @@ def _typecheckingstub__75110aa6cf6cc2a463a78a36e9a6327c59875b1ef94d53da3047b8ec6
7508
7670
  """Type checking stubs"""
7509
7671
  pass
7510
7672
 
7673
+ def _typecheckingstub__2a943d3334097d01594a34df767861ec6709d99cd525e60d2d4b88bcabd8de9f(
7674
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnAgent.GuardrailConfigurationProperty]],
7675
+ ) -> None:
7676
+ """Type checking stubs"""
7677
+ pass
7678
+
7511
7679
  def _typecheckingstub__e29f42af6a8bf7aee6adb6b35e7809da69175082446368854bd402491896a71f(
7512
7680
  value: typing.Optional[jsii.Number],
7513
7681
  ) -> None:
@@ -7605,6 +7773,14 @@ def _typecheckingstub__90c954c5127bf68b4aecb34d9f9ade65e40a4db12d624a80f89415c2d
7605
7773
  """Type checking stubs"""
7606
7774
  pass
7607
7775
 
7776
+ def _typecheckingstub__efdf581de679cb7af4ff41463b76591d2e1035223ca400da555c5c92eed58106(
7777
+ *,
7778
+ guardrail_identifier: typing.Optional[builtins.str] = None,
7779
+ guardrail_version: typing.Optional[builtins.str] = None,
7780
+ ) -> None:
7781
+ """Type checking stubs"""
7782
+ pass
7783
+
7608
7784
  def _typecheckingstub__0b8b0e306d1a46c4fdcedd77b9e6caf3ca221fe8133fe3ce29c1e5e779cc3189(
7609
7785
  *,
7610
7786
  maximum_length: typing.Optional[jsii.Number] = None,
@@ -7744,6 +7920,7 @@ def _typecheckingstub__b4f714080f6d4f9b0a3fe85a8425a8ba69698695e35d6fbd9d710ca5d
7744
7920
  customer_encryption_key_arn: typing.Optional[builtins.str] = None,
7745
7921
  description: typing.Optional[builtins.str] = None,
7746
7922
  foundation_model: typing.Optional[builtins.str] = None,
7923
+ guardrail_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.GuardrailConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
7747
7924
  idle_session_ttl_in_seconds: typing.Optional[jsii.Number] = None,
7748
7925
  instruction: typing.Optional[builtins.str] = None,
7749
7926
  knowledge_bases: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAgent.AgentKnowledgeBaseProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS::BillingConductor Construct Library
3
3
 
4
4
  This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS Budgets Construct Library
3
3
 
4
4
  This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS::Cassandra Construct Library
3
3
 
4
4
  This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS::CE Construct Library
3
3
 
4
4
  This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS Certificate Manager Construct Library
3
3
 
4
4
  AWS Certificate Manager (ACM) handles the complexity of creating, storing, and renewing public and private SSL/TLS X.509 certificates and keys that
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS::Chatbot Construct Library
3
3
 
4
4
  AWS Chatbot is an AWS service that enables DevOps and software development teams to use Slack chat rooms to monitor and respond to operational events in their AWS Cloud. AWS Chatbot processes AWS service notifications from Amazon Simple Notification Service (Amazon SNS), and forwards them to Slack chat rooms so teams can analyze and act on them immediately, regardless of location.
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS::CleanRooms Construct Library
3
3
 
4
4
  <!--BEGIN STABILITY BANNER-->---
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS::CleanRoomsML Construct Library
3
3
 
4
4
  <!--BEGIN STABILITY BANNER-->---
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS Cloud9 Construct Library
3
3
 
4
4
  This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS CloudFormation Construct Library
3
3
 
4
4
  This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # Amazon CloudFront Construct Library
3
3
 
4
4
  Amazon CloudFront is a web service that speeds up distribution of your static and dynamic web content, such as .html, .css, .js, and image files, to
@@ -550,6 +550,20 @@ class EdgeFunction(
550
550
  check_type(argname="argument composite_principal", value=composite_principal, expected_type=type_hints["composite_principal"])
551
551
  return typing.cast(typing.List[_Grant_a7ae64f8], jsii.invoke(self, "grantInvokeCompositePrincipal", [composite_principal]))
552
552
 
553
+ @jsii.member(jsii_name="grantInvokeLatestVersion")
554
+ def grant_invoke_latest_version(
555
+ self,
556
+ identity: _IGrantable_71c4f5de,
557
+ ) -> _Grant_a7ae64f8:
558
+ '''Grant the given identity permissions to invoke the $LATEST version or unqualified version of this Lambda.
559
+
560
+ :param identity: -
561
+ '''
562
+ if __debug__:
563
+ type_hints = typing.get_type_hints(_typecheckingstub__9b6e8fe291f0469edae68b1b4c1d48a71aec5c50f760d822915b7c8c7d6ad3e4)
564
+ check_type(argname="argument identity", value=identity, expected_type=type_hints["identity"])
565
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantInvokeLatestVersion", [identity]))
566
+
553
567
  @jsii.member(jsii_name="grantInvokeUrl")
554
568
  def grant_invoke_url(self, identity: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
555
569
  '''Grant the given identity permissions to invoke this Lambda Function URL.
@@ -561,6 +575,23 @@ class EdgeFunction(
561
575
  check_type(argname="argument identity", value=identity, expected_type=type_hints["identity"])
562
576
  return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantInvokeUrl", [identity]))
563
577
 
578
+ @jsii.member(jsii_name="grantInvokeVersion")
579
+ def grant_invoke_version(
580
+ self,
581
+ identity: _IGrantable_71c4f5de,
582
+ version: _IVersion_faf7234e,
583
+ ) -> _Grant_a7ae64f8:
584
+ '''Grant the given identity permissions to invoke the given version of this Lambda.
585
+
586
+ :param identity: -
587
+ :param version: -
588
+ '''
589
+ if __debug__:
590
+ type_hints = typing.get_type_hints(_typecheckingstub__8e00b9f9033876bc1295887075ef1ce7aa929db4e9dc7d0d7162aa9ee6d4508e)
591
+ check_type(argname="argument identity", value=identity, expected_type=type_hints["identity"])
592
+ check_type(argname="argument version", value=version, expected_type=type_hints["version"])
593
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantInvokeVersion", [identity, version]))
594
+
564
595
  @jsii.member(jsii_name="metric")
565
596
  def metric(
566
597
  self,
@@ -1996,12 +2027,25 @@ def _typecheckingstub__64c93d4b313937d0690e557edc94df44e1df66523bdc2a85384cfe310
1996
2027
  """Type checking stubs"""
1997
2028
  pass
1998
2029
 
2030
+ def _typecheckingstub__9b6e8fe291f0469edae68b1b4c1d48a71aec5c50f760d822915b7c8c7d6ad3e4(
2031
+ identity: _IGrantable_71c4f5de,
2032
+ ) -> None:
2033
+ """Type checking stubs"""
2034
+ pass
2035
+
1999
2036
  def _typecheckingstub__d96b6feda81e352ac9cf655dd7c949f0071932768ea9b423e4bcc49841ebce16(
2000
2037
  identity: _IGrantable_71c4f5de,
2001
2038
  ) -> None:
2002
2039
  """Type checking stubs"""
2003
2040
  pass
2004
2041
 
2042
+ def _typecheckingstub__8e00b9f9033876bc1295887075ef1ce7aa929db4e9dc7d0d7162aa9ee6d4508e(
2043
+ identity: _IGrantable_71c4f5de,
2044
+ version: _IVersion_faf7234e,
2045
+ ) -> None:
2046
+ """Type checking stubs"""
2047
+ pass
2048
+
2005
2049
  def _typecheckingstub__e35fb51736b3036c83dc4af9104a7ec11601ff54bef98bdf17e2325a3a1d9f89(
2006
2050
  metric_name: builtins.str,
2007
2051
  *,
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # CloudFront Origins for the CDK CloudFront Library
3
3
 
4
4
  This library contains convenience methods for defining origins for a CloudFront distribution. You can use this library to create origins from
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # AWS CloudTrail Construct Library
3
3
 
4
4
  ## Trail
@@ -2451,8 +2451,8 @@ class CfnTrail(
2451
2451
  :param is_logging: Whether the CloudTrail trail is currently logging AWS API calls.
2452
2452
  :param s3_bucket_name: Specifies the name of the Amazon S3 bucket designated for publishing log files. See `Amazon S3 Bucket naming rules <https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html>`_ .
2453
2453
  :param advanced_event_selectors: Specifies the settings for advanced event selectors. You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. You can use either ``AdvancedEventSelectors`` or ``EventSelectors`` , but not both. If you apply ``AdvancedEventSelectors`` to a trail, any existing ``EventSelectors`` are overwritten. For more information about advanced event selectors, see `Logging data events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html>`_ in the *AWS CloudTrail User Guide* .
2454
- :param cloud_watch_logs_log_group_arn: Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. You must use a log group that exists in your account. Not required unless you specify ``CloudWatchLogsRoleArn`` .
2455
- :param cloud_watch_logs_role_arn: Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group. You must use a role that exists in your account.
2454
+ :param cloud_watch_logs_log_group_arn: Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. You must use a log group that exists in your account. To enable CloudWatch Logs delivery, you must provide values for ``CloudWatchLogsLogGroupArn`` and ``CloudWatchLogsRoleArn`` . .. epigraph:: If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs delivery, you must set the values of the ``CloudWatchLogsRoleArn`` and ``CloudWatchLogsLogGroupArn`` fields to ``""`` .
2455
+ :param cloud_watch_logs_role_arn: Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group. You must use a role that exists in your account. To enable CloudWatch Logs delivery, you must provide values for ``CloudWatchLogsLogGroupArn`` and ``CloudWatchLogsRoleArn`` . .. epigraph:: If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs delivery, you must set the values of the ``CloudWatchLogsRoleArn`` and ``CloudWatchLogsLogGroupArn`` fields to ``""`` .
2456
2456
  :param enable_log_file_validation: Specifies whether log file validation is enabled. The default is false. .. epigraph:: When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail does not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.
2457
2457
  :param event_selectors: Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event. You can configure up to five event selectors for a trail. You cannot apply both event selectors and advanced event selectors to a trail.
2458
2458
  :param include_global_service_events: Specifies whether the trail is publishing events from global services such as IAM to the log files.
@@ -3465,11 +3465,11 @@ class CfnTrail(
3465
3465
 
3466
3466
  If you are using advanced event selectors, the maximum total number of values for all conditions, across all advanced event selectors for the trail, is 500.
3467
3467
 
3468
- The following example demonstrates how logging works when you configure logging of all data events for an S3 bucket named ``bucket-1`` . In this example, the CloudTrail user specified an empty prefix, and the option to log both ``Read`` and ``Write`` data events.
3468
+ The following example demonstrates how logging works when you configure logging of all data events for an S3 bucket named ``DOC-EXAMPLE-BUCKET1`` . In this example, the CloudTrail user specified an empty prefix, and the option to log both ``Read`` and ``Write`` data events.
3469
3469
 
3470
- - A user uploads an image file to ``bucket-1`` .
3470
+ - A user uploads an image file to ``DOC-EXAMPLE-BUCKET1`` .
3471
3471
  - The ``PutObject`` API operation is an Amazon S3 object-level API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified an S3 bucket with an empty prefix, events that occur on any object in that bucket are logged. The trail processes and logs the event.
3472
- - A user uploads an object to an Amazon S3 bucket named ``arn:aws:s3:::bucket-2`` .
3472
+ - A user uploads an object to an Amazon S3 bucket named ``arn:aws:s3:::DOC-EXAMPLE-BUCKET1`` .
3473
3473
  - The ``PutObject`` API operation occurred for an object in an S3 bucket that the CloudTrail user didn't specify for the trail. The trail doesn’t log the event.
3474
3474
 
3475
3475
  The following example demonstrates how logging works when you configure logging of AWS Lambda data events for a Lambda function named *MyLambdaFunction* , but not for all Lambda functions.
@@ -3479,7 +3479,7 @@ class CfnTrail(
3479
3479
  - The ``Invoke`` API operation on *MyOtherLambdaFunction* is an Lambda API. Because the CloudTrail user did not specify logging data events for all Lambda functions, the ``Invoke`` operation for *MyOtherLambdaFunction* does not match the function specified for the trail. The trail doesn’t log the event.
3480
3480
 
3481
3481
  :param type: The resource type in which you want to log data events. You can specify the following *basic* event selector resource types: - ``AWS::DynamoDB::Table`` - ``AWS::Lambda::Function`` - ``AWS::S3::Object`` Additional resource types are available through *advanced* event selectors. For more information about these additional resource types, see `AdvancedFieldSelector <https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedFieldSelector.html>`_ .
3482
- :param values: An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified resource type. - To log data events for all objects in all S3 buckets in your AWS account , specify the prefix as ``arn:aws:s3`` . .. epigraph:: This also enables logging of data event activity performed by any user or role in your AWS account , even if that activity is performed on a bucket that belongs to another AWS account . - To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as ``arn:aws:s3:::bucket-1/`` . The trail logs data events for all objects in this S3 bucket. - To log data events for specific objects, specify the S3 bucket and object prefix such as ``arn:aws:s3:::bucket-1/example-images`` . The trail logs data events for objects in this S3 bucket that match the prefix. - To log data events for all Lambda functions in your AWS account , specify the prefix as ``arn:aws:lambda`` . .. epigraph:: This also enables logging of ``Invoke`` activity performed by any user or role in your AWS account , even if that activity is performed on a function that belongs to another AWS account . - To log data events for a specific Lambda function, specify the function ARN. .. epigraph:: Lambda function ARNs are exact. For example, if you specify a function ARN *arn:aws:lambda:us-west-2:111111111111:function:helloworld* , data events will only be logged for *arn:aws:lambda:us-west-2:111111111111:function:helloworld* . They will not be logged for *arn:aws:lambda:us-west-2:111111111111:function:helloworld2* . - To log data events for all DynamoDB tables in your AWS account , specify the prefix as ``arn:aws:dynamodb`` .
3482
+ :param values: An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified resource type. - To log data events for all objects in all S3 buckets in your AWS account , specify the prefix as ``arn:aws:s3`` . .. epigraph:: This also enables logging of data event activity performed by any user or role in your AWS account , even if that activity is performed on a bucket that belongs to another AWS account . - To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as ``arn:aws:s3:::DOC-EXAMPLE-BUCKET1/`` . The trail logs data events for all objects in this S3 bucket. - To log data events for specific objects, specify the S3 bucket and object prefix such as ``arn:aws:s3:::DOC-EXAMPLE-BUCKET1/example-images`` . The trail logs data events for objects in this S3 bucket that match the prefix. - To log data events for all Lambda functions in your AWS account , specify the prefix as ``arn:aws:lambda`` . .. epigraph:: This also enables logging of ``Invoke`` activity performed by any user or role in your AWS account , even if that activity is performed on a function that belongs to another AWS account . - To log data events for a specific Lambda function, specify the function ARN. .. epigraph:: Lambda function ARNs are exact. For example, if you specify a function ARN *arn:aws:lambda:us-west-2:111111111111:function:helloworld* , data events will only be logged for *arn:aws:lambda:us-west-2:111111111111:function:helloworld* . They will not be logged for *arn:aws:lambda:us-west-2:111111111111:function:helloworld2* . - To log data events for all DynamoDB tables in your AWS account , specify the prefix as ``arn:aws:dynamodb`` .
3483
3483
 
3484
3484
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-dataresource.html
3485
3485
  :exampleMetadata: fixture=_generated
@@ -3535,8 +3535,8 @@ class CfnTrail(
3535
3535
 
3536
3536
  This also enables logging of data event activity performed by any user or role in your AWS account , even if that activity is performed on a bucket that belongs to another AWS account .
3537
3537
 
3538
- - To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as ``arn:aws:s3:::bucket-1/`` . The trail logs data events for all objects in this S3 bucket.
3539
- - To log data events for specific objects, specify the S3 bucket and object prefix such as ``arn:aws:s3:::bucket-1/example-images`` . The trail logs data events for objects in this S3 bucket that match the prefix.
3538
+ - To log data events for all objects in an S3 bucket, specify the bucket and an empty object prefix such as ``arn:aws:s3:::DOC-EXAMPLE-BUCKET1/`` . The trail logs data events for all objects in this S3 bucket.
3539
+ - To log data events for specific objects, specify the S3 bucket and object prefix such as ``arn:aws:s3:::DOC-EXAMPLE-BUCKET1/example-images`` . The trail logs data events for objects in this S3 bucket that match the prefix.
3540
3540
  - To log data events for all Lambda functions in your AWS account , specify the prefix as ``arn:aws:lambda`` .
3541
3541
 
3542
3542
  .. epigraph::
@@ -3813,8 +3813,8 @@ class CfnTrailProps:
3813
3813
  :param is_logging: Whether the CloudTrail trail is currently logging AWS API calls.
3814
3814
  :param s3_bucket_name: Specifies the name of the Amazon S3 bucket designated for publishing log files. See `Amazon S3 Bucket naming rules <https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html>`_ .
3815
3815
  :param advanced_event_selectors: Specifies the settings for advanced event selectors. You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. You can use either ``AdvancedEventSelectors`` or ``EventSelectors`` , but not both. If you apply ``AdvancedEventSelectors`` to a trail, any existing ``EventSelectors`` are overwritten. For more information about advanced event selectors, see `Logging data events <https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html>`_ in the *AWS CloudTrail User Guide* .
3816
- :param cloud_watch_logs_log_group_arn: Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. You must use a log group that exists in your account. Not required unless you specify ``CloudWatchLogsRoleArn`` .
3817
- :param cloud_watch_logs_role_arn: Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group. You must use a role that exists in your account.
3816
+ :param cloud_watch_logs_log_group_arn: Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. You must use a log group that exists in your account. To enable CloudWatch Logs delivery, you must provide values for ``CloudWatchLogsLogGroupArn`` and ``CloudWatchLogsRoleArn`` . .. epigraph:: If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs delivery, you must set the values of the ``CloudWatchLogsRoleArn`` and ``CloudWatchLogsLogGroupArn`` fields to ``""`` .
3817
+ :param cloud_watch_logs_role_arn: Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group. You must use a role that exists in your account. To enable CloudWatch Logs delivery, you must provide values for ``CloudWatchLogsLogGroupArn`` and ``CloudWatchLogsRoleArn`` . .. epigraph:: If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs delivery, you must set the values of the ``CloudWatchLogsRoleArn`` and ``CloudWatchLogsLogGroupArn`` fields to ``""`` .
3818
3818
  :param enable_log_file_validation: Specifies whether log file validation is enabled. The default is false. .. epigraph:: When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail does not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.
3819
3819
  :param event_selectors: Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event. You can configure up to five event selectors for a trail. You cannot apply both event selectors and advanced event selectors to a trail.
3820
3820
  :param include_global_service_events: Specifies whether the trail is publishing events from global services such as IAM to the log files.
@@ -3979,7 +3979,10 @@ class CfnTrailProps:
3979
3979
 
3980
3980
  You must use a log group that exists in your account.
3981
3981
 
3982
- Not required unless you specify ``CloudWatchLogsRoleArn`` .
3982
+ To enable CloudWatch Logs delivery, you must provide values for ``CloudWatchLogsLogGroupArn`` and ``CloudWatchLogsRoleArn`` .
3983
+ .. epigraph::
3984
+
3985
+ If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs delivery, you must set the values of the ``CloudWatchLogsRoleArn`` and ``CloudWatchLogsLogGroupArn`` fields to ``""`` .
3983
3986
 
3984
3987
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsloggrouparn
3985
3988
  '''
@@ -3992,6 +3995,11 @@ class CfnTrailProps:
3992
3995
 
3993
3996
  You must use a role that exists in your account.
3994
3997
 
3998
+ To enable CloudWatch Logs delivery, you must provide values for ``CloudWatchLogsLogGroupArn`` and ``CloudWatchLogsRoleArn`` .
3999
+ .. epigraph::
4000
+
4001
+ If you previously enabled CloudWatch Logs delivery and want to disable CloudWatch Logs delivery, you must set the values of the ``CloudWatchLogsRoleArn`` and ``CloudWatchLogsLogGroupArn`` fields to ``""`` .
4002
+
3995
4003
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsrolearn
3996
4004
  '''
3997
4005
  result = self._values.get("cloud_watch_logs_role_arn")
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # Amazon CloudWatch Construct Library
3
3
 
4
4
  ## Metric objects
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  # CloudWatch Alarm Actions library
3
3
 
4
4
  This library contains a set of classes which can be used as CloudWatch Alarm actions.