aws-cdk-lib 2.137.0__py3-none-any.whl → 2.139.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 +8 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.137.0.jsii.tgz → aws-cdk-lib@2.139.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +29 -113
- aws_cdk/aws_apigateway/__init__.py +29 -16
- aws_cdk/aws_appconfig/__init__.py +315 -77
- aws_cdk/aws_appintegrations/__init__.py +55 -6
- aws_cdk/aws_apprunner/__init__.py +5 -2
- aws_cdk/aws_appsync/__init__.py +400 -13
- aws_cdk/aws_aps/__init__.py +64 -47
- aws_cdk/aws_autoscaling/__init__.py +62 -60
- aws_cdk/aws_b2bi/__init__.py +2 -6
- aws_cdk/aws_backup/__init__.py +53 -57
- aws_cdk/aws_batch/__init__.py +109 -0
- aws_cdk/aws_bcmdataexports/__init__.py +1114 -0
- aws_cdk/aws_bedrock/__init__.py +4144 -0
- aws_cdk/aws_chatbot/__init__.py +6 -4
- aws_cdk/aws_cleanrooms/__init__.py +526 -3
- aws_cdk/aws_cleanroomsml/__init__.py +960 -0
- aws_cdk/aws_cloudtrail/__init__.py +10 -10
- aws_cdk/aws_cloudwatch/__init__.py +244 -8
- aws_cdk/aws_codebuild/__init__.py +27 -22
- aws_cdk/aws_codeconnections/__init__.py +435 -0
- aws_cdk/aws_cognito/__init__.py +175 -79
- aws_cdk/aws_datazone/__init__.py +22 -0
- aws_cdk/aws_deadline/__init__.py +5394 -0
- aws_cdk/aws_dms/__init__.py +2 -4
- aws_cdk/aws_ec2/__init__.py +402 -247
- aws_cdk/aws_ecr/__init__.py +630 -0
- aws_cdk/aws_ecs/__init__.py +361 -20
- aws_cdk/aws_efs/__init__.py +594 -2
- aws_cdk/aws_elasticache/__init__.py +86 -32
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +75 -10
- aws_cdk/aws_emr/__init__.py +2 -2
- aws_cdk/aws_entityresolution/__init__.py +1982 -773
- aws_cdk/aws_events_targets/__init__.py +17 -4
- aws_cdk/aws_globalaccelerator/__init__.py +443 -0
- aws_cdk/aws_iam/__init__.py +1 -2
- aws_cdk/aws_internetmonitor/__init__.py +14 -6
- aws_cdk/aws_ivs/__init__.py +1273 -71
- aws_cdk/aws_kms/__init__.py +44 -0
- aws_cdk/aws_lambda/__init__.py +9 -0
- aws_cdk/aws_mediatailor/__init__.py +41 -0
- aws_cdk/aws_oam/__init__.py +204 -0
- aws_cdk/aws_personalize/__init__.py +8 -6
- aws_cdk/aws_pinpoint/__init__.py +5 -3
- aws_cdk/aws_pipes/__init__.py +5 -1
- aws_cdk/aws_quicksight/__init__.py +12 -6
- aws_cdk/aws_rds/__init__.py +370 -96
- aws_cdk/aws_redshiftserverless/__init__.py +157 -0
- aws_cdk/aws_route53/__init__.py +587 -14
- aws_cdk/aws_sagemaker/__init__.py +233 -2
- aws_cdk/aws_securityhub/__init__.py +4940 -102
- aws_cdk/aws_securitylake/__init__.py +1326 -89
- aws_cdk/aws_ses_actions/__init__.py +155 -0
- aws_cdk/aws_sns/__init__.py +61 -4
- aws_cdk/aws_ssm/__init__.py +5 -2
- aws_cdk/aws_ssmcontacts/__init__.py +11 -4
- aws_cdk/aws_stepfunctions/__init__.py +8 -16
- aws_cdk/aws_stepfunctions_tasks/__init__.py +676 -1
- aws_cdk/aws_timestream/__init__.py +1045 -0
- aws_cdk/aws_transfer/__init__.py +19 -10
- aws_cdk/aws_verifiedpermissions/__init__.py +114 -37
- aws_cdk/aws_wisdom/__init__.py +2 -2
- aws_cdk/aws_workspacesthinclient/__init__.py +8 -8
- aws_cdk/custom_resources/__init__.py +688 -26
- aws_cdk/cx_api/__init__.py +17 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/RECORD +73 -69
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_batch/__init__.py
CHANGED
|
@@ -4241,6 +4241,7 @@ class CfnJobDefinition(
|
|
|
4241
4241
|
requests=requests
|
|
4242
4242
|
),
|
|
4243
4243
|
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
4244
|
+
allow_privilege_escalation=False,
|
|
4244
4245
|
privileged=False,
|
|
4245
4246
|
read_only_root_filesystem=False,
|
|
4246
4247
|
run_as_group=123,
|
|
@@ -4554,6 +4555,7 @@ class CfnJobDefinition(
|
|
|
4554
4555
|
requests=requests
|
|
4555
4556
|
),
|
|
4556
4557
|
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
4558
|
+
allow_privilege_escalation=False,
|
|
4557
4559
|
privileged=False,
|
|
4558
4560
|
read_only_root_filesystem=False,
|
|
4559
4561
|
run_as_group=123,
|
|
@@ -4568,6 +4570,9 @@ class CfnJobDefinition(
|
|
|
4568
4570
|
)],
|
|
4569
4571
|
dns_policy="dnsPolicy",
|
|
4570
4572
|
host_network=False,
|
|
4573
|
+
image_pull_secrets=[batch.CfnJobDefinition.ImagePullSecretProperty(
|
|
4574
|
+
name="name"
|
|
4575
|
+
)],
|
|
4571
4576
|
init_containers=[batch.CfnJobDefinition.EksContainerProperty(
|
|
4572
4577
|
image="image",
|
|
4573
4578
|
|
|
@@ -4587,6 +4592,7 @@ class CfnJobDefinition(
|
|
|
4587
4592
|
requests=requests
|
|
4588
4593
|
),
|
|
4589
4594
|
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
4595
|
+
allow_privilege_escalation=False,
|
|
4590
4596
|
privileged=False,
|
|
4591
4597
|
read_only_root_filesystem=False,
|
|
4592
4598
|
run_as_group=123,
|
|
@@ -5286,6 +5292,62 @@ class CfnJobDefinition(
|
|
|
5286
5292
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
5287
5293
|
)
|
|
5288
5294
|
|
|
5295
|
+
@jsii.data_type(
|
|
5296
|
+
jsii_type="aws-cdk-lib.aws_batch.CfnJobDefinition.ImagePullSecretProperty",
|
|
5297
|
+
jsii_struct_bases=[],
|
|
5298
|
+
name_mapping={"name": "name"},
|
|
5299
|
+
)
|
|
5300
|
+
class ImagePullSecretProperty:
|
|
5301
|
+
def __init__(self, *, name: builtins.str) -> None:
|
|
5302
|
+
'''References a Kubernetes secret resource.
|
|
5303
|
+
|
|
5304
|
+
This name of the secret must start and end with an alphanumeric character, is required to be lowercase, can include periods (.) and hyphens (-), and can't contain more than 253 characters.
|
|
5305
|
+
|
|
5306
|
+
:param name: Provides a unique identifier for the ``ImagePullSecret`` . This object is required when ``EksPodProperties$imagePullSecrets`` is used.
|
|
5307
|
+
|
|
5308
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-imagepullsecret.html
|
|
5309
|
+
:exampleMetadata: fixture=_generated
|
|
5310
|
+
|
|
5311
|
+
Example::
|
|
5312
|
+
|
|
5313
|
+
# The code below shows an example of how to instantiate this type.
|
|
5314
|
+
# The values are placeholders you should change.
|
|
5315
|
+
from aws_cdk import aws_batch as batch
|
|
5316
|
+
|
|
5317
|
+
image_pull_secret_property = batch.CfnJobDefinition.ImagePullSecretProperty(
|
|
5318
|
+
name="name"
|
|
5319
|
+
)
|
|
5320
|
+
'''
|
|
5321
|
+
if __debug__:
|
|
5322
|
+
type_hints = typing.get_type_hints(_typecheckingstub__510e7e45fa5176303c62970a1bb0161e95eb0fcd2438671b35f8c5a3c506b95a)
|
|
5323
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
5324
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5325
|
+
"name": name,
|
|
5326
|
+
}
|
|
5327
|
+
|
|
5328
|
+
@builtins.property
|
|
5329
|
+
def name(self) -> builtins.str:
|
|
5330
|
+
'''Provides a unique identifier for the ``ImagePullSecret`` .
|
|
5331
|
+
|
|
5332
|
+
This object is required when ``EksPodProperties$imagePullSecrets`` is used.
|
|
5333
|
+
|
|
5334
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-imagepullsecret.html#cfn-batch-jobdefinition-imagepullsecret-name
|
|
5335
|
+
'''
|
|
5336
|
+
result = self._values.get("name")
|
|
5337
|
+
assert result is not None, "Required property 'name' is missing"
|
|
5338
|
+
return typing.cast(builtins.str, result)
|
|
5339
|
+
|
|
5340
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5341
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5342
|
+
|
|
5343
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5344
|
+
return not (rhs == self)
|
|
5345
|
+
|
|
5346
|
+
def __repr__(self) -> str:
|
|
5347
|
+
return "ImagePullSecretProperty(%s)" % ", ".join(
|
|
5348
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5349
|
+
)
|
|
5350
|
+
|
|
5289
5351
|
@jsii.data_type(
|
|
5290
5352
|
jsii_type="aws-cdk-lib.aws_batch.CfnJobDefinition.LinuxParametersProperty",
|
|
5291
5353
|
jsii_struct_bases=[],
|
|
@@ -6453,6 +6515,7 @@ class CfnJobDefinition(
|
|
|
6453
6515
|
"containers": "containers",
|
|
6454
6516
|
"dns_policy": "dnsPolicy",
|
|
6455
6517
|
"host_network": "hostNetwork",
|
|
6518
|
+
"image_pull_secrets": "imagePullSecrets",
|
|
6456
6519
|
"init_containers": "initContainers",
|
|
6457
6520
|
"metadata": "metadata",
|
|
6458
6521
|
"service_account_name": "serviceAccountName",
|
|
@@ -6467,6 +6530,7 @@ class CfnJobDefinition(
|
|
|
6467
6530
|
containers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EksContainerProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
6468
6531
|
dns_policy: typing.Optional[builtins.str] = None,
|
|
6469
6532
|
host_network: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
6533
|
+
image_pull_secrets: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.ImagePullSecretProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
6470
6534
|
init_containers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EksContainerProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
6471
6535
|
metadata: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.MetadataProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6472
6536
|
service_account_name: typing.Optional[builtins.str] = None,
|
|
@@ -6478,6 +6542,7 @@ class CfnJobDefinition(
|
|
|
6478
6542
|
:param containers: The properties of the container that's used on the Amazon EKS pod.
|
|
6479
6543
|
:param dns_policy: The DNS policy for the pod. The default value is ``ClusterFirst`` . If the ``hostNetwork`` parameter is not specified, the default is ``ClusterFirstWithHostNet`` . ``ClusterFirst`` indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. For more information, see `Pod's DNS policy <https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy>`_ in the *Kubernetes documentation* . Valid values: ``Default`` | ``ClusterFirst`` | ``ClusterFirstWithHostNet``
|
|
6480
6544
|
:param host_network: Indicates if the pod uses the hosts' network IP address. The default value is ``true`` . Setting this to ``false`` enables the Kubernetes pod networking model. Most AWS Batch workloads are egress-only and don't require the overhead of IP allocation for each pod for incoming connections. For more information, see `Host namespaces <https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/security/pod-security-policy/#host-namespaces>`_ and `Pod networking <https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/workloads/pods/#pod-networking>`_ in the *Kubernetes documentation* .
|
|
6545
|
+
:param image_pull_secrets:
|
|
6481
6546
|
:param init_containers: These containers run before application containers, always runs to completion, and must complete successfully before the next container starts. These containers are registered with the Amazon EKS Connector agent and persists the registration information in the Kubernetes backend data store. For more information, see `Init Containers <https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/workloads/pods/init-containers/>`_ in the *Kubernetes documentation* . .. epigraph:: This object is limited to 10 elements
|
|
6482
6547
|
:param metadata: Metadata about the Kubernetes pod. For more information, see `Understanding Kubernetes Objects <https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/>`_ in the *Kubernetes documentation* .
|
|
6483
6548
|
:param service_account_name: The name of the service account that's used to run the pod. For more information, see `Kubernetes service accounts <https://docs.aws.amazon.com/eks/latest/userguide/service-accounts.html>`_ and `Configure a Kubernetes service account to assume an IAM role <https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html>`_ in the *Amazon EKS User Guide* and `Configure service accounts for pods <https://docs.aws.amazon.com/https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/>`_ in the *Kubernetes documentation* .
|
|
@@ -6517,6 +6582,7 @@ class CfnJobDefinition(
|
|
|
6517
6582
|
requests=requests
|
|
6518
6583
|
),
|
|
6519
6584
|
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
6585
|
+
allow_privilege_escalation=False,
|
|
6520
6586
|
privileged=False,
|
|
6521
6587
|
read_only_root_filesystem=False,
|
|
6522
6588
|
run_as_group=123,
|
|
@@ -6531,6 +6597,9 @@ class CfnJobDefinition(
|
|
|
6531
6597
|
)],
|
|
6532
6598
|
dns_policy="dnsPolicy",
|
|
6533
6599
|
host_network=False,
|
|
6600
|
+
image_pull_secrets=[batch.CfnJobDefinition.ImagePullSecretProperty(
|
|
6601
|
+
name="name"
|
|
6602
|
+
)],
|
|
6534
6603
|
init_containers=[batch.CfnJobDefinition.EksContainerProperty(
|
|
6535
6604
|
image="image",
|
|
6536
6605
|
|
|
@@ -6550,6 +6619,7 @@ class CfnJobDefinition(
|
|
|
6550
6619
|
requests=requests
|
|
6551
6620
|
),
|
|
6552
6621
|
security_context=batch.CfnJobDefinition.SecurityContextProperty(
|
|
6622
|
+
allow_privilege_escalation=False,
|
|
6553
6623
|
privileged=False,
|
|
6554
6624
|
read_only_root_filesystem=False,
|
|
6555
6625
|
run_as_group=123,
|
|
@@ -6592,6 +6662,7 @@ class CfnJobDefinition(
|
|
|
6592
6662
|
check_type(argname="argument containers", value=containers, expected_type=type_hints["containers"])
|
|
6593
6663
|
check_type(argname="argument dns_policy", value=dns_policy, expected_type=type_hints["dns_policy"])
|
|
6594
6664
|
check_type(argname="argument host_network", value=host_network, expected_type=type_hints["host_network"])
|
|
6665
|
+
check_type(argname="argument image_pull_secrets", value=image_pull_secrets, expected_type=type_hints["image_pull_secrets"])
|
|
6595
6666
|
check_type(argname="argument init_containers", value=init_containers, expected_type=type_hints["init_containers"])
|
|
6596
6667
|
check_type(argname="argument metadata", value=metadata, expected_type=type_hints["metadata"])
|
|
6597
6668
|
check_type(argname="argument service_account_name", value=service_account_name, expected_type=type_hints["service_account_name"])
|
|
@@ -6604,6 +6675,8 @@ class CfnJobDefinition(
|
|
|
6604
6675
|
self._values["dns_policy"] = dns_policy
|
|
6605
6676
|
if host_network is not None:
|
|
6606
6677
|
self._values["host_network"] = host_network
|
|
6678
|
+
if image_pull_secrets is not None:
|
|
6679
|
+
self._values["image_pull_secrets"] = image_pull_secrets
|
|
6607
6680
|
if init_containers is not None:
|
|
6608
6681
|
self._values["init_containers"] = init_containers
|
|
6609
6682
|
if metadata is not None:
|
|
@@ -6652,6 +6725,16 @@ class CfnJobDefinition(
|
|
|
6652
6725
|
result = self._values.get("host_network")
|
|
6653
6726
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
6654
6727
|
|
|
6728
|
+
@builtins.property
|
|
6729
|
+
def image_pull_secrets(
|
|
6730
|
+
self,
|
|
6731
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.ImagePullSecretProperty"]]]]:
|
|
6732
|
+
'''
|
|
6733
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html#cfn-batch-jobdefinition-podproperties-imagepullsecrets
|
|
6734
|
+
'''
|
|
6735
|
+
result = self._values.get("image_pull_secrets")
|
|
6736
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.ImagePullSecretProperty"]]]], result)
|
|
6737
|
+
|
|
6655
6738
|
@builtins.property
|
|
6656
6739
|
def init_containers(
|
|
6657
6740
|
self,
|
|
@@ -7214,6 +7297,7 @@ class CfnJobDefinition(
|
|
|
7214
7297
|
jsii_type="aws-cdk-lib.aws_batch.CfnJobDefinition.SecurityContextProperty",
|
|
7215
7298
|
jsii_struct_bases=[],
|
|
7216
7299
|
name_mapping={
|
|
7300
|
+
"allow_privilege_escalation": "allowPrivilegeEscalation",
|
|
7217
7301
|
"privileged": "privileged",
|
|
7218
7302
|
"read_only_root_filesystem": "readOnlyRootFilesystem",
|
|
7219
7303
|
"run_as_group": "runAsGroup",
|
|
@@ -7225,6 +7309,7 @@ class CfnJobDefinition(
|
|
|
7225
7309
|
def __init__(
|
|
7226
7310
|
self,
|
|
7227
7311
|
*,
|
|
7312
|
+
allow_privilege_escalation: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
7228
7313
|
privileged: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
7229
7314
|
read_only_root_filesystem: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
7230
7315
|
run_as_group: typing.Optional[jsii.Number] = None,
|
|
@@ -7232,6 +7317,7 @@ class CfnJobDefinition(
|
|
|
7232
7317
|
run_as_user: typing.Optional[jsii.Number] = None,
|
|
7233
7318
|
) -> None:
|
|
7234
7319
|
'''
|
|
7320
|
+
:param allow_privilege_escalation:
|
|
7235
7321
|
:param privileged:
|
|
7236
7322
|
:param read_only_root_filesystem:
|
|
7237
7323
|
:param run_as_group:
|
|
@@ -7248,6 +7334,7 @@ class CfnJobDefinition(
|
|
|
7248
7334
|
from aws_cdk import aws_batch as batch
|
|
7249
7335
|
|
|
7250
7336
|
security_context_property = batch.CfnJobDefinition.SecurityContextProperty(
|
|
7337
|
+
allow_privilege_escalation=False,
|
|
7251
7338
|
privileged=False,
|
|
7252
7339
|
read_only_root_filesystem=False,
|
|
7253
7340
|
run_as_group=123,
|
|
@@ -7257,12 +7344,15 @@ class CfnJobDefinition(
|
|
|
7257
7344
|
'''
|
|
7258
7345
|
if __debug__:
|
|
7259
7346
|
type_hints = typing.get_type_hints(_typecheckingstub__ecf4bfd8ece80e1bc3ee0536353fc145f3c5b08f62a604a53b62e7d2526f9d0e)
|
|
7347
|
+
check_type(argname="argument allow_privilege_escalation", value=allow_privilege_escalation, expected_type=type_hints["allow_privilege_escalation"])
|
|
7260
7348
|
check_type(argname="argument privileged", value=privileged, expected_type=type_hints["privileged"])
|
|
7261
7349
|
check_type(argname="argument read_only_root_filesystem", value=read_only_root_filesystem, expected_type=type_hints["read_only_root_filesystem"])
|
|
7262
7350
|
check_type(argname="argument run_as_group", value=run_as_group, expected_type=type_hints["run_as_group"])
|
|
7263
7351
|
check_type(argname="argument run_as_non_root", value=run_as_non_root, expected_type=type_hints["run_as_non_root"])
|
|
7264
7352
|
check_type(argname="argument run_as_user", value=run_as_user, expected_type=type_hints["run_as_user"])
|
|
7265
7353
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
7354
|
+
if allow_privilege_escalation is not None:
|
|
7355
|
+
self._values["allow_privilege_escalation"] = allow_privilege_escalation
|
|
7266
7356
|
if privileged is not None:
|
|
7267
7357
|
self._values["privileged"] = privileged
|
|
7268
7358
|
if read_only_root_filesystem is not None:
|
|
@@ -7274,6 +7364,16 @@ class CfnJobDefinition(
|
|
|
7274
7364
|
if run_as_user is not None:
|
|
7275
7365
|
self._values["run_as_user"] = run_as_user
|
|
7276
7366
|
|
|
7367
|
+
@builtins.property
|
|
7368
|
+
def allow_privilege_escalation(
|
|
7369
|
+
self,
|
|
7370
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
7371
|
+
'''
|
|
7372
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-securitycontext.html#cfn-batch-jobdefinition-securitycontext-allowprivilegeescalation
|
|
7373
|
+
'''
|
|
7374
|
+
result = self._values.get("allow_privilege_escalation")
|
|
7375
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
7376
|
+
|
|
7277
7377
|
@builtins.property
|
|
7278
7378
|
def privileged(
|
|
7279
7379
|
self,
|
|
@@ -23118,6 +23218,13 @@ def _typecheckingstub__2bf55e035d36507c507c0ff620eda0a3096496a2cd5226656fc5e4af4
|
|
|
23118
23218
|
"""Type checking stubs"""
|
|
23119
23219
|
pass
|
|
23120
23220
|
|
|
23221
|
+
def _typecheckingstub__510e7e45fa5176303c62970a1bb0161e95eb0fcd2438671b35f8c5a3c506b95a(
|
|
23222
|
+
*,
|
|
23223
|
+
name: builtins.str,
|
|
23224
|
+
) -> None:
|
|
23225
|
+
"""Type checking stubs"""
|
|
23226
|
+
pass
|
|
23227
|
+
|
|
23121
23228
|
def _typecheckingstub__46c01503a14b135de04e03e8a183177fbaa4f728ed5853b4de848d62c1f248ae(
|
|
23122
23229
|
*,
|
|
23123
23230
|
devices: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.DeviceProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
@@ -23186,6 +23293,7 @@ def _typecheckingstub__75127ae5a1697c34be5f24dcb69fa5c36a3498e1b2c284babc814c444
|
|
|
23186
23293
|
containers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EksContainerProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
23187
23294
|
dns_policy: typing.Optional[builtins.str] = None,
|
|
23188
23295
|
host_network: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
23296
|
+
image_pull_secrets: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ImagePullSecretProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
23189
23297
|
init_containers: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EksContainerProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
23190
23298
|
metadata: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.MetadataProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23191
23299
|
service_account_name: typing.Optional[builtins.str] = None,
|
|
@@ -23244,6 +23352,7 @@ def _typecheckingstub__627c25c89399f4c648455cf23b1833f2f5961be5393bea72498980b6d
|
|
|
23244
23352
|
|
|
23245
23353
|
def _typecheckingstub__ecf4bfd8ece80e1bc3ee0536353fc145f3c5b08f62a604a53b62e7d2526f9d0e(
|
|
23246
23354
|
*,
|
|
23355
|
+
allow_privilege_escalation: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
23247
23356
|
privileged: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
23248
23357
|
read_only_root_filesystem: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
23249
23358
|
run_as_group: typing.Optional[jsii.Number] = None,
|