aws-cdk-lib 2.179.0__py3-none-any.whl → 2.181.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +92 -34
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.179.0.jsii.tgz → aws-cdk-lib@2.181.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +48 -1
- aws_cdk/aws_apigateway/__init__.py +6 -6
- aws_cdk/aws_appsync/__init__.py +4 -3
- aws_cdk/aws_backup/__init__.py +89 -0
- aws_cdk/aws_batch/__init__.py +89 -50
- aws_cdk/aws_bedrock/__init__.py +1265 -62
- aws_cdk/aws_chatbot/__init__.py +80 -53
- aws_cdk/aws_cloudformation/__init__.py +40 -8
- aws_cdk/aws_cloudfront/__init__.py +1046 -155
- aws_cdk/aws_cloudfront_origins/__init__.py +1338 -144
- aws_cdk/aws_cloudtrail/__init__.py +4 -8
- aws_cdk/aws_cloudwatch/__init__.py +1 -1
- aws_cdk/aws_codebuild/__init__.py +2 -2
- aws_cdk/aws_codepipeline/__init__.py +24 -0
- aws_cdk/aws_codepipeline_actions/__init__.py +28 -1
- aws_cdk/aws_codestar/__init__.py +2 -1
- aws_cdk/aws_cognito/__init__.py +100 -13
- aws_cdk/aws_config/__init__.py +3 -3
- aws_cdk/aws_connect/__init__.py +257 -0
- aws_cdk/aws_datasync/__init__.py +279 -50
- aws_cdk/aws_deadline/__init__.py +683 -6
- aws_cdk/aws_directoryservice/__init__.py +9 -4
- aws_cdk/aws_dlm/__init__.py +2 -2
- aws_cdk/aws_dms/__init__.py +3 -3
- aws_cdk/aws_dynamodb/__init__.py +4 -58
- aws_cdk/aws_ec2/__init__.py +377 -121
- aws_cdk/aws_ecs/__init__.py +37 -46
- aws_cdk/aws_efs/__init__.py +1 -1
- aws_cdk/aws_eks/__init__.py +19 -13
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +13 -27
- aws_cdk/aws_emrcontainers/__init__.py +44 -1
- aws_cdk/aws_events/__init__.py +8 -11
- aws_cdk/aws_fms/__init__.py +5 -5
- aws_cdk/aws_fsx/__init__.py +5 -4
- aws_cdk/aws_glue/__init__.py +161 -0
- aws_cdk/aws_groundstation/__init__.py +23 -1
- aws_cdk/aws_iam/__init__.py +12 -12
- aws_cdk/aws_iot/__init__.py +7 -0
- aws_cdk/aws_ivs/__init__.py +17 -8
- aws_cdk/aws_kinesis/__init__.py +689 -35
- aws_cdk/aws_lambda/__init__.py +10 -15
- aws_cdk/aws_lambda_event_sources/__init__.py +175 -2
- aws_cdk/aws_medialive/__init__.py +314 -4
- aws_cdk/aws_mediapackagev2/__init__.py +228 -0
- aws_cdk/aws_networkfirewall/__init__.py +3 -3
- aws_cdk/aws_opensearchserverless/__init__.py +31 -8
- aws_cdk/aws_organizations/__init__.py +3 -3
- aws_cdk/aws_pcaconnectorscep/__init__.py +1 -1
- aws_cdk/aws_rds/__init__.py +456 -100
- aws_cdk/aws_s3/__init__.py +278 -0
- aws_cdk/aws_s3objectlambda/__init__.py +2 -2
- aws_cdk/aws_ses/__init__.py +228 -8
- aws_cdk/aws_ssm/__init__.py +9 -10
- aws_cdk/aws_stepfunctions/__init__.py +345 -70
- aws_cdk/aws_stepfunctions_tasks/__init__.py +142 -142
- aws_cdk/aws_supportapp/__init__.py +7 -7
- aws_cdk/aws_transfer/__init__.py +829 -4
- aws_cdk/aws_wafv2/__init__.py +17 -9
- aws_cdk/aws_wisdom/__init__.py +149 -4
- aws_cdk/custom_resources/__init__.py +23 -26
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/RECORD +70 -70
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.179.0.dist-info → aws_cdk_lib-2.181.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_wafv2/__init__.py
CHANGED
|
@@ -468,6 +468,8 @@ class CfnLoggingConfiguration(
|
|
|
468
468
|
'''Defines an association between logging destinations and a web ACL resource, for logging from AWS WAF .
|
|
469
469
|
|
|
470
470
|
As part of the association, you can specify parts of the standard logging fields to keep out of the logs and you can specify filters so that you log only a subset of the logging records.
|
|
471
|
+
|
|
472
|
+
If you configure data protection for the web ACL, the protection applies to the data that AWS WAF sends to the logs.
|
|
471
473
|
.. epigraph::
|
|
472
474
|
|
|
473
475
|
You can define one logging destination per web ACL.
|
|
@@ -535,7 +537,7 @@ class CfnLoggingConfiguration(
|
|
|
535
537
|
:param log_destination_configs: The logging destination configuration that you want to associate with the web ACL. .. epigraph:: You can associate one logging destination to a web ACL.
|
|
536
538
|
:param resource_arn: The Amazon Resource Name (ARN) of the web ACL that you want to associate with ``LogDestinationConfigs`` .
|
|
537
539
|
:param logging_filter: Filtering that specifies which web requests are kept in the logs and which are dropped. You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
|
|
538
|
-
:param redacted_fields: The parts of the request that you want to keep out of the logs. For example, if you redact the ``SingleHeader`` field, the ``HEADER`` field in the logs will be ``REDACTED`` for all rules that use the ``SingleHeader`` ``FieldToMatch`` setting. Redaction applies only to the component that's specified in the rule's ``FieldToMatch`` setting, so the ``SingleHeader`` redaction doesn't apply to rules that use the ``Headers`` ``FieldToMatch`` . .. epigraph:: You can specify only the following fields for redaction: ``UriPath`` , ``QueryString`` , ``SingleHeader`` , and ``Method`` . > This setting has no impact on request sampling.
|
|
540
|
+
:param redacted_fields: The parts of the request that you want to keep out of the logs. For example, if you redact the ``SingleHeader`` field, the ``HEADER`` field in the logs will be ``REDACTED`` for all rules that use the ``SingleHeader`` ``FieldToMatch`` setting. If you configure data protection for the web ACL, the protection applies to the data that AWS WAF sends to the logs. Redaction applies only to the component that's specified in the rule's ``FieldToMatch`` setting, so the ``SingleHeader`` redaction doesn't apply to rules that use the ``Headers`` ``FieldToMatch`` . .. epigraph:: You can specify only the following fields for redaction: ``UriPath`` , ``QueryString`` , ``SingleHeader`` , and ``Method`` . > This setting has no impact on request sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.
|
|
539
541
|
'''
|
|
540
542
|
if __debug__:
|
|
541
543
|
type_hints = typing.get_type_hints(_typecheckingstub__8a8c4ba5ee1b98a4ed1dd5001182ec8712406026687793bcb17c7a78771fa41c)
|
|
@@ -1430,7 +1432,7 @@ class CfnLoggingConfigurationProps:
|
|
|
1430
1432
|
:param log_destination_configs: The logging destination configuration that you want to associate with the web ACL. .. epigraph:: You can associate one logging destination to a web ACL.
|
|
1431
1433
|
:param resource_arn: The Amazon Resource Name (ARN) of the web ACL that you want to associate with ``LogDestinationConfigs`` .
|
|
1432
1434
|
:param logging_filter: Filtering that specifies which web requests are kept in the logs and which are dropped. You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
|
|
1433
|
-
:param redacted_fields: The parts of the request that you want to keep out of the logs. For example, if you redact the ``SingleHeader`` field, the ``HEADER`` field in the logs will be ``REDACTED`` for all rules that use the ``SingleHeader`` ``FieldToMatch`` setting. Redaction applies only to the component that's specified in the rule's ``FieldToMatch`` setting, so the ``SingleHeader`` redaction doesn't apply to rules that use the ``Headers`` ``FieldToMatch`` . .. epigraph:: You can specify only the following fields for redaction: ``UriPath`` , ``QueryString`` , ``SingleHeader`` , and ``Method`` . > This setting has no impact on request sampling.
|
|
1435
|
+
:param redacted_fields: The parts of the request that you want to keep out of the logs. For example, if you redact the ``SingleHeader`` field, the ``HEADER`` field in the logs will be ``REDACTED`` for all rules that use the ``SingleHeader`` ``FieldToMatch`` setting. If you configure data protection for the web ACL, the protection applies to the data that AWS WAF sends to the logs. Redaction applies only to the component that's specified in the rule's ``FieldToMatch`` setting, so the ``SingleHeader`` redaction doesn't apply to rules that use the ``Headers`` ``FieldToMatch`` . .. epigraph:: You can specify only the following fields for redaction: ``UriPath`` , ``QueryString`` , ``SingleHeader`` , and ``Method`` . > This setting has no impact on request sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.
|
|
1434
1436
|
|
|
1435
1437
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html
|
|
1436
1438
|
:exampleMetadata: fixture=_generated
|
|
@@ -1521,10 +1523,12 @@ class CfnLoggingConfigurationProps:
|
|
|
1521
1523
|
|
|
1522
1524
|
For example, if you redact the ``SingleHeader`` field, the ``HEADER`` field in the logs will be ``REDACTED`` for all rules that use the ``SingleHeader`` ``FieldToMatch`` setting.
|
|
1523
1525
|
|
|
1526
|
+
If you configure data protection for the web ACL, the protection applies to the data that AWS WAF sends to the logs.
|
|
1527
|
+
|
|
1524
1528
|
Redaction applies only to the component that's specified in the rule's ``FieldToMatch`` setting, so the ``SingleHeader`` redaction doesn't apply to rules that use the ``Headers`` ``FieldToMatch`` .
|
|
1525
1529
|
.. epigraph::
|
|
1526
1530
|
|
|
1527
|
-
You can specify only the following fields for redaction: ``UriPath`` , ``QueryString`` , ``SingleHeader`` , and ``Method`` . > This setting has no impact on request sampling.
|
|
1531
|
+
You can specify only the following fields for redaction: ``UriPath`` , ``QueryString`` , ``SingleHeader`` , and ``Method`` . > This setting has no impact on request sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.
|
|
1528
1532
|
|
|
1529
1533
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-redactedfields
|
|
1530
1534
|
'''
|
|
@@ -4435,7 +4439,7 @@ class CfnRuleGroup(
|
|
|
4435
4439
|
- In a logging configuration, this is used in the ``RedactedFields`` property to specify a field to redact from the logging records. For this use case, note the following:
|
|
4436
4440
|
- Even though all ``FieldToMatch`` settings are available, the only valid settings for field redaction are ``UriPath`` , ``QueryString`` , ``SingleHeader`` , and ``Method`` .
|
|
4437
4441
|
- In this documentation, the descriptions of the individual fields talk about specifying the web request component to inspect, but for field redaction, you are specifying the component type to redact from the logs.
|
|
4438
|
-
- If you have request sampling enabled, the redacted fields configuration for logging has no impact on sampling.
|
|
4442
|
+
- If you have request sampling enabled, the redacted fields configuration for logging has no impact on sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.
|
|
4439
4443
|
|
|
4440
4444
|
:param all_query_arguments: Inspect all query arguments.
|
|
4441
4445
|
:param body: Inspect the request body as plain text. The request body immediately follows the request headers. This is the part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service only forwards the contents that are within the limit to AWS WAF for inspection. - For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes). - For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and you can increase the limit for each resource type in the web ACL ``AssociationConfig`` , for additional processing fees. For information about how to handle oversized request bodies, see the ``Body`` object configuration.
|
|
@@ -10492,7 +10496,7 @@ class CfnRuleGroup(
|
|
|
10492
10496
|
|
|
10493
10497
|
:param cloud_watch_metrics_enabled: Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see `AWS WAF Metrics <https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics>`_ in the *AWS WAF Developer Guide* . For web ACLs, the metrics are for web requests that have the web ACL default action applied. AWS WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see `The web ACL default action <https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-default-action.html>`_ in the *AWS WAF Developer Guide* .
|
|
10494
10498
|
:param metric_name: A name of the Amazon CloudWatch metric dimension. The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric names that are reserved for AWS WAF , for example ``All`` and ``Default_Action`` .
|
|
10495
|
-
:param sampled_requests_enabled: Indicates whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. .. epigraph:: Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling.
|
|
10499
|
+
:param sampled_requests_enabled: Indicates whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. If you configure data protection for the web ACL, the protection applies to the web ACL's sampled web request data. .. epigraph:: Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.
|
|
10496
10500
|
|
|
10497
10501
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html
|
|
10498
10502
|
:exampleMetadata: fixture=_generated
|
|
@@ -10556,9 +10560,11 @@ class CfnRuleGroup(
|
|
|
10556
10560
|
'''Indicates whether AWS WAF should store a sampling of the web requests that match the rules.
|
|
10557
10561
|
|
|
10558
10562
|
You can view the sampled requests through the AWS WAF console.
|
|
10563
|
+
|
|
10564
|
+
If you configure data protection for the web ACL, the protection applies to the web ACL's sampled web request data.
|
|
10559
10565
|
.. epigraph::
|
|
10560
10566
|
|
|
10561
|
-
Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling.
|
|
10567
|
+
Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.
|
|
10562
10568
|
|
|
10563
10569
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html#cfn-wafv2-rulegroup-visibilityconfig-sampledrequestsenabled
|
|
10564
10570
|
'''
|
|
@@ -13915,7 +13921,7 @@ class CfnWebACL(
|
|
|
13915
13921
|
- In a logging configuration, this is used in the ``RedactedFields`` property to specify a field to redact from the logging records. For this use case, note the following:
|
|
13916
13922
|
- Even though all ``FieldToMatch`` settings are available, the only valid settings for field redaction are ``UriPath`` , ``QueryString`` , ``SingleHeader`` , and ``Method`` .
|
|
13917
13923
|
- In this documentation, the descriptions of the individual fields talk about specifying the web request component to inspect, but for field redaction, you are specifying the component type to redact from the logs.
|
|
13918
|
-
- If you have request sampling enabled, the redacted fields configuration for logging has no impact on sampling.
|
|
13924
|
+
- If you have request sampling enabled, the redacted fields configuration for logging has no impact on sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.
|
|
13919
13925
|
|
|
13920
13926
|
:param all_query_arguments: Inspect all query arguments.
|
|
13921
13927
|
:param body: Inspect the request body as plain text. The request body immediately follows the request headers. This is the part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service only forwards the contents that are within the limit to AWS WAF for inspection. - For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes). - For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and you can increase the limit for each resource type in the web ACL ``AssociationConfig`` , for additional processing fees. For information about how to handle oversized request bodies, see the ``Body`` object configuration.
|
|
@@ -19733,7 +19739,7 @@ class CfnWebACL(
|
|
|
19733
19739
|
|
|
19734
19740
|
:param cloud_watch_metrics_enabled: Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see `AWS WAF Metrics <https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics>`_ in the *AWS WAF Developer Guide* . For web ACLs, the metrics are for web requests that have the web ACL default action applied. AWS WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information, see `The web ACL default action <https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-default-action.html>`_ in the *AWS WAF Developer Guide* .
|
|
19735
19741
|
:param metric_name: A name of the Amazon CloudWatch metric dimension. The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric names that are reserved for AWS WAF , for example ``All`` and ``Default_Action`` .
|
|
19736
|
-
:param sampled_requests_enabled: Indicates whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. .. epigraph:: Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling.
|
|
19742
|
+
:param sampled_requests_enabled: Indicates whether AWS WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the AWS WAF console. If you configure data protection for the web ACL, the protection applies to the web ACL's sampled web request data. .. epigraph:: Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.
|
|
19737
19743
|
|
|
19738
19744
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html
|
|
19739
19745
|
:exampleMetadata: fixture=_generated
|
|
@@ -19797,9 +19803,11 @@ class CfnWebACL(
|
|
|
19797
19803
|
'''Indicates whether AWS WAF should store a sampling of the web requests that match the rules.
|
|
19798
19804
|
|
|
19799
19805
|
You can view the sampled requests through the AWS WAF console.
|
|
19806
|
+
|
|
19807
|
+
If you configure data protection for the web ACL, the protection applies to the web ACL's sampled web request data.
|
|
19800
19808
|
.. epigraph::
|
|
19801
19809
|
|
|
19802
|
-
Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling.
|
|
19810
|
+
Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration or by configuring data protection for the web ACL.
|
|
19803
19811
|
|
|
19804
19812
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-sampledrequestsenabled
|
|
19805
19813
|
'''
|
aws_cdk/aws_wisdom/__init__.py
CHANGED
|
@@ -133,6 +133,7 @@ class CfnAIAgent(
|
|
|
133
133
|
association_type="associationType"
|
|
134
134
|
)],
|
|
135
135
|
intent_labeling_generation_ai_prompt_id="intentLabelingGenerationAiPromptId",
|
|
136
|
+
locale="locale",
|
|
136
137
|
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
137
138
|
),
|
|
138
139
|
manual_search_ai_agent_configuration=wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
@@ -175,7 +176,8 @@ class CfnAIAgent(
|
|
|
175
176
|
),
|
|
176
177
|
association_id="associationId",
|
|
177
178
|
association_type="associationType"
|
|
178
|
-
)]
|
|
179
|
+
)],
|
|
180
|
+
locale="locale"
|
|
179
181
|
),
|
|
180
182
|
self_service_ai_agent_configuration=wisdom.CfnAIAgent.SelfServiceAIAgentConfigurationProperty(
|
|
181
183
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
@@ -219,6 +221,10 @@ class CfnAIAgent(
|
|
|
219
221
|
self_service_ai_guardrail_id="selfServiceAiGuardrailId",
|
|
220
222
|
self_service_answer_generation_ai_prompt_id="selfServiceAnswerGenerationAiPromptId",
|
|
221
223
|
self_service_pre_processing_ai_prompt_id="selfServicePreProcessingAiPromptId"
|
|
224
|
+
),
|
|
225
|
+
session_summarization_ai_agent_configuration=wisdom.CfnAIAgent.SessionSummarizationAIAgentConfigurationProperty(
|
|
226
|
+
locale="locale",
|
|
227
|
+
session_summarization_ai_prompt_id="sessionSummarizationAiPromptId"
|
|
222
228
|
)
|
|
223
229
|
),
|
|
224
230
|
type="type",
|
|
@@ -438,6 +444,7 @@ class CfnAIAgent(
|
|
|
438
444
|
"answer_recommendation_ai_agent_configuration": "answerRecommendationAiAgentConfiguration",
|
|
439
445
|
"manual_search_ai_agent_configuration": "manualSearchAiAgentConfiguration",
|
|
440
446
|
"self_service_ai_agent_configuration": "selfServiceAiAgentConfiguration",
|
|
447
|
+
"session_summarization_ai_agent_configuration": "sessionSummarizationAiAgentConfiguration",
|
|
441
448
|
},
|
|
442
449
|
)
|
|
443
450
|
class AIAgentConfigurationProperty:
|
|
@@ -447,12 +454,14 @@ class CfnAIAgent(
|
|
|
447
454
|
answer_recommendation_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
448
455
|
manual_search_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.ManualSearchAIAgentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
449
456
|
self_service_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.SelfServiceAIAgentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
457
|
+
session_summarization_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.SessionSummarizationAIAgentConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
450
458
|
) -> None:
|
|
451
459
|
'''A typed union that specifies the configuration based on the type of AI Agent.
|
|
452
460
|
|
|
453
461
|
:param answer_recommendation_ai_agent_configuration: The configuration for AI Agents of type ``ANSWER_RECOMMENDATION`` .
|
|
454
462
|
:param manual_search_ai_agent_configuration: The configuration for AI Agents of type ``MANUAL_SEARCH`` .
|
|
455
463
|
:param self_service_ai_agent_configuration: The self-service AI agent configuration.
|
|
464
|
+
:param session_summarization_ai_agent_configuration:
|
|
456
465
|
|
|
457
466
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentconfiguration.html
|
|
458
467
|
:exampleMetadata: fixture=_generated
|
|
@@ -506,6 +515,7 @@ class CfnAIAgent(
|
|
|
506
515
|
association_type="associationType"
|
|
507
516
|
)],
|
|
508
517
|
intent_labeling_generation_ai_prompt_id="intentLabelingGenerationAiPromptId",
|
|
518
|
+
locale="locale",
|
|
509
519
|
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
510
520
|
),
|
|
511
521
|
manual_search_ai_agent_configuration=wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
@@ -548,7 +558,8 @@ class CfnAIAgent(
|
|
|
548
558
|
),
|
|
549
559
|
association_id="associationId",
|
|
550
560
|
association_type="associationType"
|
|
551
|
-
)]
|
|
561
|
+
)],
|
|
562
|
+
locale="locale"
|
|
552
563
|
),
|
|
553
564
|
self_service_ai_agent_configuration=wisdom.CfnAIAgent.SelfServiceAIAgentConfigurationProperty(
|
|
554
565
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
@@ -592,6 +603,10 @@ class CfnAIAgent(
|
|
|
592
603
|
self_service_ai_guardrail_id="selfServiceAiGuardrailId",
|
|
593
604
|
self_service_answer_generation_ai_prompt_id="selfServiceAnswerGenerationAiPromptId",
|
|
594
605
|
self_service_pre_processing_ai_prompt_id="selfServicePreProcessingAiPromptId"
|
|
606
|
+
),
|
|
607
|
+
session_summarization_ai_agent_configuration=wisdom.CfnAIAgent.SessionSummarizationAIAgentConfigurationProperty(
|
|
608
|
+
locale="locale",
|
|
609
|
+
session_summarization_ai_prompt_id="sessionSummarizationAiPromptId"
|
|
595
610
|
)
|
|
596
611
|
)
|
|
597
612
|
'''
|
|
@@ -600,6 +615,7 @@ class CfnAIAgent(
|
|
|
600
615
|
check_type(argname="argument answer_recommendation_ai_agent_configuration", value=answer_recommendation_ai_agent_configuration, expected_type=type_hints["answer_recommendation_ai_agent_configuration"])
|
|
601
616
|
check_type(argname="argument manual_search_ai_agent_configuration", value=manual_search_ai_agent_configuration, expected_type=type_hints["manual_search_ai_agent_configuration"])
|
|
602
617
|
check_type(argname="argument self_service_ai_agent_configuration", value=self_service_ai_agent_configuration, expected_type=type_hints["self_service_ai_agent_configuration"])
|
|
618
|
+
check_type(argname="argument session_summarization_ai_agent_configuration", value=session_summarization_ai_agent_configuration, expected_type=type_hints["session_summarization_ai_agent_configuration"])
|
|
603
619
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
604
620
|
if answer_recommendation_ai_agent_configuration is not None:
|
|
605
621
|
self._values["answer_recommendation_ai_agent_configuration"] = answer_recommendation_ai_agent_configuration
|
|
@@ -607,6 +623,8 @@ class CfnAIAgent(
|
|
|
607
623
|
self._values["manual_search_ai_agent_configuration"] = manual_search_ai_agent_configuration
|
|
608
624
|
if self_service_ai_agent_configuration is not None:
|
|
609
625
|
self._values["self_service_ai_agent_configuration"] = self_service_ai_agent_configuration
|
|
626
|
+
if session_summarization_ai_agent_configuration is not None:
|
|
627
|
+
self._values["session_summarization_ai_agent_configuration"] = session_summarization_ai_agent_configuration
|
|
610
628
|
|
|
611
629
|
@builtins.property
|
|
612
630
|
def answer_recommendation_ai_agent_configuration(
|
|
@@ -641,6 +659,16 @@ class CfnAIAgent(
|
|
|
641
659
|
result = self._values.get("self_service_ai_agent_configuration")
|
|
642
660
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.SelfServiceAIAgentConfigurationProperty"]], result)
|
|
643
661
|
|
|
662
|
+
@builtins.property
|
|
663
|
+
def session_summarization_ai_agent_configuration(
|
|
664
|
+
self,
|
|
665
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.SessionSummarizationAIAgentConfigurationProperty"]]:
|
|
666
|
+
'''
|
|
667
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-aiagentconfiguration.html#cfn-wisdom-aiagent-aiagentconfiguration-sessionsummarizationaiagentconfiguration
|
|
668
|
+
'''
|
|
669
|
+
result = self._values.get("session_summarization_ai_agent_configuration")
|
|
670
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.SessionSummarizationAIAgentConfigurationProperty"]], result)
|
|
671
|
+
|
|
644
672
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
645
673
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
646
674
|
|
|
@@ -660,6 +688,7 @@ class CfnAIAgent(
|
|
|
660
688
|
"answer_generation_ai_prompt_id": "answerGenerationAiPromptId",
|
|
661
689
|
"association_configurations": "associationConfigurations",
|
|
662
690
|
"intent_labeling_generation_ai_prompt_id": "intentLabelingGenerationAiPromptId",
|
|
691
|
+
"locale": "locale",
|
|
663
692
|
"query_reformulation_ai_prompt_id": "queryReformulationAiPromptId",
|
|
664
693
|
},
|
|
665
694
|
)
|
|
@@ -671,6 +700,7 @@ class CfnAIAgent(
|
|
|
671
700
|
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
672
701
|
association_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.AssociationConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
673
702
|
intent_labeling_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
703
|
+
locale: typing.Optional[builtins.str] = None,
|
|
674
704
|
query_reformulation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
675
705
|
) -> None:
|
|
676
706
|
'''The configuration for AI Agents of type ``ANSWER_RECOMMENDATION`` .
|
|
@@ -679,6 +709,7 @@ class CfnAIAgent(
|
|
|
679
709
|
:param answer_generation_ai_prompt_id: The AI Prompt identifier for the Answer Generation prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
680
710
|
:param association_configurations: The association configurations for overriding behavior on this AI Agent.
|
|
681
711
|
:param intent_labeling_generation_ai_prompt_id: The AI Prompt identifier for the Intent Labeling prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
712
|
+
:param locale:
|
|
682
713
|
:param query_reformulation_ai_prompt_id: The AI Prompt identifier for the Query Reformulation prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
683
714
|
|
|
684
715
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-answerrecommendationaiagentconfiguration.html
|
|
@@ -732,6 +763,7 @@ class CfnAIAgent(
|
|
|
732
763
|
association_type="associationType"
|
|
733
764
|
)],
|
|
734
765
|
intent_labeling_generation_ai_prompt_id="intentLabelingGenerationAiPromptId",
|
|
766
|
+
locale="locale",
|
|
735
767
|
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
736
768
|
)
|
|
737
769
|
'''
|
|
@@ -741,6 +773,7 @@ class CfnAIAgent(
|
|
|
741
773
|
check_type(argname="argument answer_generation_ai_prompt_id", value=answer_generation_ai_prompt_id, expected_type=type_hints["answer_generation_ai_prompt_id"])
|
|
742
774
|
check_type(argname="argument association_configurations", value=association_configurations, expected_type=type_hints["association_configurations"])
|
|
743
775
|
check_type(argname="argument intent_labeling_generation_ai_prompt_id", value=intent_labeling_generation_ai_prompt_id, expected_type=type_hints["intent_labeling_generation_ai_prompt_id"])
|
|
776
|
+
check_type(argname="argument locale", value=locale, expected_type=type_hints["locale"])
|
|
744
777
|
check_type(argname="argument query_reformulation_ai_prompt_id", value=query_reformulation_ai_prompt_id, expected_type=type_hints["query_reformulation_ai_prompt_id"])
|
|
745
778
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
746
779
|
if answer_generation_ai_guardrail_id is not None:
|
|
@@ -751,6 +784,8 @@ class CfnAIAgent(
|
|
|
751
784
|
self._values["association_configurations"] = association_configurations
|
|
752
785
|
if intent_labeling_generation_ai_prompt_id is not None:
|
|
753
786
|
self._values["intent_labeling_generation_ai_prompt_id"] = intent_labeling_generation_ai_prompt_id
|
|
787
|
+
if locale is not None:
|
|
788
|
+
self._values["locale"] = locale
|
|
754
789
|
if query_reformulation_ai_prompt_id is not None:
|
|
755
790
|
self._values["query_reformulation_ai_prompt_id"] = query_reformulation_ai_prompt_id
|
|
756
791
|
|
|
@@ -794,6 +829,14 @@ class CfnAIAgent(
|
|
|
794
829
|
result = self._values.get("intent_labeling_generation_ai_prompt_id")
|
|
795
830
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
796
831
|
|
|
832
|
+
@builtins.property
|
|
833
|
+
def locale(self) -> typing.Optional[builtins.str]:
|
|
834
|
+
'''
|
|
835
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-answerrecommendationaiagentconfiguration.html#cfn-wisdom-aiagent-answerrecommendationaiagentconfiguration-locale
|
|
836
|
+
'''
|
|
837
|
+
result = self._values.get("locale")
|
|
838
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
839
|
+
|
|
797
840
|
@builtins.property
|
|
798
841
|
def query_reformulation_ai_prompt_id(self) -> typing.Optional[builtins.str]:
|
|
799
842
|
'''The AI Prompt identifier for the Query Reformulation prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
@@ -1153,6 +1196,7 @@ class CfnAIAgent(
|
|
|
1153
1196
|
"answer_generation_ai_guardrail_id": "answerGenerationAiGuardrailId",
|
|
1154
1197
|
"answer_generation_ai_prompt_id": "answerGenerationAiPromptId",
|
|
1155
1198
|
"association_configurations": "associationConfigurations",
|
|
1199
|
+
"locale": "locale",
|
|
1156
1200
|
},
|
|
1157
1201
|
)
|
|
1158
1202
|
class ManualSearchAIAgentConfigurationProperty:
|
|
@@ -1162,12 +1206,14 @@ class CfnAIAgent(
|
|
|
1162
1206
|
answer_generation_ai_guardrail_id: typing.Optional[builtins.str] = None,
|
|
1163
1207
|
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
1164
1208
|
association_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnAIAgent.AssociationConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1209
|
+
locale: typing.Optional[builtins.str] = None,
|
|
1165
1210
|
) -> None:
|
|
1166
1211
|
'''The configuration for AI Agents of type ``MANUAL_SEARCH`` .
|
|
1167
1212
|
|
|
1168
1213
|
:param answer_generation_ai_guardrail_id: The ID of the answer generation AI guardrail.
|
|
1169
1214
|
:param answer_generation_ai_prompt_id: The AI Prompt identifier for the Answer Generation prompt used by the ``ANSWER_RECOMMENDATION`` AI Agent.
|
|
1170
1215
|
:param association_configurations: The association configurations for overriding behavior on this AI Agent.
|
|
1216
|
+
:param locale:
|
|
1171
1217
|
|
|
1172
1218
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-manualsearchaiagentconfiguration.html
|
|
1173
1219
|
:exampleMetadata: fixture=_generated
|
|
@@ -1218,7 +1264,8 @@ class CfnAIAgent(
|
|
|
1218
1264
|
),
|
|
1219
1265
|
association_id="associationId",
|
|
1220
1266
|
association_type="associationType"
|
|
1221
|
-
)]
|
|
1267
|
+
)],
|
|
1268
|
+
locale="locale"
|
|
1222
1269
|
)
|
|
1223
1270
|
'''
|
|
1224
1271
|
if __debug__:
|
|
@@ -1226,6 +1273,7 @@ class CfnAIAgent(
|
|
|
1226
1273
|
check_type(argname="argument answer_generation_ai_guardrail_id", value=answer_generation_ai_guardrail_id, expected_type=type_hints["answer_generation_ai_guardrail_id"])
|
|
1227
1274
|
check_type(argname="argument answer_generation_ai_prompt_id", value=answer_generation_ai_prompt_id, expected_type=type_hints["answer_generation_ai_prompt_id"])
|
|
1228
1275
|
check_type(argname="argument association_configurations", value=association_configurations, expected_type=type_hints["association_configurations"])
|
|
1276
|
+
check_type(argname="argument locale", value=locale, expected_type=type_hints["locale"])
|
|
1229
1277
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1230
1278
|
if answer_generation_ai_guardrail_id is not None:
|
|
1231
1279
|
self._values["answer_generation_ai_guardrail_id"] = answer_generation_ai_guardrail_id
|
|
@@ -1233,6 +1281,8 @@ class CfnAIAgent(
|
|
|
1233
1281
|
self._values["answer_generation_ai_prompt_id"] = answer_generation_ai_prompt_id
|
|
1234
1282
|
if association_configurations is not None:
|
|
1235
1283
|
self._values["association_configurations"] = association_configurations
|
|
1284
|
+
if locale is not None:
|
|
1285
|
+
self._values["locale"] = locale
|
|
1236
1286
|
|
|
1237
1287
|
@builtins.property
|
|
1238
1288
|
def answer_generation_ai_guardrail_id(self) -> typing.Optional[builtins.str]:
|
|
@@ -1263,6 +1313,14 @@ class CfnAIAgent(
|
|
|
1263
1313
|
result = self._values.get("association_configurations")
|
|
1264
1314
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnAIAgent.AssociationConfigurationProperty"]]]], result)
|
|
1265
1315
|
|
|
1316
|
+
@builtins.property
|
|
1317
|
+
def locale(self) -> typing.Optional[builtins.str]:
|
|
1318
|
+
'''
|
|
1319
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-manualsearchaiagentconfiguration.html#cfn-wisdom-aiagent-manualsearchaiagentconfiguration-locale
|
|
1320
|
+
'''
|
|
1321
|
+
result = self._values.get("locale")
|
|
1322
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1323
|
+
|
|
1266
1324
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1267
1325
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1268
1326
|
|
|
@@ -1507,6 +1565,76 @@ class CfnAIAgent(
|
|
|
1507
1565
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
1508
1566
|
)
|
|
1509
1567
|
|
|
1568
|
+
@jsii.data_type(
|
|
1569
|
+
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.SessionSummarizationAIAgentConfigurationProperty",
|
|
1570
|
+
jsii_struct_bases=[],
|
|
1571
|
+
name_mapping={
|
|
1572
|
+
"locale": "locale",
|
|
1573
|
+
"session_summarization_ai_prompt_id": "sessionSummarizationAiPromptId",
|
|
1574
|
+
},
|
|
1575
|
+
)
|
|
1576
|
+
class SessionSummarizationAIAgentConfigurationProperty:
|
|
1577
|
+
def __init__(
|
|
1578
|
+
self,
|
|
1579
|
+
*,
|
|
1580
|
+
locale: typing.Optional[builtins.str] = None,
|
|
1581
|
+
session_summarization_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
1582
|
+
) -> None:
|
|
1583
|
+
'''
|
|
1584
|
+
:param locale:
|
|
1585
|
+
:param session_summarization_ai_prompt_id:
|
|
1586
|
+
|
|
1587
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-sessionsummarizationaiagentconfiguration.html
|
|
1588
|
+
:exampleMetadata: fixture=_generated
|
|
1589
|
+
|
|
1590
|
+
Example::
|
|
1591
|
+
|
|
1592
|
+
# The code below shows an example of how to instantiate this type.
|
|
1593
|
+
# The values are placeholders you should change.
|
|
1594
|
+
from aws_cdk import aws_wisdom as wisdom
|
|
1595
|
+
|
|
1596
|
+
session_summarization_aIAgent_configuration_property = wisdom.CfnAIAgent.SessionSummarizationAIAgentConfigurationProperty(
|
|
1597
|
+
locale="locale",
|
|
1598
|
+
session_summarization_ai_prompt_id="sessionSummarizationAiPromptId"
|
|
1599
|
+
)
|
|
1600
|
+
'''
|
|
1601
|
+
if __debug__:
|
|
1602
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c7c77d42678888135842a224d18f4ff7fcbf96defa5fe5d052ddf6ae08737f6f)
|
|
1603
|
+
check_type(argname="argument locale", value=locale, expected_type=type_hints["locale"])
|
|
1604
|
+
check_type(argname="argument session_summarization_ai_prompt_id", value=session_summarization_ai_prompt_id, expected_type=type_hints["session_summarization_ai_prompt_id"])
|
|
1605
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
1606
|
+
if locale is not None:
|
|
1607
|
+
self._values["locale"] = locale
|
|
1608
|
+
if session_summarization_ai_prompt_id is not None:
|
|
1609
|
+
self._values["session_summarization_ai_prompt_id"] = session_summarization_ai_prompt_id
|
|
1610
|
+
|
|
1611
|
+
@builtins.property
|
|
1612
|
+
def locale(self) -> typing.Optional[builtins.str]:
|
|
1613
|
+
'''
|
|
1614
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-sessionsummarizationaiagentconfiguration.html#cfn-wisdom-aiagent-sessionsummarizationaiagentconfiguration-locale
|
|
1615
|
+
'''
|
|
1616
|
+
result = self._values.get("locale")
|
|
1617
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1618
|
+
|
|
1619
|
+
@builtins.property
|
|
1620
|
+
def session_summarization_ai_prompt_id(self) -> typing.Optional[builtins.str]:
|
|
1621
|
+
'''
|
|
1622
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wisdom-aiagent-sessionsummarizationaiagentconfiguration.html#cfn-wisdom-aiagent-sessionsummarizationaiagentconfiguration-sessionsummarizationaipromptid
|
|
1623
|
+
'''
|
|
1624
|
+
result = self._values.get("session_summarization_ai_prompt_id")
|
|
1625
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1626
|
+
|
|
1627
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1628
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1629
|
+
|
|
1630
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
1631
|
+
return not (rhs == self)
|
|
1632
|
+
|
|
1633
|
+
def __repr__(self) -> str:
|
|
1634
|
+
return "SessionSummarizationAIAgentConfigurationProperty(%s)" % ", ".join(
|
|
1635
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
1636
|
+
)
|
|
1637
|
+
|
|
1510
1638
|
@jsii.data_type(
|
|
1511
1639
|
jsii_type="aws-cdk-lib.aws_wisdom.CfnAIAgent.TagConditionProperty",
|
|
1512
1640
|
jsii_struct_bases=[],
|
|
@@ -1785,6 +1913,7 @@ class CfnAIAgentProps:
|
|
|
1785
1913
|
association_type="associationType"
|
|
1786
1914
|
)],
|
|
1787
1915
|
intent_labeling_generation_ai_prompt_id="intentLabelingGenerationAiPromptId",
|
|
1916
|
+
locale="locale",
|
|
1788
1917
|
query_reformulation_ai_prompt_id="queryReformulationAiPromptId"
|
|
1789
1918
|
),
|
|
1790
1919
|
manual_search_ai_agent_configuration=wisdom.CfnAIAgent.ManualSearchAIAgentConfigurationProperty(
|
|
@@ -1827,7 +1956,8 @@ class CfnAIAgentProps:
|
|
|
1827
1956
|
),
|
|
1828
1957
|
association_id="associationId",
|
|
1829
1958
|
association_type="associationType"
|
|
1830
|
-
)]
|
|
1959
|
+
)],
|
|
1960
|
+
locale="locale"
|
|
1831
1961
|
),
|
|
1832
1962
|
self_service_ai_agent_configuration=wisdom.CfnAIAgent.SelfServiceAIAgentConfigurationProperty(
|
|
1833
1963
|
association_configurations=[wisdom.CfnAIAgent.AssociationConfigurationProperty(
|
|
@@ -1871,6 +2001,10 @@ class CfnAIAgentProps:
|
|
|
1871
2001
|
self_service_ai_guardrail_id="selfServiceAiGuardrailId",
|
|
1872
2002
|
self_service_answer_generation_ai_prompt_id="selfServiceAnswerGenerationAiPromptId",
|
|
1873
2003
|
self_service_pre_processing_ai_prompt_id="selfServicePreProcessingAiPromptId"
|
|
2004
|
+
),
|
|
2005
|
+
session_summarization_ai_agent_configuration=wisdom.CfnAIAgent.SessionSummarizationAIAgentConfigurationProperty(
|
|
2006
|
+
locale="locale",
|
|
2007
|
+
session_summarization_ai_prompt_id="sessionSummarizationAiPromptId"
|
|
1874
2008
|
)
|
|
1875
2009
|
),
|
|
1876
2010
|
type="type",
|
|
@@ -10646,6 +10780,7 @@ def _typecheckingstub__8cb84ad0dc27ffdae65e4e739c98ea6a4e7c36340f15c21ae83a2225f
|
|
|
10646
10780
|
answer_recommendation_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AnswerRecommendationAIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10647
10781
|
manual_search_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.ManualSearchAIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10648
10782
|
self_service_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.SelfServiceAIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10783
|
+
session_summarization_ai_agent_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.SessionSummarizationAIAgentConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10649
10784
|
) -> None:
|
|
10650
10785
|
"""Type checking stubs"""
|
|
10651
10786
|
pass
|
|
@@ -10656,6 +10791,7 @@ def _typecheckingstub__6847cf788b7def362d576a512b579b2a08c25837003298b7c57254d1d
|
|
|
10656
10791
|
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
10657
10792
|
association_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AssociationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
10658
10793
|
intent_labeling_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
10794
|
+
locale: typing.Optional[builtins.str] = None,
|
|
10659
10795
|
query_reformulation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
10660
10796
|
) -> None:
|
|
10661
10797
|
"""Type checking stubs"""
|
|
@@ -10691,6 +10827,7 @@ def _typecheckingstub__3346eba3a05ad4b31350bf2c54edbb6063a18cfea8a25ebbab80c4024
|
|
|
10691
10827
|
answer_generation_ai_guardrail_id: typing.Optional[builtins.str] = None,
|
|
10692
10828
|
answer_generation_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
10693
10829
|
association_configurations: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnAIAgent.AssociationConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
10830
|
+
locale: typing.Optional[builtins.str] = None,
|
|
10694
10831
|
) -> None:
|
|
10695
10832
|
"""Type checking stubs"""
|
|
10696
10833
|
pass
|
|
@@ -10713,6 +10850,14 @@ def _typecheckingstub__c0833e248a2b0215b05dd66ce2879efe35c5180b459e725cf02acb524
|
|
|
10713
10850
|
"""Type checking stubs"""
|
|
10714
10851
|
pass
|
|
10715
10852
|
|
|
10853
|
+
def _typecheckingstub__c7c77d42678888135842a224d18f4ff7fcbf96defa5fe5d052ddf6ae08737f6f(
|
|
10854
|
+
*,
|
|
10855
|
+
locale: typing.Optional[builtins.str] = None,
|
|
10856
|
+
session_summarization_ai_prompt_id: typing.Optional[builtins.str] = None,
|
|
10857
|
+
) -> None:
|
|
10858
|
+
"""Type checking stubs"""
|
|
10859
|
+
pass
|
|
10860
|
+
|
|
10716
10861
|
def _typecheckingstub__76535774a57202e416fb208d73c095c91408f65fd8a1b99f6b568fd994b915e9(
|
|
10717
10862
|
*,
|
|
10718
10863
|
key: builtins.str,
|
|
@@ -1194,21 +1194,20 @@ class AwsCustomResourcePolicy(
|
|
|
1194
1194
|
Example::
|
|
1195
1195
|
|
|
1196
1196
|
get_parameter = cr.AwsCustomResource(self, "GetParameter",
|
|
1197
|
-
on_update=cr.AwsSdkCall(
|
|
1197
|
+
on_update=cr.AwsSdkCall(
|
|
1198
1198
|
service="SSM",
|
|
1199
1199
|
action="GetParameter",
|
|
1200
1200
|
parameters={
|
|
1201
1201
|
"Name": "my-parameter",
|
|
1202
1202
|
"WithDecryption": True
|
|
1203
1203
|
},
|
|
1204
|
-
physical_resource_id=cr.PhysicalResourceId.of(Date.now().to_string())
|
|
1204
|
+
physical_resource_id=cr.PhysicalResourceId.of(Date.now().to_string()),
|
|
1205
|
+
logging=cr.Logging.with_data_hidden()
|
|
1206
|
+
),
|
|
1205
1207
|
policy=cr.AwsCustomResourcePolicy.from_sdk_calls(
|
|
1206
1208
|
resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE
|
|
1207
1209
|
)
|
|
1208
1210
|
)
|
|
1209
|
-
|
|
1210
|
-
# Use the value in another construct with
|
|
1211
|
-
get_parameter.get_response_field("Parameter.Value")
|
|
1212
1211
|
'''
|
|
1213
1212
|
|
|
1214
1213
|
@jsii.member(jsii_name="fromSdkCalls")
|
|
@@ -2286,24 +2285,23 @@ class PhysicalResourceId(
|
|
|
2286
2285
|
|
|
2287
2286
|
Example::
|
|
2288
2287
|
|
|
2289
|
-
|
|
2288
|
+
cross_account_role_arn = "arn:aws:iam::OTHERACCOUNT:role/CrossAccountRoleName" # arn of role deployed in separate account
|
|
2289
|
+
|
|
2290
|
+
call_region = "us-west-1" # sdk call to be made in specified region (optional)
|
|
2291
|
+
|
|
2292
|
+
cr.AwsCustomResource(self, "CrossAccount",
|
|
2290
2293
|
on_create=cr.AwsSdkCall(
|
|
2291
|
-
assumed_role_arn=
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
"VPC": {
|
|
2297
|
-
"VPCId": "vpc-123",
|
|
2298
|
-
"VPCRegion": "region-for-vpc"
|
|
2299
|
-
}
|
|
2300
|
-
},
|
|
2301
|
-
physical_resource_id=cr.PhysicalResourceId.of("${vpcStack.SharedVpc.VpcId}-${vpcStack.Region}-${PrivateHostedZone.HostedZoneId}")
|
|
2294
|
+
assumed_role_arn=cross_account_role_arn,
|
|
2295
|
+
region=call_region, # optional
|
|
2296
|
+
service="sts",
|
|
2297
|
+
action="GetCallerIdentity",
|
|
2298
|
+
physical_resource_id=cr.PhysicalResourceId.of("id")
|
|
2302
2299
|
),
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2300
|
+
policy=cr.AwsCustomResourcePolicy.from_statements([iam.PolicyStatement.from_json({
|
|
2301
|
+
"Effect": "Allow",
|
|
2302
|
+
"Action": "sts:AssumeRole",
|
|
2303
|
+
"Resource": cross_account_role_arn
|
|
2304
|
+
})])
|
|
2307
2305
|
)
|
|
2308
2306
|
'''
|
|
2309
2307
|
|
|
@@ -2867,21 +2865,20 @@ class SdkCallsPolicyOptions:
|
|
|
2867
2865
|
Example::
|
|
2868
2866
|
|
|
2869
2867
|
get_parameter = cr.AwsCustomResource(self, "GetParameter",
|
|
2870
|
-
on_update=cr.AwsSdkCall(
|
|
2868
|
+
on_update=cr.AwsSdkCall(
|
|
2871
2869
|
service="SSM",
|
|
2872
2870
|
action="GetParameter",
|
|
2873
2871
|
parameters={
|
|
2874
2872
|
"Name": "my-parameter",
|
|
2875
2873
|
"WithDecryption": True
|
|
2876
2874
|
},
|
|
2877
|
-
physical_resource_id=cr.PhysicalResourceId.of(Date.now().to_string())
|
|
2875
|
+
physical_resource_id=cr.PhysicalResourceId.of(Date.now().to_string()),
|
|
2876
|
+
logging=cr.Logging.with_data_hidden()
|
|
2877
|
+
),
|
|
2878
2878
|
policy=cr.AwsCustomResourcePolicy.from_sdk_calls(
|
|
2879
2879
|
resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE
|
|
2880
2880
|
)
|
|
2881
2881
|
)
|
|
2882
|
-
|
|
2883
|
-
# Use the value in another construct with
|
|
2884
|
-
get_parameter.get_response_field("Parameter.Value")
|
|
2885
2882
|
'''
|
|
2886
2883
|
if __debug__:
|
|
2887
2884
|
type_hints = typing.get_type_hints(_typecheckingstub__0cd00e8add38e42b6c4d7db0390a899ccaf5bbe0367bfb387986125dacc7a297)
|
aws_cdk/cx_api/__init__.py
CHANGED
|
@@ -613,6 +613,22 @@ When this feature flag is enabled, CDK expands the scope of usage data collectio
|
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
```
|
|
616
|
+
|
|
617
|
+
* `@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy`
|
|
618
|
+
|
|
619
|
+
When this feature flag is enabled, Lambda will create new inline policies with AddToRolePolicy.
|
|
620
|
+
The purpose of this is to prevent lambda from creating a dependency on the Default Policy Statement.
|
|
621
|
+
This solves an issue where a circular dependency could occur if adding lambda to something like a Cognito Trigger, then adding the User Pool to the lambda execution role permissions.
|
|
622
|
+
|
|
623
|
+
*cdk.json*
|
|
624
|
+
|
|
625
|
+
```json
|
|
626
|
+
{
|
|
627
|
+
"context": {
|
|
628
|
+
"@aws-cdk/aws-lambda:createNewPoliciesWithAddToRolePolicy": true
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
```
|
|
616
632
|
'''
|
|
617
633
|
from pkgutil import extend_path
|
|
618
634
|
__path__ = extend_path(__path__, __name__)
|