aws-cdk-lib 2.148.1__py3-none-any.whl → 2.150.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 (51) hide show
  1. aws_cdk/__init__.py +4 -8
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.148.1.jsii.tgz → aws-cdk-lib@2.150.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_applicationautoscaling/__init__.py +16 -12
  5. aws_cdk/aws_bedrock/__init__.py +60 -28
  6. aws_cdk/aws_cloudformation/__init__.py +4 -8
  7. aws_cdk/aws_cloudtrail/__init__.py +30 -558
  8. aws_cdk/aws_cloudwatch/__init__.py +1 -1
  9. aws_cdk/aws_codebuild/__init__.py +57 -5
  10. aws_cdk/aws_codecommit/__init__.py +103 -0
  11. aws_cdk/aws_codedeploy/__init__.py +251 -5
  12. aws_cdk/aws_codepipeline/__init__.py +80 -5
  13. aws_cdk/aws_codestarnotifications/__init__.py +90 -4
  14. aws_cdk/aws_cognito/__init__.py +1 -2
  15. aws_cdk/aws_deadline/__init__.py +9 -15
  16. aws_cdk/aws_dms/__init__.py +10 -10
  17. aws_cdk/aws_ec2/__init__.py +86 -4
  18. aws_cdk/aws_ecs/__init__.py +10 -8
  19. aws_cdk/aws_eks/__init__.py +26 -20
  20. aws_cdk/aws_elasticloadbalancingv2/__init__.py +2 -2
  21. aws_cdk/aws_emr/__init__.py +26 -28
  22. aws_cdk/aws_events/__init__.py +1 -13
  23. aws_cdk/aws_fsx/__init__.py +25 -23
  24. aws_cdk/aws_glue/__init__.py +3 -3
  25. aws_cdk/aws_guardduty/__init__.py +6 -4
  26. aws_cdk/aws_iam/__init__.py +8 -5
  27. aws_cdk/aws_kinesisanalytics/__init__.py +11 -11
  28. aws_cdk/aws_kinesisanalyticsv2/__init__.py +11 -11
  29. aws_cdk/aws_lambda/__init__.py +19 -2
  30. aws_cdk/aws_logs/__init__.py +9 -0
  31. aws_cdk/aws_qbusiness/__init__.py +21 -7
  32. aws_cdk/aws_rds/__init__.py +18 -12
  33. aws_cdk/aws_rolesanywhere/__init__.py +22 -13
  34. aws_cdk/aws_route53profiles/__init__.py +4 -4
  35. aws_cdk/aws_s3/__init__.py +15 -117
  36. aws_cdk/aws_sagemaker/__init__.py +10 -10
  37. aws_cdk/aws_ses/__init__.py +119 -102
  38. aws_cdk/aws_stepfunctions_tasks/__init__.py +215 -24
  39. aws_cdk/aws_synthetics/__init__.py +15 -1
  40. aws_cdk/aws_verifiedpermissions/__init__.py +7 -9
  41. aws_cdk/aws_wafv2/__init__.py +10 -16
  42. aws_cdk/aws_workspaces/__init__.py +86 -56
  43. aws_cdk/custom_resources/__init__.py +91 -23
  44. aws_cdk/pipelines/__init__.py +1 -1
  45. aws_cdk/region_info/__init__.py +32 -12
  46. {aws_cdk_lib-2.148.1.dist-info → aws_cdk_lib-2.150.0.dist-info}/METADATA +1 -1
  47. {aws_cdk_lib-2.148.1.dist-info → aws_cdk_lib-2.150.0.dist-info}/RECORD +51 -51
  48. {aws_cdk_lib-2.148.1.dist-info → aws_cdk_lib-2.150.0.dist-info}/LICENSE +0 -0
  49. {aws_cdk_lib-2.148.1.dist-info → aws_cdk_lib-2.150.0.dist-info}/NOTICE +0 -0
  50. {aws_cdk_lib-2.148.1.dist-info → aws_cdk_lib-2.150.0.dist-info}/WHEEL +0 -0
  51. {aws_cdk_lib-2.148.1.dist-info → aws_cdk_lib-2.150.0.dist-info}/top_level.txt +0 -0
@@ -316,6 +316,28 @@ start_query_execution_job = tasks.AthenaStartQueryExecution(self, "Start Athena
316
316
  )
317
317
  ```
318
318
 
319
+ You can reuse the query results by setting the `resultReuseConfigurationMaxAge` property.
320
+
321
+ ```python
322
+ start_query_execution_job = tasks.AthenaStartQueryExecution(self, "Start Athena Query",
323
+ query_string=sfn.JsonPath.string_at("$.queryString"),
324
+ query_execution_context=tasks.QueryExecutionContext(
325
+ database_name="mydatabase"
326
+ ),
327
+ result_configuration=tasks.ResultConfiguration(
328
+ encryption_configuration=tasks.EncryptionConfiguration(
329
+ encryption_option=tasks.EncryptionOption.S3_MANAGED
330
+ ),
331
+ output_location=s3.Location(
332
+ bucket_name="query-results-bucket",
333
+ object_key="folder"
334
+ )
335
+ ),
336
+ execution_parameters=["param1", "param2"],
337
+ result_reuse_configuration_max_age=Duration.minutes(100)
338
+ )
339
+ ```
340
+
319
341
  ### GetQueryExecution
320
342
 
321
343
  The [GetQueryExecution](https://docs.aws.amazon.com/athena/latest/APIReference/API_GetQueryExecution.html) API gets information about a single execution of a query.
@@ -398,6 +420,30 @@ task = tasks.BedrockInvokeModel(self, "Prompt Model",
398
420
  )
399
421
  ```
400
422
 
423
+ You can apply a guardrail to the invocation by setting `guardrail`.
424
+
425
+ ```python
426
+ import aws_cdk.aws_bedrock as bedrock
427
+
428
+
429
+ model = bedrock.FoundationModel.from_foundation_model_id(self, "Model", bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1)
430
+
431
+ task = tasks.BedrockInvokeModel(self, "Prompt Model with guardrail",
432
+ model=model,
433
+ body=sfn.TaskInput.from_object({
434
+ "input_text": "Generate a list of five first names.",
435
+ "text_generation_config": {
436
+ "max_token_count": 100,
437
+ "temperature": 1
438
+ }
439
+ }),
440
+ guardrail=tasks.Guardrail.enable("guardrailId", 1),
441
+ result_selector={
442
+ "names": sfn.JsonPath.string_at("$.Body.results[0].outputText")
443
+ }
444
+ )
445
+ ```
446
+
401
447
  ## CodeBuild
