aws-cdk-lib 2.144.0__py3-none-any.whl → 2.146.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 +3 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.144.0.jsii.tgz → aws-cdk-lib@2.146.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +27 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +27 -0
- aws_cdk/aws_appsync/__init__.py +62 -0
- aws_cdk/aws_autoscaling/__init__.py +416 -60
- aws_cdk/aws_chatbot/__init__.py +38 -0
- aws_cdk/aws_codebuild/__init__.py +598 -19
- aws_cdk/aws_config/__init__.py +1305 -45
- aws_cdk/aws_connect/__init__.py +86 -0
- aws_cdk/aws_ec2/__init__.py +42 -3
- aws_cdk/aws_ecs/__init__.py +110 -1
- aws_cdk/aws_eks/__init__.py +1495 -72
- aws_cdk/aws_iam/__init__.py +16 -11
- aws_cdk/aws_lambda/__init__.py +12 -0
- 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_mediapackagev2/__init__.py +476 -0
- aws_cdk/aws_opensearchservice/__init__.py +6 -0
- aws_cdk/aws_pipes/__init__.py +639 -0
- aws_cdk/aws_rds/__init__.py +12 -0
- aws_cdk/aws_rolesanywhere/__init__.py +196 -0
- aws_cdk/aws_route53/__init__.py +3 -3
- aws_cdk/aws_securityhub/__init__.py +2415 -374
- aws_cdk/aws_securitylake/__init__.py +179 -314
- aws_cdk/aws_sns/__init__.py +61 -9
- aws_cdk/aws_sqs/__init__.py +2 -2
- aws_cdk/aws_stepfunctions_tasks/__init__.py +3 -3
- aws_cdk/pipelines/__init__.py +2 -0
- aws_cdk/region_info/__init__.py +6 -0
- {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/NOTICE +0 -35
- {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/RECORD +38 -38
- {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.144.0.dist-info → aws_cdk_lib-2.146.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__)
|
|
@@ -1301,6 +1319,7 @@ class SlackChannelConfiguration(
|
|
|
1301
1319
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1302
1320
|
notification_topics: typing.Optional[typing.Sequence[_ITopic_9eca4852]] = None,
|
|
1303
1321
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1322
|
+
user_role_required: typing.Optional[builtins.bool] = None,
|
|
1304
1323
|
) -> None:
|
|
1305
1324
|
'''
|
|
1306
1325
|
:param scope: -
|
|
@@ -1315,6 +1334,7 @@ class SlackChannelConfiguration(
|
|
|
1315
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.
|
|
1316
1335
|
:param notification_topics: The SNS topics that deliver notifications to AWS Chatbot. Default: None
|
|
1317
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
|
|
1318
1338
|
'''
|
|
1319
1339
|
if __debug__:
|
|
1320
1340
|
type_hints = typing.get_type_hints(_typecheckingstub__efdd5da37140f8254b4a44f567a060e15106ce03d4f75880500b5d15d8076be9)
|
|
@@ -1331,6 +1351,7 @@ class SlackChannelConfiguration(
|
|
|
1331
1351
|
log_retention_role=log_retention_role,
|
|
1332
1352
|
notification_topics=notification_topics,
|
|
1333
1353
|
role=role,
|
|
1354
|
+
user_role_required=user_role_required,
|
|
1334
1355
|
)
|
|
1335
1356
|
|
|
1336
1357
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -1518,6 +1539,7 @@ class SlackChannelConfiguration(
|
|
|
1518
1539
|
"log_retention_role": "logRetentionRole",
|
|
1519
1540
|
"notification_topics": "notificationTopics",
|
|
1520
1541
|
"role": "role",
|
|
1542
|
+
"user_role_required": "userRoleRequired",
|
|
1521
1543
|
},
|
|
1522
1544
|
)
|
|
1523
1545
|
class SlackChannelConfigurationProps:
|
|
@@ -1534,6 +1556,7 @@ class SlackChannelConfigurationProps:
|
|
|
1534
1556
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1535
1557
|
notification_topics: typing.Optional[typing.Sequence[_ITopic_9eca4852]] = None,
|
|
1536
1558
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1559
|
+
user_role_required: typing.Optional[builtins.bool] = None,
|
|
1537
1560
|
) -> None:
|
|
1538
1561
|
'''Properties for a new Slack channel configuration.
|
|
1539
1562
|
|
|
@@ -1547,6 +1570,7 @@ class SlackChannelConfigurationProps:
|
|
|
1547
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.
|
|
1548
1571
|
:param notification_topics: The SNS topics that deliver notifications to AWS Chatbot. Default: None
|
|
1549
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
|
|
1550
1574
|
|
|
1551
1575
|
:exampleMetadata: infused
|
|
1552
1576
|
|
|
@@ -1579,6 +1603,7 @@ class SlackChannelConfigurationProps:
|
|
|
1579
1603
|
check_type(argname="argument log_retention_role", value=log_retention_role, expected_type=type_hints["log_retention_role"])
|
|
1580
1604
|
check_type(argname="argument notification_topics", value=notification_topics, expected_type=type_hints["notification_topics"])
|
|
1581
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"])
|
|
1582
1607
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1583
1608
|
"slack_channel_configuration_name": slack_channel_configuration_name,
|
|
1584
1609
|
"slack_channel_id": slack_channel_id,
|
|
@@ -1598,6 +1623,8 @@ class SlackChannelConfigurationProps:
|
|
|
1598
1623
|
self._values["notification_topics"] = notification_topics
|
|
1599
1624
|
if role is not None:
|
|
1600
1625
|
self._values["role"] = role
|
|
1626
|
+
if user_role_required is not None:
|
|
1627
|
+
self._values["user_role_required"] = user_role_required
|
|
1601
1628
|
|
|
1602
1629
|
@builtins.property
|
|
1603
1630
|
def slack_channel_configuration_name(self) -> builtins.str:
|
|
@@ -1706,6 +1733,15 @@ class SlackChannelConfigurationProps:
|
|
|
1706
1733
|
result = self._values.get("role")
|
|
1707
1734
|
return typing.cast(typing.Optional[_IRole_235f5d8e], result)
|
|
1708
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
|
+
|
|
1709
1745
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1710
1746
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1711
1747
|
|
|
@@ -1970,6 +2006,7 @@ def _typecheckingstub__efdd5da37140f8254b4a44f567a060e15106ce03d4f75880500b5d15d
|
|
|
1970
2006
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
1971
2007
|
notification_topics: typing.Optional[typing.Sequence[_ITopic_9eca4852]] = None,
|
|
1972
2008
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
2009
|
+
user_role_required: typing.Optional[builtins.bool] = None,
|
|
1973
2010
|
) -> None:
|
|
1974
2011
|
"""Type checking stubs"""
|
|
1975
2012
|
pass
|
|
@@ -2042,6 +2079,7 @@ def _typecheckingstub__0ac26e048cc95c25fe58a4f6af5e010a7fb045d511f758ebcd363a166
|
|
|
2042
2079
|
log_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
2043
2080
|
notification_topics: typing.Optional[typing.Sequence[_ITopic_9eca4852]] = None,
|
|
2044
2081
|
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
2082
|
+
user_role_required: typing.Optional[builtins.bool] = None,
|
|
2045
2083
|
) -> None:
|
|
2046
2084
|
"""Type checking stubs"""
|
|
2047
2085
|
pass
|