aws-cdk-lib 2.154.1__py3-none-any.whl → 2.156.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 +2 -2
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.154.1.jsii.tgz → aws-cdk-lib@2.156.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +17 -17
- aws_cdk/aws_bedrock/__init__.py +22 -4
- aws_cdk/aws_cloudfront/__init__.py +654 -59
- aws_cdk/aws_cloudfront_origins/__init__.py +2034 -91
- aws_cdk/aws_codebuild/__init__.py +349 -8
- aws_cdk/aws_docdb/__init__.py +78 -6
- aws_cdk/aws_ec2/__init__.py +250 -61
- aws_cdk/aws_ecs/__init__.py +18 -14
- aws_cdk/aws_ecs_patterns/__init__.py +129 -11
- aws_cdk/aws_eks/__init__.py +74 -8
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +22 -46
- aws_cdk/aws_events/__init__.py +40 -14
- aws_cdk/aws_events_targets/__init__.py +357 -0
- aws_cdk/aws_iam/__init__.py +7 -8
- aws_cdk/aws_ivs/__init__.py +10 -8
- aws_cdk/aws_kms/__init__.py +89 -10
- aws_cdk/aws_lambda/__init__.py +38 -23
- aws_cdk/aws_lambda_event_sources/__init__.py +27 -0
- aws_cdk/aws_rds/__init__.py +12 -0
- aws_cdk/aws_s3/__init__.py +13 -14
- aws_cdk/aws_secretsmanager/__init__.py +3 -2
- aws_cdk/aws_ses/__init__.py +7 -7
- aws_cdk/aws_ssmcontacts/__init__.py +12 -0
- aws_cdk/aws_stepfunctions/__init__.py +12 -14
- aws_cdk/aws_stepfunctions_tasks/__init__.py +178 -41
- aws_cdk/aws_synthetics/__init__.py +26 -0
- aws_cdk/custom_resources/__init__.py +106 -1
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/RECORD +37 -37
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/top_level.txt +0 -0
|
@@ -6663,28 +6663,26 @@ class IntegrationPattern(enum.Enum):
|
|
|
6663
6663
|
import aws_cdk.aws_codebuild as codebuild
|
|
6664
6664
|
|
|
6665
6665
|
|
|
6666
|
-
|
|
6666
|
+
codebuild_project = codebuild.Project(self, "Project",
|
|
6667
6667
|
project_name="MyTestProject",
|
|
6668
|
-
build_spec=codebuild.BuildSpec.
|
|
6669
|
-
"version": 0.2,
|
|
6670
|
-
"
|
|
6671
|
-
"build
|
|
6672
|
-
"
|
|
6673
|
-
|
|
6668
|
+
build_spec=codebuild.BuildSpec.from_object({
|
|
6669
|
+
"version": "0.2",
|
|
6670
|
+
"phases": {
|
|
6671
|
+
"build": {
|
|
6672
|
+
"commands": ["echo \"Hello, CodeBuild!\""
|
|
6673
|
+
]
|
|
6674
6674
|
}
|
|
6675
|
-
]
|
|
6676
6675
|
}
|
|
6677
6676
|
})
|
|
6678
6677
|
)
|
|
6679
|
-
project.enable_batch_builds()
|
|
6680
6678
|
|
|
6681
|
-
task = tasks.
|
|
6682
|
-
project=
|
|
6683
|
-
integration_pattern=sfn.IntegrationPattern.
|
|
6679
|
+
task = tasks.CodeBuildStartBuild(self, "Task",
|
|
6680
|
+
project=codebuild_project,
|
|
6681
|
+
integration_pattern=sfn.IntegrationPattern.RUN_JOB,
|
|
6684
6682
|
environment_variables_override={
|
|
6685
|
-
"
|
|
6683
|
+
"ZONE": codebuild.BuildEnvironmentVariable(
|
|
6686
6684
|
type=codebuild.BuildEnvironmentVariableType.PLAINTEXT,
|
|
6687
|
-
value="
|
|
6685
|
+
value=sfn.JsonPath.string_at("$.envVariables.zone")
|
|
6688
6686
|
)
|
|
6689
6687
|
}
|
|
6690
6688
|
)
|
|
@@ -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
|
|
|
@@ -716,6 +746,38 @@ run_task = tasks.EcsRunTask(self, "RunFargate",
|
|
|
716
746
|
)
|
|
717
747
|
```
|
|
718
748
|
|
|
749
|
+
#### Override CPU and Memory Parameter
|
|
750
|
+
|
|
751
|
+
By setting the property cpu or memoryMiB, you can override the Fargate or EC2 task instance size at runtime.
|
|
752
|
+
|
|
753
|
+
see: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html
|
|
754
|
+
|
|
755
|
+
```python
|
|
756
|
+
vpc = ec2.Vpc.from_lookup(self, "Vpc",
|
|
757
|
+
is_default=True
|
|
758
|
+
)
|
|
759
|
+
cluster = ecs.Cluster(self, "ECSCluster", vpc=vpc)
|
|
760
|
+
|
|
761
|
+
task_definition = ecs.TaskDefinition(self, "TD",
|
|
762
|
+
compatibility=ecs.Compatibility.FARGATE,
|
|
763
|
+
cpu="256",
|
|
764
|
+
memory_mi_b="512"
|
|
765
|
+
)
|
|
766
|
+
|
|
767
|
+
task_definition.add_container("TheContainer",
|
|
768
|
+
image=ecs.ContainerImage.from_registry("foo/bar")
|
|
769
|
+
)
|
|
770
|
+
|
|
771
|
+
run_task = tasks.EcsRunTask(self, "Run",
|
|
772
|
+
integration_pattern=sfn.IntegrationPattern.RUN_JOB,
|
|
773
|
+
cluster=cluster,
|
|
774
|
+
task_definition=task_definition,
|
|
775
|
+
launch_target=tasks.EcsFargateLaunchTarget(),
|
|
776
|
+
cpu="1024",
|
|
777
|
+
memory_mi_b="1048"
|
|
778
|
+
)
|
|
779
|
+
```
|
|
780
|
+
|
|
719
781
|
#### ECS enable Exec
|
|
720
782
|
|
|
721
783
|
By setting the property [`enableExecuteCommand`](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-enableExecuteCommand) to `true`, you can enable the [ECS Exec feature](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html) for the task for either Fargate or EC2 launch types.
|
|
@@ -4825,46 +4887,59 @@ class BedrockInvokeModel(
|
|
|
4825
4887
|
@jsii.data_type(
|
|
4826
4888
|
jsii_type="aws-cdk-lib.aws_stepfunctions_tasks.BedrockInvokeModelInputProps",
|
|
4827
4889
|
jsii_struct_bases=[],
|
|
4828
|
-
name_mapping={"s3_location": "s3Location"},
|
|
4890
|
+
name_mapping={"s3_input_uri": "s3InputUri", "s3_location": "s3Location"},
|
|
4829
4891
|
)
|
|
4830
4892
|
class BedrockInvokeModelInputProps:
|
|
4831
4893
|
def __init__(
|
|
4832
4894
|
self,
|
|
4833
4895
|
*,
|
|
4896
|
+
s3_input_uri: typing.Optional[builtins.str] = None,
|
|
4834
4897
|
s3_location: typing.Optional[typing.Union[_Location_0948fa7f, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
4835
4898
|
) -> None:
|
|
4836
4899
|
'''Location to retrieve the input data, prior to calling Bedrock InvokeModel.
|
|
4837
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.
|
|
4838
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
|
|
4839
4903
|
|
|
4840
4904
|
:see: https://docs.aws.amazon.com/step-functions/latest/dg/connect-bedrock.html
|
|
4841
|
-
:exampleMetadata:
|
|
4905
|
+
:exampleMetadata: infused
|
|
4842
4906
|
|
|
4843
4907
|
Example::
|
|
4844
4908
|
|
|
4845
|
-
|
|
4846
|
-
# The values are placeholders you should change.
|
|
4847
|
-
from aws_cdk import aws_stepfunctions_tasks as stepfunctions_tasks
|
|
4909
|
+
import aws_cdk.aws_bedrock as bedrock
|
|
4848
4910
|
|
|
4849
|
-
bedrock_invoke_model_input_props = stepfunctions_tasks.BedrockInvokeModelInputProps(
|
|
4850
|
-
s3_location=Location(
|
|
4851
|
-
bucket_name="bucketName",
|
|
4852
|
-
object_key="objectKey",
|
|
4853
4911
|
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
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"))
|
|
4857
4918
|
)
|
|
4858
4919
|
'''
|
|
4859
4920
|
if isinstance(s3_location, dict):
|
|
4860
4921
|
s3_location = _Location_0948fa7f(**s3_location)
|
|
4861
4922
|
if __debug__:
|
|
4862
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"])
|
|
4863
4925
|
check_type(argname="argument s3_location", value=s3_location, expected_type=type_hints["s3_location"])
|
|
4864
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
|
|
4865
4929
|
if s3_location is not None:
|
|
4866
4930
|
self._values["s3_location"] = s3_location
|
|
4867
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
|
+
|
|
4868
4943
|
@builtins.property
|
|
4869
4944
|
def s3_location(self) -> typing.Optional[_Location_0948fa7f]:
|
|
4870
4945
|
'''S3 object to retrieve the input data from.
|
|
@@ -4891,35 +4966,34 @@ class BedrockInvokeModelInputProps:
|
|
|
4891
4966
|
@jsii.data_type(
|
|
4892
4967
|
jsii_type="aws-cdk-lib.aws_stepfunctions_tasks.BedrockInvokeModelOutputProps",
|
|
4893
4968
|
jsii_struct_bases=[],
|
|
4894
|
-
name_mapping={"s3_location": "s3Location"},
|
|
4969
|
+
name_mapping={"s3_location": "s3Location", "s3_output_uri": "s3OutputUri"},
|
|
4895
4970
|
)
|
|
4896
4971
|
class BedrockInvokeModelOutputProps:
|
|
4897
4972
|
def __init__(
|
|
4898
4973
|
self,
|
|
4899
4974
|
*,
|
|
4900
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,
|
|
4901
4977
|
) -> None:
|
|
4902
4978
|
'''Location where the Bedrock InvokeModel API response is written.
|
|
4903
4979
|
|
|
4904
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.
|
|
4905
4982
|
|
|
4906
4983
|
:see: https://docs.aws.amazon.com/step-functions/latest/dg/connect-bedrock.html
|
|
4907
|
-
:exampleMetadata:
|
|
4984
|
+
:exampleMetadata: infused
|
|
4908
4985
|
|
|
4909
4986
|
Example::
|
|
4910
4987
|
|
|
4911
|
-
|
|
4912
|
-
# The values are placeholders you should change.
|
|
4913
|
-
from aws_cdk import aws_stepfunctions_tasks as stepfunctions_tasks
|
|
4988
|
+
import aws_cdk.aws_bedrock as bedrock
|
|
4914
4989
|
|
|
4915
|
-
bedrock_invoke_model_output_props = stepfunctions_tasks.BedrockInvokeModelOutputProps(
|
|
4916
|
-
s3_location=Location(
|
|
4917
|
-
bucket_name="bucketName",
|
|
4918
|
-
object_key="objectKey",
|
|
4919
4990
|
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
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"))
|
|
4923
4997
|
)
|
|
4924
4998
|
'''
|
|
4925
4999
|
if isinstance(s3_location, dict):
|
|
@@ -4927,9 +5001,12 @@ class BedrockInvokeModelOutputProps:
|
|
|
4927
5001
|
if __debug__:
|
|
4928
5002
|
type_hints = typing.get_type_hints(_typecheckingstub__1ae5c9f4810ca6d7749a0e5f6df435956d3660251fb9427f7b8aea21bc5a7fb1)
|
|
4929
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"])
|
|
4930
5005
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
4931
5006
|
if s3_location is not None:
|
|
4932
5007
|
self._values["s3_location"] = s3_location
|
|
5008
|
+
if s3_output_uri is not None:
|
|
5009
|
+
self._values["s3_output_uri"] = s3_output_uri
|
|
4933
5010
|
|
|
4934
5011
|
@builtins.property
|
|
4935
5012
|
def s3_location(self) -> typing.Optional[_Location_0948fa7f]:
|
|
@@ -4943,6 +5020,17 @@ class BedrockInvokeModelOutputProps:
|
|
|
4943
5020
|
result = self._values.get("s3_location")
|
|
4944
5021
|
return typing.cast(typing.Optional[_Location_0948fa7f], result)
|
|
4945
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
|
+
|
|
4946
5034
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4947
5035
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4948
5036
|
|
|
@@ -12718,7 +12806,9 @@ class EcsRunTask(
|
|
|
12718
12806
|
task_definition: _TaskDefinition_a541a103,
|
|
12719
12807
|
assign_public_ip: typing.Optional[builtins.bool] = None,
|
|
12720
12808
|
container_overrides: typing.Optional[typing.Sequence[typing.Union[ContainerOverride, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12809
|
+
cpu: typing.Optional[builtins.str] = None,
|
|
12721
12810
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
12811
|
+
memory_mib: typing.Optional[builtins.str] = None,
|
|
12722
12812
|
propagated_tag_source: typing.Optional[_PropagatedTagSource_ad4e874a] = None,
|
|
12723
12813
|
revision_number: typing.Optional[jsii.Number] = None,
|
|
12724
12814
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -12744,7 +12834,9 @@ class EcsRunTask(
|
|
|
12744
12834
|
:param task_definition: [disable-awslint:ref-via-interface] Task Definition used for running tasks in the service. Note: this must be TaskDefinition, and not ITaskDefinition, as it requires properties that are not known for imported task definitions If you want to run a RunTask with an imported task definition, consider using CustomState
|
|
12745
12835
|
:param assign_public_ip: Assign public IP addresses to each task. Default: false
|
|
12746
12836
|
:param container_overrides: Container setting overrides. Specify the container to use and the overrides to apply. Default: - No overrides
|
|
12837
|
+
:param cpu: Cpu setting override. Default: - No override
|
|
12747
12838
|
:param enable_execute_command: Whether ECS Exec should be enabled. Default: false
|
|
12839
|
+
:param memory_mib: Memory setting override. Default: - No override
|
|
12748
12840
|
:param propagated_tag_source: Specifies whether to propagate the tags from the task definition to the task. An error will be received if you specify the SERVICE option when running a task. Default: - No tags are propagated.
|
|
12749
12841
|
:param revision_number: The revision number of ECS task definition family. Default: - '$latest'
|
|
12750
12842
|
:param security_groups: Existing security groups to use for the tasks. Default: - A new security group is created
|
|
@@ -12772,7 +12864,9 @@ class EcsRunTask(
|
|
|
12772
12864
|
task_definition=task_definition,
|
|
12773
12865
|
assign_public_ip=assign_public_ip,
|
|
12774
12866
|
container_overrides=container_overrides,
|
|
12867
|
+
cpu=cpu,
|
|
12775
12868
|
enable_execute_command=enable_execute_command,
|
|
12869
|
+
memory_mib=memory_mib,
|
|
12776
12870
|
propagated_tag_source=propagated_tag_source,
|
|
12777
12871
|
revision_number=revision_number,
|
|
12778
12872
|
security_groups=security_groups,
|
|
@@ -12831,7 +12925,9 @@ class EcsRunTask(
|
|
|
12831
12925
|
"task_definition": "taskDefinition",
|
|
12832
12926
|
"assign_public_ip": "assignPublicIp",
|
|
12833
12927
|
"container_overrides": "containerOverrides",
|
|
12928
|
+
"cpu": "cpu",
|
|
12834
12929
|
"enable_execute_command": "enableExecuteCommand",
|
|
12930
|
+
"memory_mib": "memoryMiB",
|
|
12835
12931
|
"propagated_tag_source": "propagatedTagSource",
|
|
12836
12932
|
"revision_number": "revisionNumber",
|
|
12837
12933
|
"security_groups": "securityGroups",
|
|
@@ -12859,7 +12955,9 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12859
12955
|
task_definition: _TaskDefinition_a541a103,
|
|
12860
12956
|
assign_public_ip: typing.Optional[builtins.bool] = None,
|
|
12861
12957
|
container_overrides: typing.Optional[typing.Sequence[typing.Union[ContainerOverride, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12958
|
+
cpu: typing.Optional[builtins.str] = None,
|
|
12862
12959
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
12960
|
+
memory_mib: typing.Optional[builtins.str] = None,
|
|
12863
12961
|
propagated_tag_source: typing.Optional[_PropagatedTagSource_ad4e874a] = None,
|
|
12864
12962
|
revision_number: typing.Optional[jsii.Number] = None,
|
|
12865
12963
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -12884,7 +12982,9 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12884
12982
|
:param task_definition: [disable-awslint:ref-via-interface] Task Definition used for running tasks in the service. Note: this must be TaskDefinition, and not ITaskDefinition, as it requires properties that are not known for imported task definitions If you want to run a RunTask with an imported task definition, consider using CustomState
|
|
12885
12983
|
:param assign_public_ip: Assign public IP addresses to each task. Default: false
|
|
12886
12984
|
:param container_overrides: Container setting overrides. Specify the container to use and the overrides to apply. Default: - No overrides
|
|
12985
|
+
:param cpu: Cpu setting override. Default: - No override
|
|
12887
12986
|
:param enable_execute_command: Whether ECS Exec should be enabled. Default: false
|
|
12987
|
+
:param memory_mib: Memory setting override. Default: - No override
|
|
12888
12988
|
:param propagated_tag_source: Specifies whether to propagate the tags from the task definition to the task. An error will be received if you specify the SERVICE option when running a task. Default: - No tags are propagated.
|
|
12889
12989
|
:param revision_number: The revision number of ECS task definition family. Default: - '$latest'
|
|
12890
12990
|
:param security_groups: Existing security groups to use for the tasks. Default: - A new security group is created
|
|
@@ -12947,7 +13047,9 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12947
13047
|
check_type(argname="argument task_definition", value=task_definition, expected_type=type_hints["task_definition"])
|
|
12948
13048
|
check_type(argname="argument assign_public_ip", value=assign_public_ip, expected_type=type_hints["assign_public_ip"])
|
|
12949
13049
|
check_type(argname="argument container_overrides", value=container_overrides, expected_type=type_hints["container_overrides"])
|
|
13050
|
+
check_type(argname="argument cpu", value=cpu, expected_type=type_hints["cpu"])
|
|
12950
13051
|
check_type(argname="argument enable_execute_command", value=enable_execute_command, expected_type=type_hints["enable_execute_command"])
|
|
13052
|
+
check_type(argname="argument memory_mib", value=memory_mib, expected_type=type_hints["memory_mib"])
|
|
12951
13053
|
check_type(argname="argument propagated_tag_source", value=propagated_tag_source, expected_type=type_hints["propagated_tag_source"])
|
|
12952
13054
|
check_type(argname="argument revision_number", value=revision_number, expected_type=type_hints["revision_number"])
|
|
12953
13055
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
@@ -12985,8 +13087,12 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
12985
13087
|
self._values["assign_public_ip"] = assign_public_ip
|
|
12986
13088
|
if container_overrides is not None:
|
|
12987
13089
|
self._values["container_overrides"] = container_overrides
|
|
13090
|
+
if cpu is not None:
|
|
13091
|
+
self._values["cpu"] = cpu
|
|
12988
13092
|
if enable_execute_command is not None:
|
|
12989
13093
|
self._values["enable_execute_command"] = enable_execute_command
|
|
13094
|
+
if memory_mib is not None:
|
|
13095
|
+
self._values["memory_mib"] = memory_mib
|
|
12990
13096
|
if propagated_tag_source is not None:
|
|
12991
13097
|
self._values["propagated_tag_source"] = propagated_tag_source
|
|
12992
13098
|
if revision_number is not None:
|
|
@@ -13201,6 +13307,17 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
13201
13307
|
result = self._values.get("container_overrides")
|
|
13202
13308
|
return typing.cast(typing.Optional[typing.List[ContainerOverride]], result)
|
|
13203
13309
|
|
|
13310
|
+
@builtins.property
|
|
13311
|
+
def cpu(self) -> typing.Optional[builtins.str]:
|
|
13312
|
+
'''Cpu setting override.
|
|
13313
|
+
|
|
13314
|
+
:default: - No override
|
|
13315
|
+
|
|
13316
|
+
:see: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html
|
|
13317
|
+
'''
|
|
13318
|
+
result = self._values.get("cpu")
|
|
13319
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
13320
|
+
|
|
13204
13321
|
@builtins.property
|
|
13205
13322
|
def enable_execute_command(self) -> typing.Optional[builtins.bool]:
|
|
13206
13323
|
'''Whether ECS Exec should be enabled.
|
|
@@ -13212,6 +13329,17 @@ class EcsRunTaskProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
13212
13329
|
result = self._values.get("enable_execute_command")
|
|
13213
13330
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
13214
13331
|
|
|
13332
|
+
@builtins.property
|
|
13333
|
+
def memory_mib(self) -> typing.Optional[builtins.str]:
|
|
13334
|
+
'''Memory setting override.
|
|
13335
|
+
|
|
13336
|
+
:default: - No override
|
|
13337
|
+
|
|
13338
|
+
:see: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskOverride.html
|
|
13339
|
+
'''
|
|
13340
|
+
result = self._values.get("memory_mib")
|
|
13341
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
13342
|
+
|
|
13215
13343
|
@builtins.property
|
|
13216
13344
|
def propagated_tag_source(self) -> typing.Optional[_PropagatedTagSource_ad4e874a]:
|
|
13217
13345
|
'''Specifies whether to propagate the tags from the task definition to the task.
|
|
@@ -29347,12 +29475,12 @@ class SageMakerCreateTrainingJob(
|
|
|
29347
29475
|
id: builtins.str,
|
|
29348
29476
|
*,
|
|
29349
29477
|
algorithm_specification: typing.Union[AlgorithmSpecification, typing.Dict[builtins.str, typing.Any]],
|
|
29350
|
-
input_data_config: typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]],
|
|
29351
29478
|
output_data_config: typing.Union[OutputDataConfig, typing.Dict[builtins.str, typing.Any]],
|
|
29352
29479
|
training_job_name: builtins.str,
|
|
29353
29480
|
enable_network_isolation: typing.Optional[builtins.bool] = None,
|
|
29354
29481
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
29355
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,
|
|
29356
29484
|
resource_config: typing.Optional[typing.Union[ResourceConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
29357
29485
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
29358
29486
|
stopping_condition: typing.Optional[typing.Union["StoppingCondition", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29375,12 +29503,12 @@ class SageMakerCreateTrainingJob(
|
|
|
29375
29503
|
:param scope: -
|
|
29376
29504
|
:param id: Descriptive identifier for this chainable.
|
|
29377
29505
|
:param algorithm_specification: Identifies the training algorithm to use.
|
|
29378
|
-
:param input_data_config: Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored.
|
|
29379
29506
|
:param output_data_config: Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model training.
|
|
29380
29507
|
:param training_job_name: Training Job Name.
|
|
29381
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
|
|
29382
29509
|
:param environment: Environment variables to set in the Docker container. Default: - No environment variables
|
|
29383
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
|
|
29384
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
|
|
29385
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.
|
|
29386
29514
|
:param stopping_condition: Sets a time limit for training. Default: - max runtime of 1 hour
|
|
@@ -29405,12 +29533,12 @@ class SageMakerCreateTrainingJob(
|
|
|
29405
29533
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
29406
29534
|
props = SageMakerCreateTrainingJobProps(
|
|
29407
29535
|
algorithm_specification=algorithm_specification,
|
|
29408
|
-
input_data_config=input_data_config,
|
|
29409
29536
|
output_data_config=output_data_config,
|
|
29410
29537
|
training_job_name=training_job_name,
|
|
29411
29538
|
enable_network_isolation=enable_network_isolation,
|
|
29412
29539
|
environment=environment,
|
|
29413
29540
|
hyperparameters=hyperparameters,
|
|
29541
|
+
input_data_config=input_data_config,
|
|
29414
29542
|
resource_config=resource_config,
|
|
29415
29543
|
role=role,
|
|
29416
29544
|
stopping_condition=stopping_condition,
|
|
@@ -29492,12 +29620,12 @@ class SageMakerCreateTrainingJob(
|
|
|
29492
29620
|
"task_timeout": "taskTimeout",
|
|
29493
29621
|
"timeout": "timeout",
|
|
29494
29622
|
"algorithm_specification": "algorithmSpecification",
|
|
29495
|
-
"input_data_config": "inputDataConfig",
|
|
29496
29623
|
"output_data_config": "outputDataConfig",
|
|
29497
29624
|
"training_job_name": "trainingJobName",
|
|
29498
29625
|
"enable_network_isolation": "enableNetworkIsolation",
|
|
29499
29626
|
"environment": "environment",
|
|
29500
29627
|
"hyperparameters": "hyperparameters",
|
|
29628
|
+
"input_data_config": "inputDataConfig",
|
|
29501
29629
|
"resource_config": "resourceConfig",
|
|
29502
29630
|
"role": "role",
|
|
29503
29631
|
"stopping_condition": "stoppingCondition",
|
|
@@ -29522,12 +29650,12 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29522
29650
|
task_timeout: typing.Optional[_Timeout_d7c10551] = None,
|
|
29523
29651
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
29524
29652
|
algorithm_specification: typing.Union[AlgorithmSpecification, typing.Dict[builtins.str, typing.Any]],
|
|
29525
|
-
input_data_config: typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]],
|
|
29526
29653
|
output_data_config: typing.Union[OutputDataConfig, typing.Dict[builtins.str, typing.Any]],
|
|
29527
29654
|
training_job_name: builtins.str,
|
|
29528
29655
|
enable_network_isolation: typing.Optional[builtins.bool] = None,
|
|
29529
29656
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
29530
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,
|
|
29531
29659
|
resource_config: typing.Optional[typing.Union[ResourceConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
29532
29660
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
29533
29661
|
stopping_condition: typing.Optional[typing.Union["StoppingCondition", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -29549,12 +29677,12 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29549
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
|
|
29550
29678
|
:param timeout: (deprecated) Timeout for the task. Default: - None
|
|
29551
29679
|
:param algorithm_specification: Identifies the training algorithm to use.
|
|
29552
|
-
:param input_data_config: Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored.
|
|
29553
29680
|
:param output_data_config: Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model training.
|
|
29554
29681
|
:param training_job_name: Training Job Name.
|
|
29555
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
|
|
29556
29683
|
:param environment: Environment variables to set in the Docker container. Default: - No environment variables
|
|
29557
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
|
|
29558
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
|
|
29559
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.
|
|
29560
29688
|
:param stopping_condition: Sets a time limit for training. Default: - max runtime of 1 hour
|
|
@@ -29620,12 +29748,12 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29620
29748
|
check_type(argname="argument task_timeout", value=task_timeout, expected_type=type_hints["task_timeout"])
|
|
29621
29749
|
check_type(argname="argument timeout", value=timeout, expected_type=type_hints["timeout"])
|
|
29622
29750
|
check_type(argname="argument algorithm_specification", value=algorithm_specification, expected_type=type_hints["algorithm_specification"])
|
|
29623
|
-
check_type(argname="argument input_data_config", value=input_data_config, expected_type=type_hints["input_data_config"])
|
|
29624
29751
|
check_type(argname="argument output_data_config", value=output_data_config, expected_type=type_hints["output_data_config"])
|
|
29625
29752
|
check_type(argname="argument training_job_name", value=training_job_name, expected_type=type_hints["training_job_name"])
|
|
29626
29753
|
check_type(argname="argument enable_network_isolation", value=enable_network_isolation, expected_type=type_hints["enable_network_isolation"])
|
|
29627
29754
|
check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
|
|
29628
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"])
|
|
29629
29757
|
check_type(argname="argument resource_config", value=resource_config, expected_type=type_hints["resource_config"])
|
|
29630
29758
|
check_type(argname="argument role", value=role, expected_type=type_hints["role"])
|
|
29631
29759
|
check_type(argname="argument stopping_condition", value=stopping_condition, expected_type=type_hints["stopping_condition"])
|
|
@@ -29633,7 +29761,6 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29633
29761
|
check_type(argname="argument vpc_config", value=vpc_config, expected_type=type_hints["vpc_config"])
|
|
29634
29762
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
29635
29763
|
"algorithm_specification": algorithm_specification,
|
|
29636
|
-
"input_data_config": input_data_config,
|
|
29637
29764
|
"output_data_config": output_data_config,
|
|
29638
29765
|
"training_job_name": training_job_name,
|
|
29639
29766
|
}
|
|
@@ -29667,6 +29794,8 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29667
29794
|
self._values["environment"] = environment
|
|
29668
29795
|
if hyperparameters is not None:
|
|
29669
29796
|
self._values["hyperparameters"] = hyperparameters
|
|
29797
|
+
if input_data_config is not None:
|
|
29798
|
+
self._values["input_data_config"] = input_data_config
|
|
29670
29799
|
if resource_config is not None:
|
|
29671
29800
|
self._values["resource_config"] = resource_config
|
|
29672
29801
|
if role is not None:
|
|
@@ -29840,13 +29969,6 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29840
29969
|
assert result is not None, "Required property 'algorithm_specification' is missing"
|
|
29841
29970
|
return typing.cast(AlgorithmSpecification, result)
|
|
29842
29971
|
|
|
29843
|
-
@builtins.property
|
|
29844
|
-
def input_data_config(self) -> typing.List[Channel]:
|
|
29845
|
-
'''Describes the various datasets (e.g. train, validation, test) and the Amazon S3 location where stored.'''
|
|
29846
|
-
result = self._values.get("input_data_config")
|
|
29847
|
-
assert result is not None, "Required property 'input_data_config' is missing"
|
|
29848
|
-
return typing.cast(typing.List[Channel], result)
|
|
29849
|
-
|
|
29850
29972
|
@builtins.property
|
|
29851
29973
|
def output_data_config(self) -> OutputDataConfig:
|
|
29852
29974
|
'''Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model training.'''
|
|
@@ -29899,6 +30021,15 @@ class SageMakerCreateTrainingJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
29899
30021
|
result = self._values.get("hyperparameters")
|
|
29900
30022
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
|
|
29901
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
|
+
|
|
29902
30033
|
@builtins.property
|
|
29903
30034
|
def resource_config(self) -> typing.Optional[ResourceConfig]:
|
|
29904
30035
|
'''Specifies the resources, ML compute instances, and ML storage volumes to deploy for model training.
|
|
@@ -34683,6 +34814,7 @@ def _typecheckingstub__3b20c515efa874adacf78d373dbda10fc59e519a3bd1b280ecbf56409
|
|
|
34683
34814
|
|
|
34684
34815
|
def _typecheckingstub__5832c6287635fafcd3211864b6568285ae981df509ea5c6b8dd8458d0254c232(
|
|
34685
34816
|
*,
|
|
34817
|
+
s3_input_uri: typing.Optional[builtins.str] = None,
|
|
34686
34818
|
s3_location: typing.Optional[typing.Union[_Location_0948fa7f, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
34687
34819
|
) -> None:
|
|
34688
34820
|
"""Type checking stubs"""
|
|
@@ -34691,6 +34823,7 @@ def _typecheckingstub__5832c6287635fafcd3211864b6568285ae981df509ea5c6b8dd8458d0
|
|
|
34691
34823
|
def _typecheckingstub__1ae5c9f4810ca6d7749a0e5f6df435956d3660251fb9427f7b8aea21bc5a7fb1(
|
|
34692
34824
|
*,
|
|
34693
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,
|
|
34694
34827
|
) -> None:
|
|
34695
34828
|
"""Type checking stubs"""
|
|
34696
34829
|
pass
|
|
@@ -35530,7 +35663,9 @@ def _typecheckingstub__1b9fa1de6876853cd0aa59517079cbcfc7017daf643f17b13556a7a5f
|
|
|
35530
35663
|
task_definition: _TaskDefinition_a541a103,
|
|
35531
35664
|
assign_public_ip: typing.Optional[builtins.bool] = None,
|
|
35532
35665
|
container_overrides: typing.Optional[typing.Sequence[typing.Union[ContainerOverride, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
35666
|
+
cpu: typing.Optional[builtins.str] = None,
|
|
35533
35667
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
35668
|
+
memory_mib: typing.Optional[builtins.str] = None,
|
|
35534
35669
|
propagated_tag_source: typing.Optional[_PropagatedTagSource_ad4e874a] = None,
|
|
35535
35670
|
revision_number: typing.Optional[jsii.Number] = None,
|
|
35536
35671
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -35570,7 +35705,9 @@ def _typecheckingstub__4f880997570006602fac387ce93510039132ec3f42612722766b67ec6
|
|
|
35570
35705
|
task_definition: _TaskDefinition_a541a103,
|
|
35571
35706
|
assign_public_ip: typing.Optional[builtins.bool] = None,
|
|
35572
35707
|
container_overrides: typing.Optional[typing.Sequence[typing.Union[ContainerOverride, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
35708
|
+
cpu: typing.Optional[builtins.str] = None,
|
|
35573
35709
|
enable_execute_command: typing.Optional[builtins.bool] = None,
|
|
35710
|
+
memory_mib: typing.Optional[builtins.str] = None,
|
|
35574
35711
|
propagated_tag_source: typing.Optional[_PropagatedTagSource_ad4e874a] = None,
|
|
35575
35712
|
revision_number: typing.Optional[jsii.Number] = None,
|
|
35576
35713
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
@@ -37105,12 +37242,12 @@ def _typecheckingstub__28a8bfbbe70fbb6daf63ef03a7856f2801f4c204a85129b4c8c78b357
|
|
|
37105
37242
|
id: builtins.str,
|
|
37106
37243
|
*,
|
|
37107
37244
|
algorithm_specification: typing.Union[AlgorithmSpecification, typing.Dict[builtins.str, typing.Any]],
|
|
37108
|
-
input_data_config: typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]],
|
|
37109
37245
|
output_data_config: typing.Union[OutputDataConfig, typing.Dict[builtins.str, typing.Any]],
|
|
37110
37246
|
training_job_name: builtins.str,
|
|
37111
37247
|
enable_network_isolation: typing.Optional[builtins.bool] = None,
|
|
37112
37248
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
37113
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,
|
|
37114
37251
|
resource_config: typing.Optional[typing.Union[ResourceConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
37115
37252
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
37116
37253
|
stopping_condition: typing.Optional[typing.Union[StoppingCondition, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -37153,12 +37290,12 @@ def _typecheckingstub__5eab5c7c6ad3bd91898189dd3d054ff0770c91123ed264c153dbffeb0
|
|
|
37153
37290
|
task_timeout: typing.Optional[_Timeout_d7c10551] = None,
|
|
37154
37291
|
timeout: typing.Optional[_Duration_4839e8c3] = None,
|
|
37155
37292
|
algorithm_specification: typing.Union[AlgorithmSpecification, typing.Dict[builtins.str, typing.Any]],
|
|
37156
|
-
input_data_config: typing.Sequence[typing.Union[Channel, typing.Dict[builtins.str, typing.Any]]],
|
|
37157
37293
|
output_data_config: typing.Union[OutputDataConfig, typing.Dict[builtins.str, typing.Any]],
|
|
37158
37294
|
training_job_name: builtins.str,
|
|
37159
37295
|
enable_network_isolation: typing.Optional[builtins.bool] = None,
|
|
37160
37296
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
37161
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,
|
|
37162
37299
|
resource_config: typing.Optional[typing.Union[ResourceConfig, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
37163
37300
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
37164
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":
|
|
@@ -3839,6 +3852,19 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_synthetics.Run
|
|
|
3839
3852
|
'''
|
|
3840
3853
|
return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_PYTHON_SELENIUM_3_0"))
|
|
3841
3854
|
|
|
3855
|
+
@jsii.python.classproperty
|
|
3856
|
+
@jsii.member(jsii_name="SYNTHETICS_PYTHON_SELENIUM_4_0")
|
|
3857
|
+
def SYNTHETICS_PYTHON_SELENIUM_4_0(cls) -> "Runtime":
|
|
3858
|
+
'''``syn-python-selenium-4.0`` includes the following: - Lambda runtime Python 3.9 - Selenium version 4.15.1 - Chromium version 126.0.6478.126.
|
|
3859
|
+
|
|
3860
|
+
New Features:
|
|
3861
|
+
|
|
3862
|
+
- **Bug fixes** for errors in HAR parser logging.
|
|
3863
|
+
|
|
3864
|
+
:see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-4.0
|
|
3865
|
+
'''
|
|
3866
|
+
return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_PYTHON_SELENIUM_4_0"))
|
|
3867
|
+
|
|
3842
3868
|
@builtins.property
|
|
3843
3869
|
@jsii.member(jsii_name="family")
|
|
3844
3870
|
def family(self) -> "RuntimeFamily":
|