402
448
 
403
449
  Step Functions supports [CodeBuild](https://docs.aws.amazon.com/step-functions/latest/dg/connect-codebuild.html) through the service integration pattern.
@@ -3018,6 +3064,7 @@ class AthenaStartQueryExecution(
3018
3064
  execution_parameters: typing.Optional[typing.Sequence[builtins.str]] = None,
3019
3065
  query_execution_context: typing.Optional[typing.Union["QueryExecutionContext", typing.Dict[builtins.str, typing.Any]]] = None,
3020
3066
  result_configuration: typing.Optional[typing.Union["ResultConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
3067
+ result_reuse_configuration_max_age: typing.Optional[_Duration_4839e8c3] = None,
3021
3068
  work_group: typing.Optional[builtins.str] = None,
3022
3069
  comment: typing.Optional[builtins.str] = None,
3023
3070
  credentials: typing.Optional[typing.Union[_Credentials_2cd64c6b, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -3040,6 +3087,7 @@ class AthenaStartQueryExecution(
3040
3087
  :param execution_parameters: A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur. Default: - No parameters
3041
3088
  :param query_execution_context: Database within which query executes. Default: - No query execution context
3042
3089
  :param result_configuration: Configuration on how and where to save query. Default: - No result configuration
3090
+ :param result_reuse_configuration_max_age: Specifies, in minutes, the maximum age of a previous query result that Athena should consider for reuse. Default: - Query results are not reused
3043
3091
  :param work_group: Configuration on how and where to save query. Default: - No work group
3044
3092
  :param comment: An optional description for this state. Default: - No comment
3045
3093
  :param credentials: Credentials for an IAM Role that the State Machine assumes for executing the task. This enables cross-account resource invocations. Default: - None (Task is executed using the State Machine's execution role)
@@ -3064,6 +3112,7 @@ class AthenaStartQueryExecution(
3064
3112
  execution_parameters=execution_parameters,
3065
3113
  query_execution_context=query_execution_context,
3066
3114
  result_configuration=result_configuration,
3115
+ result_reuse_configuration_max_age=result_reuse_configuration_max_age,
3067
3116
  work_group=work_group,
3068
3117
  comment=comment,
3069
3118
  credentials=credentials,
@@ -3113,6 +3162,7 @@ class AthenaStartQueryExecution(
3113
3162
  "execution_parameters": "executionParameters",
3114
3163
  "query_execution_context": "queryExecutionContext",
3115
3164
  "result_configuration": "resultConfiguration",
3165
+ "result_reuse_configuration_max_age": "resultReuseConfigurationMaxAge",
3116
3166
  "work_group": "workGroup",
3117
3167
  },
3118
3168
  )
@@ -3137,6 +3187,7 @@ class AthenaStartQueryExecutionProps(_TaskStateBaseProps_3a62b6d0):
3137
3187
  execution_parameters: typing.Optional[typing.Sequence[builtins.str]] = None,
3138
3188
  query_execution_context: typing.Optional[typing.Union["QueryExecutionContext", typing.Dict[builtins.str, typing.Any]]] = None,
3139
3189
  result_configuration: typing.Optional[typing.Union["ResultConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
3190
+ result_reuse_configuration_max_age: typing.Optional[_Duration_4839e8c3] = None,
3140
3191
  work_group: typing.Optional[builtins.str] = None,
3141
3192
  ) -> None:
3142
3193
  '''Properties for starting a Query Execution.
@@ -3158,6 +3209,7 @@ class AthenaStartQueryExecutionProps(_TaskStateBaseProps_3a62b6d0):
3158
3209
  :param execution_parameters: A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur. Default: - No parameters
3159
3210
  :param query_execution_context: Database within which query executes. Default: - No query execution context
3160
3211
  :param result_configuration: Configuration on how and where to save query. Default: - No result configuration
3212
+ :param result_reuse_configuration_max_age: Specifies, in minutes, the maximum age of a previous query result that Athena should consider for reuse. Default: - Query results are not reused
3161
3213
  :param work_group: Configuration on how and where to save query. Default: - No work group
3162
3214
 
3163
3215
  :exampleMetadata: infused
@@ -3206,6 +3258,7 @@ class AthenaStartQueryExecutionProps(_TaskStateBaseProps_3a62b6d0):
3206
3258
  check_type(argname="argument execution_parameters", value=execution_parameters, expected_type=type_hints["execution_parameters"])
3207
3259
  check_type(argname="argument query_execution_context", value=query_execution_context, expected_type=type_hints["query_execution_context"])
3208
3260
  check_type(argname="argument result_configuration", value=result_configuration, expected_type=type_hints["result_configuration"])
3261
+ check_type(argname="argument result_reuse_configuration_max_age", value=result_reuse_configuration_max_age, expected_type=type_hints["result_reuse_configuration_max_age"])
3209
3262
  check_type(argname="argument work_group", value=work_group, expected_type=type_hints["work_group"])
3210
3263
  self._values: typing.Dict[builtins.str, typing.Any] = {
3211
3264
  "query_string": query_string,
@@ -3242,6 +3295,8 @@ class AthenaStartQueryExecutionProps(_TaskStateBaseProps_3a62b6d0):
3242
3295
  self._values["query_execution_context"] = query_execution_context
3243
3296
  if result_configuration is not None:
3244
3297
  self._values["result_configuration"] = result_configuration
3298
+ if result_reuse_configuration_max_age is not None:
3299
+ self._values["result_reuse_configuration_max_age"] = result_reuse_configuration_max_age
3245
3300
  if work_group is not None:
3246
3301
  self._values["work_group"] = work_group
3247
3302
 
@@ -3446,6 +3501,15 @@ class AthenaStartQueryExecutionProps(_TaskStateBaseProps_3a62b6d0):
3446
3501
  result = self._values.get("result_configuration")
3447
3502
  return typing.cast(typing.Optional["ResultConfiguration"], result)
3448
3503
 
3504
+ @builtins.property
3505
+ def result_reuse_configuration_max_age(self) -> typing.Optional[_Duration_4839e8c3]:
3506
+ '''Specifies, in minutes, the maximum age of a previous query result that Athena should consider for reuse.
3507
+
3508
+ :default: - Query results are not reused
3509
+ '''
3510
+ result = self._values.get("result_reuse_configuration_max_age")
3511
+ return typing.cast(typing.Optional[_Duration_4839e8c3], result)
3512
+
3449
3513
  @builtins.property
3450
3514
  def work_group(self) -> typing.Optional[builtins.str]:
3451
3515
  '''Configuration on how and where to save query.
@@ -4660,8 +4724,10 @@ class BedrockInvokeModel(
4660
4724
  accept: typing.Optional[builtins.str] = None,
4661
4725
  body: typing.Optional[_TaskInput_91b91b91] = None,
4662
4726
  content_type: typing.Optional[builtins.str] = None,
4727
+ guardrail: typing.Optional["Guardrail"] = None,
4663
4728
  input: typing.Optional[typing.Union["BedrockInvokeModelInputProps", typing.Dict[builtins.str, typing.Any]]] = None,
4664
4729
  output: typing.Optional[typing.Union["BedrockInvokeModelOutputProps", typing.Dict[builtins.str, typing.Any]]] = None,
4730
+ trace_enabled: typing.Optional[builtins.bool] = None,
4665
4731
  comment: typing.Optional[builtins.str] = None,
4666
4732
  credentials: typing.Optional[typing.Union[_Credentials_2cd64c6b, typing.Dict[builtins.str, typing.Any]]] = None,
4667
4733
  heartbeat: typing.Optional[_Duration_4839e8c3] = None,
@@ -4680,10 +4746,12 @@ class BedrockInvokeModel(
4680
4746
  :param id: Descriptive identifier for this chainable.
4681
4747
  :param model: The Bedrock model that the task will invoke.
4682
4748
  :param accept: The desired MIME type of the inference body in the response. Default: 'application/json'
4683
- :param body: The input data for the Bedrock model invocation. The inference parameters contained in the body depend on the Bedrock model being used. The body must be in the format specified in the ``contentType`` field. For example, if the content type is ``application/json``, the body must be JSON formatted. The body must be up to 256 KB in size. For input data that exceeds 256 KB, use ``input`` instead to retrieve the input data from S3. You must specify either the ``body`` or the ``input`` field, but not both. Default: Input data is retrieved from the location specified in the ``input`` field
4684
- :param content_type: The MIME type of the input data in the request. Default: 'application/json'
4685
- :param input: The source location to retrieve the input data from. Default: Input data is retrieved from the ``body`` field
4686
- :param output: The destination location where the API response is written. If you specify this field, the API response body is replaced with a reference to the output location. Default: The API response body is returned in the result.
4749
+ :param body: The input data for the Bedrock model invocation. The inference parameters contained in the body depend on the Bedrock model being used. The body must be in the format specified in the ``contentType`` field. For example, if the content type is ``application/json``, the body must be JSON formatted. The body must be up to 256 KB in size. For input data that exceeds 256 KB, use ``input`` instead to retrieve the input data from S3. You must specify either the ``body`` or the ``input`` field, but not both. Default: - Input data is retrieved from the location specified in the ``input`` field
4750
+ :param content_type: (deprecated) The MIME type of the input data in the request. Default: 'application/json'
4751
+ :param guardrail: The guardrail is applied to the invocation. Default: - No guardrail is applied to the invocation.
4752
+ :param input: The source location to retrieve the input data from. Default: - Input data is retrieved from the ``body`` field
4753
+ :param output: The destination location where the API response is written. If you specify this field, the API response body is replaced with a reference to the output location. Default: - The API response body is returned in the result.
4754
+ :param trace_enabled: Specifies whether to enable or disable the Bedrock trace. Default: - Trace is not enabled for the invocation.
4687
4755
  :param comment: An optional description for this state. Default: - No comment
4688
4756
  :param credentials: Credentials for an IAM Role that the State Machine assumes for executing the task. This enables cross-account resource invocations. Default: - None (Task is executed using the State Machine's execution role)
4689
4757
  :param heartbeat: (deprecated) Timeout for the heartbeat. Default: - None
@@ -4706,8 +4774,10 @@ class BedrockInvokeModel(
4706
4774
  accept=accept,
4707
4775
  body=body,
4708
4776
  content_type=content_type,
4777
+ guardrail=guardrail,
4709
4778
  input=input,
4710
4779
  output=output,
4780
+ trace_enabled=trace_enabled,
4711
4781
  comment=comment,
4712
4782
  credentials=credentials,
4713
4783
  heartbeat=heartbeat,
@@ -4748,7 +4818,7 @@ class BedrockInvokeModelInputProps:
4748
4818
  ) -> None:
4749
4819
  '''Location to retrieve the input data, prior to calling Bedrock InvokeModel.
4750
4820
 
4751
- :param s3_location: S3 object to retrieve the input data from. If the S3 location is not set, then the Body must be set. Default: Input data is retrieved from the ``body`` field
4821
+ :param s3_location: S3 object to retrieve the input data from. If the S3 location is not set, then the Body must be set. Default: - Input data is retrieved from the ``body`` field
4752
4822
 
4753
4823
  :see: https://docs.aws.amazon.com/step-functions/latest/dg/connect-bedrock.html
4754
4824
  :exampleMetadata: fixture=_generated
@@ -4784,7 +4854,7 @@ class BedrockInvokeModelInputProps:
4784
4854
 
4785
4855
  If the S3 location is not set, then the Body must be set.
4786
4856
 
4787
- :default: Input data is retrieved from the ``body`` field
4857
+ :default: - Input data is retrieved from the ``body`` field
4788
4858
  '''
4789
4859
  result = self._values.get("s3_location")
4790
4860
  return typing.cast(typing.Optional[_Location_0948fa7f], result)
@@ -4814,7 +4884,7 @@ class BedrockInvokeModelOutputProps:
4814
4884
  ) -> None:
4815
4885
  '''Location where the Bedrock InvokeModel API response is written.
4816
4886
 
4817
- :param s3_location: S3 object where the Bedrock InvokeModel API response is written. If you specify this field, the API response body is replaced with a reference to the Amazon S3 location of the original output. Default: Response body is returned in the task result
4887
+ :param s3_location: S3 object where the Bedrock InvokeModel API response is written. If you specify this field, the API response body is replaced with a reference to the Amazon S3 location of the original output. Default: - Response body is returned in the task result
4818
4888
 
4819
4889
  :see: https://docs.aws.amazon.com/step-functions/latest/dg/connect-bedrock.html
4820
4890
  :exampleMetadata: fixture=_generated
@@ -4851,7 +4921,7 @@ class BedrockInvokeModelOutputProps:
4851
4921
  If you specify this field, the API response body is replaced with
4852
4922
  a reference to the Amazon S3 location of the original output.
4853
4923
 
4854
- :default: Response body is returned in the task result
4924
+ :default: - Response body is returned in the task result
4855
4925
  '''
4856
4926
  result = self._values.get("s3_location")
4857
4927
  return typing.cast(typing.Optional[_Location_0948fa7f], result)
@@ -4888,8 +4958,10 @@ class BedrockInvokeModelOutputProps:
4888
4958
  "accept": "accept",
4889
4959
  "body": "body",
4890
4960
  "content_type": "contentType",
4961
+ "guardrail": "guardrail",
4891
4962
  "input": "input",
4892
4963
  "output": "output",
4964
+ "trace_enabled": "traceEnabled",
4893
4965
  },
4894
4966
  )
4895
4967
  class BedrockInvokeModelProps(_TaskStateBaseProps_3a62b6d0):
@@ -4912,8 +4984,10 @@ class BedrockInvokeModelProps(_TaskStateBaseProps_3a62b6d0):
4912
4984
  accept: typing.Optional[builtins.str] = None,
4913
4985
  body: typing.Optional[_TaskInput_91b91b91] = None,
4914
4986
  content_type: typing.Optional[builtins.str] = None,
4987
+ guardrail: typing.Optional["Guardrail"] = None,
4915
4988
  input: typing.Optional[typing.Union[BedrockInvokeModelInputProps, typing.Dict[builtins.str, typing.Any]]] = None,
4916
4989
  output: typing.Optional[typing.Union[BedrockInvokeModelOutputProps, typing.Dict[builtins.str, typing.Any]]] = None,
4990
+ trace_enabled: typing.Optional[builtins.bool] = None,
4917
4991
  ) -> None:
4918
4992
  '''Properties for invoking a Bedrock Model.
4919
4993
 
@@ -4931,10 +5005,12 @@ class BedrockInvokeModelProps(_TaskStateBaseProps_3a62b6d0):
4931
5005
  :param timeout: (deprecated) Timeout for the task. Default: - None
4932
5006
  :param model: The Bedrock model that the task will invoke.
4933
5007
  :param accept: The desired MIME type of the inference body in the response. Default: 'application/json'
4934
- :param body: The input data for the Bedrock model invocation. The inference parameters contained in the body depend on the Bedrock model being used. The body must be in the format specified in the ``contentType`` field. For example, if the content type is ``application/json``, the body must be JSON formatted. The body must be up to 256 KB in size. For input data that exceeds 256 KB, use ``input`` instead to retrieve the input data from S3. You must specify either the ``body`` or the ``input`` field, but not both. Default: Input data is retrieved from the location specified in the ``input`` field
4935
- :param content_type: The MIME type of the input data in the request. Default: 'application/json'
4936
- :param input: The source location to retrieve the input data from. Default: Input data is retrieved from the ``body`` field
4937
- :param output: The destination location where the API response is written. If you specify this field, the API response body is replaced with a reference to the output location. Default: The API response body is returned in the result.
5008
+ :param body: The input data for the Bedrock model invocation. The inference parameters contained in the body depend on the Bedrock model being used. The body must be in the format specified in the ``contentType`` field. For example, if the content type is ``application/json``, the body must be JSON formatted. The body must be up to 256 KB in size. For input data that exceeds 256 KB, use ``input`` instead to retrieve the input data from S3. You must specify either the ``body`` or the ``input`` field, but not both. Default: - Input data is retrieved from the location specified in the ``input`` field
5009
+ :param content_type: (deprecated) The MIME type of the input data in the request. Default: 'application/json'
5010
+ :param guardrail: The guardrail is applied to the invocation. Default: - No guardrail is applied to the invocation.
5011
+ :param input: The source location to retrieve the input data from. Default: - Input data is retrieved from the ``body`` field
5012
+ :param output: The destination location where the API response is written. If you specify this field, the API response body is replaced with a reference to the output location. Default: - The API response body is returned in the result.
5013
+ :param trace_enabled: Specifies whether to enable or disable the Bedrock trace. Default: - Trace is not enabled for the invocation.
4938
5014
 
4939
5015
  :exampleMetadata: infused
4940
5016
 
@@ -4983,8 +5059,10 @@ class BedrockInvokeModelProps(_TaskStateBaseProps_3a62b6d0):
4983
5059
  check_type(argname="argument accept", value=accept, expected_type=type_hints["accept"])
4984
5060
  check_type(argname="argument body", value=body, expected_type=type_hints["body"])
4985
5061
  check_type(argname="argument content_type", value=content_type, expected_type=type_hints["content_type"])
5062
+ check_type(argname="argument guardrail", value=guardrail, expected_type=type_hints["guardrail"])
4986
5063
  check_type(argname="argument input", value=input, expected_type=type_hints["input"])
4987
5064
  check_type(argname="argument output", value=output, expected_type=type_hints["output"])
5065
+ check_type(argname="argument trace_enabled", value=trace_enabled, expected_type=type_hints["trace_enabled"])
4988
5066
  self._values: typing.Dict[builtins.str, typing.Any] = {
4989
5067
  "model": model,
4990
5068
  }
@@ -5018,10 +5096,14 @@ class BedrockInvokeModelProps(_TaskStateBaseProps_3a62b6d0):
5018
5096
  self._values["body"] = body
5019
5097
  if content_type is not None:
5020
5098
  self._values["content_type"] = content_type
5099
+ if guardrail is not None:
5100
+ self._values["guardrail"] = guardrail
5021
5101
  if input is not None:
5022
5102
  self._values["input"] = input
5023
5103
  if output is not None:
5024
5104
  self._values["output"] = output
5105
+ if trace_enabled is not None:
5106
+ self._values["trace_enabled"] = trace_enabled
5025
5107
 
5026
5108
  @builtins.property
5027
5109
  def comment(self) -> typing.Optional[builtins.str]:
@@ -5214,7 +5296,7 @@ class BedrockInvokeModelProps(_TaskStateBaseProps_3a62b6d0):
5214
5296
 
5215
5297
  You must specify either the ``body`` or the ``input`` field, but not both.
5216
5298
 
5217
- :default: Input data is retrieved from the location specified in the ``input`` field
5299
+ :default: - Input data is retrieved from the location specified in the ``input`` field
5218
5300
 
5219
5301
  :see: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html
5220
5302
  '''
@@ -5223,20 +5305,32 @@ class BedrockInvokeModelProps(_TaskStateBaseProps_3a62b6d0):
5223
5305
 
5224
5306
  @builtins.property
5225
5307
  def content_type(self) -> typing.Optional[builtins.str]:
5226
- '''The MIME type of the input data in the request.
5308
+ '''(deprecated) The MIME type of the input data in the request.
5227
5309
 
5228
5310
  :default: 'application/json'
5229
5311
 
5312
+ :deprecated: This property does not require configuration because the only acceptable value is 'application/json'.
5313
+
5230
5314
  :see: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html
5315
+ :stability: deprecated
5231
5316
  '''
5232
5317
  result = self._values.get("content_type")
5233
5318
  return typing.cast(typing.Optional[builtins.str], result)
5234
5319
 
5320
+ @builtins.property
5321
+ def guardrail(self) -> typing.Optional["Guardrail"]:
5322
+ '''The guardrail is applied to the invocation.
5323
+
5324
+ :default: - No guardrail is applied to the invocation.
5325
+ '''
5326
+ result = self._values.get("guardrail")
5327
+ return typing.cast(typing.Optional["Guardrail"], result)
5328
+
5235
5329
  @builtins.property
5236
5330
  def input(self) -> typing.Optional[BedrockInvokeModelInputProps]:
5237
5331
  '''The source location to retrieve the input data from.
5238
5332
 
5239
- :default: Input data is retrieved from the ``body`` field
5333
+ :default: - Input data is retrieved from the ``body`` field
5240
5334
  '''
5241
5335
  result = self._values.get("input")
5242
5336
  return typing.cast(typing.Optional[BedrockInvokeModelInputProps], result)
@@ -5248,11 +5342,20 @@ class BedrockInvokeModelProps(_TaskStateBaseProps_3a62b6d0):
5248
5342
  If you specify this field, the API response body is replaced with a reference to the
5249
5343
  output location.
5250
5344
 
5251
- :default: The API response body is returned in the result.
5345
+ :default: - The API response body is returned in the result.
5252
5346
  '''
5253
5347
  result = self._values.get("output")
5254
5348
  return typing.cast(typing.Optional[BedrockInvokeModelOutputProps], result)
5255
5349
 
5350
+ @builtins.property
5351
+ def trace_enabled(self) -> typing.Optional[builtins.bool]:
5352
+ '''Specifies whether to enable or disable the Bedrock trace.
5353
+
5354
+ :default: - Trace is not enabled for the invocation.
5355
+ '''
5356
+ result = self._values.get("trace_enabled")
5357
+ return typing.cast(typing.Optional[builtins.bool], result)
5358
+
5256
5359
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
5257
5360
  return isinstance(rhs, self.__class__) and rhs._values == self._values
5258
5361
 
@@ -6900,11 +7003,11 @@ class CallAwsServiceCrossRegion(
6900
7003
  :param action: The API action to call. Use camelCase.
6901
7004
  :param iam_resources: The resources for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call.
6902
7005
  :param region: The AWS region to call this AWS API for.
6903
- :param service: The AWS service to call in AWS SDK for JavaScript v3 style.
7006
+ :param service: The AWS service to call in AWS SDK for JavaScript v3 format.
6904
7007
  :param additional_iam_statements: Additional IAM statements that will be added to the state machine role's policy. Use in the case where the call requires more than a single statement to be executed, e.g. ``rekognition:detectLabels`` requires also S3 permissions to read the object on which it must act. Default: - no additional statements are added
6905
7008
  :param endpoint: The AWS API endpoint. Default: Do not override API endpoint.
6906
7009
  :param iam_action: The action for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call. By default the action for this IAM statement will be ``service:action``. Use in the case where the IAM action name does not match with the API service/action name, e.g. ``s3:ListBuckets`` requires ``s3:ListAllMyBuckets``. Default: - service:action
6907
- :param parameters: Parameters for the API action call. Use PascalCase for the parameter names. Default: - no parameters
7010
+ :param parameters: Parameters for the API action call in AWS SDK for JavaScript v3 format. Default: - no parameters
6908
7011
  :param retry_on_service_exceptions: Whether to retry on the backend Lambda service exceptions. This handles ``Lambda.ServiceException``, ``Lambda.AWSLambdaException``, ``Lambda.SdkClientException``, and ``Lambda.ClientExecutionTimeoutException`` with an interval of 2 seconds, a back-off rate of 2 and 6 maximum attempts. Default: true
6909
7012
  :param comment: An optional description for this state. Default: - No comment
6910
7013
  :param credentials: Credentials for an IAM Role that the State Machine assumes for executing the task. This enables cross-account resource invocations. Default: - None (Task is executed using the State Machine's execution role)
@@ -7035,11 +7138,11 @@ class CallAwsServiceCrossRegionProps(_TaskStateBaseProps_3a62b6d0):
7035
7138
  :param action: The API action to call. Use camelCase.
7036
7139
  :param iam_resources: The resources for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call.
7037
7140
  :param region: The AWS region to call this AWS API for.
7038
- :param service: The AWS service to call in AWS SDK for JavaScript v3 style.
7141
+ :param service: The AWS service to call in AWS SDK for JavaScript v3 format.
7039
7142
  :param additional_iam_statements: Additional IAM statements that will be added to the state machine role's policy. Use in the case where the call requires more than a single statement to be executed, e.g. ``rekognition:detectLabels`` requires also S3 permissions to read the object on which it must act. Default: - no additional statements are added
7040
7143
  :param endpoint: The AWS API endpoint. Default: Do not override API endpoint.
7041
7144
  :param iam_action: The action for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call. By default the action for this IAM statement will be ``service:action``. Use in the case where the IAM action name does not match with the API service/action name, e.g. ``s3:ListBuckets`` requires ``s3:ListAllMyBuckets``. Default: - service:action
7042
- :param parameters: Parameters for the API action call. Use PascalCase for the parameter names. Default: - no parameters
7145
+ :param parameters: Parameters for the API action call in AWS SDK for JavaScript v3 format. Default: - no parameters
7043
7146
  :param retry_on_service_exceptions: Whether to retry on the backend Lambda service exceptions. This handles ``Lambda.ServiceException``, ``Lambda.AWSLambdaException``, ``Lambda.SdkClientException``, and ``Lambda.ClientExecutionTimeoutException`` with an interval of 2 seconds, a back-off rate of 2 and 6 maximum attempts. Default: true
7044
7147
 
7045
7148
  :exampleMetadata: infused
@@ -7311,7 +7414,7 @@ class CallAwsServiceCrossRegionProps(_TaskStateBaseProps_3a62b6d0):
7311
7414
 
7312
7415
  @builtins.property
7313
7416
  def service(self) -> builtins.str:
7314
- '''The AWS service to call in AWS SDK for JavaScript v3 style.
7417
+ '''The AWS service to call in AWS SDK for JavaScript v3 format.
7315
7418
 
7316
7419
  :see: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
7317
7420
 
@@ -7363,9 +7466,7 @@ class CallAwsServiceCrossRegionProps(_TaskStateBaseProps_3a62b6d0):
7363
7466
 
7364
7467
  @builtins.property
7365
7468
  def parameters(self) -> typing.Optional[typing.Mapping[builtins.str, typing.Any]]:
7366
- '''Parameters for the API action call.
7367
-
7368
- Use PascalCase for the parameter names.
7469
+ '''Parameters for the API action call in AWS SDK for JavaScript v3 format.
7369
7470
 
7370
7471
  :default: - no parameters
7371
7472
  '''
@@ -24254,6 +24355,76 @@ class GlueStartJobRunProps(_TaskStateBaseProps_3a62b6d0):
24254
24355
  )
24255
24356
 
24256
24357
 
24358
+ class Guardrail(
24359
+ metaclass=jsii.JSIIMeta,
24360
+ jsii_type="aws-cdk-lib.aws_stepfunctions_tasks.Guardrail",
24361
+ ):
24362
+ '''Guradrail settings for BedrockInvokeModel.
24363
+
24364
+ :exampleMetadata: infused
24365
+
24366
+ Example::
24367
+
24368
+ import aws_cdk.aws_bedrock as bedrock
24369
+
24370
+
24371
+ model = bedrock.FoundationModel.from_foundation_model_id(self, "Model", bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1)
24372
+
24373
+ task = tasks.BedrockInvokeModel(self, "Prompt Model with guardrail",
24374
+ model=model,
24375
+ body=sfn.TaskInput.from_object({
24376
+ "input_text": "Generate a list of five first names.",
24377
+ "text_generation_config": {
24378
+ "max_token_count": 100,
24379
+ "temperature": 1
24380
+ }
24381
+ }),
24382
+ guardrail=tasks.Guardrail.enable("guardrailId", 1),
24383
+ result_selector={
24384
+ "names": sfn.JsonPath.string_at("$.Body.results[0].outputText")
24385
+ }
24386
+ )
24387
+ '''
24388
+
24389
+ @jsii.member(jsii_name="enable")
24390
+ @builtins.classmethod
24391
+ def enable(cls, identifier: builtins.str, version: jsii.Number) -> "Guardrail":
24392
+ '''Enable guardrail.
24393
+
24394
+ :param identifier: The id or arn of the guardrail.
24395
+ :param version: The version of the guardrail.
24396
+ '''
24397
+ if __debug__:
24398
+ type_hints = typing.get_type_hints(_typecheckingstub__5fa6ebe8b4dbacaaab9ce1d7f96201628e8429b6f1e9480ecaf651f59e53f917)
24399
+ check_type(argname="argument identifier", value=identifier, expected_type=type_hints["identifier"])
24400
+ check_type(argname="argument version", value=version, expected_type=type_hints["version"])
24401
+ return typing.cast("Guardrail", jsii.sinvoke(cls, "enable", [identifier, version]))
24402
+
24403
+ @jsii.member(jsii_name="enableDraft")
24404
+ @builtins.classmethod
24405
+ def enable_draft(cls, identifier: builtins.str) -> "Guardrail":
24406
+ '''Enable guardrail with DRAFT version.
24407
+
24408
+ :param identifier: The identifier of the guardrail. Must be between 1 and 2048 characters in length.
24409
+ '''
24410
+ if __debug__:
24411
+ type_hints = typing.get_type_hints(_typecheckingstub__7303b9390112fa7a595653a20262a8472e6088014bf04484e53c9069efdff499)
24412
+ check_type(argname="argument identifier", value=identifier, expected_type=type_hints["identifier"])
24413
+ return typing.cast("Guardrail", jsii.sinvoke(cls, "enableDraft", [identifier]))
24414
+
24415
+ @builtins.property
24416
+ @jsii.member(jsii_name="guardrailIdentifier")
24417
+ def guardrail_identifier(self) -> builtins.str:
24418
+ '''The identitifier of guardrail.'''
24419
+ return typing.cast(builtins.str, jsii.get(self, "guardrailIdentifier"))
24420
+
24421
+ @builtins.property
24422
+ @jsii.member(jsii_name="guardrailVersion")
24423
+ def guardrail_version(self) -> builtins.str:
24424
+ '''The version of guardrail.'''
24425
+ return typing.cast(builtins.str, jsii.get(self, "guardrailVersion"))
24426
+
24427
+
24257
24428
  class HttpInvoke(
24258
24429
  _TaskStateBase_b5c0a816,
24259
24430
  metaclass=jsii.JSIIMeta,
@@ -34100,6 +34271,7 @@ __all__ = [
34100
34271
  "GlueStartCrawlerRunProps",
34101
34272
  "GlueStartJobRun",
34102
34273
  "GlueStartJobRunProps",
34274
+ "Guardrail",
34103
34275
  "HttpInvoke",
34104
34276
  "HttpInvokeProps",
34105
34277
  "HttpMethod",
@@ -34305,6 +34477,7 @@ def _typecheckingstub__74ee21cd0bad6760da4cd18a6c4cd846a24d69d25b7bac8eb004edf64
34305
34477
  execution_parameters: typing.Optional[typing.Sequence[builtins.str]] = None,
34306
34478
  query_execution_context: typing.Optional[typing.Union[QueryExecutionContext, typing.Dict[builtins.str, typing.Any]]] = None,
34307
34479
  result_configuration: typing.Optional[typing.Union[ResultConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
34480
+ result_reuse_configuration_max_age: typing.Optional[_Duration_4839e8c3] = None,
34308
34481
  work_group: typing.Optional[builtins.str] = None,
34309
34482
  comment: typing.Optional[builtins.str] = None,
34310
34483
  credentials: typing.Optional[typing.Union[_Credentials_2cd64c6b, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -34341,6 +34514,7 @@ def _typecheckingstub__d2b6c9868cc3485b4ed4a4ef1f89308086ff873bc4d86413aa4b420c9
34341
34514
  execution_parameters: typing.Optional[typing.Sequence[builtins.str]] = None,
34342
34515
  query_execution_context: typing.Optional[typing.Union[QueryExecutionContext, typing.Dict[builtins.str, typing.Any]]] = None,
34343
34516
  result_configuration: typing.Optional[typing.Union[ResultConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
34517
+ result_reuse_configuration_max_age: typing.Optional[_Duration_4839e8c3] = None,
34344
34518
  work_group: typing.Optional[builtins.str] = None,
34345
34519
  ) -> None:
34346
34520
  """Type checking stubs"""
@@ -34470,8 +34644,10 @@ def _typecheckingstub__3b20c515efa874adacf78d373dbda10fc59e519a3bd1b280ecbf56409
34470
34644
  accept: typing.Optional[builtins.str] = None,
34471
34645
  body: typing.Optional[_TaskInput_91b91b91] = None,
34472
34646
  content_type: typing.Optional[builtins.str] = None,
34647
+ guardrail: typing.Optional[Guardrail] = None,
34473
34648
  input: typing.Optional[typing.Union[BedrockInvokeModelInputProps, typing.Dict[builtins.str, typing.Any]]] = None,
34474
34649
  output: typing.Optional[typing.Union[BedrockInvokeModelOutputProps, typing.Dict[builtins.str, typing.Any]]] = None,
34650
+ trace_enabled: typing.Optional[builtins.bool] = None,
34475
34651
  comment: typing.Optional[builtins.str] = None,
34476
34652
  credentials: typing.Optional[typing.Union[_Credentials_2cd64c6b, typing.Dict[builtins.str, typing.Any]]] = None,
34477
34653
  heartbeat: typing.Optional[_Duration_4839e8c3] = None,
@@ -34520,8 +34696,10 @@ def _typecheckingstub__a9bf54cbc3850dd1a65ada3b96e97b5e68b7027badd90592dbcc79a35
34520
34696
  accept: typing.Optional[builtins.str] = None,
34521
34697
  body: typing.Optional[_TaskInput_91b91b91] = None,
34522
34698
  content_type: typing.Optional[builtins.str] = None,
34699
+ guardrail: typing.Optional[Guardrail] = None,
34523
34700
  input: typing.Optional[typing.Union[BedrockInvokeModelInputProps, typing.Dict[builtins.str, typing.Any]]] = None,
34524
34701
  output: typing.Optional[typing.Union[BedrockInvokeModelOutputProps, typing.Dict[builtins.str, typing.Any]]] = None,
34702
+ trace_enabled: typing.Optional[builtins.bool] = None,
34525
34703
  ) -> None:
34526
34704
  """Type checking stubs"""
34527
34705
  pass
@@ -36424,6 +36602,19 @@ def _typecheckingstub__6a5a6a067402f20efc3f218ecff8d7cae8c7206cf0bfb73907469d47f
36424
36602
  """Type checking stubs"""
36425
36603
  pass
36426
36604
 
36605
+ def _typecheckingstub__5fa6ebe8b4dbacaaab9ce1d7f96201628e8429b6f1e9480ecaf651f59e53f917(
36606
+ identifier: builtins.str,
36607
+ version: jsii.Number,
36608
+ ) -> None:
36609
+ """Type checking stubs"""
36610
+ pass
36611
+
36612
+ def _typecheckingstub__7303b9390112fa7a595653a20262a8472e6088014bf04484e53c9069efdff499(
36613
+ identifier: builtins.str,
36614
+ ) -> None:
36615
+ """Type checking stubs"""
36616
+ pass
36617
+
36427
36618
  def _typecheckingstub__380dcb304dd02d709d798634fa365c757bcaa7593ab7542271009736c47d0329(
36428
36619
  scope: _constructs_77d1e7e8.Construct,
36429
36620
  id: builtins.str,
@@ -3564,7 +3564,7 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_synthetics.Run
3564
3564
  - **Ephemeral storage monitoring**: This runtime adds ephemeral storage monitoring in customer accounts.
3565
3565
  - **Bug fixes**
3566
3566
 
3567
- :see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-6.1
3567
+ :see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-6.2
3568
3568
  '''
3569
3569
  return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_NODEJS_PUPPETEER_6_2"))
3570
3570
 
@@ -3581,6 +3581,20 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_synthetics.Run
3581
3581
  '''
3582
3582
  return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_NODEJS_PUPPETEER_7_0"))
3583
3583
 
3584
+ @jsii.python.classproperty
3585
+ @jsii.member(jsii_name="SYNTHETICS_NODEJS_PUPPETEER_8_0")
3586
+ def SYNTHETICS_NODEJS_PUPPETEER_8_0(cls) -> "Runtime":
3587
+ '''``syn-nodejs-puppeteer-8.0`` includes the following: - Lambda runtime Node.js 20.x - Puppeteer-core version 22.10.0 - Chromium version 125.0.6422.112.
3588
+
3589
+ New Features:
3590
+
3591
+ - **Support for two-factor authentication**
3592
+ - **Bug fixes** for situations where some service clients were losing data in Node.js SDK V3 responses.
3593
+
3594
+ :see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-8.0
3595
+ '''
3596
+ return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_NODEJS_PUPPETEER_8_0"))
3597
+
3584
3598
  @jsii.python.classproperty
3585
3599
  @jsii.member(jsii_name="SYNTHETICS_PYTHON_SELENIUM_1_0")
3586
3600
  def SYNTHETICS_PYTHON_SELENIUM_1_0(cls) -> "Runtime":
@@ -143,7 +143,7 @@ class CfnIdentitySource(
143
143
  '''
144
144
  :param scope: Scope in which this resource is defined.
145
145
  :param id: Construct identifier for this resource (unique in its scope).
146
- :param configuration: Contains configuration information about an identity source.
146
+ :param configuration: Contains configuration information used when creating a new identity source.
147
147
  :param policy_store_id: Specifies the ID of the policy store in which you want to store this identity source. Only policies and requests made using this policy store can reference identities from the identity provider configured in the new identity source.
148
148
  :param principal_entity_type: Specifies the namespace and data type of the principals generated for identities authenticated by the new identity source.
149
149
  '''
@@ -248,7 +248,7 @@ class CfnIdentitySource(
248
248
  def configuration(
249
249
  self,
250
250
  ) -> typing.Union[_IResolvable_da3f097b, "CfnIdentitySource.IdentitySourceConfigurationProperty"]:
251
- '''Contains configuration information about an identity source.'''
251
+ '''Contains configuration information used when creating a new identity source.'''
252
252
  return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnIdentitySource.IdentitySourceConfigurationProperty"], jsii.get(self, "configuration"))
253
253
 
254
254
  @configuration.setter
@@ -296,8 +296,6 @@ class CfnIdentitySource(
296
296
  def __init__(self, *, group_entity_type: builtins.str) -> None:
297
297
  '''The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
298
298
 
299
- This data type is part of a `CognitoUserPoolConfiguration <https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CognitoUserPoolConfiguration.html>`_ structure and is a request parameter in `CreateIdentitySource <https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html>`_ .
300
-
301
299
  :param group_entity_type: The name of the schema entity type that's mapped to the user pool group. Defaults to ``AWS::CognitoGroup`` .
302
300
 
303
301
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-identitysource-cognitogroupconfiguration.html
@@ -1145,7 +1143,7 @@ class CfnIdentitySourceProps:
1145
1143
  ) -> None:
1146
1144
  '''Properties for defining a ``CfnIdentitySource``.
1147
1145
 
1148
- :param configuration: Contains configuration information about an identity source.
1146
+ :param configuration: Contains configuration information used when creating a new identity source.
1149
1147
  :param policy_store_id: Specifies the ID of the policy store in which you want to store this identity source. Only policies and requests made using this policy store can reference identities from the identity provider configured in the new identity source.
1150
1148
  :param principal_entity_type: Specifies the namespace and data type of the principals generated for identities authenticated by the new identity source.
1151
1149
 
@@ -1212,7 +1210,7 @@ class CfnIdentitySourceProps:
1212
1210
  def configuration(
1213
1211
  self,
1214
1212
  ) -> typing.Union[_IResolvable_da3f097b, CfnIdentitySource.IdentitySourceConfigurationProperty]:
1215
- '''Contains configuration information about an identity source.
1213
+ '''Contains configuration information used when creating a new identity source.
1216
1214
 
1217
1215
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-verifiedpermissions-identitysource.html#cfn-verifiedpermissions-identitysource-configuration
1218
1216
  '''
@@ -1263,7 +1261,7 @@ class CfnPolicy(
1263
1261
 
1264
1262
  You can create either a static policy or a policy linked to a policy template.
1265
1263
 
1266
- You can directly update only static policies. To update a template-linked policy, you must update it's linked policy template instead.
1264
+ You can directly update only static policies. To update a template-linked policy, you must update its linked policy template instead.
1267
1265
 
1268
1266
  - To create a static policy, in the ``Definition`` include a ``Static`` element that includes the Cedar policy text in the ``Statement`` element.
1269
1267
  - To create a policy that is dynamically linked to a policy template, in the ``Definition`` include a ``Templatelinked`` element that specifies the policy template ID and the principal and resource to associate with this policy. If the policy template is ever updated, any policies linked to the policy template automatically use the updated template.
@@ -2056,7 +2054,7 @@ class CfnPolicyStore(
2056
2054
 
2057
2055
  If the validation mode for the policy store is set to ``STRICT`` , then policies that can't be validated by this schema are rejected by Verified Permissions and can't be stored in the policy store.
2058
2056
 
2059
- :param cedar_json: A JSON string representation of the schema supported by applications that use this policy store. For more information, see `Policy store schema <https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/schema.html>`_ in the *Amazon Verified Permissions User Guide* .
2057
+ :param cedar_json: A JSON string representation of the schema supported by applications that use this policy store. For more information, see `Policy store schema <https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/schema.html>`_ in the AVP User Guide.
2060
2058
 
2061
2059
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-policystore-schemadefinition.html
2062
2060
  :exampleMetadata: fixture=_generated
@@ -2082,7 +2080,7 @@ class CfnPolicyStore(
2082
2080
  def cedar_json(self) -> typing.Optional[builtins.str]:
2083
2081
  '''A JSON string representation of the schema supported by applications that use this policy store.
2084
2082
 
2085
- For more information, see `Policy store schema <https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/schema.html>`_ in the *Amazon Verified Permissions User Guide* .
2083
+ For more information, see `Policy store schema <https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/schema.html>`_ in the AVP User Guide.
2086
2084
 
2087
2085
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-verifiedpermissions-policystore-schemadefinition.html#cfn-verifiedpermissions-policystore-schemadefinition-cedarjson
2088
2086
  '''