aws-cdk-lib 2.155.0__py3-none-any.whl → 2.157.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +28 -24
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.155.0.jsii.tgz → aws-cdk-lib@2.157.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +10 -75
- aws_cdk/aws_amplify/__init__.py +106 -0
- aws_cdk/aws_apigatewayv2/__init__.py +81 -13
- aws_cdk/aws_appintegrations/__init__.py +14 -14
- aws_cdk/aws_applicationsignals/__init__.py +750 -1
- aws_cdk/aws_appsync/__init__.py +50 -18
- aws_cdk/aws_autoscaling/__init__.py +6 -6
- aws_cdk/aws_backup/__init__.py +39 -0
- aws_cdk/aws_batch/__init__.py +41 -0
- aws_cdk/aws_bedrock/__init__.py +1528 -91
- aws_cdk/aws_chatbot/__init__.py +6 -6
- aws_cdk/aws_cloudformation/__init__.py +22 -22
- aws_cdk/aws_cloudfront/__init__.py +650 -57
- aws_cdk/aws_cloudfront/experimental/__init__.py +30 -3
- aws_cdk/aws_cloudfront_origins/__init__.py +2034 -91
- aws_cdk/aws_codebuild/__init__.py +1 -1
- aws_cdk/aws_datasync/__init__.py +40 -29
- aws_cdk/aws_docdb/__init__.py +78 -6
- aws_cdk/aws_ec2/__init__.py +397 -75
- aws_cdk/aws_ecs/__init__.py +271 -101
- aws_cdk/aws_ecs_patterns/__init__.py +129 -11
- aws_cdk/aws_eks/__init__.py +40 -4
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +26 -50
- aws_cdk/aws_entityresolution/__init__.py +117 -4
- aws_cdk/aws_events/__init__.py +40 -14
- aws_cdk/aws_events_targets/__init__.py +357 -0
- aws_cdk/aws_glue/__init__.py +0 -8
- aws_cdk/aws_groundstation/__init__.py +27 -16
- aws_cdk/aws_guardduty/__init__.py +26 -14
- aws_cdk/aws_iam/__init__.py +7 -8
- aws_cdk/aws_iotfleetwise/__init__.py +108 -0
- aws_cdk/aws_kms/__init__.py +53 -10
- aws_cdk/aws_lambda/__init__.py +147 -17
- aws_cdk/aws_lambda_nodejs/__init__.py +30 -3
- aws_cdk/aws_macie/__init__.py +4 -4
- aws_cdk/aws_medialive/__init__.py +348 -0
- aws_cdk/aws_mediapackagev2/__init__.py +38 -38
- aws_cdk/aws_neptune/__init__.py +14 -8
- aws_cdk/aws_opensearchservice/__init__.py +194 -0
- aws_cdk/aws_pcaconnectorscep/__init__.py +884 -0
- aws_cdk/aws_personalize/__init__.py +2 -2
- aws_cdk/aws_pipes/__init__.py +22 -22
- aws_cdk/aws_qbusiness/__init__.py +675 -6
- aws_cdk/aws_quicksight/__init__.py +3285 -0
- aws_cdk/aws_rds/__init__.py +24 -0
- aws_cdk/aws_s3/__init__.py +13 -14
- aws_cdk/aws_sagemaker/__init__.py +1167 -0
- aws_cdk/aws_secretsmanager/__init__.py +2 -3
- aws_cdk/aws_securityhub/__init__.py +108 -103
- aws_cdk/aws_ses/__init__.py +31 -0
- aws_cdk/aws_sns/__init__.py +19 -13
- aws_cdk/aws_ssm/__init__.py +10 -6
- aws_cdk/aws_ssmquicksetup/__init__.py +967 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +106 -45
- aws_cdk/aws_synthetics/__init__.py +13 -0
- aws_cdk/cx_api/__init__.py +16 -0
- aws_cdk/triggers/__init__.py +30 -3
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/RECORD +66 -64
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/top_level.txt +0 -0
|
@@ -26,6 +26,7 @@ Currently supported are:
|
|
|
26
26
|
* [Launch type for ECS Task](#launch-type-for-ecs-task)
|
|
27
27
|
* [Assign public IP addresses to tasks](#assign-public-ip-addresses-to-tasks)
|
|
28
28
|
* [Enable Amazon ECS Exec for ECS Task](#enable-amazon-ecs-exec-for-ecs-task)
|
|
29
|
+
* [Run a Redshift query](#schedule-a-redshift-query-serverless-or-cluster)
|
|
29
30
|
|
|
30
31
|
See the README of the `aws-cdk-lib/aws-events` library for more information on
|
|
31
32
|
EventBridge.
|
|
@@ -556,6 +557,31 @@ rule.add_target(targets.EcsTask(
|
|
|
556
557
|
enable_execute_command=True
|
|
557
558
|
))
|
|
558
559
|
```
|
|
560
|
+
|
|
561
|
+
## Schedule a Redshift query (serverless or cluster)
|
|
562
|
+
|
|
563
|
+
Use the `RedshiftQuery` target to schedule an Amazon Redshift Query.
|
|
564
|
+
|
|
565
|
+
The code snippet below creates the scheduled event rule that route events to an Amazon Redshift Query
|
|
566
|
+
|
|
567
|
+
```python
|
|
568
|
+
import aws_cdk.aws_redshiftserverless as redshiftserverless
|
|
569
|
+
|
|
570
|
+
# workgroup: redshiftserverless.CfnWorkgroup
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
rule = events.Rule(self, "Rule",
|
|
574
|
+
schedule=events.Schedule.rate(cdk.Duration.hours(1))
|
|
575
|
+
)
|
|
576
|
+
|
|
577
|
+
dlq = sqs.Queue(self, "DeadLetterQueue")
|
|
578
|
+
|
|
579
|
+
rule.add_target(targets.RedshiftQuery(workgroup.attr_workgroup_workgroup_arn,
|
|
580
|
+
database="dev",
|
|
581
|
+
dead_letter_queue=dlq,
|
|
582
|
+
sql=["SELECT * FROM foo", "SELECT * FROM baz"]
|
|
583
|
+
))
|
|
584
|
+
```
|
|
559
585
|
'''
|
|
560
586
|
from pkgutil import extend_path
|
|
561
587
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -609,6 +635,7 @@ from ..aws_kinesis import IStream as _IStream_4e2457d2
|
|
|
609
635
|
from ..aws_kinesisfirehose import CfnDeliveryStream as _CfnDeliveryStream_8f3b1735
|
|
610
636
|
from ..aws_lambda import IFunction as _IFunction_6adb0ab8
|
|
611
637
|
from ..aws_logs import ILogGroup as _ILogGroup_3c4fa718
|
|
638
|
+
from ..aws_secretsmanager import ISecret as _ISecret_6e020e6a
|
|
612
639
|
from ..aws_sns import ITopic as _ITopic_9eca4852
|
|
613
640
|
from ..aws_sqs import IQueue as _IQueue_7ed6f679
|
|
614
641
|
from ..aws_stepfunctions import IStateMachine as _IStateMachine_73e8d2b0
|
|
@@ -2628,6 +2655,296 @@ class LogGroupTargetInputOptions:
|
|
|
2628
2655
|
)
|
|
2629
2656
|
|
|
2630
2657
|
|
|
2658
|
+
@jsii.implements(_IRuleTarget_7a91f454)
|
|
2659
|
+
class RedshiftQuery(
|
|
2660
|
+
metaclass=jsii.JSIIMeta,
|
|
2661
|
+
jsii_type="aws-cdk-lib.aws_events_targets.RedshiftQuery",
|
|
2662
|
+
):
|
|
2663
|
+
'''Schedule an Amazon Redshift Query to be run, using the Redshift Data API.
|
|
2664
|
+
|
|
2665
|
+
If you would like Amazon Redshift to identify the Event Bridge rule, and present it in the Amazon Redshift console, append a ``QS2-`` prefix to both ``statementName`` and ``ruleName``.
|
|
2666
|
+
|
|
2667
|
+
:exampleMetadata: infused
|
|
2668
|
+
|
|
2669
|
+
Example::
|
|
2670
|
+
|
|
2671
|
+
import aws_cdk.aws_redshiftserverless as redshiftserverless
|
|
2672
|
+
|
|
2673
|
+
# workgroup: redshiftserverless.CfnWorkgroup
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
rule = events.Rule(self, "Rule",
|
|
2677
|
+
schedule=events.Schedule.rate(cdk.Duration.hours(1))
|
|
2678
|
+
)
|
|
2679
|
+
|
|
2680
|
+
dlq = sqs.Queue(self, "DeadLetterQueue")
|
|
2681
|
+
|
|
2682
|
+
rule.add_target(targets.RedshiftQuery(workgroup.attr_workgroup_workgroup_arn,
|
|
2683
|
+
database="dev",
|
|
2684
|
+
dead_letter_queue=dlq,
|
|
2685
|
+
sql=["SELECT * FROM foo", "SELECT * FROM baz"]
|
|
2686
|
+
))
|
|
2687
|
+
'''
|
|
2688
|
+
|
|
2689
|
+
def __init__(
|
|
2690
|
+
self,
|
|
2691
|
+
cluster_arn: builtins.str,
|
|
2692
|
+
*,
|
|
2693
|
+
database: builtins.str,
|
|
2694
|
+
sql: typing.Sequence[builtins.str],
|
|
2695
|
+
db_user: typing.Optional[builtins.str] = None,
|
|
2696
|
+
dead_letter_queue: typing.Optional[_IQueue_7ed6f679] = None,
|
|
2697
|
+
input: typing.Optional[_RuleTargetInput_6beca786] = None,
|
|
2698
|
+
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
2699
|
+
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
2700
|
+
send_event_bridge_event: typing.Optional[builtins.bool] = None,
|
|
2701
|
+
statement_name: typing.Optional[builtins.str] = None,
|
|
2702
|
+
) -> None:
|
|
2703
|
+
'''
|
|
2704
|
+
:param cluster_arn: The ARN of the Amazon Redshift cluster.
|
|
2705
|
+
:param database: The Amazon Redshift database to run the query against.
|
|
2706
|
+
:param sql: The SQL queries to be executed. Each query is run sequentially within a single transaction; the next query in the array will only execute after the previous one has successfully completed. - When multiple sql queries are included, this will use the ``batchExecuteStatement`` API. Therefore, if any statement fails, the entire transaction is rolled back. - If a single SQL statement is to be executed, this will use the ``executeStatement`` API. Default: - No SQL query is specified
|
|
2707
|
+
:param db_user: The Amazon Redshift database user to run the query as. This is required when authenticating via temporary credentials. Default: - No Database user is specified
|
|
2708
|
+
:param dead_letter_queue: The queue to be used as dead letter queue. Default: - No dead letter queue is specified
|
|
2709
|
+
:param input: The input to the state machine execution. Default: - the entire EventBridge event
|
|
2710
|
+
:param role: The IAM role to be used to execute the SQL statement. Default: - a new role will be created.
|
|
2711
|
+
:param secret: The secret containing the password for the database user. This is required when authenticating via Secrets Manager. If the full secret ARN is not specified, this will instead use the secret name. Default: - No secret is specified
|
|
2712
|
+
:param send_event_bridge_event: Should an event be sent back to Event Bridge when the SQL statement is executed. Default: false
|
|
2713
|
+
:param statement_name: The name of the SQL statement. You can name the SQL statement for identitfication purposes. If you would like Amazon Redshift to identify the Event Bridge rule, and present it in the Amazon Redshift console, append a ``QS2-`` prefix to the statement name. Default: - No statement name is specified
|
|
2714
|
+
'''
|
|
2715
|
+
if __debug__:
|
|
2716
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6f991f630fb494b0dbf6dd8dd11dec71e3b3618d520bce2a1761a05620a3d899)
|
|
2717
|
+
check_type(argname="argument cluster_arn", value=cluster_arn, expected_type=type_hints["cluster_arn"])
|
|
2718
|
+
props = RedshiftQueryProps(
|
|
2719
|
+
database=database,
|
|
2720
|
+
sql=sql,
|
|
2721
|
+
db_user=db_user,
|
|
2722
|
+
dead_letter_queue=dead_letter_queue,
|
|
2723
|
+
input=input,
|
|
2724
|
+
role=role,
|
|
2725
|
+
secret=secret,
|
|
2726
|
+
send_event_bridge_event=send_event_bridge_event,
|
|
2727
|
+
statement_name=statement_name,
|
|
2728
|
+
)
|
|
2729
|
+
|
|
2730
|
+
jsii.create(self.__class__, self, [cluster_arn, props])
|
|
2731
|
+
|
|
2732
|
+
@jsii.member(jsii_name="bind")
|
|
2733
|
+
def bind(
|
|
2734
|
+
self,
|
|
2735
|
+
rule: _IRule_af9e3d28,
|
|
2736
|
+
_id: typing.Optional[builtins.str] = None,
|
|
2737
|
+
) -> _RuleTargetConfig_4e70fe03:
|
|
2738
|
+
'''Returns the rule target specification.
|
|
2739
|
+
|
|
2740
|
+
NOTE: Do not use the various ``inputXxx`` options. They can be set in a call to ``addTarget``.
|
|
2741
|
+
|
|
2742
|
+
:param rule: -
|
|
2743
|
+
:param _id: -
|
|
2744
|
+
'''
|
|
2745
|
+
if __debug__:
|
|
2746
|
+
type_hints = typing.get_type_hints(_typecheckingstub__39a86a8b0444f7c45c252e76fda9d4157fe34d2c363d4a99075556e92c234689)
|
|
2747
|
+
check_type(argname="argument rule", value=rule, expected_type=type_hints["rule"])
|
|
2748
|
+
check_type(argname="argument _id", value=_id, expected_type=type_hints["_id"])
|
|
2749
|
+
return typing.cast(_RuleTargetConfig_4e70fe03, jsii.invoke(self, "bind", [rule, _id]))
|
|
2750
|
+
|
|
2751
|
+
|
|
2752
|
+
@jsii.data_type(
|
|
2753
|
+
jsii_type="aws-cdk-lib.aws_events_targets.RedshiftQueryProps",
|
|
2754
|
+
jsii_struct_bases=[],
|
|
2755
|
+
name_mapping={
|
|
2756
|
+
"database": "database",
|
|
2757
|
+
"sql": "sql",
|
|
2758
|
+
"db_user": "dbUser",
|
|
2759
|
+
"dead_letter_queue": "deadLetterQueue",
|
|
2760
|
+
"input": "input",
|
|
2761
|
+
"role": "role",
|
|
2762
|
+
"secret": "secret",
|
|
2763
|
+
"send_event_bridge_event": "sendEventBridgeEvent",
|
|
2764
|
+
"statement_name": "statementName",
|
|
2765
|
+
},
|
|
2766
|
+
)
|
|
2767
|
+
class RedshiftQueryProps:
|
|
2768
|
+
def __init__(
|
|
2769
|
+
self,
|
|
2770
|
+
*,
|
|
2771
|
+
database: builtins.str,
|
|
2772
|
+
sql: typing.Sequence[builtins.str],
|
|
2773
|
+
db_user: typing.Optional[builtins.str] = None,
|
|
2774
|
+
dead_letter_queue: typing.Optional[_IQueue_7ed6f679] = None,
|
|
2775
|
+
input: typing.Optional[_RuleTargetInput_6beca786] = None,
|
|
2776
|
+
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
2777
|
+
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
2778
|
+
send_event_bridge_event: typing.Optional[builtins.bool] = None,
|
|
2779
|
+
statement_name: typing.Optional[builtins.str] = None,
|
|
2780
|
+
) -> None:
|
|
2781
|
+
'''Configuration properties of an Amazon Redshift Query event.
|
|
2782
|
+
|
|
2783
|
+
:param database: The Amazon Redshift database to run the query against.
|
|
2784
|
+
:param sql: The SQL queries to be executed. Each query is run sequentially within a single transaction; the next query in the array will only execute after the previous one has successfully completed. - When multiple sql queries are included, this will use the ``batchExecuteStatement`` API. Therefore, if any statement fails, the entire transaction is rolled back. - If a single SQL statement is to be executed, this will use the ``executeStatement`` API. Default: - No SQL query is specified
|
|
2785
|
+
:param db_user: The Amazon Redshift database user to run the query as. This is required when authenticating via temporary credentials. Default: - No Database user is specified
|
|
2786
|
+
:param dead_letter_queue: The queue to be used as dead letter queue. Default: - No dead letter queue is specified
|
|
2787
|
+
:param input: The input to the state machine execution. Default: - the entire EventBridge event
|
|
2788
|
+
:param role: The IAM role to be used to execute the SQL statement. Default: - a new role will be created.
|
|
2789
|
+
:param secret: The secret containing the password for the database user. This is required when authenticating via Secrets Manager. If the full secret ARN is not specified, this will instead use the secret name. Default: - No secret is specified
|
|
2790
|
+
:param send_event_bridge_event: Should an event be sent back to Event Bridge when the SQL statement is executed. Default: false
|
|
2791
|
+
:param statement_name: The name of the SQL statement. You can name the SQL statement for identitfication purposes. If you would like Amazon Redshift to identify the Event Bridge rule, and present it in the Amazon Redshift console, append a ``QS2-`` prefix to the statement name. Default: - No statement name is specified
|
|
2792
|
+
|
|
2793
|
+
:exampleMetadata: infused
|
|
2794
|
+
|
|
2795
|
+
Example::
|
|
2796
|
+
|
|
2797
|
+
import aws_cdk.aws_redshiftserverless as redshiftserverless
|
|
2798
|
+
|
|
2799
|
+
# workgroup: redshiftserverless.CfnWorkgroup
|
|
2800
|
+
|
|
2801
|
+
|
|
2802
|
+
rule = events.Rule(self, "Rule",
|
|
2803
|
+
schedule=events.Schedule.rate(cdk.Duration.hours(1))
|
|
2804
|
+
)
|
|
2805
|
+
|
|
2806
|
+
dlq = sqs.Queue(self, "DeadLetterQueue")
|
|
2807
|
+
|
|
2808
|
+
rule.add_target(targets.RedshiftQuery(workgroup.attr_workgroup_workgroup_arn,
|
|
2809
|
+
database="dev",
|
|
2810
|
+
dead_letter_queue=dlq,
|
|
2811
|
+
sql=["SELECT * FROM foo", "SELECT * FROM baz"]
|
|
2812
|
+
))
|
|
2813
|
+
'''
|
|
2814
|
+
if __debug__:
|
|
2815
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d13f81540e4b5fba1ebd8aafeb69150df8060d4625c37631f59f81095b2a27b2)
|
|
2816
|
+
check_type(argname="argument database", value=database, expected_type=type_hints["database"])
|
|
2817
|
+
check_type(argname="argument sql", value=sql, expected_type=type_hints["sql"])
|
|
2818
|
+
check_type(argname="argument db_user", value=db_user, expected_type=type_hints["db_user"])
|
|
2819
|
+
check_type(argname="argument dead_letter_queue", value=dead_letter_queue, expected_type=type_hints["dead_letter_queue"])
|
|
2820
|
+
check_type(argname="argument input", value=input, expected_type=type_hints["input"])
|
|
2821
|
+
check_type(argname="argument role", value=role, expected_type=type_hints["role"])
|
|
2822
|
+
check_type(argname="argument secret", value=secret, expected_type=type_hints["secret"])
|
|
2823
|
+
check_type(argname="argument send_event_bridge_event", value=send_event_bridge_event, expected_type=type_hints["send_event_bridge_event"])
|
|
2824
|
+
check_type(argname="argument statement_name", value=statement_name, expected_type=type_hints["statement_name"])
|
|
2825
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2826
|
+
"database": database,
|
|
2827
|
+
"sql": sql,
|
|
2828
|
+
}
|
|
2829
|
+
if db_user is not None:
|
|
2830
|
+
self._values["db_user"] = db_user
|
|
2831
|
+
if dead_letter_queue is not None:
|
|
2832
|
+
self._values["dead_letter_queue"] = dead_letter_queue
|
|
2833
|
+
if input is not None:
|
|
2834
|
+
self._values["input"] = input
|
|
2835
|
+
if role is not None:
|
|
2836
|
+
self._values["role"] = role
|
|
2837
|
+
if secret is not None:
|
|
2838
|
+
self._values["secret"] = secret
|
|
2839
|
+
if send_event_bridge_event is not None:
|
|
2840
|
+
self._values["send_event_bridge_event"] = send_event_bridge_event
|
|
2841
|
+
if statement_name is not None:
|
|
2842
|
+
self._values["statement_name"] = statement_name
|
|
2843
|
+
|
|
2844
|
+
@builtins.property
|
|
2845
|
+
def database(self) -> builtins.str:
|
|
2846
|
+
'''The Amazon Redshift database to run the query against.'''
|
|
2847
|
+
result = self._values.get("database")
|
|
2848
|
+
assert result is not None, "Required property 'database' is missing"
|
|
2849
|
+
return typing.cast(builtins.str, result)
|
|
2850
|
+
|
|
2851
|
+
@builtins.property
|
|
2852
|
+
def sql(self) -> typing.List[builtins.str]:
|
|
2853
|
+
'''The SQL queries to be executed.
|
|
2854
|
+
|
|
2855
|
+
Each query is run sequentially within a single transaction; the next query in the array will only execute after the previous one has successfully completed.
|
|
2856
|
+
|
|
2857
|
+
- When multiple sql queries are included, this will use the ``batchExecuteStatement`` API. Therefore, if any statement fails, the entire transaction is rolled back.
|
|
2858
|
+
- If a single SQL statement is to be executed, this will use the ``executeStatement`` API.
|
|
2859
|
+
|
|
2860
|
+
:default: - No SQL query is specified
|
|
2861
|
+
'''
|
|
2862
|
+
result = self._values.get("sql")
|
|
2863
|
+
assert result is not None, "Required property 'sql' is missing"
|
|
2864
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
2865
|
+
|
|
2866
|
+
@builtins.property
|
|
2867
|
+
def db_user(self) -> typing.Optional[builtins.str]:
|
|
2868
|
+
'''The Amazon Redshift database user to run the query as.
|
|
2869
|
+
|
|
2870
|
+
This is required when authenticating via temporary credentials.
|
|
2871
|
+
|
|
2872
|
+
:default: - No Database user is specified
|
|
2873
|
+
'''
|
|
2874
|
+
result = self._values.get("db_user")
|
|
2875
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2876
|
+
|
|
2877
|
+
@builtins.property
|
|
2878
|
+
def dead_letter_queue(self) -> typing.Optional[_IQueue_7ed6f679]:
|
|
2879
|
+
'''The queue to be used as dead letter queue.
|
|
2880
|
+
|
|
2881
|
+
:default: - No dead letter queue is specified
|
|
2882
|
+
'''
|
|
2883
|
+
result = self._values.get("dead_letter_queue")
|
|
2884
|
+
return typing.cast(typing.Optional[_IQueue_7ed6f679], result)
|
|
2885
|
+
|
|
2886
|
+
@builtins.property
|
|
2887
|
+
def input(self) -> typing.Optional[_RuleTargetInput_6beca786]:
|
|
2888
|
+
'''The input to the state machine execution.
|
|
2889
|
+
|
|
2890
|
+
:default: - the entire EventBridge event
|
|
2891
|
+
'''
|
|
2892
|
+
result = self._values.get("input")
|
|
2893
|
+
return typing.cast(typing.Optional[_RuleTargetInput_6beca786], result)
|
|
2894
|
+
|
|
2895
|
+
@builtins.property
|
|
2896
|
+
def role(self) -> typing.Optional[_IRole_235f5d8e]:
|
|
2897
|
+
'''The IAM role to be used to execute the SQL statement.
|
|
2898
|
+
|
|
2899
|
+
:default: - a new role will be created.
|
|
2900
|
+
'''
|
|
2901
|
+
result = self._values.get("role")
|
|
2902
|
+
return typing.cast(typing.Optional[_IRole_235f5d8e], result)
|
|
2903
|
+
|
|
2904
|
+
@builtins.property
|
|
2905
|
+
def secret(self) -> typing.Optional[_ISecret_6e020e6a]:
|
|
2906
|
+
'''The secret containing the password for the database user.
|
|
2907
|
+
|
|
2908
|
+
This is required when authenticating via Secrets Manager.
|
|
2909
|
+
If the full secret ARN is not specified, this will instead use the secret name.
|
|
2910
|
+
|
|
2911
|
+
:default: - No secret is specified
|
|
2912
|
+
'''
|
|
2913
|
+
result = self._values.get("secret")
|
|
2914
|
+
return typing.cast(typing.Optional[_ISecret_6e020e6a], result)
|
|
2915
|
+
|
|
2916
|
+
@builtins.property
|
|
2917
|
+
def send_event_bridge_event(self) -> typing.Optional[builtins.bool]:
|
|
2918
|
+
'''Should an event be sent back to Event Bridge when the SQL statement is executed.
|
|
2919
|
+
|
|
2920
|
+
:default: false
|
|
2921
|
+
'''
|
|
2922
|
+
result = self._values.get("send_event_bridge_event")
|
|
2923
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
2924
|
+
|
|
2925
|
+
@builtins.property
|
|
2926
|
+
def statement_name(self) -> typing.Optional[builtins.str]:
|
|
2927
|
+
'''The name of the SQL statement.
|
|
2928
|
+
|
|
2929
|
+
You can name the SQL statement for identitfication purposes. If you would like Amazon Redshift to identify the Event Bridge rule, and present it in the Amazon Redshift console, append a ``QS2-`` prefix to the statement name.
|
|
2930
|
+
|
|
2931
|
+
:default: - No statement name is specified
|
|
2932
|
+
'''
|
|
2933
|
+
result = self._values.get("statement_name")
|
|
2934
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2935
|
+
|
|
2936
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2937
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2938
|
+
|
|
2939
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2940
|
+
return not (rhs == self)
|
|
2941
|
+
|
|
2942
|
+
def __repr__(self) -> str:
|
|
2943
|
+
return "RedshiftQueryProps(%s)" % ", ".join(
|
|
2944
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2945
|
+
)
|
|
2946
|
+
|
|
2947
|
+
|
|
2631
2948
|
@jsii.implements(_IRuleTarget_7a91f454)
|
|
2632
2949
|
class SfnStateMachine(
|
|
2633
2950
|
metaclass=jsii.JSIIMeta,
|
|
@@ -5197,6 +5514,8 @@ __all__ = [
|
|
|
5197
5514
|
"LogGroupProps",
|
|
5198
5515
|
"LogGroupTargetInput",
|
|
5199
5516
|
"LogGroupTargetInputOptions",
|
|
5517
|
+
"RedshiftQuery",
|
|
5518
|
+
"RedshiftQueryProps",
|
|
5200
5519
|
"SfnStateMachine",
|
|
5201
5520
|
"SfnStateMachineProps",
|
|
5202
5521
|
"SnsTopic",
|
|
@@ -5524,6 +5843,44 @@ def _typecheckingstub__12b2a1770edaa7f8ba5d731e85339d65d757aa25fd54d6c6be4746c6a
|
|
|
5524
5843
|
"""Type checking stubs"""
|
|
5525
5844
|
pass
|
|
5526
5845
|
|
|
5846
|
+
def _typecheckingstub__6f991f630fb494b0dbf6dd8dd11dec71e3b3618d520bce2a1761a05620a3d899(
|
|
5847
|
+
cluster_arn: builtins.str,
|
|
5848
|
+
*,
|
|
5849
|
+
database: builtins.str,
|
|
5850
|
+
sql: typing.Sequence[builtins.str],
|
|
5851
|
+
db_user: typing.Optional[builtins.str] = None,
|
|
5852
|
+
dead_letter_queue: typing.Optional[_IQueue_7ed6f679] = None,
|
|
5853
|
+
input: typing.Optional[_RuleTargetInput_6beca786] = None,
|
|
5854
|
+
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
5855
|
+
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
5856
|
+
send_event_bridge_event: typing.Optional[builtins.bool] = None,
|
|
5857
|
+
statement_name: typing.Optional[builtins.str] = None,
|
|
5858
|
+
) -> None:
|
|
5859
|
+
"""Type checking stubs"""
|
|
5860
|
+
pass
|
|
5861
|
+
|
|
5862
|
+
def _typecheckingstub__39a86a8b0444f7c45c252e76fda9d4157fe34d2c363d4a99075556e92c234689(
|
|
5863
|
+
rule: _IRule_af9e3d28,
|
|
5864
|
+
_id: typing.Optional[builtins.str] = None,
|
|
5865
|
+
) -> None:
|
|
5866
|
+
"""Type checking stubs"""
|
|
5867
|
+
pass
|
|
5868
|
+
|
|
5869
|
+
def _typecheckingstub__d13f81540e4b5fba1ebd8aafeb69150df8060d4625c37631f59f81095b2a27b2(
|
|
5870
|
+
*,
|
|
5871
|
+
database: builtins.str,
|
|
5872
|
+
sql: typing.Sequence[builtins.str],
|
|
5873
|
+
db_user: typing.Optional[builtins.str] = None,
|
|
5874
|
+
dead_letter_queue: typing.Optional[_IQueue_7ed6f679] = None,
|
|
5875
|
+
input: typing.Optional[_RuleTargetInput_6beca786] = None,
|
|
5876
|
+
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
5877
|
+
secret: typing.Optional[_ISecret_6e020e6a] = None,
|
|
5878
|
+
send_event_bridge_event: typing.Optional[builtins.bool] = None,
|
|
5879
|
+
statement_name: typing.Optional[builtins.str] = None,
|
|
5880
|
+
) -> None:
|
|
5881
|
+
"""Type checking stubs"""
|
|
5882
|
+
pass
|
|
5883
|
+
|
|
5527
5884
|
def _typecheckingstub__257316eeebae5ef658a5b570361035fdfb5ab37e96962b24c2e814b0702cba68(
|
|
5528
5885
|
machine: _IStateMachine_73e8d2b0,
|
|
5529
5886
|
*,
|
aws_cdk/aws_glue/__init__.py
CHANGED
|
@@ -4652,14 +4652,6 @@ class CfnDatabase(
|
|
|
4652
4652
|
'''The CloudFormation resource type name for this resource class.'''
|
|
4653
4653
|
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
4654
4654
|
|
|
4655
|
-
@builtins.property
|
|
4656
|
-
@jsii.member(jsii_name="attrId")
|
|
4657
|
-
def attr_id(self) -> builtins.str:
|
|
4658
|
-
'''
|
|
4659
|
-
:cloudformationAttribute: Id
|
|
4660
|
-
'''
|
|
4661
|
-
return typing.cast(builtins.str, jsii.get(self, "attrId"))
|
|
4662
|
-
|
|
4663
4655
|
@builtins.property
|
|
4664
4656
|
@jsii.member(jsii_name="cfnProperties")
|
|
4665
4657
|
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
@@ -2027,12 +2027,13 @@ class CfnDataflowEndpointGroup(
|
|
|
2027
2027
|
ingress_address: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDataflowEndpointGroup.RangedConnectionDetailsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2028
2028
|
name: typing.Optional[builtins.str] = None,
|
|
2029
2029
|
) -> None:
|
|
2030
|
-
'''
|
|
2031
|
-
|
|
2032
|
-
:param
|
|
2033
|
-
:param
|
|
2034
|
-
:param
|
|
2035
|
-
:param
|
|
2030
|
+
'''Information about AwsGroundStationAgentEndpoint.
|
|
2031
|
+
|
|
2032
|
+
:param agent_status: The status of AgentEndpoint.
|
|
2033
|
+
:param audit_results: The results of the audit.
|
|
2034
|
+
:param egress_address: The egress address of AgentEndpoint.
|
|
2035
|
+
:param ingress_address: The ingress address of AgentEndpoint.
|
|
2036
|
+
:param name: Name string associated with AgentEndpoint. Used as a human-readable identifier for AgentEndpoint.
|
|
2036
2037
|
|
|
2037
2038
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html
|
|
2038
2039
|
:exampleMetadata: fixture=_generated
|
|
@@ -2087,7 +2088,8 @@ class CfnDataflowEndpointGroup(
|
|
|
2087
2088
|
|
|
2088
2089
|
@builtins.property
|
|
2089
2090
|
def agent_status(self) -> typing.Optional[builtins.str]:
|
|
2090
|
-
'''
|
|
2091
|
+
'''The status of AgentEndpoint.
|
|
2092
|
+
|
|
2091
2093
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-agentstatus
|
|
2092
2094
|
'''
|
|
2093
2095
|
result = self._values.get("agent_status")
|
|
@@ -2095,7 +2097,8 @@ class CfnDataflowEndpointGroup(
|
|
|
2095
2097
|
|
|
2096
2098
|
@builtins.property
|
|
2097
2099
|
def audit_results(self) -> typing.Optional[builtins.str]:
|
|
2098
|
-
'''
|
|
2100
|
+
'''The results of the audit.
|
|
2101
|
+
|
|
2099
2102
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-auditresults
|
|
2100
2103
|
'''
|
|
2101
2104
|
result = self._values.get("audit_results")
|
|
@@ -2105,7 +2108,8 @@ class CfnDataflowEndpointGroup(
|
|
|
2105
2108
|
def egress_address(
|
|
2106
2109
|
self,
|
|
2107
2110
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataflowEndpointGroup.ConnectionDetailsProperty"]]:
|
|
2108
|
-
'''
|
|
2111
|
+
'''The egress address of AgentEndpoint.
|
|
2112
|
+
|
|
2109
2113
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-egressaddress
|
|
2110
2114
|
'''
|
|
2111
2115
|
result = self._values.get("egress_address")
|
|
@@ -2115,7 +2119,8 @@ class CfnDataflowEndpointGroup(
|
|
|
2115
2119
|
def ingress_address(
|
|
2116
2120
|
self,
|
|
2117
2121
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDataflowEndpointGroup.RangedConnectionDetailsProperty"]]:
|
|
2118
|
-
'''
|
|
2122
|
+
'''The ingress address of AgentEndpoint.
|
|
2123
|
+
|
|
2119
2124
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-ingressaddress
|
|
2120
2125
|
'''
|
|
2121
2126
|
result = self._values.get("ingress_address")
|
|
@@ -2123,7 +2128,10 @@ class CfnDataflowEndpointGroup(
|
|
|
2123
2128
|
|
|
2124
2129
|
@builtins.property
|
|
2125
2130
|
def name(self) -> typing.Optional[builtins.str]:
|
|
2126
|
-
'''
|
|
2131
|
+
'''Name string associated with AgentEndpoint.
|
|
2132
|
+
|
|
2133
|
+
Used as a human-readable identifier for AgentEndpoint.
|
|
2134
|
+
|
|
2127
2135
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint.html#cfn-groundstation-dataflowendpointgroup-awsgroundstationagentendpoint-name
|
|
2128
2136
|
'''
|
|
2129
2137
|
result = self._values.get("name")
|
|
@@ -3350,9 +3358,10 @@ class CfnMissionProfile(
|
|
|
3350
3358
|
kms_alias_arn: typing.Optional[builtins.str] = None,
|
|
3351
3359
|
kms_key_arn: typing.Optional[builtins.str] = None,
|
|
3352
3360
|
) -> None:
|
|
3353
|
-
'''
|
|
3354
|
-
|
|
3355
|
-
:param
|
|
3361
|
+
'''KMS key info.
|
|
3362
|
+
|
|
3363
|
+
:param kms_alias_arn: KMS Alias Arn.
|
|
3364
|
+
:param kms_key_arn: KMS Key Arn.
|
|
3356
3365
|
|
|
3357
3366
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html
|
|
3358
3367
|
:exampleMetadata: fixture=_generated
|
|
@@ -3380,7 +3389,8 @@ class CfnMissionProfile(
|
|
|
3380
3389
|
|
|
3381
3390
|
@builtins.property
|
|
3382
3391
|
def kms_alias_arn(self) -> typing.Optional[builtins.str]:
|
|
3383
|
-
'''
|
|
3392
|
+
'''KMS Alias Arn.
|
|
3393
|
+
|
|
3384
3394
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html#cfn-groundstation-missionprofile-streamskmskey-kmsaliasarn
|
|
3385
3395
|
'''
|
|
3386
3396
|
result = self._values.get("kms_alias_arn")
|
|
@@ -3388,7 +3398,8 @@ class CfnMissionProfile(
|
|
|
3388
3398
|
|
|
3389
3399
|
@builtins.property
|
|
3390
3400
|
def kms_key_arn(self) -> typing.Optional[builtins.str]:
|
|
3391
|
-
'''
|
|
3401
|
+
'''KMS Key Arn.
|
|
3402
|
+
|
|
3392
3403
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html#cfn-groundstation-missionprofile-streamskmskey-kmskeyarn
|
|
3393
3404
|
'''
|
|
3394
3405
|
result = self._values.get("kms_key_arn")
|