aws-cdk-lib 2.155.0__py3-none-any.whl → 2.157.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 +28 -24
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.155.0.jsii.tgz → aws-cdk-lib@2.157.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +10 -75
- aws_cdk/aws_amplify/__init__.py +106 -0
- aws_cdk/aws_apigatewayv2/__init__.py +81 -13
- aws_cdk/aws_appintegrations/__init__.py +14 -14
- aws_cdk/aws_applicationsignals/__init__.py +750 -1
- aws_cdk/aws_appsync/__init__.py +50 -18
- aws_cdk/aws_autoscaling/__init__.py +6 -6
- aws_cdk/aws_backup/__init__.py +39 -0
- aws_cdk/aws_batch/__init__.py +41 -0
- aws_cdk/aws_bedrock/__init__.py +1528 -91
- aws_cdk/aws_chatbot/__init__.py +6 -6
- aws_cdk/aws_cloudformation/__init__.py +22 -22
- aws_cdk/aws_cloudfront/__init__.py +650 -57
- aws_cdk/aws_cloudfront/experimental/__init__.py +30 -3
- aws_cdk/aws_cloudfront_origins/__init__.py +2034 -91
- aws_cdk/aws_codebuild/__init__.py +1 -1
- aws_cdk/aws_datasync/__init__.py +40 -29
- aws_cdk/aws_docdb/__init__.py +78 -6
- aws_cdk/aws_ec2/__init__.py +397 -75
- aws_cdk/aws_ecs/__init__.py +271 -101
- aws_cdk/aws_ecs_patterns/__init__.py +129 -11
- aws_cdk/aws_eks/__init__.py +40 -4
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +26 -50
- aws_cdk/aws_entityresolution/__init__.py +117 -4
- aws_cdk/aws_events/__init__.py +40 -14
- aws_cdk/aws_events_targets/__init__.py +357 -0
- aws_cdk/aws_glue/__init__.py +0 -8
- aws_cdk/aws_groundstation/__init__.py +27 -16
- aws_cdk/aws_guardduty/__init__.py +26 -14
- aws_cdk/aws_iam/__init__.py +7 -8
- aws_cdk/aws_iotfleetwise/__init__.py +108 -0
- aws_cdk/aws_kms/__init__.py +53 -10
- aws_cdk/aws_lambda/__init__.py +147 -17
- aws_cdk/aws_lambda_nodejs/__init__.py +30 -3
- aws_cdk/aws_macie/__init__.py +4 -4
- aws_cdk/aws_medialive/__init__.py +348 -0
- aws_cdk/aws_mediapackagev2/__init__.py +38 -38
- aws_cdk/aws_neptune/__init__.py +14 -8
- aws_cdk/aws_opensearchservice/__init__.py +194 -0
- aws_cdk/aws_pcaconnectorscep/__init__.py +884 -0
- aws_cdk/aws_personalize/__init__.py +2 -2
- aws_cdk/aws_pipes/__init__.py +22 -22
- aws_cdk/aws_qbusiness/__init__.py +675 -6
- aws_cdk/aws_quicksight/__init__.py +3285 -0
- aws_cdk/aws_rds/__init__.py +24 -0
- aws_cdk/aws_s3/__init__.py +13 -14
- aws_cdk/aws_sagemaker/__init__.py +1167 -0
- aws_cdk/aws_secretsmanager/__init__.py +2 -3
- aws_cdk/aws_securityhub/__init__.py +108 -103
- aws_cdk/aws_ses/__init__.py +31 -0
- aws_cdk/aws_sns/__init__.py +19 -13
- aws_cdk/aws_ssm/__init__.py +10 -6
- aws_cdk/aws_ssmquicksetup/__init__.py +967 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +106 -45
- aws_cdk/aws_synthetics/__init__.py +13 -0
- aws_cdk/cx_api/__init__.py +16 -0
- aws_cdk/triggers/__init__.py +30 -3
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/RECORD +66 -64
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/top_level.txt +0 -0
|
@@ -420,10 +420,40 @@ task = tasks.BedrockInvokeModel(self, "Prompt Model",
|
|
|
420
420
|
)
|
|
421
421
|
```
|
|
422
422
|
|
|
423
|
+
### Using Input Path for S3 URI
|
|
424
|
+
|
|
425
|
+
Provide S3 URI as an input or output path to invoke a model
|
|
426
|
+
|
|
427
|
+
To specify the S3 URI as JSON path to your input or output fields, use props `s3InputUri` and `s3OutputUri` under BedrockInvokeModelProps and set
|
|
428
|
+
feature flag `@aws-cdk/aws-stepfunctions-tasks:useNewS3UriParametersForBedrockInvokeModelTask` to true.
|
|
429
|
+
|
|
430
|
+
If this flag is not enabled, the code will populate the S3Uri using `InputPath` and `OutputPath` fields, which is not recommended.
|
|
431
|
+
|
|
432
|
+
```python
|
|
433
|
+
import aws_cdk.aws_bedrock as bedrock
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
model = bedrock.FoundationModel.from_foundation_model_id(self, "Model", bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1)
|
|
437
|
+
|
|
438
|
+
task = tasks.BedrockInvokeModel(self, "Prompt Model",
|
|
439
|
+
model=model,
|
|
440
|
+
input=tasks.BedrockInvokeModelInputProps(s3_input_uri=sfn.JsonPath.string_at("$.prompt")),
|
|
441
|
+
output=tasks.BedrockInvokeModelOutputProps(s3_output_uri=sfn.JsonPath.string_at("$.prompt"))
|
|
442
|
+
)
|
|
443
|
+
```
|
|
444
|
+
|
|
423
445
|
### Using Input Path
|
|
424
446
|
|
|
425
447
|
Provide S3 URI as an input or output path to invoke a model
|
|
426
448
|
|
|
449
|
+
Currently, input and output Path provided in the BedrockInvokeModelProps input is defined as S3URI field under task definition of state machine.
|
|
450
|
+
To modify the existing behaviour, set `@aws-cdk/aws-stepfunctions-tasks:useNewS3UriParametersForBedrockInvokeModelTask` to true.
|
|
451
|
+
|
|
452
|
+
If this feature flag is enabled, S3URI fields will be generated from other Props(`s3InputUri` and `s3OutputUri`), and the given inputPath, OutputPath will be rendered as
|
|
453
|
+
it is in the JSON task definition.
|
|
454
|
+
|
|
455
|
+
If the feature flag is set to `false`, the behavior will be to populate the S3Uri using the `InputPath` and `OutputPath` fields, which is not recommended.
|
|
456
|
+
|
|
427
457
|
```python
|
|
428
458
|
import aws_cdk.aws_bedrock as bedrock
|
|
429
459
|
|
|
@@ -1341,7 +1371,7 @@ connection = events.Connection(self, "Connection",
|
|
|
1341
1371
|
|
|
1342
1372
|
tasks.HttpInvoke(self, "Invoke HTTP API",
|
|
1343
1373
|
api_root="https://api.example.com",
|
|
1344
|
-
api_endpoint=sfn.TaskInput.from_text("
|
|
1374
|
+
api_endpoint=sfn.TaskInput.from_text("path/to/resource"),
|
|
1345
1375
|
body=sfn.TaskInput.from_object({"foo": "bar"}),
|
|
1346
1376
|
connection=connection,
|
|
1347
1377
|
headers=sfn.TaskInput.from_object({"Content-Type": "application/json"}),
|
|
@@ -4857,46 +4887,59 @@ class BedrockInvokeModel(
|
|
|
4857
4887
|
@jsii.data_type(
|
|
4858
4888
|
jsii_type="aws-cdk-lib.aws_stepfunctions_tasks.BedrockInvokeModelInputProps",
|
|
4859
4889
|
jsii_struct_bases=[],
|
|
4860
|
-
name_mapping={"s3_location": "s3Location"},
|
|
4890
|
+
name_mapping={"s3_input_uri": "s3InputUri", "s3_location": "s3Location"},
|
|
4861
4891
|
)
|
|
4862
4892
|
class BedrockInvokeModelInputProps:
|
|
4863
4893
|
def __init__(
|
|
4864
4894
|
self,
|
|
4865
4895
|
*,
|
|
4896
|
+
s3_input_uri: typing.Optional[builtins.str] = None,
|
|
4866
4897
|
s3_location: typing.Optional[typing.Union[_Location_0948fa7f, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
4867
4898
|
) -> None:
|
|
4868
4899
|
'''Location to retrieve the input data, prior to calling Bedrock InvokeModel.
|
|
4869
4900
|
|
|
4901
|
+
:param s3_input_uri: The source location where the API response is written. This field can be used to specify s3 URI in the form of token Default: - The API response body is returned in the result.
|
|
4870
4902
|
: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
|
|
4871
4903
|
|
|
4872
4904
|
:see: https://docs.aws.amazon.com/step-functions/latest/dg/connect-bedrock.html
|
|
4873
|
-
:exampleMetadata:
|
|
4905
|
+
:exampleMetadata: infused
|
|
4874
4906
|
|
|
4875
4907
|
Example::
|
|
4876
4908
|
|
|
4877
|
-
|
|
4878
|
-
# The values are placeholders you should change.
|
|
4879
|
-
from aws_cdk import aws_stepfunctions_tasks as stepfunctions_tasks
|
|
4909
|
+
import aws_cdk.aws_bedrock as bedrock
|
|
4880
4910
|
|
|
4881
|
-
bedrock_invoke_model_input_props = stepfunctions_tasks.BedrockInvokeModelInputProps(
|
|
4882
|
-
s3_location=Location(
|
|
4883
|
-
bucket_name="bucketName",
|
|
4884
|
-
object_key="objectKey",
|
|
4885
4911
|
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4912
|
+
model = bedrock.FoundationModel.from_foundation_model_id(self, "Model", bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1)
|
|
4913
|
+
|
|
4914
|
+
task = tasks.BedrockInvokeModel(self, "Prompt Model",
|
|
4915
|
+
model=model,
|
|
4916
|
+
input=tasks.BedrockInvokeModelInputProps(s3_input_uri=sfn.JsonPath.string_at("$.prompt")),
|
|
4917
|
+
output=tasks.BedrockInvokeModelOutputProps(s3_output_uri=sfn.JsonPath.string_at("$.prompt"))
|
|
4889
4918
|
)
|
|
4890
4919
|
'''
|
|
4891
4920
|
if isinstance(s3_location, dict):
|
|
4892
4921
|
s3_location = _Location_0948fa7f(**s3_location)
|
|
4893
4922
|
if __debug__:
|
|
4894
4923
|
type_hints = typing.get_type_hints(_typecheckingstub__5832c6287635fafcd3211864b6568285ae981df509ea5c6b8dd8458d0254c232)
|
|
4924
|
+
check_type(argname="argument s3_input_uri", value=s3_input_uri, expected_type=type_hints["s3_input_uri"])
|
|
4895
4925
|
check_type(argname="argument s3_location", value=s3_location, expected_type=type_hints["s3_location"])
|
|
4896
4926
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
4927
|
+
if s3_input_uri is not None:
|
|
4928
|
+
self._values["s3_input_uri"] = s3_input_uri
|
|
4897
4929
|
if s3_location is not None:
|
|
4898
4930
|
self._values["s3_location"] = s3_location
|
|
4899
4931
|
|
|
4932
|
+
@builtins.property
|
|
4933
|
+
def s3_input_uri(self) -> typing.Optional[builtins.str]:
|
|
4934
|
+
'''The source location where the API response is written.
|
|
4935
|
+
|
|
4936
|
+
This field can be used to specify s3 URI in the form of token
|
|
4937
|
+
|
|
4938
|
+
:default: - The API response body is returned in the result.
|
|
4939
|
+
'''
|
|
4940
|
+
result = self._values.get("s3_input_uri")
|
|
4941
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4942
|
+
|
|
4900
4943
|
@builtins.property
|
|
4901
4944
|
def s3_location(self) -> typing.Optional[_Location_0948fa7f]:
|
|
4902
4945
|
'''S3 object to retrieve the input data from.
|
|
@@ -4923,35 +4966,34 @@ class BedrockInvokeModelInputProps:
|
|
|
4923
4966
|
@jsii.data_type(
|
|
4924
4967
|
jsii_type="aws-cdk-lib.aws_stepfunctions_tasks.BedrockInvokeModelOutputProps",
|
|
4925
4968
|
jsii_struct_bases=[],
|
|
4926
|
-
name_mapping={"s3_location": "s3Location"},
|
|
4969
|
+
name_mapping={"s3_location": "s3Location", "s3_output_uri": "s3OutputUri"},
|
|
4927
4970
|
)
|
|
4928
4971
|
class BedrockInvokeModelOutputProps:
|
|
4929
4972
|
def __init__(
|
|
4930
4973
|
self,
|
|
4931
4974
|
*,
|
|
4932
4975
|
s3_location: typing.Optional[typing.Union[_Location_0948fa7f, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
4976
|
+
s3_output_uri: typing.Optional[builtins.str] = None,
|
|
4933
4977
|
) -> None:
|
|
4934
4978
|
'''Location where the Bedrock InvokeModel API response is written.
|
|
4935
4979
|
|
|
4936
4980
|
: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
|
|
4981
|
+
:param s3_output_uri: The destination location where the API response is written. This field can be used to specify s3 URI in the form of token Default: - The API response body is returned in the result.
|
|
4937
4982
|
|
|
4938
4983
|
:see: https://docs.aws.amazon.com/step-functions/latest/dg/connect-bedrock.html
|
|
4939
|
-
:exampleMetadata:
|
|
4984
|
+
:exampleMetadata: infused
|
|
4940
4985
|
|
|
4941
4986
|
Example::
|
|
4942
4987
|
|
|
4943
|
-
|
|
4944
|
-
# The values are placeholders you should change.
|
|
4945
|
-
from aws_cdk import aws_stepfunctions_tasks as stepfunctions_tasks
|
|
4988
|
+
import aws_cdk.aws_bedrock as bedrock
|
|
4946
4989
|
|
|
4947
|
-
bedrock_invoke_model_output_props = stepfunctions_tasks.BedrockInvokeModelOutputProps(
|
|
4948
|
-
s3_location=Location(
|
|
4949
|
-
bucket_name="bucketName",
|
|
4950
|
-
object_key="objectKey",
|
|
4951
4990
|
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4991
|
+
model = bedrock.FoundationModel.from_foundation_model_id(self, "Model", bedrock.FoundationModelIdentifier.AMAZON_TITAN_TEXT_G1_EXPRESS_V1)
|
|
4992
|
+
|
|
4993
|
+
task = tasks.BedrockInvokeModel(self, "Prompt Model",
|
|
4994
|
+
model=model,
|
|
4995
|
+
input=tasks.BedrockInvokeModelInputProps(s3_input_uri=sfn.JsonPath.string_at("$.prompt")),
|
|
4996
|
+
output=tasks.BedrockInvokeModelOutputProps(s3_output_uri=sfn.JsonPath.string_at("$.prompt"))
|
|
4955
4997
|
)
|
|
4956
4998
|
'''
|
|
4957
4999
|
if isinstance(s3_location, dict):
|
|
@@ -4959,9 +5001,12 @@ class BedrockInvokeModelOutputProps:
|
|
|
4959
5001
|
if __debug__:
|
|
4960
5002
|
type_hints = typing.get_type_hints(_typecheckingstub__1ae5c9f4810ca6d7749a0e5f6df435956d3660251fb9427f7b8aea21bc5a7fb1)
|
|
4961
5003
|
check_type(argname="argument s3_location", value=s3_location, expected_type=type_hints["s3_location"])
|
|
5004
|
+
check_type(argname="argument s3_output_uri", value=s3_output_uri, expected_type=type_hints["s3_output_uri"])
|
|
4962
5005
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
4963
5006
|
if s3_location is not None:
|
|
4964
5007
|
self._values["s3_location"] = s3_location
|
|
5008
|
+
if s3_output_uri is not None:
|
|
5009
|
+
self._values["s3_output_uri"] = s3_output_uri
|
|
4965
5010
|
|
|
4966
5011
|
@builtins.property
|
|
4967
5012
|
def s3_location(self) -> typing.Optional[_Location_0948fa7f]:
|
|
@@ -4975,6 +5020,17 @@ class BedrockInvokeModelOutputProps:
|
|
|
4975
5020
|
result = self._values.get("s3_location")
|
|
4976
5021
|
return typing.cast(typing.Optional[_Location_0948fa7f], result)
|
|
4977
5022
|
|
|
5023
|
+
@builtins.property
|
|
5024
|
+
def s3_output_uri(self) -> typing.Optional[builtins.str]:
|
|
5025
|
+
'''The destination location where the API response is written.
|
|
5026
|
+
|
|
5027
|
+
This field can be used to specify s3 URI in the form of token
|
|
5028
|
+
|
|
5029
|
+
:default: - The API response body is returned in the result.
|
|
5030
|
+
'''
|
|
5031
|
+
result = self._values.get("s3_output_uri")
|
|
5032
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
5033
|
+
|
|
4978
5034
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4979
5035
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4980
5036
|
|
|
@@ -24534,7 +24590,7 @@ class HttpInvoke(
|
|
|
24534
24590
|
|
|
24535
24591
|
tasks.HttpInvoke(self, "Invoke HTTP API",
|
|
24536
24592
|
api_root="https://api.example.com",
|
|
24537
|
-
api_endpoint=sfn.TaskInput.from_text("
|
|
24593
|
+
api_endpoint=sfn.TaskInput.from_text("path/to/resource"),
|
|
24538
24594
|
body=sfn.TaskInput.from_object({"foo": "bar"}),
|
|
24539
24595
|
connection=connection,
|
|
24540
24596
|
headers=sfn.TaskInput.from_object({"Content-Type": "application/json"}),
|
|
@@ -24725,7 +24781,7 @@ class HttpInvokeProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
24725
24781
|
|
|
24726
24782
|
tasks.HttpInvoke(self, "Invoke HTTP API",
|
|
24727
24783
|
api_root="https://api.example.com",
|
|
24728
|
-
api_endpoint=sfn.TaskInput.from_text("
|
|
24784
|
+
api_endpoint=sfn.TaskInput.from_text("path/to/resource"),
|
|
24729
24785
|
body=sfn.TaskInput.from_object({"foo": "bar"}),
|
|
24730
24786
|
connection=connection,
|
|
24731
24787
|
headers=sfn.TaskInput.from_object({"Content-Type": "application/json"}),
|
|
@@ -29419,12 +29475,12 @@ class SageMakerCreateTrainingJob(
|
|
|
29419
29475
|
id: builtins.str,
|
|
29420
29476
|
*,
|
|
29421
29477
|
algorithm_specification: typing.Union[AlgorithmSpecification, typing.Dict[builtins.str, typing.Any]],
|
|
29422
|
-
input_data_config: typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]],
|
|
29423
29478
|
output_data_config: typing.Union[OutputDataConfig, typing.Dict[builtins.str, typing.Any]],
|
|
29424
29479
|
training_job_name: builtins.str,
|
|
29425
29480
|
enable_network_isolation: typing.Optional[builtins.bool] = None,
|
|
29426
29481
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
29427
29482
|
hyperparameters: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
29483
|
+
input_data_config: typing.Optional[typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29428
29484
|
resource_config: typing.Optional[typing.Union[ResourceConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
29429
29485
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
29430
29486
|
stopping_condition: typing.Optional[typing.Union["StoppingCondition", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29447,12 +29503,12 @@ class SageMakerCreateTrainingJob(
|
|
|
29447
29503
|
:param scope: -
|
|
29448
29504
|
:param id: Descriptive identifier for this chainable.
|
|
29449
29505
|
:param algorithm_specification: Identifies the training algorithm to use.
|
|
29450
|
-
:param input_data_config: Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored.
|
|
29451
29506
|
:param output_data_config: Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model training.
|
|
29452
29507
|
:param training_job_name: Training Job Name.
|
|
29453
29508
|
:param enable_network_isolation: Isolates the training container. No inbound or outbound network calls can be made to or from the training container. Default: false
|
|
29454
29509
|
:param environment: Environment variables to set in the Docker container. Default: - No environment variables
|
|
29455
29510
|
:param hyperparameters: Algorithm-specific parameters that influence the quality of the model. Set hyperparameters before you start the learning process. For a list of hyperparameters provided by Amazon SageMaker Default: - No hyperparameters
|
|
29511
|
+
:param input_data_config: Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored. Default: - No inputDataConfig
|
|
29456
29512
|
:param resource_config: Specifies the resources, ML compute instances, and ML storage volumes to deploy for model training. Default: - 1 instance of EC2 ``M4.XLarge`` with ``10GB`` volume
|
|
29457
29513
|
:param role: Role for the Training Job. The role must be granted all necessary permissions for the SageMaker training job to be able to operate. See https://docs.aws.amazon.com/fr_fr/sagemaker/latest/dg/sagemaker-roles.html#sagemaker-roles-createtrainingjob-perms Default: - a role will be created.
|
|
29458
29514
|
:param stopping_condition: Sets a time limit for training. Default: - max runtime of 1 hour
|
|
@@ -29477,12 +29533,12 @@ class SageMakerCreateTrainingJob(
|
|
|
29477
29533
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
29478
29534
|
props = SageMakerCreateTrainingJobProps(
|
|
29479
29535
|
algorithm_specification=algorithm_specification,
|
|
29480
|
-
input_data_config=input_data_config,
|
|
29481
29536
|
output_data_config=output_data_config,
|
|
29482
29537
|
training_job_name=training_job_name,
|
|
29483
29538
|
enable_network_isolation=enable_network_isolation,
|
|
29484
29539
|
environment=environment,
|
|
29485
29540
|
hyperparameters=hyperparameters,
|
|
29541
|
+
input_data_config=input_data_config,
|
|
29486
29542
|
resource_config=resource_config,
|
|
29487
29543
|
role=role,
|
|
29488
29544
|
stopping_condition=stopping_condition,
|
|
@@ -29564,12 +29620,12 @@ class SageMakerCreateTrainingJob(
|
|
|
29564
29620
|
"task_timeout": "taskTimeout",
|
|
29565
29621
|
"timeout": "timeout",
|
|
29566
29622
|
"algorithm_specification": "algorithmSpecification",
|
|
29567
|
-
"input_data_config": "inputDataConfig",
|
|
29568
29623
|
"output_data_config": "outputDataConfig",
|
|
29569
29624
|
"training_job_name": "trainingJobName",
|
|
29570
29625
|
"enable_network_isolation": "enableNetworkIsolation",
|
|
29571
29626
|
"environment": "environment",
|
|
29572
29627
|
"hyperparameters": "hyperparameters",
|
|
29628
|
+
"input_data_config": "inputDataConfig",
|
|
29573
29629
|
"resource_config": "resourceConfig",
|
|
29574
29630
|
"role": "role",
|
|
29575
29631
|
"stopping_condition": "stoppingCondition",
|
|
@@ -29594,12 +29650,12 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29594
29650
|
task_timeout: typing.Optional[_Timeout_d7c10551] = None,
|
|
29595
29651
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
29596
29652
|
algorithm_specification: typing.Union[AlgorithmSpecification, typing.Dict[builtins.str, typing.Any]],
|
|
29597
|
-
input_data_config: typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]],
|
|
29598
29653
|
output_data_config: typing.Union[OutputDataConfig, typing.Dict[builtins.str, typing.Any]],
|
|
29599
29654
|
training_job_name: builtins.str,
|
|
29600
29655
|
enable_network_isolation: typing.Optional[builtins.bool] = None,
|
|
29601
29656
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
29602
29657
|
hyperparameters: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
29658
|
+
input_data_config: typing.Optional[typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
29603
29659
|
resource_config: typing.Optional[typing.Union[ResourceConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
29604
29660
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
29605
29661
|
stopping_condition: typing.Optional[typing.Union["StoppingCondition", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29621,12 +29677,12 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29621
29677
|
:param task_timeout: Timeout for the task. [disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface Default: - None
|
|
29622
29678
|
:param timeout: (deprecated) Timeout for the task. Default: - None
|
|
29623
29679
|
:param algorithm_specification: Identifies the training algorithm to use.
|
|
29624
|
-
:param input_data_config: Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored.
|
|
29625
29680
|
:param output_data_config: Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model training.
|
|
29626
29681
|
:param training_job_name: Training Job Name.
|
|
29627
29682
|
:param enable_network_isolation: Isolates the training container. No inbound or outbound network calls can be made to or from the training container. Default: false
|
|
29628
29683
|
:param environment: Environment variables to set in the Docker container. Default: - No environment variables
|
|
29629
29684
|
:param hyperparameters: Algorithm-specific parameters that influence the quality of the model. Set hyperparameters before you start the learning process. For a list of hyperparameters provided by Amazon SageMaker Default: - No hyperparameters
|
|
29685
|
+
:param input_data_config: Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored. Default: - No inputDataConfig
|
|
29630
29686
|
:param resource_config: Specifies the resources, ML compute instances, and ML storage volumes to deploy for model training. Default: - 1 instance of EC2 ``M4.XLarge`` with ``10GB`` volume
|
|
29631
29687
|
:param role: Role for the Training Job. The role must be granted all necessary permissions for the SageMaker training job to be able to operate. See https://docs.aws.amazon.com/fr_fr/sagemaker/latest/dg/sagemaker-roles.html#sagemaker-roles-createtrainingjob-perms Default: - a role will be created.
|
|
29632
29688
|
:param stopping_condition: Sets a time limit for training. Default: - max runtime of 1 hour
|
|
@@ -29692,12 +29748,12 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29692
29748
|
check_type(argname="argument task_timeout", value=task_timeout, expected_type=type_hints["task_timeout"])
|
|
29693
29749
|
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
29694
29750
|
check_type(argname="argument algorithm_specification", value=algorithm_specification, expected_type=type_hints["algorithm_specification"])
|
|
29695
|
-
check_type(argname="argument input_data_config", value=input_data_config, expected_type=type_hints["input_data_config"])
|
|
29696
29751
|
check_type(argname="argument output_data_config", value=output_data_config, expected_type=type_hints["output_data_config"])
|
|
29697
29752
|
check_type(argname="argument training_job_name", value=training_job_name, expected_type=type_hints["training_job_name"])
|
|
29698
29753
|
check_type(argname="argument enable_network_isolation", value=enable_network_isolation, expected_type=type_hints["enable_network_isolation"])
|
|
29699
29754
|
check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
|
|
29700
29755
|
check_type(argname="argument hyperparameters", value=hyperparameters, expected_type=type_hints["hyperparameters"])
|
|
29756
|
+
check_type(argname="argument input_data_config", value=input_data_config, expected_type=type_hints["input_data_config"])
|
|
29701
29757
|
check_type(argname="argument resource_config", value=resource_config, expected_type=type_hints["resource_config"])
|
|
29702
29758
|
check_type(argname="argument role", value=role, expected_type=type_hints["role"])
|
|
29703
29759
|
check_type(argname="argument stopping_condition", value=stopping_condition, expected_type=type_hints["stopping_condition"])
|
|
@@ -29705,7 +29761,6 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29705
29761
|
check_type(argname="argument vpc_config", value=vpc_config, expected_type=type_hints["vpc_config"])
|
|
29706
29762
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
29707
29763
|
"algorithm_specification": algorithm_specification,
|
|
29708
|
-
"input_data_config": input_data_config,
|
|
29709
29764
|
"output_data_config": output_data_config,
|
|
29710
29765
|
"training_job_name": training_job_name,
|
|
29711
29766
|
}
|
|
@@ -29739,6 +29794,8 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29739
29794
|
self._values["environment"] = environment
|
|
29740
29795
|
if hyperparameters is not None:
|
|
29741
29796
|
self._values["hyperparameters"] = hyperparameters
|
|
29797
|
+
if input_data_config is not None:
|
|
29798
|
+
self._values["input_data_config"] = input_data_config
|
|
29742
29799
|
if resource_config is not None:
|
|
29743
29800
|
self._values["resource_config"] = resource_config
|
|
29744
29801
|
if role is not None:
|
|
@@ -29912,13 +29969,6 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29912
29969
|
assert result is not None, "Required property 'algorithm_specification' is missing"
|
|
29913
29970
|
return typing.cast(AlgorithmSpecification, result)
|
|
29914
29971
|
|
|
29915
|
-
@builtins.property
|
|
29916
|
-
def input_data_config(self) -> typing.List[Channel]:
|
|
29917
|
-
'''Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored.'''
|
|
29918
|
-
result = self._values.get("input_data_config")
|
|
29919
|
-
assert result is not None, "Required property 'input_data_config' is missing"
|
|
29920
|
-
return typing.cast(typing.List[Channel], result)
|
|
29921
|
-
|
|
29922
29972
|
@builtins.property
|
|
29923
29973
|
def output_data_config(self) -> OutputDataConfig:
|
|
29924
29974
|
'''Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model training.'''
|
|
@@ -29971,6 +30021,15 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29971
30021
|
result = self._values.get("hyperparameters")
|
|
29972
30022
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
|
|
29973
30023
|
|
|
30024
|
+
@builtins.property
|
|
30025
|
+
def input_data_config(self) -> typing.Optional[typing.List[Channel]]:
|
|
30026
|
+
'''Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored.
|
|
30027
|
+
|
|
30028
|
+
:default: - No inputDataConfig
|
|
30029
|
+
'''
|
|
30030
|
+
result = self._values.get("input_data_config")
|
|
30031
|
+
return typing.cast(typing.Optional[typing.List[Channel]], result)
|
|
30032
|
+
|
|
29974
30033
|
@builtins.property
|
|
29975
30034
|
def resource_config(self) -> typing.Optional[ResourceConfig]:
|
|
29976
30035
|
'''Specifies the resources, ML compute instances, and ML storage volumes to deploy for model training.
|
|
@@ -33727,7 +33786,7 @@ class URLEncodingFormat(enum.Enum):
|
|
|
33727
33786
|
|
|
33728
33787
|
tasks.HttpInvoke(self, "Invoke HTTP API",
|
|
33729
33788
|
api_root="https://api.example.com",
|
|
33730
|
-
api_endpoint=sfn.TaskInput.from_text("
|
|
33789
|
+
api_endpoint=sfn.TaskInput.from_text("path/to/resource"),
|
|
33731
33790
|
body=sfn.TaskInput.from_object({"foo": "bar"}),
|
|
33732
33791
|
connection=connection,
|
|
33733
33792
|
headers=sfn.TaskInput.from_object({"Content-Type": "application/json"}),
|
|
@@ -34755,6 +34814,7 @@ def _typecheckingstub__3b20c515efa874adacf78d373dbda10fc59e519a3bd1b280ecbf56409
|
|
|
34755
34814
|
|
|
34756
34815
|
def _typecheckingstub__5832c6287635fafcd3211864b6568285ae981df509ea5c6b8dd8458d0254c232(
|
|
34757
34816
|
*,
|
|
34817
|
+
s3_input_uri: typing.Optional[builtins.str] = None,
|
|
34758
34818
|
s3_location: typing.Optional[typing.Union[_Location_0948fa7f, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
34759
34819
|
) -> None:
|
|
34760
34820
|
"""Type checking stubs"""
|
|
@@ -34763,6 +34823,7 @@ def _typecheckingstub__5832c6287635fafcd3211864b6568285ae981df509ea5c6b8dd8458d0
|
|
|
34763
34823
|
def _typecheckingstub__1ae5c9f4810ca6d7749a0e5f6df435956d3660251fb9427f7b8aea21bc5a7fb1(
|
|
34764
34824
|
*,
|
|
34765
34825
|
s3_location: typing.Optional[typing.Union[_Location_0948fa7f, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
34826
|
+
s3_output_uri: typing.Optional[builtins.str] = None,
|
|
34766
34827
|
) -> None:
|
|
34767
34828
|
"""Type checking stubs"""
|
|
34768
34829
|
pass
|
|
@@ -37181,12 +37242,12 @@ def _typecheckingstub__28a8bfbbe70fbb6daf63ef03a7856f2801f4c204a85129b4c8c78b357
|
|
|
37181
37242
|
id: builtins.str,
|
|
37182
37243
|
*,
|
|
37183
37244
|
algorithm_specification: typing.Union[AlgorithmSpecification, typing.Dict[builtins.str, typing.Any]],
|
|
37184
|
-
input_data_config: typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]],
|
|
37185
37245
|
output_data_config: typing.Union[OutputDataConfig, typing.Dict[builtins.str, typing.Any]],
|
|
37186
37246
|
training_job_name: builtins.str,
|
|
37187
37247
|
enable_network_isolation: typing.Optional[builtins.bool] = None,
|
|
37188
37248
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
37189
37249
|
hyperparameters: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
37250
|
+
input_data_config: typing.Optional[typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
37190
37251
|
resource_config: typing.Optional[typing.Union[ResourceConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
37191
37252
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
37192
37253
|
stopping_condition: typing.Optional[typing.Union[StoppingCondition, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -37229,12 +37290,12 @@ def _typecheckingstub__5eab5c7c6ad3bd91898189dd3d054ff0770c91123ed264c153dbffeb0
|
|
|
37229
37290
|
task_timeout: typing.Optional[_Timeout_d7c10551] = None,
|
|
37230
37291
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
37231
37292
|
algorithm_specification: typing.Union[AlgorithmSpecification, typing.Dict[builtins.str, typing.Any]],
|
|
37232
|
-
input_data_config: typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]],
|
|
37233
37293
|
output_data_config: typing.Union[OutputDataConfig, typing.Dict[builtins.str, typing.Any]],
|
|
37234
37294
|
training_job_name: builtins.str,
|
|
37235
37295
|
enable_network_isolation: typing.Optional[builtins.bool] = None,
|
|
37236
37296
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
37237
37297
|
hyperparameters: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
|
|
37298
|
+
input_data_config: typing.Optional[typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
37238
37299
|
resource_config: typing.Optional[typing.Union[ResourceConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
37239
37300
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
37240
37301
|
stopping_condition: typing.Optional[typing.Union[StoppingCondition, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -3728,6 +3728,19 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_synthetics.Run
|
|
|
3728
3728
|
'''
|
|
3729
3729
|
return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_NODEJS_PUPPETEER_8_0"))
|
|
3730
3730
|
|
|
3731
|
+
@jsii.python.classproperty
|
|
3732
|
+
@jsii.member(jsii_name="SYNTHETICS_NODEJS_PUPPETEER_9_0")
|
|
3733
|
+
def SYNTHETICS_NODEJS_PUPPETEER_9_0(cls) -> "Runtime":
|
|
3734
|
+
'''``syn-nodejs-puppeteer-9.0`` includes the following: - Lambda runtime Node.js 20.x - Puppeteer-core version 22.12.1 - Chromium version 126.0.6478.126.
|
|
3735
|
+
|
|
3736
|
+
New Features:
|
|
3737
|
+
|
|
3738
|
+
- **Bug fixes** Bug fix to enable visual monitoring capabilities.
|
|
3739
|
+
|
|
3740
|
+
:see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-9.0
|
|
3741
|
+
'''
|
|
3742
|
+
return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_NODEJS_PUPPETEER_9_0"))
|
|
3743
|
+
|
|
3731
3744
|
@jsii.python.classproperty
|
|
3732
3745
|
@jsii.member(jsii_name="SYNTHETICS_PYTHON_SELENIUM_1_0")
|
|
3733
3746
|
def SYNTHETICS_PYTHON_SELENIUM_1_0(cls) -> "Runtime":
|
aws_cdk/cx_api/__init__.py
CHANGED
|
@@ -377,6 +377,22 @@ for more details.
|
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
```
|
|
380
|
+
|
|
381
|
+
* `@aws-cdk/aws-stepfunctions-taks:useNewS3UriParametersForBedrockInvokeModelTask`
|
|
382
|
+
|
|
383
|
+
When enabled, use new props for S3 URI under `input` and `output` fields in task definition of state machine for bedrock invoke model.
|
|
384
|
+
|
|
385
|
+
When this feature flag is enabled, use newly introduced props `s3InputUri` and `s3OutputUri` to populate S3 uri under input and output fields in state machine task definition for Bedrock invoke model.
|
|
386
|
+
|
|
387
|
+
*cdk.json*
|
|
388
|
+
|
|
389
|
+
```json
|
|
390
|
+
{
|
|
391
|
+
"context": {
|
|
392
|
+
"@aws-cdk/aws-stepfunctions-tasks:useNewS3UriParametersForBedrockInvokeModelTask": true
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
```
|
|
380
396
|
'''
|
|
381
397
|
from pkgutil import extend_path
|
|
382
398
|
__path__ = extend_path(__path__, __name__)
|
aws_cdk/triggers/__init__.py
CHANGED
|
@@ -405,6 +405,7 @@ class TriggerFunction(
|
|
|
405
405
|
execute_before: typing.Optional[typing.Sequence[_constructs_77d1e7e8.Construct]] = None,
|
|
406
406
|
execute_on_handler_change: typing.Optional[builtins.bool] = None,
|
|
407
407
|
adot_instrumentation: typing.Optional[typing.Union[_AdotInstrumentationConfig_7c38d65d, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
408
|
+
allow_all_ipv6_outbound: typing.Optional[builtins.bool] = None,
|
|
408
409
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
409
410
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
410
411
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
@@ -463,7 +464,8 @@ class TriggerFunction(
|
|
|
463
464
|
:param execute_before: Adds this trigger as a dependency on other constructs. This means that this trigger will get executed *before* the given construct(s). You can also use ``trigger.executeBefore()`` to add additional dependants. Default: []
|
|
464
465
|
:param execute_on_handler_change: Re-executes the trigger every time the handler changes. This implies that the trigger is associated with the ``currentVersion`` of the handler, which gets recreated every time the handler or its configuration is updated. Default: true
|
|
465
466
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
466
|
-
:param
|
|
467
|
+
:param allow_all_ipv6_outbound: Whether to allow the Lambda to send all ipv6 network traffic. If set to true, there will only be a single egress rule which allows all outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets using ipv6. Do not specify this property if the ``securityGroups`` or ``securityGroup`` property is set. Instead, configure ``allowAllIpv6Outbound`` directly on the security group. Default: false
|
|
468
|
+
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic (except ipv6). If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets. Do not specify this property if the ``securityGroups`` or ``securityGroup`` property is set. Instead, configure ``allowAllOutbound`` directly on the security group. Default: true
|
|
467
469
|
:param allow_public_subnet: Lambda Functions in a public subnet can NOT access the internet. Use this property to acknowledge this limitation and still place the function in a public subnet. Default: false
|
|
468
470
|
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
469
471
|
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
@@ -523,6 +525,7 @@ class TriggerFunction(
|
|
|
523
525
|
execute_before=execute_before,
|
|
524
526
|
execute_on_handler_change=execute_on_handler_change,
|
|
525
527
|
adot_instrumentation=adot_instrumentation,
|
|
528
|
+
allow_all_ipv6_outbound=allow_all_ipv6_outbound,
|
|
526
529
|
allow_all_outbound=allow_all_outbound,
|
|
527
530
|
allow_public_subnet=allow_public_subnet,
|
|
528
531
|
application_log_level=application_log_level,
|
|
@@ -889,6 +892,7 @@ class TriggerProps(TriggerOptions):
|
|
|
889
892
|
"on_success": "onSuccess",
|
|
890
893
|
"retry_attempts": "retryAttempts",
|
|
891
894
|
"adot_instrumentation": "adotInstrumentation",
|
|
895
|
+
"allow_all_ipv6_outbound": "allowAllIpv6Outbound",
|
|
892
896
|
"allow_all_outbound": "allowAllOutbound",
|
|
893
897
|
"allow_public_subnet": "allowPublicSubnet",
|
|
894
898
|
"application_log_level": "applicationLogLevel",
|
|
@@ -949,6 +953,7 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
949
953
|
on_success: typing.Optional[_IDestination_40f19de4] = None,
|
|
950
954
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
951
955
|
adot_instrumentation: typing.Optional[typing.Union[_AdotInstrumentationConfig_7c38d65d, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
956
|
+
allow_all_ipv6_outbound: typing.Optional[builtins.bool] = None,
|
|
952
957
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
953
958
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
954
959
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
@@ -1006,7 +1011,8 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
1006
1011
|
:param on_success: The destination for successful invocations. Default: - no destination
|
|
1007
1012
|
:param retry_attempts: The maximum number of times to retry when the function returns an error. Minimum: 0 Maximum: 2 Default: 2
|
|
1008
1013
|
:param adot_instrumentation: Specify the configuration of AWS Distro for OpenTelemetry (ADOT) instrumentation. Default: - No ADOT instrumentation
|
|
1009
|
-
:param
|
|
1014
|
+
:param allow_all_ipv6_outbound: Whether to allow the Lambda to send all ipv6 network traffic. If set to true, there will only be a single egress rule which allows all outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets using ipv6. Do not specify this property if the ``securityGroups`` or ``securityGroup`` property is set. Instead, configure ``allowAllIpv6Outbound`` directly on the security group. Default: false
|
|
1015
|
+
:param allow_all_outbound: Whether to allow the Lambda to send all network traffic (except ipv6). If set to false, you must individually add traffic rules to allow the Lambda to connect to network targets. Do not specify this property if the ``securityGroups`` or ``securityGroup`` property is set. Instead, configure ``allowAllOutbound`` directly on the security group. Default: true
|
|
1010
1016
|
:param allow_public_subnet: Lambda Functions in a public subnet can NOT access the internet. Use this property to acknowledge this limitation and still place the function in a public subnet. Default: false
|
|
1011
1017
|
:param application_log_level: (deprecated) Sets the application log level for the function. Default: "INFO"
|
|
1012
1018
|
:param application_log_level_v2: Sets the application log level for the function. Default: ApplicationLogLevel.INFO
|
|
@@ -1084,6 +1090,7 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
1084
1090
|
check_type(argname="argument on_success", value=on_success, expected_type=type_hints["on_success"])
|
|
1085
1091
|
check_type(argname="argument retry_attempts", value=retry_attempts, expected_type=type_hints["retry_attempts"])
|
|
1086
1092
|
check_type(argname="argument adot_instrumentation", value=adot_instrumentation, expected_type=type_hints["adot_instrumentation"])
|
|
1093
|
+
check_type(argname="argument allow_all_ipv6_outbound", value=allow_all_ipv6_outbound, expected_type=type_hints["allow_all_ipv6_outbound"])
|
|
1087
1094
|
check_type(argname="argument allow_all_outbound", value=allow_all_outbound, expected_type=type_hints["allow_all_outbound"])
|
|
1088
1095
|
check_type(argname="argument allow_public_subnet", value=allow_public_subnet, expected_type=type_hints["allow_public_subnet"])
|
|
1089
1096
|
check_type(argname="argument application_log_level", value=application_log_level, expected_type=type_hints["application_log_level"])
|
|
@@ -1148,6 +1155,8 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
1148
1155
|
self._values["retry_attempts"] = retry_attempts
|
|
1149
1156
|
if adot_instrumentation is not None:
|
|
1150
1157
|
self._values["adot_instrumentation"] = adot_instrumentation
|
|
1158
|
+
if allow_all_ipv6_outbound is not None:
|
|
1159
|
+
self._values["allow_all_ipv6_outbound"] = allow_all_ipv6_outbound
|
|
1151
1160
|
if allow_all_outbound is not None:
|
|
1152
1161
|
self._values["allow_all_outbound"] = allow_all_outbound
|
|
1153
1162
|
if allow_public_subnet is not None:
|
|
@@ -1296,9 +1305,25 @@ class TriggerFunctionProps(_FunctionProps_a308e854, TriggerOptions):
|
|
|
1296
1305
|
result = self._values.get("adot_instrumentation")
|
|
1297
1306
|
return typing.cast(typing.Optional[_AdotInstrumentationConfig_7c38d65d], result)
|
|
1298
1307
|
|
|
1308
|
+
@builtins.property
|
|
1309
|
+
def allow_all_ipv6_outbound(self) -> typing.Optional[builtins.bool]:
|
|
1310
|
+
'''Whether to allow the Lambda to send all ipv6 network traffic.
|
|
1311
|
+
|
|
1312
|
+
If set to true, there will only be a single egress rule which allows all
|
|
1313
|
+
outbound ipv6 traffic. If set to false, you must individually add traffic rules to allow the
|
|
1314
|
+
Lambda to connect to network targets using ipv6.
|
|
1315
|
+
|
|
1316
|
+
Do not specify this property if the ``securityGroups`` or ``securityGroup`` property is set.
|
|
1317
|
+
Instead, configure ``allowAllIpv6Outbound`` directly on the security group.
|
|
1318
|
+
|
|
1319
|
+
:default: false
|
|
1320
|
+
'''
|
|
1321
|
+
result = self._values.get("allow_all_ipv6_outbound")
|
|
1322
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
1323
|
+
|
|
1299
1324
|
@builtins.property
|
|
1300
1325
|
def allow_all_outbound(self) -> typing.Optional[builtins.bool]:
|
|
1301
|
-
'''Whether to allow the Lambda to send all network traffic.
|
|
1326
|
+
'''Whether to allow the Lambda to send all network traffic (except ipv6).
|
|
1302
1327
|
|
|
1303
1328
|
If set to false, you must individually add traffic rules to allow the
|
|
1304
1329
|
Lambda to connect to network targets.
|
|
@@ -1982,6 +2007,7 @@ def _typecheckingstub__6f34c5ba084706d20d6ef37a7f59673b20ed3425ffc7035fc8ea888e9
|
|
|
1982
2007
|
execute_before: typing.Optional[typing.Sequence[_constructs_77d1e7e8.Construct]] = None,
|
|
1983
2008
|
execute_on_handler_change: typing.Optional[builtins.bool] = None,
|
|
1984
2009
|
adot_instrumentation: typing.Optional[typing.Union[_AdotInstrumentationConfig_7c38d65d, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2010
|
+
allow_all_ipv6_outbound: typing.Optional[builtins.bool] = None,
|
|
1985
2011
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
1986
2012
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
1987
2013
|
application_log_level: typing.Optional[builtins.str] = None,
|
|
@@ -2073,6 +2099,7 @@ def _typecheckingstub__b2f4b009b0160d566d798bfa6d813ccc8440e1a9e0f75c99449184a2f
|
|
|
2073
2099
|
on_success: typing.Optional[_IDestination_40f19de4] = None,
|
|
2074
2100
|
retry_attempts: typing.Optional[jsii.Number] = None,
|
|
2075
2101
|
adot_instrumentation: typing.Optional[typing.Union[_AdotInstrumentationConfig_7c38d65d, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2102
|
+
allow_all_ipv6_outbound: typing.Optional[builtins.bool] = None,
|
|
2076
2103
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|
|
2077
2104
|
allow_public_subnet: typing.Optional[builtins.bool] = None,
|
|
2078
2105
|
application_log_level: typing.Optional[builtins.str] = None,
|