aws-cdk-lib 2.140.0__py3-none-any.whl → 2.142.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 +9 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.140.0.jsii.tgz → aws-cdk-lib@2.142.0.jsii.tgz} +0 -0
- aws_cdk/aws_appsync/__init__.py +224 -94
- aws_cdk/aws_autoscaling/__init__.py +109 -25
- aws_cdk/aws_bedrock/__init__.py +51 -41
- aws_cdk/aws_cloudfront/__init__.py +34 -78
- aws_cdk/aws_cloudtrail/__init__.py +13 -4
- aws_cdk/aws_codepipeline/__init__.py +364 -27
- aws_cdk/aws_connectcampaigns/__init__.py +2 -2
- aws_cdk/aws_datasync/__init__.py +51 -56
- aws_cdk/aws_docdb/__init__.py +181 -4
- aws_cdk/aws_dynamodb/__init__.py +410 -0
- aws_cdk/aws_ec2/__init__.py +91 -42
- aws_cdk/aws_ecr/__init__.py +32 -7
- aws_cdk/aws_ecs/__init__.py +65 -18
- aws_cdk/aws_eks/__init__.py +36 -3
- aws_cdk/aws_entityresolution/__init__.py +6 -2
- aws_cdk/aws_events/__init__.py +46 -25
- aws_cdk/aws_events_targets/__init__.py +341 -0
- aws_cdk/aws_fms/__init__.py +7 -7
- aws_cdk/aws_gamelift/__init__.py +261 -160
- aws_cdk/aws_iam/__init__.py +13 -8
- aws_cdk/aws_ivs/__init__.py +1 -3
- aws_cdk/aws_kms/__init__.py +11 -5
- aws_cdk/aws_lambda_nodejs/__init__.py +3 -0
- aws_cdk/aws_location/__init__.py +8 -4
- aws_cdk/aws_logs/__init__.py +6 -6
- aws_cdk/aws_oam/__init__.py +45 -11
- aws_cdk/aws_omics/__init__.py +4 -4
- aws_cdk/aws_paymentcryptography/__init__.py +128 -48
- aws_cdk/aws_pinpoint/__init__.py +7 -5
- aws_cdk/aws_qbusiness/__init__.py +620 -294
- aws_cdk/aws_quicksight/__init__.py +103 -40
- aws_cdk/aws_rds/__init__.py +80 -16
- aws_cdk/aws_route53profiles/__init__.py +49 -49
- aws_cdk/aws_s3/__init__.py +9 -2
- aws_cdk/aws_sagemaker/__init__.py +30 -30
- aws_cdk/aws_servicecatalog/__init__.py +27 -4
- aws_cdk/aws_ses/__init__.py +9 -9
- aws_cdk/aws_stepfunctions_tasks/__init__.py +7 -6
- aws_cdk/aws_transfer/__init__.py +4 -4
- aws_cdk/aws_voiceid/__init__.py +2 -2
- {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/METADATA +10 -2
- {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/RECORD +49 -49
- {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.140.0.dist-info → aws_cdk_lib-2.142.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_eks/__init__.py
CHANGED
|
@@ -1813,6 +1813,7 @@ from ..aws_autoscaling import (
|
|
|
1813
1813
|
from ..aws_ec2 import (
|
|
1814
1814
|
Connections as _Connections_0f31fce8,
|
|
1815
1815
|
IConnectable as _IConnectable_10015a05,
|
|
1816
|
+
IKeyPair as _IKeyPair_bc344eda,
|
|
1816
1817
|
IMachineImage as _IMachineImage_0e8bd50b,
|
|
1817
1818
|
ISecurityGroup as _ISecurityGroup_acf8a799,
|
|
1818
1819
|
ISubnet as _ISubnet_d57d1229,
|
|
@@ -2401,6 +2402,7 @@ class AlbScheme(enum.Enum):
|
|
|
2401
2402
|
"ignore_unmodified_size_properties": "ignoreUnmodifiedSizeProperties",
|
|
2402
2403
|
"instance_monitoring": "instanceMonitoring",
|
|
2403
2404
|
"key_name": "keyName",
|
|
2405
|
+
"key_pair": "keyPair",
|
|
2404
2406
|
"max_capacity": "maxCapacity",
|
|
2405
2407
|
"max_instance_lifetime": "maxInstanceLifetime",
|
|
2406
2408
|
"min_capacity": "minCapacity",
|
|
@@ -2438,6 +2440,7 @@ class AutoScalingGroupCapacityOptions(_CommonAutoScalingGroupProps_808bbf2d):
|
|
|
2438
2440
|
ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
|
|
2439
2441
|
instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
|
|
2440
2442
|
key_name: typing.Optional[builtins.str] = None,
|
|
2443
|
+
key_pair: typing.Optional[_IKeyPair_bc344eda] = None,
|
|
2441
2444
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
2442
2445
|
max_instance_lifetime: typing.Optional[_Duration_4839e8c3] = None,
|
|
2443
2446
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
@@ -2471,7 +2474,8 @@ class AutoScalingGroupCapacityOptions(_CommonAutoScalingGroupProps_808bbf2d):
|
|
|
2471
2474
|
:param health_check: Configuration for health checks. Default: - HealthCheck.ec2 with no grace period
|
|
2472
2475
|
:param ignore_unmodified_size_properties: If the ASG has scheduled actions, don't reset unchanged group sizes. Only used if the ASG has scheduled actions (which may scale your ASG up or down regardless of cdk deployments). If true, the size of the group will only be reset if it has been changed in the CDK app. If false, the sizes will always be changed back to what they were in the CDK app on deployment. Default: true
|
|
2473
2476
|
:param instance_monitoring: Controls whether instances in this group are launched with detailed or basic monitoring. When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified Default: - Monitoring.DETAILED
|
|
2474
|
-
:param key_name: Name of SSH keypair to grant access to instances. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified Default: - No SSH access will be possible.
|
|
2477
|
+
:param key_name: (deprecated) Name of SSH keypair to grant access to instances. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified You can either specify ``keyPair`` or ``keyName``, not both. Default: - No SSH access will be possible.
|
|
2478
|
+
:param key_pair: The SSH keypair to grant access to the instance. Feature flag ``AUTOSCALING_GENERATE_LAUNCH_TEMPLATE`` must be enabled to use this property. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified. You can either specify ``keyPair`` or ``keyName``, not both. Default: - No SSH access will be possible.
|
|
2475
2479
|
:param max_capacity: Maximum number of instances in the fleet. Default: desiredCapacity
|
|
2476
2480
|
:param max_instance_lifetime: The maximum amount of time that an instance can be in service. The maximum duration applies to all current and future instances in the group. As an instance approaches its maximum duration, it is terminated and replaced, and cannot be used again. You must specify a value of at least 604,800 seconds (7 days). To clear a previously set value, leave this property undefined. Default: none
|
|
2477
2481
|
:param min_capacity: Minimum number of instances in the fleet. Default: 1
|
|
@@ -2522,6 +2526,7 @@ class AutoScalingGroupCapacityOptions(_CommonAutoScalingGroupProps_808bbf2d):
|
|
|
2522
2526
|
check_type(argname="argument ignore_unmodified_size_properties", value=ignore_unmodified_size_properties, expected_type=type_hints["ignore_unmodified_size_properties"])
|
|
2523
2527
|
check_type(argname="argument instance_monitoring", value=instance_monitoring, expected_type=type_hints["instance_monitoring"])
|
|
2524
2528
|
check_type(argname="argument key_name", value=key_name, expected_type=type_hints["key_name"])
|
|
2529
|
+
check_type(argname="argument key_pair", value=key_pair, expected_type=type_hints["key_pair"])
|
|
2525
2530
|
check_type(argname="argument max_capacity", value=max_capacity, expected_type=type_hints["max_capacity"])
|
|
2526
2531
|
check_type(argname="argument max_instance_lifetime", value=max_instance_lifetime, expected_type=type_hints["max_instance_lifetime"])
|
|
2527
2532
|
check_type(argname="argument min_capacity", value=min_capacity, expected_type=type_hints["min_capacity"])
|
|
@@ -2569,6 +2574,8 @@ class AutoScalingGroupCapacityOptions(_CommonAutoScalingGroupProps_808bbf2d):
|
|
|
2569
2574
|
self._values["instance_monitoring"] = instance_monitoring
|
|
2570
2575
|
if key_name is not None:
|
|
2571
2576
|
self._values["key_name"] = key_name
|
|
2577
|
+
if key_pair is not None:
|
|
2578
|
+
self._values["key_pair"] = key_pair
|
|
2572
2579
|
if max_capacity is not None:
|
|
2573
2580
|
self._values["max_capacity"] = max_capacity
|
|
2574
2581
|
if max_instance_lifetime is not None:
|
|
@@ -2765,15 +2772,36 @@ class AutoScalingGroupCapacityOptions(_CommonAutoScalingGroupProps_808bbf2d):
|
|
|
2765
2772
|
|
|
2766
2773
|
@builtins.property
|
|
2767
2774
|
def key_name(self) -> typing.Optional[builtins.str]:
|
|
2768
|
-
'''Name of SSH keypair to grant access to instances.
|
|
2775
|
+
'''(deprecated) Name of SSH keypair to grant access to instances.
|
|
2769
2776
|
|
|
2770
2777
|
``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified
|
|
2771
2778
|
|
|
2779
|
+
You can either specify ``keyPair`` or ``keyName``, not both.
|
|
2780
|
+
|
|
2772
2781
|
:default: - No SSH access will be possible.
|
|
2782
|
+
|
|
2783
|
+
:deprecated: - Use ``keyPair`` instead - https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2-readme.html#using-an-existing-ec2-key-pair
|
|
2784
|
+
|
|
2785
|
+
:stability: deprecated
|
|
2773
2786
|
'''
|
|
2774
2787
|
result = self._values.get("key_name")
|
|
2775
2788
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
2776
2789
|
|
|
2790
|
+
@builtins.property
|
|
2791
|
+
def key_pair(self) -> typing.Optional[_IKeyPair_bc344eda]:
|
|
2792
|
+
'''The SSH keypair to grant access to the instance.
|
|
2793
|
+
|
|
2794
|
+
Feature flag ``AUTOSCALING_GENERATE_LAUNCH_TEMPLATE`` must be enabled to use this property.
|
|
2795
|
+
|
|
2796
|
+
``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified.
|
|
2797
|
+
|
|
2798
|
+
You can either specify ``keyPair`` or ``keyName``, not both.
|
|
2799
|
+
|
|
2800
|
+
:default: - No SSH access will be possible.
|
|
2801
|
+
'''
|
|
2802
|
+
result = self._values.get("key_pair")
|
|
2803
|
+
return typing.cast(typing.Optional[_IKeyPair_bc344eda], result)
|
|
2804
|
+
|
|
2777
2805
|
@builtins.property
|
|
2778
2806
|
def max_capacity(self) -> typing.Optional[jsii.Number]:
|
|
2779
2807
|
'''Maximum number of instances in the fleet.
|
|
@@ -15325,6 +15353,7 @@ class Cluster(
|
|
|
15325
15353
|
ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
|
|
15326
15354
|
instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
|
|
15327
15355
|
key_name: typing.Optional[builtins.str] = None,
|
|
15356
|
+
key_pair: typing.Optional[_IKeyPair_bc344eda] = None,
|
|
15328
15357
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
15329
15358
|
max_instance_lifetime: typing.Optional[_Duration_4839e8c3] = None,
|
|
15330
15359
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
@@ -15371,7 +15400,8 @@ class Cluster(
|
|
|
15371
15400
|
:param health_check: Configuration for health checks. Default: - HealthCheck.ec2 with no grace period
|
|
15372
15401
|
:param ignore_unmodified_size_properties: If the ASG has scheduled actions, don't reset unchanged group sizes. Only used if the ASG has scheduled actions (which may scale your ASG up or down regardless of cdk deployments). If true, the size of the group will only be reset if it has been changed in the CDK app. If false, the sizes will always be changed back to what they were in the CDK app on deployment. Default: true
|
|
15373
15402
|
:param instance_monitoring: Controls whether instances in this group are launched with detailed or basic monitoring. When detailed monitoring is enabled, Amazon CloudWatch generates metrics every minute and your account is charged a fee. When you disable detailed monitoring, CloudWatch generates metrics every 5 minutes. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified Default: - Monitoring.DETAILED
|
|
15374
|
-
:param key_name: Name of SSH keypair to grant access to instances. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified Default: - No SSH access will be possible.
|
|
15403
|
+
:param key_name: (deprecated) Name of SSH keypair to grant access to instances. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified You can either specify ``keyPair`` or ``keyName``, not both. Default: - No SSH access will be possible.
|
|
15404
|
+
:param key_pair: The SSH keypair to grant access to the instance. Feature flag ``AUTOSCALING_GENERATE_LAUNCH_TEMPLATE`` must be enabled to use this property. ``launchTemplate`` and ``mixedInstancesPolicy`` must not be specified when this property is specified. You can either specify ``keyPair`` or ``keyName``, not both. Default: - No SSH access will be possible.
|
|
15375
15405
|
:param max_capacity: Maximum number of instances in the fleet. Default: desiredCapacity
|
|
15376
15406
|
:param max_instance_lifetime: The maximum amount of time that an instance can be in service. The maximum duration applies to all current and future instances in the group. As an instance approaches its maximum duration, it is terminated and replaced, and cannot be used again. You must specify a value of at least 604,800 seconds (7 days). To clear a previously set value, leave this property undefined. Default: none
|
|
15377
15407
|
:param min_capacity: Minimum number of instances in the fleet. Default: 1
|
|
@@ -15408,6 +15438,7 @@ class Cluster(
|
|
|
15408
15438
|
ignore_unmodified_size_properties=ignore_unmodified_size_properties,
|
|
15409
15439
|
instance_monitoring=instance_monitoring,
|
|
15410
15440
|
key_name=key_name,
|
|
15441
|
+
key_pair=key_pair,
|
|
15411
15442
|
max_capacity=max_capacity,
|
|
15412
15443
|
max_instance_lifetime=max_instance_lifetime,
|
|
15413
15444
|
min_capacity=min_capacity,
|
|
@@ -18064,6 +18095,7 @@ def _typecheckingstub__9ac94eb5cd9569dcf4122cf20026c6f104b737f68ecd3395b237320bd
|
|
|
18064
18095
|
ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
|
|
18065
18096
|
instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
|
|
18066
18097
|
key_name: typing.Optional[builtins.str] = None,
|
|
18098
|
+
key_pair: typing.Optional[_IKeyPair_bc344eda] = None,
|
|
18067
18099
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
18068
18100
|
max_instance_lifetime: typing.Optional[_Duration_4839e8c3] = None,
|
|
18069
18101
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
@@ -19626,6 +19658,7 @@ def _typecheckingstub__e9e81d821b1c1d14225d1c9cc695af8e71b96a7489dcd36bd237c9363
|
|
|
19626
19658
|
ignore_unmodified_size_properties: typing.Optional[builtins.bool] = None,
|
|
19627
19659
|
instance_monitoring: typing.Optional[_Monitoring_50020f91] = None,
|
|
19628
19660
|
key_name: typing.Optional[builtins.str] = None,
|
|
19661
|
+
key_pair: typing.Optional[_IKeyPair_bc344eda] = None,
|
|
19629
19662
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
19630
19663
|
max_instance_lifetime: typing.Optional[_Duration_4839e8c3] = None,
|
|
19631
19664
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
@@ -2912,7 +2912,7 @@ class CfnPolicyStatement(
|
|
|
2912
2912
|
:param statement_id: A statement identifier that differentiates the statement from others in the same policy.
|
|
2913
2913
|
:param action: The action that the principal can use on the resource. For example, ``entityresolution:GetIdMappingJob`` , ``entityresolution:GetMatchingJob`` .
|
|
2914
2914
|
:param condition: A set of condition keys that you can use in key policies.
|
|
2915
|
-
:param effect: Determines whether the permissions specified in the policy are to be allowed ( ``Allow`` ) or denied ( ``Deny`` ).
|
|
2915
|
+
:param effect: Determines whether the permissions specified in the policy are to be allowed ( ``Allow`` ) or denied ( ``Deny`` ). .. epigraph:: If you set the value of the ``effect`` parameter to ``Deny`` for the ``AddPolicyStatement`` operation, you must also set the value of the ``effect`` parameter in the ``policy`` to ``Deny`` for the ``PutPolicy`` operation.
|
|
2916
2916
|
:param principal: The AWS service or AWS account that can access the resource defined as ARN.
|
|
2917
2917
|
'''
|
|
2918
2918
|
if __debug__:
|
|
@@ -3073,7 +3073,7 @@ class CfnPolicyStatementProps:
|
|
|
3073
3073
|
:param statement_id: A statement identifier that differentiates the statement from others in the same policy.
|
|
3074
3074
|
:param action: The action that the principal can use on the resource. For example, ``entityresolution:GetIdMappingJob`` , ``entityresolution:GetMatchingJob`` .
|
|
3075
3075
|
:param condition: A set of condition keys that you can use in key policies.
|
|
3076
|
-
:param effect: Determines whether the permissions specified in the policy are to be allowed ( ``Allow`` ) or denied ( ``Deny`` ).
|
|
3076
|
+
:param effect: Determines whether the permissions specified in the policy are to be allowed ( ``Allow`` ) or denied ( ``Deny`` ). .. epigraph:: If you set the value of the ``effect`` parameter to ``Deny`` for the ``AddPolicyStatement`` operation, you must also set the value of the ``effect`` parameter in the ``policy`` to ``Deny`` for the ``PutPolicy`` operation.
|
|
3077
3077
|
:param principal: The AWS service or AWS account that can access the resource defined as ARN.
|
|
3078
3078
|
|
|
3079
3079
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-policystatement.html
|
|
@@ -3161,6 +3161,10 @@ class CfnPolicyStatementProps:
|
|
|
3161
3161
|
def effect(self) -> typing.Optional[builtins.str]:
|
|
3162
3162
|
'''Determines whether the permissions specified in the policy are to be allowed ( ``Allow`` ) or denied ( ``Deny`` ).
|
|
3163
3163
|
|
|
3164
|
+
.. epigraph::
|
|
3165
|
+
|
|
3166
|
+
If you set the value of the ``effect`` parameter to ``Deny`` for the ``AddPolicyStatement`` operation, you must also set the value of the ``effect`` parameter in the ``policy`` to ``Deny`` for the ``PutPolicy`` operation.
|
|
3167
|
+
|
|
3164
3168
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-policystatement.html#cfn-entityresolution-policystatement-effect
|
|
3165
3169
|
'''
|
|
3166
3170
|
result = self._values.get("effect")
|
aws_cdk/aws_events/__init__.py
CHANGED
|
@@ -10032,6 +10032,7 @@ class RuleProps(EventCommonOptions):
|
|
|
10032
10032
|
jsii_struct_bases=[],
|
|
10033
10033
|
name_mapping={
|
|
10034
10034
|
"arn": "arn",
|
|
10035
|
+
"app_sync_parameters": "appSyncParameters",
|
|
10035
10036
|
"batch_parameters": "batchParameters",
|
|
10036
10037
|
"dead_letter_config": "deadLetterConfig",
|
|
10037
10038
|
"ecs_parameters": "ecsParameters",
|
|
@@ -10050,6 +10051,7 @@ class RuleTargetConfig:
|
|
|
10050
10051
|
self,
|
|
10051
10052
|
*,
|
|
10052
10053
|
arn: builtins.str,
|
|
10054
|
+
app_sync_parameters: typing.Optional[typing.Union[CfnRule.AppSyncParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
10053
10055
|
batch_parameters: typing.Optional[typing.Union[CfnRule.BatchParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
10054
10056
|
dead_letter_config: typing.Optional[typing.Union[CfnRule.DeadLetterConfigProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
10055
10057
|
ecs_parameters: typing.Optional[typing.Union[CfnRule.EcsParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
@@ -10065,6 +10067,7 @@ class RuleTargetConfig:
|
|
|
10065
10067
|
'''Properties for an event rule target.
|
|
10066
10068
|
|
|
10067
10069
|
:param arn: The Amazon Resource Name (ARN) of the target.
|
|
10070
|
+
:param app_sync_parameters: Contains the GraphQL operation to be parsed and executed, if the event target is an AWS AppSync API. Default: - None
|
|
10068
10071
|
:param batch_parameters: Parameters used when the rule invokes Amazon AWS Batch Job/Queue. Default: no parameters set
|
|
10069
10072
|
:param dead_letter_config: Contains information about a dead-letter queue configuration. Default: no dead-letter queue set
|
|
10070
10073
|
:param ecs_parameters: The Amazon ECS task definition and task count to use, if the event target is an Amazon ECS task.
|
|
@@ -10095,6 +10098,9 @@ class RuleTargetConfig:
|
|
|
10095
10098
|
arn="arn",
|
|
10096
10099
|
|
|
10097
10100
|
# the properties below are optional
|
|
10101
|
+
app_sync_parameters=events.CfnRule.AppSyncParametersProperty(
|
|
10102
|
+
graph_ql_operation="graphQlOperation"
|
|
10103
|
+
),
|
|
10098
10104
|
batch_parameters=events.CfnRule.BatchParametersProperty(
|
|
10099
10105
|
job_definition="jobDefinition",
|
|
10100
10106
|
job_name="jobName",
|
|
@@ -10181,6 +10187,8 @@ class RuleTargetConfig:
|
|
|
10181
10187
|
target_resource=construct
|
|
10182
10188
|
)
|
|
10183
10189
|
'''
|
|
10190
|
+
if isinstance(app_sync_parameters, dict):
|
|
10191
|
+
app_sync_parameters = CfnRule.AppSyncParametersProperty(**app_sync_parameters)
|
|
10184
10192
|
if isinstance(batch_parameters, dict):
|
|
10185
10193
|
batch_parameters = CfnRule.BatchParametersProperty(**batch_parameters)
|
|
10186
10194
|
if isinstance(dead_letter_config, dict):
|
|
@@ -10200,6 +10208,7 @@ class RuleTargetConfig:
|
|
|
10200
10208
|
if __debug__:
|
|
10201
10209
|
type_hints = typing.get_type_hints(_typecheckingstub__10b46a391417178d3d06a5360e56af2bf314e68a1662e39855324f1244482eab)
|
|
10202
10210
|
check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
|
|
10211
|
+
check_type(argname="argument app_sync_parameters", value=app_sync_parameters, expected_type=type_hints["app_sync_parameters"])
|
|
10203
10212
|
check_type(argname="argument batch_parameters", value=batch_parameters, expected_type=type_hints["batch_parameters"])
|
|
10204
10213
|
check_type(argname="argument dead_letter_config", value=dead_letter_config, expected_type=type_hints["dead_letter_config"])
|
|
10205
10214
|
check_type(argname="argument ecs_parameters", value=ecs_parameters, expected_type=type_hints["ecs_parameters"])
|
|
@@ -10214,6 +10223,8 @@ class RuleTargetConfig:
|
|
|
10214
10223
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
10215
10224
|
"arn": arn,
|
|
10216
10225
|
}
|
|
10226
|
+
if app_sync_parameters is not None:
|
|
10227
|
+
self._values["app_sync_parameters"] = app_sync_parameters
|
|
10217
10228
|
if batch_parameters is not None:
|
|
10218
10229
|
self._values["batch_parameters"] = batch_parameters
|
|
10219
10230
|
if dead_letter_config is not None:
|
|
@@ -10244,6 +10255,15 @@ class RuleTargetConfig:
|
|
|
10244
10255
|
assert result is not None, "Required property 'arn' is missing"
|
|
10245
10256
|
return typing.cast(builtins.str, result)
|
|
10246
10257
|
|
|
10258
|
+
@builtins.property
|
|
10259
|
+
def app_sync_parameters(self) -> typing.Optional[CfnRule.AppSyncParametersProperty]:
|
|
10260
|
+
'''Contains the GraphQL operation to be parsed and executed, if the event target is an AWS AppSync API.
|
|
10261
|
+
|
|
10262
|
+
:default: - None
|
|
10263
|
+
'''
|
|
10264
|
+
result = self._values.get("app_sync_parameters")
|
|
10265
|
+
return typing.cast(typing.Optional[CfnRule.AppSyncParametersProperty], result)
|
|
10266
|
+
|
|
10247
10267
|
@builtins.property
|
|
10248
10268
|
def batch_parameters(self) -> typing.Optional[CfnRule.BatchParametersProperty]:
|
|
10249
10269
|
'''Parameters used when the rule invokes Amazon AWS Batch Job/Queue.
|
|
@@ -10364,27 +10384,26 @@ class RuleTargetInput(
|
|
|
10364
10384
|
|
|
10365
10385
|
Example::
|
|
10366
10386
|
|
|
10367
|
-
import aws_cdk.
|
|
10368
|
-
import aws_cdk.aws_stepfunctions as sfn
|
|
10387
|
+
import aws_cdk.aws_appsync as appsync
|
|
10369
10388
|
|
|
10370
10389
|
|
|
10371
|
-
|
|
10372
|
-
|
|
10390
|
+
api = appsync.GraphqlApi(self, "api",
|
|
10391
|
+
name="api",
|
|
10392
|
+
definition=appsync.Definition.from_file("schema.graphql"),
|
|
10393
|
+
authorization_config=appsync.AuthorizationConfig(
|
|
10394
|
+
default_authorization=appsync.AuthorizationMode(authorization_type=appsync.AuthorizationType.IAM)
|
|
10395
|
+
)
|
|
10373
10396
|
)
|
|
10374
10397
|
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
role = iam.Role(self, "Role",
|
|
10378
|
-
assumed_by=iam.ServicePrincipal("events.amazonaws.com")
|
|
10379
|
-
)
|
|
10380
|
-
state_machine = sfn.StateMachine(self, "SM",
|
|
10381
|
-
definition=sfn.Wait(self, "Hello", time=sfn.WaitTime.duration(Duration.seconds(10)))
|
|
10398
|
+
rule = events.Rule(self, "Rule",
|
|
10399
|
+
schedule=events.Schedule.rate(cdk.Duration.hours(1))
|
|
10382
10400
|
)
|
|
10383
10401
|
|
|
10384
|
-
rule.add_target(targets.
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10402
|
+
rule.add_target(targets.AppSync(api,
|
|
10403
|
+
graph_qLOperation="mutation Publish($message: String!){ publish(message: $message) { message } }",
|
|
10404
|
+
variables=events.RuleTargetInput.from_object({
|
|
10405
|
+
"message": "hello world"
|
|
10406
|
+
})
|
|
10388
10407
|
))
|
|
10389
10408
|
'''
|
|
10390
10409
|
|
|
@@ -10616,16 +10635,17 @@ class Schedule(
|
|
|
10616
10635
|
schedule=events.Schedule.rate(cdk.Duration.hours(1))
|
|
10617
10636
|
)
|
|
10618
10637
|
|
|
10619
|
-
rule.add_target(
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10638
|
+
rule.add_target(
|
|
10639
|
+
targets.EcsTask(
|
|
10640
|
+
cluster=cluster,
|
|
10641
|
+
task_definition=task_definition,
|
|
10642
|
+
propagate_tags=ecs.PropagatedTagSource.TASK_DEFINITION,
|
|
10643
|
+
tags=[targets.Tag(
|
|
10644
|
+
key="my-tag",
|
|
10645
|
+
value="my-tag-value"
|
|
10646
|
+
)
|
|
10647
|
+
]
|
|
10648
|
+
))
|
|
10629
10649
|
'''
|
|
10630
10650
|
|
|
10631
10651
|
def __init__(self) -> None:
|
|
@@ -12586,6 +12606,7 @@ def _typecheckingstub__26677a946da4037892c1c589c005b7536d8ffed632ca92c5c52a92586
|
|
|
12586
12606
|
def _typecheckingstub__10b46a391417178d3d06a5360e56af2bf314e68a1662e39855324f1244482eab(
|
|
12587
12607
|
*,
|
|
12588
12608
|
arn: builtins.str,
|
|
12609
|
+
app_sync_parameters: typing.Optional[typing.Union[CfnRule.AppSyncParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12589
12610
|
batch_parameters: typing.Optional[typing.Union[CfnRule.BatchParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12590
12611
|
dead_letter_config: typing.Optional[typing.Union[CfnRule.DeadLetterConfigProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12591
12612
|
ecs_parameters: typing.Optional[typing.Union[CfnRule.EcsParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
|