aws-cdk-lib 2.181.0__py3-none-any.whl → 2.182.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 +292 -8
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.181.0.jsii.tgz → aws-cdk-lib@2.182.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +59 -0
- aws_cdk/aws_apigateway/__init__.py +122 -66
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -0
- aws_cdk/aws_appsync/__init__.py +30 -4
- aws_cdk/aws_autoscaling/__init__.py +409 -36
- aws_cdk/aws_batch/__init__.py +629 -11
- aws_cdk/aws_bedrock/__init__.py +204 -0
- aws_cdk/aws_certificatemanager/__init__.py +24 -0
- aws_cdk/aws_cloudformation/__init__.py +284 -2
- aws_cdk/aws_cloudfront/__init__.py +1 -0
- aws_cdk/aws_cloudtrail/__init__.py +4 -4
- aws_cdk/aws_datazone/__init__.py +82 -0
- aws_cdk/aws_ec2/__init__.py +32 -12
- aws_cdk/aws_ecr/__init__.py +10 -4
- aws_cdk/aws_ecs/__init__.py +58 -9
- aws_cdk/aws_eks/__init__.py +32 -3
- aws_cdk/aws_fsx/__init__.py +2 -0
- aws_cdk/aws_guardduty/__init__.py +38 -26
- aws_cdk/aws_iam/__init__.py +5 -2
- aws_cdk/aws_inspector/__init__.py +176 -0
- aws_cdk/aws_iotsitewise/__init__.py +2 -3
- aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
- aws_cdk/aws_lambda/__init__.py +8 -0
- aws_cdk/aws_logs/__init__.py +2 -0
- aws_cdk/aws_mediapackagev2/__init__.py +22 -14
- aws_cdk/aws_opensearchservice/__init__.py +261 -1
- aws_cdk/aws_pcaconnectorad/__init__.py +30 -4
- aws_cdk/aws_pipes/__init__.py +6 -2
- aws_cdk/aws_quicksight/__init__.py +225 -451
- aws_cdk/aws_rds/__init__.py +50 -13
- aws_cdk/aws_s3/__init__.py +8 -0
- aws_cdk/aws_sagemaker/__init__.py +68 -13
- aws_cdk/aws_sns/__init__.py +76 -1
- aws_cdk/aws_vpclattice/__init__.py +144 -9
- aws_cdk/aws_wafv2/__init__.py +702 -0
- aws_cdk/aws_wisdom/__init__.py +3 -110
- aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
- aws_cdk/aws_workspacesweb/__init__.py +179 -2
- aws_cdk/cloud_assembly_schema/__init__.py +224 -4
- aws_cdk/cx_api/__init__.py +2 -1
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/RECORD +49 -49
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.181.0.dist-info → aws_cdk_lib-2.182.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -21107,6 +21107,10 @@ class CfnPrompt(
|
|
|
21107
21107
|
top_p=123
|
|
21108
21108
|
)
|
|
21109
21109
|
),
|
|
21110
|
+
metadata=[bedrock.CfnPrompt.PromptMetadataEntryProperty(
|
|
21111
|
+
key="key",
|
|
21112
|
+
value="value"
|
|
21113
|
+
)],
|
|
21110
21114
|
model_id="modelId"
|
|
21111
21115
|
)]
|
|
21112
21116
|
)
|
|
@@ -21926,6 +21930,74 @@ class CfnPrompt(
|
|
|
21926
21930
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
21927
21931
|
)
|
|
21928
21932
|
|
|
21933
|
+
@jsii.data_type(
|
|
21934
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.PromptMetadataEntryProperty",
|
|
21935
|
+
jsii_struct_bases=[],
|
|
21936
|
+
name_mapping={"key": "key", "value": "value"},
|
|
21937
|
+
)
|
|
21938
|
+
class PromptMetadataEntryProperty:
|
|
21939
|
+
def __init__(self, *, key: builtins.str, value: builtins.str) -> None:
|
|
21940
|
+
'''Contains a key-value pair that defines a metadata tag and value to attach to a prompt variant.
|
|
21941
|
+
|
|
21942
|
+
For more information, see `Create a prompt using Prompt management <https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html>`_ .
|
|
21943
|
+
|
|
21944
|
+
:param key: The key of a metadata tag for a prompt variant.
|
|
21945
|
+
:param value: The value of a metadata tag for a prompt variant.
|
|
21946
|
+
|
|
21947
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmetadataentry.html
|
|
21948
|
+
:exampleMetadata: fixture=_generated
|
|
21949
|
+
|
|
21950
|
+
Example::
|
|
21951
|
+
|
|
21952
|
+
# The code below shows an example of how to instantiate this type.
|
|
21953
|
+
# The values are placeholders you should change.
|
|
21954
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
21955
|
+
|
|
21956
|
+
prompt_metadata_entry_property = bedrock.CfnPrompt.PromptMetadataEntryProperty(
|
|
21957
|
+
key="key",
|
|
21958
|
+
value="value"
|
|
21959
|
+
)
|
|
21960
|
+
'''
|
|
21961
|
+
if __debug__:
|
|
21962
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3b522c920a49f0f03438b0e6f71cf85fa83fa2b5dde25f0379025e8074c2d4fe)
|
|
21963
|
+
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
21964
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
21965
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
21966
|
+
"key": key,
|
|
21967
|
+
"value": value,
|
|
21968
|
+
}
|
|
21969
|
+
|
|
21970
|
+
@builtins.property
|
|
21971
|
+
def key(self) -> builtins.str:
|
|
21972
|
+
'''The key of a metadata tag for a prompt variant.
|
|
21973
|
+
|
|
21974
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmetadataentry.html#cfn-bedrock-prompt-promptmetadataentry-key
|
|
21975
|
+
'''
|
|
21976
|
+
result = self._values.get("key")
|
|
21977
|
+
assert result is not None, "Required property 'key' is missing"
|
|
21978
|
+
return typing.cast(builtins.str, result)
|
|
21979
|
+
|
|
21980
|
+
@builtins.property
|
|
21981
|
+
def value(self) -> builtins.str:
|
|
21982
|
+
'''The value of a metadata tag for a prompt variant.
|
|
21983
|
+
|
|
21984
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptmetadataentry.html#cfn-bedrock-prompt-promptmetadataentry-value
|
|
21985
|
+
'''
|
|
21986
|
+
result = self._values.get("value")
|
|
21987
|
+
assert result is not None, "Required property 'value' is missing"
|
|
21988
|
+
return typing.cast(builtins.str, result)
|
|
21989
|
+
|
|
21990
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
21991
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
21992
|
+
|
|
21993
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
21994
|
+
return not (rhs == self)
|
|
21995
|
+
|
|
21996
|
+
def __repr__(self) -> str:
|
|
21997
|
+
return "PromptMetadataEntryProperty(%s)" % ", ".join(
|
|
21998
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
21999
|
+
)
|
|
22000
|
+
|
|
21929
22001
|
@jsii.data_type(
|
|
21930
22002
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPrompt.PromptModelInferenceConfigurationProperty",
|
|
21931
22003
|
jsii_struct_bases=[],
|
|
@@ -22186,6 +22258,7 @@ class CfnPrompt(
|
|
|
22186
22258
|
"additional_model_request_fields": "additionalModelRequestFields",
|
|
22187
22259
|
"gen_ai_resource": "genAiResource",
|
|
22188
22260
|
"inference_configuration": "inferenceConfiguration",
|
|
22261
|
+
"metadata": "metadata",
|
|
22189
22262
|
"model_id": "modelId",
|
|
22190
22263
|
},
|
|
22191
22264
|
)
|
|
@@ -22199,6 +22272,7 @@ class CfnPrompt(
|
|
|
22199
22272
|
additional_model_request_fields: typing.Any = None,
|
|
22200
22273
|
gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptGenAiResourceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22201
22274
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
22275
|
+
metadata: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPrompt.PromptMetadataEntryProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
22202
22276
|
model_id: typing.Optional[builtins.str] = None,
|
|
22203
22277
|
) -> None:
|
|
22204
22278
|
'''Contains details about a variant of the prompt.
|
|
@@ -22209,6 +22283,7 @@ class CfnPrompt(
|
|
|
22209
22283
|
:param additional_model_request_fields: Contains model-specific inference configurations that aren't in the ``inferenceConfiguration`` field. To see model-specific inference parameters, see `Inference request parameters and response fields for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
|
|
22210
22284
|
:param gen_ai_resource: Specifies a generative AI resource with which to use the prompt.
|
|
22211
22285
|
:param inference_configuration: Contains inference configurations for the prompt variant.
|
|
22286
|
+
:param metadata: An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
|
|
22212
22287
|
:param model_id: The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ with which to run inference on the prompt.
|
|
22213
22288
|
|
|
22214
22289
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html
|
|
@@ -22309,6 +22384,10 @@ class CfnPrompt(
|
|
|
22309
22384
|
top_p=123
|
|
22310
22385
|
)
|
|
22311
22386
|
),
|
|
22387
|
+
metadata=[bedrock.CfnPrompt.PromptMetadataEntryProperty(
|
|
22388
|
+
key="key",
|
|
22389
|
+
value="value"
|
|
22390
|
+
)],
|
|
22312
22391
|
model_id="modelId"
|
|
22313
22392
|
)
|
|
22314
22393
|
'''
|
|
@@ -22320,6 +22399,7 @@ class CfnPrompt(
|
|
|
22320
22399
|
check_type(argname="argument additional_model_request_fields", value=additional_model_request_fields, expected_type=type_hints["additional_model_request_fields"])
|
|
22321
22400
|
check_type(argname="argument gen_ai_resource", value=gen_ai_resource, expected_type=type_hints["gen_ai_resource"])
|
|
22322
22401
|
check_type(argname="argument inference_configuration", value=inference_configuration, expected_type=type_hints["inference_configuration"])
|
|
22402
|
+
check_type(argname="argument metadata", value=metadata, expected_type=type_hints["metadata"])
|
|
22323
22403
|
check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
|
|
22324
22404
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
22325
22405
|
"name": name,
|
|
@@ -22332,6 +22412,8 @@ class CfnPrompt(
|
|
|
22332
22412
|
self._values["gen_ai_resource"] = gen_ai_resource
|
|
22333
22413
|
if inference_configuration is not None:
|
|
22334
22414
|
self._values["inference_configuration"] = inference_configuration
|
|
22415
|
+
if metadata is not None:
|
|
22416
|
+
self._values["metadata"] = metadata
|
|
22335
22417
|
if model_id is not None:
|
|
22336
22418
|
self._values["model_id"] = model_id
|
|
22337
22419
|
|
|
@@ -22400,6 +22482,17 @@ class CfnPrompt(
|
|
|
22400
22482
|
result = self._values.get("inference_configuration")
|
|
22401
22483
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptInferenceConfigurationProperty"]], result)
|
|
22402
22484
|
|
|
22485
|
+
@builtins.property
|
|
22486
|
+
def metadata(
|
|
22487
|
+
self,
|
|
22488
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptMetadataEntryProperty"]]]]:
|
|
22489
|
+
'''An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
|
|
22490
|
+
|
|
22491
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-prompt-promptvariant.html#cfn-bedrock-prompt-promptvariant-metadata
|
|
22492
|
+
'''
|
|
22493
|
+
result = self._values.get("metadata")
|
|
22494
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPrompt.PromptMetadataEntryProperty"]]]], result)
|
|
22495
|
+
|
|
22403
22496
|
@builtins.property
|
|
22404
22497
|
def model_id(self) -> typing.Optional[builtins.str]:
|
|
22405
22498
|
'''The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ with which to run inference on the prompt.
|
|
@@ -23351,6 +23444,10 @@ class CfnPromptProps:
|
|
|
23351
23444
|
top_p=123
|
|
23352
23445
|
)
|
|
23353
23446
|
),
|
|
23447
|
+
metadata=[bedrock.CfnPrompt.PromptMetadataEntryProperty(
|
|
23448
|
+
key="key",
|
|
23449
|
+
value="value"
|
|
23450
|
+
)],
|
|
23354
23451
|
model_id="modelId"
|
|
23355
23452
|
)]
|
|
23356
23453
|
)
|
|
@@ -24276,6 +24373,74 @@ class CfnPromptVersion(
|
|
|
24276
24373
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
24277
24374
|
)
|
|
24278
24375
|
|
|
24376
|
+
@jsii.data_type(
|
|
24377
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.PromptMetadataEntryProperty",
|
|
24378
|
+
jsii_struct_bases=[],
|
|
24379
|
+
name_mapping={"key": "key", "value": "value"},
|
|
24380
|
+
)
|
|
24381
|
+
class PromptMetadataEntryProperty:
|
|
24382
|
+
def __init__(self, *, key: builtins.str, value: builtins.str) -> None:
|
|
24383
|
+
'''Contains a key-value pair that defines a metadata tag and value to attach to a prompt variant.
|
|
24384
|
+
|
|
24385
|
+
For more information, see `Create a prompt using Prompt management <https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html>`_ .
|
|
24386
|
+
|
|
24387
|
+
:param key: The key of a metadata tag for a prompt variant.
|
|
24388
|
+
:param value: The value of a metadata tag for a prompt variant.
|
|
24389
|
+
|
|
24390
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmetadataentry.html
|
|
24391
|
+
:exampleMetadata: fixture=_generated
|
|
24392
|
+
|
|
24393
|
+
Example::
|
|
24394
|
+
|
|
24395
|
+
# The code below shows an example of how to instantiate this type.
|
|
24396
|
+
# The values are placeholders you should change.
|
|
24397
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
24398
|
+
|
|
24399
|
+
prompt_metadata_entry_property = bedrock.CfnPromptVersion.PromptMetadataEntryProperty(
|
|
24400
|
+
key="key",
|
|
24401
|
+
value="value"
|
|
24402
|
+
)
|
|
24403
|
+
'''
|
|
24404
|
+
if __debug__:
|
|
24405
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8e55a11739297f03b476e7ea85e0cc0000c95702eafcf555efe5d0f808097be0)
|
|
24406
|
+
check_type(argname="argument key", value=key, expected_type=type_hints["key"])
|
|
24407
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
24408
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
24409
|
+
"key": key,
|
|
24410
|
+
"value": value,
|
|
24411
|
+
}
|
|
24412
|
+
|
|
24413
|
+
@builtins.property
|
|
24414
|
+
def key(self) -> builtins.str:
|
|
24415
|
+
'''The key of a metadata tag for a prompt variant.
|
|
24416
|
+
|
|
24417
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmetadataentry.html#cfn-bedrock-promptversion-promptmetadataentry-key
|
|
24418
|
+
'''
|
|
24419
|
+
result = self._values.get("key")
|
|
24420
|
+
assert result is not None, "Required property 'key' is missing"
|
|
24421
|
+
return typing.cast(builtins.str, result)
|
|
24422
|
+
|
|
24423
|
+
@builtins.property
|
|
24424
|
+
def value(self) -> builtins.str:
|
|
24425
|
+
'''The value of a metadata tag for a prompt variant.
|
|
24426
|
+
|
|
24427
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptmetadataentry.html#cfn-bedrock-promptversion-promptmetadataentry-value
|
|
24428
|
+
'''
|
|
24429
|
+
result = self._values.get("value")
|
|
24430
|
+
assert result is not None, "Required property 'value' is missing"
|
|
24431
|
+
return typing.cast(builtins.str, result)
|
|
24432
|
+
|
|
24433
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
24434
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
24435
|
+
|
|
24436
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
24437
|
+
return not (rhs == self)
|
|
24438
|
+
|
|
24439
|
+
def __repr__(self) -> str:
|
|
24440
|
+
return "PromptMetadataEntryProperty(%s)" % ", ".join(
|
|
24441
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
24442
|
+
)
|
|
24443
|
+
|
|
24279
24444
|
@jsii.data_type(
|
|
24280
24445
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.PromptModelInferenceConfigurationProperty",
|
|
24281
24446
|
jsii_struct_bases=[],
|
|
@@ -24531,6 +24696,7 @@ class CfnPromptVersion(
|
|
|
24531
24696
|
"additional_model_request_fields": "additionalModelRequestFields",
|
|
24532
24697
|
"gen_ai_resource": "genAiResource",
|
|
24533
24698
|
"inference_configuration": "inferenceConfiguration",
|
|
24699
|
+
"metadata": "metadata",
|
|
24534
24700
|
"model_id": "modelId",
|
|
24535
24701
|
},
|
|
24536
24702
|
)
|
|
@@ -24544,6 +24710,7 @@ class CfnPromptVersion(
|
|
|
24544
24710
|
additional_model_request_fields: typing.Any = None,
|
|
24545
24711
|
gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptGenAiResourceProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24546
24712
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptInferenceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24713
|
+
metadata: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPromptVersion.PromptMetadataEntryProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
24547
24714
|
model_id: typing.Optional[builtins.str] = None,
|
|
24548
24715
|
) -> None:
|
|
24549
24716
|
'''Contains details about a variant of the prompt.
|
|
@@ -24554,6 +24721,7 @@ class CfnPromptVersion(
|
|
|
24554
24721
|
:param additional_model_request_fields: Contains model-specific inference configurations that aren't in the ``inferenceConfiguration`` field. To see model-specific inference parameters, see `Inference request parameters and response fields for foundation models <https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html>`_ .
|
|
24555
24722
|
:param gen_ai_resource: Specifies a generative AI resource with which to use the prompt.
|
|
24556
24723
|
:param inference_configuration: Contains inference configurations for the prompt variant.
|
|
24724
|
+
:param metadata: An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
|
|
24557
24725
|
:param model_id: The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ with which to run inference on the prompt.
|
|
24558
24726
|
|
|
24559
24727
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html
|
|
@@ -24649,6 +24817,10 @@ class CfnPromptVersion(
|
|
|
24649
24817
|
top_p=123
|
|
24650
24818
|
)
|
|
24651
24819
|
),
|
|
24820
|
+
metadata=[bedrock.CfnPromptVersion.PromptMetadataEntryProperty(
|
|
24821
|
+
key="key",
|
|
24822
|
+
value="value"
|
|
24823
|
+
)],
|
|
24652
24824
|
model_id="modelId"
|
|
24653
24825
|
)
|
|
24654
24826
|
'''
|
|
@@ -24660,6 +24832,7 @@ class CfnPromptVersion(
|
|
|
24660
24832
|
check_type(argname="argument additional_model_request_fields", value=additional_model_request_fields, expected_type=type_hints["additional_model_request_fields"])
|
|
24661
24833
|
check_type(argname="argument gen_ai_resource", value=gen_ai_resource, expected_type=type_hints["gen_ai_resource"])
|
|
24662
24834
|
check_type(argname="argument inference_configuration", value=inference_configuration, expected_type=type_hints["inference_configuration"])
|
|
24835
|
+
check_type(argname="argument metadata", value=metadata, expected_type=type_hints["metadata"])
|
|
24663
24836
|
check_type(argname="argument model_id", value=model_id, expected_type=type_hints["model_id"])
|
|
24664
24837
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
24665
24838
|
"name": name,
|
|
@@ -24672,6 +24845,8 @@ class CfnPromptVersion(
|
|
|
24672
24845
|
self._values["gen_ai_resource"] = gen_ai_resource
|
|
24673
24846
|
if inference_configuration is not None:
|
|
24674
24847
|
self._values["inference_configuration"] = inference_configuration
|
|
24848
|
+
if metadata is not None:
|
|
24849
|
+
self._values["metadata"] = metadata
|
|
24675
24850
|
if model_id is not None:
|
|
24676
24851
|
self._values["model_id"] = model_id
|
|
24677
24852
|
|
|
@@ -24740,6 +24915,17 @@ class CfnPromptVersion(
|
|
|
24740
24915
|
result = self._values.get("inference_configuration")
|
|
24741
24916
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.PromptInferenceConfigurationProperty"]], result)
|
|
24742
24917
|
|
|
24918
|
+
@builtins.property
|
|
24919
|
+
def metadata(
|
|
24920
|
+
self,
|
|
24921
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.PromptMetadataEntryProperty"]]]]:
|
|
24922
|
+
'''An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant.
|
|
24923
|
+
|
|
24924
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-promptversion-promptvariant.html#cfn-bedrock-promptversion-promptvariant-metadata
|
|
24925
|
+
'''
|
|
24926
|
+
result = self._values.get("metadata")
|
|
24927
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPromptVersion.PromptMetadataEntryProperty"]]]], result)
|
|
24928
|
+
|
|
24743
24929
|
@builtins.property
|
|
24744
24930
|
def model_id(self) -> typing.Optional[builtins.str]:
|
|
24745
24931
|
'''The unique identifier of the model or `inference profile <https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html>`_ with which to run inference on the prompt.
|
|
@@ -28932,6 +29118,14 @@ def _typecheckingstub__dc35c777b685d68787105510122e7efd46720ef68b49f2d932eeed7bd
|
|
|
28932
29118
|
"""Type checking stubs"""
|
|
28933
29119
|
pass
|
|
28934
29120
|
|
|
29121
|
+
def _typecheckingstub__3b522c920a49f0f03438b0e6f71cf85fa83fa2b5dde25f0379025e8074c2d4fe(
|
|
29122
|
+
*,
|
|
29123
|
+
key: builtins.str,
|
|
29124
|
+
value: builtins.str,
|
|
29125
|
+
) -> None:
|
|
29126
|
+
"""Type checking stubs"""
|
|
29127
|
+
pass
|
|
29128
|
+
|
|
28935
29129
|
def _typecheckingstub__d348efba187570a443093419bc85fbc24f754a9496fbfc85e29bb7e4003bb843(
|
|
28936
29130
|
*,
|
|
28937
29131
|
max_tokens: typing.Optional[jsii.Number] = None,
|
|
@@ -28958,6 +29152,7 @@ def _typecheckingstub__84ac4a525676aedbb60bd913121b2941e7f39f8599421758678b789b5
|
|
|
28958
29152
|
additional_model_request_fields: typing.Any = None,
|
|
28959
29153
|
gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptGenAiResourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
28960
29154
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29155
|
+
metadata: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPrompt.PromptMetadataEntryProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
28961
29156
|
model_id: typing.Optional[builtins.str] = None,
|
|
28962
29157
|
) -> None:
|
|
28963
29158
|
"""Type checking stubs"""
|
|
@@ -29152,6 +29347,14 @@ def _typecheckingstub__9ea321e7c7779200dbe487a0d67a953a48c63bc76464c3e75f8e57218
|
|
|
29152
29347
|
"""Type checking stubs"""
|
|
29153
29348
|
pass
|
|
29154
29349
|
|
|
29350
|
+
def _typecheckingstub__8e55a11739297f03b476e7ea85e0cc0000c95702eafcf555efe5d0f808097be0(
|
|
29351
|
+
*,
|
|
29352
|
+
key: builtins.str,
|
|
29353
|
+
value: builtins.str,
|
|
29354
|
+
) -> None:
|
|
29355
|
+
"""Type checking stubs"""
|
|
29356
|
+
pass
|
|
29357
|
+
|
|
29155
29358
|
def _typecheckingstub__b58a287b31d21450a61de44a5befbea1f8751449646ed0bbe2b063a20298d485(
|
|
29156
29359
|
*,
|
|
29157
29360
|
max_tokens: typing.Optional[jsii.Number] = None,
|
|
@@ -29178,6 +29381,7 @@ def _typecheckingstub__0527e63017fac779f764e66c7e3ec7544382203f5ff233de501b3fde2
|
|
|
29178
29381
|
additional_model_request_fields: typing.Any = None,
|
|
29179
29382
|
gen_ai_resource: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptGenAiResourceProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29180
29383
|
inference_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29384
|
+
metadata: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptMetadataEntryProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
29181
29385
|
model_id: typing.Optional[builtins.str] = None,
|
|
29182
29386
|
) -> None:
|
|
29183
29387
|
"""Type checking stubs"""
|
|
@@ -1884,12 +1884,36 @@ class KeyAlgorithm(
|
|
|
1884
1884
|
'''EC_secp384r1 algorithm.'''
|
|
1885
1885
|
return typing.cast("KeyAlgorithm", jsii.sget(cls, "EC_SECP384R1"))
|
|
1886
1886
|
|
|
1887
|
+
@jsii.python.classproperty
|
|
1888
|
+
@jsii.member(jsii_name="EC_SECP521R1")
|
|
1889
|
+
def EC_SECP521_R1(cls) -> "KeyAlgorithm":
|
|
1890
|
+
'''EC_secp521r1 algorithm.'''
|
|
1891
|
+
return typing.cast("KeyAlgorithm", jsii.sget(cls, "EC_SECP521R1"))
|
|
1892
|
+
|
|
1893
|
+
@jsii.python.classproperty
|
|
1894
|
+
@jsii.member(jsii_name="RSA_1024")
|
|
1895
|
+
def RSA_1024(cls) -> "KeyAlgorithm":
|
|
1896
|
+
'''RSA_1024 algorithm.'''
|
|
1897
|
+
return typing.cast("KeyAlgorithm", jsii.sget(cls, "RSA_1024"))
|
|
1898
|
+
|
|
1887
1899
|
@jsii.python.classproperty
|
|
1888
1900
|
@jsii.member(jsii_name="RSA_2048")
|
|
1889
1901
|
def RSA_2048(cls) -> "KeyAlgorithm":
|
|
1890
1902
|
'''RSA_2048 algorithm.'''
|
|
1891
1903
|
return typing.cast("KeyAlgorithm", jsii.sget(cls, "RSA_2048"))
|
|
1892
1904
|
|
|
1905
|
+
@jsii.python.classproperty
|
|
1906
|
+
@jsii.member(jsii_name="RSA_3072")
|
|
1907
|
+
def RSA_3072(cls) -> "KeyAlgorithm":
|
|
1908
|
+
'''RSA_3072 algorithm.'''
|
|
1909
|
+
return typing.cast("KeyAlgorithm", jsii.sget(cls, "RSA_3072"))
|
|
1910
|
+
|
|
1911
|
+
@jsii.python.classproperty
|
|
1912
|
+
@jsii.member(jsii_name="RSA_4096")
|
|
1913
|
+
def RSA_4096(cls) -> "KeyAlgorithm":
|
|
1914
|
+
'''RSA_4096 algorithm.'''
|
|
1915
|
+
return typing.cast("KeyAlgorithm", jsii.sget(cls, "RSA_4096"))
|
|
1916
|
+
|
|
1893
1917
|
@builtins.property
|
|
1894
1918
|
@jsii.member(jsii_name="name")
|
|
1895
1919
|
def name(self) -> builtins.str:
|