aws-cdk-lib 2.143.1__py3-none-any.whl → 2.145.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 +1 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.143.1.jsii.tgz → aws-cdk-lib@2.145.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +27 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +28 -0
- aws_cdk/aws_appconfig/__init__.py +132 -1
- aws_cdk/aws_autoscaling/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +48 -0
- aws_cdk/aws_chatbot/__init__.py +149 -2
- aws_cdk/aws_cloudfront/experimental/__init__.py +65 -9
- aws_cdk/aws_codebuild/__init__.py +801 -16
- aws_cdk/aws_config/__init__.py +1305 -45
- aws_cdk/aws_dynamodb/__init__.py +309 -3
- aws_cdk/aws_ec2/__init__.py +112 -31
- aws_cdk/aws_ecs_patterns/__init__.py +89 -7
- aws_cdk/aws_eks/__init__.py +185 -41
- aws_cdk/aws_fsx/__init__.py +4 -4
- aws_cdk/aws_glue/__init__.py +39 -0
- aws_cdk/aws_iam/__init__.py +3 -3
- aws_cdk/aws_lambda/__init__.py +605 -42
- aws_cdk/aws_lambda_nodejs/__init__.py +160 -13
- aws_cdk/aws_logs/__init__.py +114 -8
- aws_cdk/aws_logs_destinations/__init__.py +11 -9
- aws_cdk/aws_mediaconnect/__init__.py +2 -6
- aws_cdk/aws_medialive/__init__.py +20 -2
- aws_cdk/aws_mediapackagev2/__init__.py +476 -0
- aws_cdk/aws_rds/__init__.py +27 -19
- aws_cdk/aws_route53/__init__.py +3 -3
- aws_cdk/aws_s3/__init__.py +21 -0
- aws_cdk/aws_s3_deployment/__init__.py +3 -2
- aws_cdk/aws_securityhub/__init__.py +2415 -374
- aws_cdk/aws_securitylake/__init__.py +179 -314
- aws_cdk/aws_sqs/__init__.py +2 -2
- aws_cdk/aws_stepfunctions/__init__.py +53 -24
- aws_cdk/aws_stepfunctions_tasks/__init__.py +763 -16
- aws_cdk/pipelines/__init__.py +2 -0
- aws_cdk/triggers/__init__.py +65 -9
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/RECORD +43 -43
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_chatbot/__init__.py
CHANGED
|
@@ -47,6 +47,24 @@ correct log retention period (never expire, by default).
|
|
|
47
47
|
|
|
48
48
|
By default slack channel will use `AdministratorAccess` managed policy as guardrail policy.
|
|
49
49
|
The `guardrailPolicies` property can be used to set a different set of managed policies.
|
|
50
|
+
|
|
51
|
+
## User Role Requirement
|
|
52
|
+
|
|
53
|
+
Administrators can [require user roles](https://docs.aws.amazon.com/chatbot/latest/adminguide/understanding-permissions.html#user-role-requirement) for all current channel members and channels and all channels created in the future by enabling a user role requirement.
|
|
54
|
+
|
|
55
|
+
You can configure this feature by setting the `userRoleRequired` property.
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
import aws_cdk.aws_chatbot as chatbot
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
slack_channel = chatbot.SlackChannelConfiguration(self, "MySlackChannel",
|
|
62
|
+
slack_channel_configuration_name="YOUR_CHANNEL_NAME",
|
|
63
|
+
slack_workspace_id="YOUR_SLACK_WORKSPACE_ID",
|
|
64
|
+
slack_channel_id="YOUR_SLACK_CHANNEL_ID",
|
|
65
|
+
user_role_required=True
|
|
66
|
+
)
|
|
67
|
+
```
|
|
50
68
|
'''
|
|
51
69
|
from pkgutil import extend_path
|
|
52
70
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -68,11 +86,14 @@ from .._jsii import *
|
|
|
68
86
|
import constructs as _constructs_77d1e7e8
|
|
69
87
|
from .. import (
|
|
70
88
|
CfnResource as _CfnResource_9df397a6,
|
|
89
|
+
CfnTag as _CfnTag_f6864754,
|
|
71
90
|
Duration as _Duration_4839e8c3,
|
|
72
91
|
IInspectable as _IInspectable_c2943556,
|
|
73
92
|
IResolvable as _IResolvable_da3f097b,
|
|
74
93
|
IResource as _IResource_c80c4260,
|
|
94
|
+
ITaggableV2 as _ITaggableV2_4e6798f8,
|
|
75
95
|
Resource as _Resource_45bc6135,
|
|
96
|
+
TagManager as _TagManager_0a598cb3,
|
|
76
97
|
TreeInspector as _TreeInspector_488e0dd5,
|
|
77
98
|
)
|
|
78
99
|
from ..aws_cloudwatch import (
|
|
@@ -98,7 +119,7 @@ from ..aws_logs import (
|
|
|
98
119
|
from ..aws_sns import ITopic as _ITopic_9eca4852
|
|
99
120
|
|
|
100
121
|
|
|
101
|
-
@jsii.implements(_IInspectable_c2943556)
|
|
122
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
102
123
|
class CfnMicrosoftTeamsChannelConfiguration(
|
|
103
124
|
_CfnResource_9df397a6,
|
|
104
125
|
metaclass=jsii.JSIIMeta,
|
|
@@ -129,6 +150,10 @@ class CfnMicrosoftTeamsChannelConfiguration(
|
|
|
129
150
|
guardrail_policies=["guardrailPolicies"],
|
|
130
151
|
logging_level="loggingLevel",
|
|
131
152
|
sns_topic_arns=["snsTopicArns"],
|
|
153
|
+
tags=[CfnTag(
|
|
154
|
+
key="key",
|
|
155
|
+
value="value"
|
|
156
|
+
)],
|
|
132
157
|
user_role_required=False
|
|
133
158
|
)
|
|
134
159
|
'''
|
|
@@ -146,6 +171,7 @@ class CfnMicrosoftTeamsChannelConfiguration(
|
|
|
146
171
|
guardrail_policies: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
147
172
|
logging_level: typing.Optional[builtins.str] = None,
|
|
148
173
|
sns_topic_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
174
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
149
175
|
user_role_required: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
150
176
|
) -> None:
|
|
151
177
|
'''
|
|
@@ -159,6 +185,7 @@ class CfnMicrosoftTeamsChannelConfiguration(
|
|
|
159
185
|
:param guardrail_policies: The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
|
|
160
186
|
:param logging_level: Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. Logging levels include ``ERROR`` , ``INFO`` , or ``NONE`` . Default: - "NONE"
|
|
161
187
|
:param sns_topic_arns: The ARNs of the SNS topics that deliver notifications to AWS Chatbot .
|
|
188
|
+
:param tags: The tags to add to the configuration.
|
|
162
189
|
:param user_role_required: Enables use of a user role requirement in your chat configuration. Default: - false
|
|
163
190
|
'''
|
|
164
191
|
if __debug__:
|
|
@@ -174,6 +201,7 @@ class CfnMicrosoftTeamsChannelConfiguration(
|
|
|
174
201
|
guardrail_policies=guardrail_policies,
|
|
175
202
|
logging_level=logging_level,
|
|
176
203
|
sns_topic_arns=sns_topic_arns,
|
|
204
|
+
tags=tags,
|
|
177
205
|
user_role_required=user_role_required,
|
|
178
206
|
)
|
|
179
207
|
|
|
@@ -218,6 +246,12 @@ class CfnMicrosoftTeamsChannelConfiguration(
|
|
|
218
246
|
'''
|
|
219
247
|
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
220
248
|
|
|
249
|
+
@builtins.property
|
|
250
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
251
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
252
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
253
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
254
|
+
|
|
221
255
|
@builtins.property
|
|
222
256
|
@jsii.member(jsii_name="cfnProperties")
|
|
223
257
|
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
@@ -333,6 +367,19 @@ class CfnMicrosoftTeamsChannelConfiguration(
|
|
|
333
367
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
334
368
|
jsii.set(self, "snsTopicArns", value)
|
|
335
369
|
|
|
370
|
+
@builtins.property
|
|
371
|
+
@jsii.member(jsii_name="tags")
|
|
372
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
373
|
+
'''The tags to add to the configuration.'''
|
|
374
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
375
|
+
|
|
376
|
+
@tags.setter
|
|
377
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
378
|
+
if __debug__:
|
|
379
|
+
type_hints = typing.get_type_hints(_typecheckingstub__85a622952d9fea475beb11aa3753f5147c076bc04254dc91a4dbc14ee94b8b42)
|
|
380
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
381
|
+
jsii.set(self, "tags", value)
|
|
382
|
+
|
|
336
383
|
@builtins.property
|
|
337
384
|
@jsii.member(jsii_name="userRoleRequired")
|
|
338
385
|
def user_role_required(
|
|
@@ -364,6 +411,7 @@ class CfnMicrosoftTeamsChannelConfiguration(
|
|
|
364
411
|
"guardrail_policies": "guardrailPolicies",
|
|
365
412
|
"logging_level": "loggingLevel",
|
|
366
413
|
"sns_topic_arns": "snsTopicArns",
|
|
414
|
+
"tags": "tags",
|
|
367
415
|
"user_role_required": "userRoleRequired",
|
|
368
416
|
},
|
|
369
417
|
)
|
|
@@ -379,6 +427,7 @@ class CfnMicrosoftTeamsChannelConfigurationProps:
|
|
|
379
427
|
guardrail_policies: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
380
428
|
logging_level: typing.Optional[builtins.str] = None,
|
|
381
429
|
sns_topic_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
430
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
382
431
|
user_role_required: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
383
432
|
) -> None:
|
|
384
433
|
'''Properties for defining a ``CfnMicrosoftTeamsChannelConfiguration``.
|
|
@@ -391,6 +440,7 @@ class CfnMicrosoftTeamsChannelConfigurationProps:
|
|
|
391
440
|
:param guardrail_policies: The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
|
|
392
441
|
:param logging_level: Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. Logging levels include ``ERROR`` , ``INFO`` , or ``NONE`` . Default: - "NONE"
|
|
393
442
|
:param sns_topic_arns: The ARNs of the SNS topics that deliver notifications to AWS Chatbot .
|
|
443
|
+
:param tags: The tags to add to the configuration.
|
|
394
444
|
:param user_role_required: Enables use of a user role requirement in your chat configuration. Default: - false
|
|
395
445
|
|
|
396
446
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html
|
|
@@ -413,6 +463,10 @@ class CfnMicrosoftTeamsChannelConfigurationProps:
|
|
|
413
463
|
guardrail_policies=["guardrailPolicies"],
|
|
414
464
|
logging_level="loggingLevel",
|
|
415
465
|
sns_topic_arns=["snsTopicArns"],
|
|
466
|
+
tags=[CfnTag(
|
|
467
|
+
key="key",
|
|
468
|
+
value="value"
|
|
469
|
+
)],
|
|
416
470
|
user_role_required=False
|
|
417
471
|
)
|
|
418
472
|
'''
|
|
@@ -426,6 +480,7 @@ class CfnMicrosoftTeamsChannelConfigurationProps:
|
|
|
426
480
|
check_type(argname="argument guardrail_policies", value=guardrail_policies, expected_type=type_hints["guardrail_policies"])
|
|
427
481
|
check_type(argname="argument logging_level", value=logging_level, expected_type=type_hints["logging_level"])
|
|
428
482
|
check_type(argname="argument sns_topic_arns", value=sns_topic_arns, expected_type=type_hints["sns_topic_arns"])
|
|
483
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
429
484
|
check_type(argname="argument user_role_required", value=user_role_required, expected_type=type_hints["user_role_required"])
|
|
430
485
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
431
486
|
"configuration_name": configuration_name,
|
|
@@ -440,6 +495,8 @@ class CfnMicrosoftTeamsChannelConfigurationProps:
|
|
|
440
495
|
self._values["logging_level"] = logging_level
|
|
441
496
|
if sns_topic_arns is not None:
|
|
442
497
|
self._values["sns_topic_arns"] = sns_topic_arns
|
|
498
|
+
if tags is not None:
|
|
499
|
+
self._values["tags"] = tags
|
|
443
500
|
if user_role_required is not None:
|
|
444
501
|
self._values["user_role_required"] = user_role_required
|
|
445
502
|
|
|
@@ -534,6 +591,15 @@ class CfnMicrosoftTeamsChannelConfigurationProps:
|
|
|
534
591
|
result = self._values.get("sns_topic_arns")
|
|
535
592
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
536
593
|
|
|
594
|
+
@builtins.property
|
|
595
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
596
|
+
'''The tags to add to the configuration.
|
|
597
|
+
|
|
598
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-microsoftteamschannelconfiguration.html#cfn-chatbot-microsoftteamschannelconfiguration-tags
|
|
599
|
+
'''
|
|
600
|
+
result = self._values.get("tags")
|
|
601
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
602
|
+
|
|
537
603
|
@builtins.property
|
|
538
604
|
def user_role_required(
|
|
539
605
|
self,
|
|
@@ -559,7 +625,7 @@ class CfnMicrosoftTeamsChannelConfigurationProps:
|
|
|
559
625
|
)
|
|
560
626
|
|
|
561
627
|
|
|
562
|
-
@jsii.implements(_IInspectable_c2943556)
|
|
628
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
563
629
|
class CfnSlackChannelConfiguration(
|
|
564
630
|
_CfnResource_9df397a6,
|
|
565
631
|
metaclass=jsii.JSIIMeta,
|
|
@@ -589,6 +655,10 @@ class CfnSlackChannelConfiguration(
|
|
|
589
655
|
guardrail_policies=["guardrailPolicies"],
|
|
590
656
|
logging_level="loggingLevel",
|
|
591
657
|
sns_topic_arns=["snsTopicArns"],
|
|
658
|
+
tags=[CfnTag(
|
|
659
|
+
key="key",
|
|
660
|
+
value="value"
|
|
661
|
+
)],
|
|
592
662
|
user_role_required=False
|
|
593
663
|
)
|
|
594
664
|
'''
|
|
@@ -605,6 +675,7 @@ class CfnSlackChannelConfiguration(
|
|
|
605
675
|
guardrail_policies: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
606
676
|
logging_level: typing.Optional[builtins.str] = None,
|
|
607
677
|
sns_topic_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
678
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
608
679
|
user_role_required: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
609
680
|
) -> None:
|
|
610
681
|
'''
|
|
@@ -617,6 +688,7 @@ class CfnSlackChannelConfiguration(
|
|
|
617
688
|
:param guardrail_policies: The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
|
|
618
689
|
:param logging_level: Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. Logging levels include ``ERROR`` , ``INFO`` , or ``NONE`` . Default: - "NONE"
|
|
619
690
|
:param sns_topic_arns: The ARNs of the SNS topics that deliver notifications to AWS Chatbot .
|
|
691
|
+
:param tags: The tags to add to the configuration.
|
|
620
692
|
:param user_role_required: Enables use of a user role requirement in your chat configuration. Default: - false
|
|
621
693
|
'''
|
|
622
694
|
if __debug__:
|
|
@@ -631,6 +703,7 @@ class CfnSlackChannelConfiguration(
|
|
|
631
703
|
guardrail_policies=guardrail_policies,
|
|
632
704
|
logging_level=logging_level,
|
|
633
705
|
sns_topic_arns=sns_topic_arns,
|
|
706
|
+
tags=tags,
|
|
634
707
|
user_role_required=user_role_required,
|
|
635
708
|
)
|
|
636
709
|
|
|
@@ -675,6 +748,12 @@ class CfnSlackChannelConfiguration(
|
|
|
675
748
|
'''
|
|
676
749
|
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
677
750
|
|
|
751
|
+
@builtins.property
|
|
752
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
753
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
754
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
755
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
756
|
+
|
|
678
757
|
@builtins.property
|
|
679
758
|
@jsii.member(jsii_name="cfnProperties")
|
|
680
759
|
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
@@ -777,6 +856,19 @@ class CfnSlackChannelConfiguration(
|
|
|
777
856
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
778
857
|
jsii.set(self, "snsTopicArns", value)
|
|
779
858
|
|
|
859
|
+
@builtins.property
|
|
860
|
+
@jsii.member(jsii_name="tags")
|
|
861
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
862
|
+
'''The tags to add to the configuration.'''
|
|
863
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
864
|
+
|
|
865
|
+
@tags.setter
|
|
866
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
867
|
+
if __debug__:
|
|
868
|
+
type_hints = typing.get_type_hints(_typecheckingstub__eb9439037db7df11093794999deef5e51f41aae61f9736ab360d263ab9859fd6)
|
|
869
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
870
|
+
jsii.set(self, "tags", value)
|
|
871
|
+
|
|
780
872
|
@builtins.property
|
|
781
873
|
@jsii.member(jsii_name="userRoleRequired")
|
|
782
874
|
def user_role_required(
|
|
@@ -807,6 +899,7 @@ class CfnSlackChannelConfiguration(
|
|
|
807
899
|
"guardrail_policies": "guardrailPolicies",
|
|
808
900
|
"logging_level": "loggingLevel",
|
|
809
901
|
"sns_topic_arns": "snsTopicArns",
|
|
902
|
+
"tags": "tags",
|
|
810
903
|
"user_role_required": "userRoleRequired",
|
|
811
904
|
},
|
|
812
905
|
)
|
|
@@ -821,6 +914,7 @@ class CfnSlackChannelConfigurationProps:
|
|
|
821
914
|
guardrail_policies: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
822
915
|
logging_level: typing.Optional[builtins.str] = None,
|
|
823
916
|
sns_topic_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
917
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
824
918
|
user_role_required: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
825
919
|
) -> None:
|
|
826
920
|
'''Properties for defining a ``CfnSlackChannelConfiguration``.
|
|
@@ -832,6 +926,7 @@ class CfnSlackChannelConfigurationProps:
|
|
|
832
926
|
:param guardrail_policies: The list of IAM policy ARNs that are applied as channel guardrails. The AWS managed 'AdministratorAccess' policy is applied as a default if this is not set.
|
|
833
927
|
:param logging_level: Specifies the logging level for this configuration. This property affects the log entries pushed to Amazon CloudWatch Logs. Logging levels include ``ERROR`` , ``INFO`` , or ``NONE`` . Default: - "NONE"
|
|
834
928
|
:param sns_topic_arns: The ARNs of the SNS topics that deliver notifications to AWS Chatbot .
|
|
929
|
+
:param tags: The tags to add to the configuration.
|
|
835
930
|
:param user_role_required: Enables use of a user role requirement in your chat configuration. Default: - false
|
|
836
931
|
|
|
837
932
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html
|
|
@@ -853,6 +948,10 @@ class CfnSlackChannelConfigurationProps:
|
|
|
853
948
|
guardrail_policies=["guardrailPolicies"],
|
|
854
949
|
logging_level="loggingLevel",
|
|
855
950
|
sns_topic_arns=["snsTopicArns"],
|
|
951
|
+
tags=[CfnTag(
|
|
952
|
+
key="key",
|
|
953
|
+
value="value"
|
|
954
|
+
)],
|
|
856
955
|
user_role_required=False
|
|
857
956
|
)
|
|
858
957
|
'''
|
|
@@ -865,6 +964,7 @@ class CfnSlackChannelConfigurationProps:
|
|
|
865
964
|
check_type(argname="argument guardrail_policies", value=guardrail_policies, expected_type=type_hints["guardrail_policies"])
|
|
866
965
|
check_type(argname="argument logging_level", value=logging_level, expected_type=type_hints["logging_level"])
|
|
867
966
|
check_type(argname="argument sns_topic_arns", value=sns_topic_arns, expected_type=type_hints["sns_topic_arns"])
|
|
967
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
868
968
|
check_type(argname="argument user_role_required", value=user_role_required, expected_type=type_hints["user_role_required"])
|
|
869
969
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
870
970
|
"configuration_name": configuration_name,
|
|
@@ -878,6 +978,8 @@ class CfnSlackChannelConfigurationProps:
|
|
|
878
978
|
self._values["logging_level"] = logging_level
|
|
879
979
|
if sns_topic_arns is not None:
|
|
880
980
|
self._values["sns_topic_arns"] = sns_topic_arns
|
|
981
|
+
if tags is not None:
|
|
982
|
+
self._values["tags"] = tags
|
|
881
983
|
if user_role_required is not None:
|
|
882
984
|
self._values["user_role_required"] = user_role_required
|
|
883
985
|
|
|
@@ -960,6 +1062,15 @@ class CfnSlackChannelConfigurationProps:
|
|
|
960
1062
|
result = self._values.get("sns_topic_arns")
|
|
961
1063
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
962
1064
|
|
|
1065
|
+
@builtins.property
|
|
1066
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1067
|
+
'''The tags to add to the configuration.
|
|
1068
|
+
|
|
1069
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chatbot-slackchannelconfiguration.html#cfn-chatbot-slackchannelconfiguration-tags
|
|
1070
|
+
'''
|
|
1071
|
+
result = self._values.get("tags")
|
|
1072
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
1073
|
+
|
|
963
1074
|
@builtins.property
|
|
964
1075
|
def user_role_required(
|
|
965
1076
|
self,
|
|
@@ -1208,6 +1319,7 @@ class SlackChannelConfiguration(
|
|
|
1208
1319
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1209
1320
|
notification_topics: typing.Optional[typing.Sequence[_ITopic_9eca4852]] = None,
|
|
1210
1321
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1322
|
+
user_role_required: typing.Optional[builtins.bool] = None,
|
|
1211
1323
|
) -> None:
|
|
1212
1324
|
'''
|
|
1213
1325
|
:param scope: -
|
|
@@ -1222,6 +1334,7 @@ class SlackChannelConfiguration(
|
|
|
1222
1334
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. Default: - A new role is created.
|
|
1223
1335
|
:param notification_topics: The SNS topics that deliver notifications to AWS Chatbot. Default: None
|
|
1224
1336
|
:param role: The permission role of Slack channel configuration. Default: - A role will be created.
|
|
1337
|
+
:param user_role_required: Enables use of a user role requirement in your chat configuration. Default: false
|
|
1225
1338
|
'''
|
|
1226
1339
|
if __debug__:
|
|
1227
1340
|
type_hints = typing.get_type_hints(_typecheckingstub__efdd5da37140f8254b4a44f567a060e15106ce03d4f75880500b5d15d8076be9)
|
|
@@ -1238,6 +1351,7 @@ class SlackChannelConfiguration(
|
|
|
1238
1351
|
log_retention_role=log_retention_role,
|
|
1239
1352
|
notification_topics=notification_topics,
|
|
1240
1353
|
role=role,
|
|
1354
|
+
user_role_required=user_role_required,
|
|
1241
1355
|
)
|
|
1242
1356
|
|
|
1243
1357
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -1425,6 +1539,7 @@ class SlackChannelConfiguration(
|
|
|
1425
1539
|
"log_retention_role": "logRetentionRole",
|
|
1426
1540
|
"notification_topics": "notificationTopics",
|
|
1427
1541
|
"role": "role",
|
|
1542
|
+
"user_role_required": "userRoleRequired",
|
|
1428
1543
|
},
|
|
1429
1544
|
)
|
|
1430
1545
|
class SlackChannelConfigurationProps:
|
|
@@ -1441,6 +1556,7 @@ class SlackChannelConfigurationProps:
|
|
|
1441
1556
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1442
1557
|
notification_topics: typing.Optional[typing.Sequence[_ITopic_9eca4852]] = None,
|
|
1443
1558
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1559
|
+
user_role_required: typing.Optional[builtins.bool] = None,
|
|
1444
1560
|
) -> None:
|
|
1445
1561
|
'''Properties for a new Slack channel configuration.
|
|
1446
1562
|
|
|
@@ -1454,6 +1570,7 @@ class SlackChannelConfigurationProps:
|
|
|
1454
1570
|
:param log_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. Default: - A new role is created.
|
|
1455
1571
|
:param notification_topics: The SNS topics that deliver notifications to AWS Chatbot. Default: None
|
|
1456
1572
|
:param role: The permission role of Slack channel configuration. Default: - A role will be created.
|
|
1573
|
+
:param user_role_required: Enables use of a user role requirement in your chat configuration. Default: false
|
|
1457
1574
|
|
|
1458
1575
|
:exampleMetadata: infused
|
|
1459
1576
|
|
|
@@ -1486,6 +1603,7 @@ class SlackChannelConfigurationProps:
|
|
|
1486
1603
|
check_type(argname="argument log_retention_role", value=log_retention_role, expected_type=type_hints["log_retention_role"])
|
|
1487
1604
|
check_type(argname="argument notification_topics", value=notification_topics, expected_type=type_hints["notification_topics"])
|
|
1488
1605
|
check_type(argname="argument role", value=role, expected_type=type_hints["role"])
|
|
1606
|
+
check_type(argname="argument user_role_required", value=user_role_required, expected_type=type_hints["user_role_required"])
|
|
1489
1607
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1490
1608
|
"slack_channel_configuration_name": slack_channel_configuration_name,
|
|
1491
1609
|
"slack_channel_id": slack_channel_id,
|
|
@@ -1505,6 +1623,8 @@ class SlackChannelConfigurationProps:
|
|
|
1505
1623
|
self._values["notification_topics"] = notification_topics
|
|
1506
1624
|
if role is not None:
|
|
1507
1625
|
self._values["role"] = role
|
|
1626
|
+
if user_role_required is not None:
|
|
1627
|
+
self._values["user_role_required"] = user_role_required
|
|
1508
1628
|
|
|
1509
1629
|
@builtins.property
|
|
1510
1630
|
def slack_channel_configuration_name(self) -> builtins.str:
|
|
@@ -1613,6 +1733,15 @@ class SlackChannelConfigurationProps:
|
|
|
1613
1733
|
result = self._values.get("role")
|
|
1614
1734
|
return typing.cast(typing.Optional[_IRole_235f5d8e], result)
|
|
1615
1735
|
|
|
1736
|
+
@builtins.property
|
|
1737
|
+
def user_role_required(self) -> typing.Optional[builtins.bool]:
|
|
1738
|
+
'''Enables use of a user role requirement in your chat configuration.
|
|
1739
|
+
|
|
1740
|
+
:default: false
|
|
1741
|
+
'''
|
|
1742
|
+
result = self._values.get("user_role_required")
|
|
1743
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
1744
|
+
|
|
1616
1745
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1617
1746
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1618
1747
|
|
|
@@ -1650,6 +1779,7 @@ def _typecheckingstub__62f6b943071fca79376376fd20660d7b707a1026a9039a0c12c88895d
|
|
|
1650
1779
|
guardrail_policies: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1651
1780
|
logging_level: typing.Optional[builtins.str] = None,
|
|
1652
1781
|
sns_topic_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1782
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1653
1783
|
user_role_required: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1654
1784
|
) -> None:
|
|
1655
1785
|
"""Type checking stubs"""
|
|
@@ -1715,6 +1845,12 @@ def _typecheckingstub__d06bfa455d3724be650436a618deed393ddc0dbcd35406db1f888de73
|
|
|
1715
1845
|
"""Type checking stubs"""
|
|
1716
1846
|
pass
|
|
1717
1847
|
|
|
1848
|
+
def _typecheckingstub__85a622952d9fea475beb11aa3753f5147c076bc04254dc91a4dbc14ee94b8b42(
|
|
1849
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
1850
|
+
) -> None:
|
|
1851
|
+
"""Type checking stubs"""
|
|
1852
|
+
pass
|
|
1853
|
+
|
|
1718
1854
|
def _typecheckingstub__0a5171a48ffb0d6c3dc8bec2e5eb8774e5e34370819690e508928a264f6e7eda(
|
|
1719
1855
|
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
1720
1856
|
) -> None:
|
|
@@ -1731,6 +1867,7 @@ def _typecheckingstub__2750e06a244ed0f59003e9954924d4cdea272b2fc67dda92574fc40bd
|
|
|
1731
1867
|
guardrail_policies: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1732
1868
|
logging_level: typing.Optional[builtins.str] = None,
|
|
1733
1869
|
sns_topic_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1870
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1734
1871
|
user_role_required: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1735
1872
|
) -> None:
|
|
1736
1873
|
"""Type checking stubs"""
|
|
@@ -1747,6 +1884,7 @@ def _typecheckingstub__1cb3844509a8f0685c3dc0d26d5014fa028976d66c5d0a8984e8284bb
|
|
|
1747
1884
|
guardrail_policies: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1748
1885
|
logging_level: typing.Optional[builtins.str] = None,
|
|
1749
1886
|
sns_topic_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1887
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1750
1888
|
user_role_required: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1751
1889
|
) -> None:
|
|
1752
1890
|
"""Type checking stubs"""
|
|
@@ -1806,6 +1944,12 @@ def _typecheckingstub__a484a8dbfe21a414edd0bce1d876d84d2ebba782d953f75cc942e74a5
|
|
|
1806
1944
|
"""Type checking stubs"""
|
|
1807
1945
|
pass
|
|
1808
1946
|
|
|
1947
|
+
def _typecheckingstub__eb9439037db7df11093794999deef5e51f41aae61f9736ab360d263ab9859fd6(
|
|
1948
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
1949
|
+
) -> None:
|
|
1950
|
+
"""Type checking stubs"""
|
|
1951
|
+
pass
|
|
1952
|
+
|
|
1809
1953
|
def _typecheckingstub__4fdcebb1f70802057ca456714a5cc7c631ffe294962d8635781dfb0f0a08776f(
|
|
1810
1954
|
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
1811
1955
|
) -> None:
|
|
@@ -1821,6 +1965,7 @@ def _typecheckingstub__277f742a3921d9599de6f4a85fd399fb4b6654557393ff7889e5e52f5
|
|
|
1821
1965
|
guardrail_policies: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1822
1966
|
logging_level: typing.Optional[builtins.str] = None,
|
|
1823
1967
|
sns_topic_arns: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1968
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1824
1969
|
user_role_required: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
1825
1970
|
) -> None:
|
|
1826
1971
|
"""Type checking stubs"""
|
|
@@ -1861,6 +2006,7 @@ def _typecheckingstub__efdd5da37140f8254b4a44f567a060e15106ce03d4f75880500b5d15d
|
|
|
1861
2006
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1862
2007
|
notification_topics: typing.Optional[typing.Sequence[_ITopic_9eca4852]] = None,
|
|
1863
2008
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
2009
|
+
user_role_required: typing.Optional[builtins.bool] = None,
|
|
1864
2010
|
) -> None:
|
|
1865
2011
|
"""Type checking stubs"""
|
|
1866
2012
|
pass
|
|
@@ -1933,6 +2079,7 @@ def _typecheckingstub__0ac26e048cc95c25fe58a4f6af5e010a7fb045d511f758ebcd363a166
|
|
|
1933
2079
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1934
2080
|
notification_topics: typing.Optional[typing.Sequence[_ITopic_9eca4852]] = None,
|
|
1935
2081
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
2082
|
+
user_role_required: typing.Optional[builtins.bool] = None,
|
|
1936
2083
|
) -> None:
|
|
1937
2084
|
"""Type checking stubs"""
|
|
1938
2085
|
pass
|