aws-cdk-lib 2.194.0__py3-none-any.whl → 2.196.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 +435 -20
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.194.0.jsii.tgz → aws-cdk-lib@2.196.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +1 -1
- aws_cdk/aws_amazonmq/__init__.py +2 -2
- aws_cdk/aws_apigateway/__init__.py +208 -70
- aws_cdk/aws_apigatewayv2/__init__.py +155 -24
- aws_cdk/aws_appconfig/__init__.py +24 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +6 -0
- aws_cdk/aws_appmesh/__init__.py +42 -0
- aws_cdk/aws_appsync/__init__.py +92 -20
- aws_cdk/aws_autoscaling/__init__.py +24 -0
- aws_cdk/aws_backup/__init__.py +53 -14
- aws_cdk/aws_batch/__init__.py +72 -0
- aws_cdk/aws_bedrock/__init__.py +1201 -18
- aws_cdk/aws_budgets/__init__.py +569 -0
- aws_cdk/aws_certificatemanager/__init__.py +21 -0
- aws_cdk/aws_chatbot/__init__.py +6 -0
- aws_cdk/aws_cloudfront/__init__.py +277 -120
- aws_cdk/aws_cloudfront/experimental/__init__.py +6 -0
- aws_cdk/aws_cloudtrail/__init__.py +6 -0
- aws_cdk/aws_cloudwatch/__init__.py +18 -0
- aws_cdk/aws_cloudwatch_actions/__init__.py +75 -1
- aws_cdk/aws_codebuild/__init__.py +48 -0
- aws_cdk/aws_codecommit/__init__.py +6 -0
- aws_cdk/aws_codedeploy/__init__.py +63 -0
- aws_cdk/aws_codeguruprofiler/__init__.py +6 -0
- aws_cdk/aws_codepipeline/__init__.py +114 -0
- aws_cdk/aws_codepipeline_actions/__init__.py +4 -4
- aws_cdk/aws_codestarnotifications/__init__.py +6 -0
- aws_cdk/aws_cognito/__init__.py +215 -10
- aws_cdk/aws_cognito_identitypool/__init__.py +6 -0
- aws_cdk/aws_config/__init__.py +36 -0
- aws_cdk/aws_datazone/__init__.py +1013 -100
- aws_cdk/aws_docdb/__init__.py +27 -3
- aws_cdk/aws_dsql/__init__.py +29 -12
- aws_cdk/aws_dynamodb/__init__.py +25 -11
- aws_cdk/aws_ec2/__init__.py +408 -23
- aws_cdk/aws_ecr/__init__.py +22 -14
- aws_cdk/aws_ecr_assets/__init__.py +6 -0
- aws_cdk/aws_ecs/__init__.py +116 -34
- aws_cdk/aws_ecs_patterns/__init__.py +58 -0
- aws_cdk/aws_efs/__init__.py +12 -0
- aws_cdk/aws_eks/__init__.py +42 -0
- aws_cdk/aws_elasticloadbalancing/__init__.py +6 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +112 -9
- aws_cdk/aws_elasticsearch/__init__.py +9 -0
- aws_cdk/aws_events/__init__.py +36 -0
- aws_cdk/aws_events_targets/__init__.py +10 -10
- aws_cdk/aws_fsx/__init__.py +8 -3
- aws_cdk/aws_globalaccelerator/__init__.py +18 -0
- aws_cdk/aws_iam/__init__.py +66 -0
- aws_cdk/aws_imagebuilder/__init__.py +181 -26
- aws_cdk/aws_inspector/__init__.py +6 -0
- aws_cdk/aws_kinesis/__init__.py +19 -1
- aws_cdk/aws_kinesisanalytics/__init__.py +7 -7
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +7 -7
- aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
- aws_cdk/aws_kms/__init__.py +16 -4
- aws_cdk/aws_lambda/__init__.py +76 -6
- aws_cdk/aws_lambda_nodejs/__init__.py +6 -0
- aws_cdk/aws_logs/__init__.py +155 -12
- aws_cdk/aws_medialive/__init__.py +4 -6
- aws_cdk/aws_mediatailor/__init__.py +115 -0
- aws_cdk/aws_oam/__init__.py +43 -10
- aws_cdk/aws_opensearchservice/__init__.py +12 -0
- aws_cdk/aws_qbusiness/__init__.py +2 -2
- aws_cdk/aws_quicksight/__init__.py +22 -22
- aws_cdk/aws_rds/__init__.py +347 -36
- aws_cdk/aws_redshiftserverless/__init__.py +7 -7
- aws_cdk/aws_route53/__init__.py +735 -33
- aws_cdk/aws_route53_targets/__init__.py +62 -1
- aws_cdk/aws_route53profiles/__init__.py +1 -1
- aws_cdk/aws_s3/__init__.py +37 -10
- aws_cdk/aws_s3_deployment/__init__.py +6 -0
- aws_cdk/aws_s3_notifications/__init__.py +5 -5
- aws_cdk/aws_sagemaker/__init__.py +452 -8
- aws_cdk/aws_scheduler/__init__.py +12 -0
- aws_cdk/aws_secretsmanager/__init__.py +24 -0
- aws_cdk/aws_servicecatalog/__init__.py +24 -0
- aws_cdk/aws_servicediscovery/__init__.py +48 -0
- aws_cdk/aws_ses/__init__.py +133 -33
- aws_cdk/aws_signer/__init__.py +6 -0
- aws_cdk/aws_sns/__init__.py +18 -0
- aws_cdk/aws_sns_subscriptions/__init__.py +6 -0
- aws_cdk/aws_sqs/__init__.py +12 -0
- aws_cdk/aws_ssm/__init__.py +12 -0
- aws_cdk/aws_ssmcontacts/__init__.py +53 -2
- aws_cdk/aws_ssmguiconnect/__init__.py +544 -0
- aws_cdk/aws_stepfunctions/__init__.py +153 -7
- aws_cdk/aws_stepfunctions_tasks/__init__.py +46 -10
- aws_cdk/aws_synthetics/__init__.py +32 -0
- aws_cdk/aws_verifiedpermissions/__init__.py +168 -3
- aws_cdk/aws_vpclattice/__init__.py +3 -1
- aws_cdk/aws_wisdom/__init__.py +6 -4
- aws_cdk/cloud_assembly_schema/__init__.py +7 -1
- aws_cdk/custom_resources/__init__.py +18 -0
- aws_cdk/cx_api/__init__.py +33 -0
- aws_cdk/lambda_layer_awscli/__init__.py +6 -0
- aws_cdk/lambda_layer_node_proxy_agent/__init__.py +6 -0
- aws_cdk/pipelines/__init__.py +10 -10
- aws_cdk/triggers/__init__.py +6 -0
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/METADATA +84 -6
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/RECORD +108 -107
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
r'''
|
|
2
|
+
# AWS::SSMGuiConnect Construct Library
|
|
3
|
+
|
|
4
|
+
<!--BEGIN STABILITY BANNER-->---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
> All classes with the `Cfn` prefix in this module ([CFN Resources](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) are always stable and safe to use.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
<!--END STABILITY BANNER-->
|
|
13
|
+
|
|
14
|
+
This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
import aws_cdk.aws_ssmguiconnect as ssmguiconnect
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
<!--BEGIN CFNONLY DISCLAIMER-->
|
|
21
|
+
|
|
22
|
+
There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:
|
|
23
|
+
|
|
24
|
+
* Search [Construct Hub for SSMGuiConnect construct libraries](https://constructs.dev/search?q=ssmguiconnect)
|
|
25
|
+
* Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::SSMGuiConnect resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_SSMGuiConnect.html) directly.
|
|
26
|
+
|
|
27
|
+
<!--BEGIN CFNONLY DISCLAIMER-->
|
|
28
|
+
|
|
29
|
+
There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
|
|
30
|
+
However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.
|
|
31
|
+
|
|
32
|
+
For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::SSMGuiConnect](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_SSMGuiConnect.html).
|
|
33
|
+
|
|
34
|
+
(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)
|
|
35
|
+
|
|
36
|
+
<!--END CFNONLY DISCLAIMER-->
|
|
37
|
+
'''
|
|
38
|
+
from pkgutil import extend_path
|
|
39
|
+
__path__ = extend_path(__path__, __name__)
|
|
40
|
+
|
|
41
|
+
import abc
|
|
42
|
+
import builtins
|
|
43
|
+
import datetime
|
|
44
|
+
import enum
|
|
45
|
+
import typing
|
|
46
|
+
|
|
47
|
+
import jsii
|
|
48
|
+
import publication
|
|
49
|
+
import typing_extensions
|
|
50
|
+
|
|
51
|
+
import typeguard
|
|
52
|
+
from importlib.metadata import version as _metadata_package_version
|
|
53
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
54
|
+
|
|
55
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
56
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
57
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
58
|
+
else:
|
|
59
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
60
|
+
pass
|
|
61
|
+
else:
|
|
62
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
63
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
64
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
65
|
+
else:
|
|
66
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
67
|
+
|
|
68
|
+
from .._jsii import *
|
|
69
|
+
|
|
70
|
+
import constructs as _constructs_77d1e7e8
|
|
71
|
+
from .. import (
|
|
72
|
+
CfnResource as _CfnResource_9df397a6,
|
|
73
|
+
IInspectable as _IInspectable_c2943556,
|
|
74
|
+
IResolvable as _IResolvable_da3f097b,
|
|
75
|
+
TreeInspector as _TreeInspector_488e0dd5,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
@jsii.implements(_IInspectable_c2943556)
|
|
80
|
+
class CfnPreferences(
|
|
81
|
+
_CfnResource_9df397a6,
|
|
82
|
+
metaclass=jsii.JSIIMeta,
|
|
83
|
+
jsii_type="aws-cdk-lib.aws_ssmguiconnect.CfnPreferences",
|
|
84
|
+
):
|
|
85
|
+
'''Specify new or changed connection recording preferences for your AWS Systems Manager GUI Connect connections.
|
|
86
|
+
|
|
87
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmguiconnect-preferences.html
|
|
88
|
+
:cloudformationResource: AWS::SSMGuiConnect::Preferences
|
|
89
|
+
:exampleMetadata: fixture=_generated
|
|
90
|
+
|
|
91
|
+
Example::
|
|
92
|
+
|
|
93
|
+
# The code below shows an example of how to instantiate this type.
|
|
94
|
+
# The values are placeholders you should change.
|
|
95
|
+
from aws_cdk import aws_ssmguiconnect as ssmguiconnect
|
|
96
|
+
|
|
97
|
+
cfn_preferences = ssmguiconnect.CfnPreferences(self, "MyCfnPreferences",
|
|
98
|
+
connection_recording_preferences=ssmguiconnect.CfnPreferences.ConnectionRecordingPreferencesProperty(
|
|
99
|
+
kms_key_arn="kmsKeyArn",
|
|
100
|
+
recording_destinations=ssmguiconnect.CfnPreferences.RecordingDestinationsProperty(
|
|
101
|
+
s3_buckets=[ssmguiconnect.CfnPreferences.S3BucketProperty(
|
|
102
|
+
bucket_name="bucketName",
|
|
103
|
+
bucket_owner="bucketOwner"
|
|
104
|
+
)]
|
|
105
|
+
)
|
|
106
|
+
)
|
|
107
|
+
)
|
|
108
|
+
'''
|
|
109
|
+
|
|
110
|
+
def __init__(
|
|
111
|
+
self,
|
|
112
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
113
|
+
id: builtins.str,
|
|
114
|
+
*,
|
|
115
|
+
connection_recording_preferences: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPreferences.ConnectionRecordingPreferencesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
116
|
+
) -> None:
|
|
117
|
+
'''
|
|
118
|
+
:param scope: Scope in which this resource is defined.
|
|
119
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
120
|
+
:param connection_recording_preferences: The set of preferences used for recording RDP connections in the requesting AWS account and AWS Region . This includes details such as which S3 bucket recordings are stored in.
|
|
121
|
+
'''
|
|
122
|
+
if __debug__:
|
|
123
|
+
type_hints = typing.get_type_hints(_typecheckingstub__045e31f70bcabcaa4437ed6c7e11fb8462233ba15c60675b143088abfe090752)
|
|
124
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
125
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
126
|
+
props = CfnPreferencesProps(
|
|
127
|
+
connection_recording_preferences=connection_recording_preferences
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
131
|
+
|
|
132
|
+
@jsii.member(jsii_name="inspect")
|
|
133
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
134
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
135
|
+
|
|
136
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
137
|
+
'''
|
|
138
|
+
if __debug__:
|
|
139
|
+
type_hints = typing.get_type_hints(_typecheckingstub__59c7a3e2f3cdd2e9d3e4372020a482f624a989ea6d129be44dbf7f070aacda70)
|
|
140
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
141
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
142
|
+
|
|
143
|
+
@jsii.member(jsii_name="renderProperties")
|
|
144
|
+
def _render_properties(
|
|
145
|
+
self,
|
|
146
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
147
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
148
|
+
'''
|
|
149
|
+
:param props: -
|
|
150
|
+
'''
|
|
151
|
+
if __debug__:
|
|
152
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3749ba458af11bbb5fb93542c69a8b02362071d74426f5a7f030e9ea0836efac)
|
|
153
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
154
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
155
|
+
|
|
156
|
+
@jsii.python.classproperty
|
|
157
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
158
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
159
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
160
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
161
|
+
|
|
162
|
+
@builtins.property
|
|
163
|
+
@jsii.member(jsii_name="attrAccountId")
|
|
164
|
+
def attr_account_id(self) -> builtins.str:
|
|
165
|
+
'''The primary identifier for the AWS CloudFormation resource.
|
|
166
|
+
|
|
167
|
+
:cloudformationAttribute: AccountId
|
|
168
|
+
'''
|
|
169
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAccountId"))
|
|
170
|
+
|
|
171
|
+
@builtins.property
|
|
172
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
173
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
174
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
175
|
+
|
|
176
|
+
@builtins.property
|
|
177
|
+
@jsii.member(jsii_name="connectionRecordingPreferences")
|
|
178
|
+
def connection_recording_preferences(
|
|
179
|
+
self,
|
|
180
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPreferences.ConnectionRecordingPreferencesProperty"]]:
|
|
181
|
+
'''The set of preferences used for recording RDP connections in the requesting AWS account and AWS Region .'''
|
|
182
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPreferences.ConnectionRecordingPreferencesProperty"]], jsii.get(self, "connectionRecordingPreferences"))
|
|
183
|
+
|
|
184
|
+
@connection_recording_preferences.setter
|
|
185
|
+
def connection_recording_preferences(
|
|
186
|
+
self,
|
|
187
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPreferences.ConnectionRecordingPreferencesProperty"]],
|
|
188
|
+
) -> None:
|
|
189
|
+
if __debug__:
|
|
190
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9c66582ef0ec82c9acb896e156d048eb1944403cdb814f8c249895be7c4d8043)
|
|
191
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
192
|
+
jsii.set(self, "connectionRecordingPreferences", value) # pyright: ignore[reportArgumentType]
|
|
193
|
+
|
|
194
|
+
@jsii.data_type(
|
|
195
|
+
jsii_type="aws-cdk-lib.aws_ssmguiconnect.CfnPreferences.ConnectionRecordingPreferencesProperty",
|
|
196
|
+
jsii_struct_bases=[],
|
|
197
|
+
name_mapping={
|
|
198
|
+
"kms_key_arn": "kmsKeyArn",
|
|
199
|
+
"recording_destinations": "recordingDestinations",
|
|
200
|
+
},
|
|
201
|
+
)
|
|
202
|
+
class ConnectionRecordingPreferencesProperty:
|
|
203
|
+
def __init__(
|
|
204
|
+
self,
|
|
205
|
+
*,
|
|
206
|
+
kms_key_arn: builtins.str,
|
|
207
|
+
recording_destinations: typing.Union[_IResolvable_da3f097b, typing.Union["CfnPreferences.RecordingDestinationsProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
208
|
+
) -> None:
|
|
209
|
+
'''The set of preferences used for recording RDP connections in the requesting AWS account and AWS Region .
|
|
210
|
+
|
|
211
|
+
This includes details such as which S3 bucket recordings are stored in.
|
|
212
|
+
|
|
213
|
+
:param kms_key_arn: The ARN of a AWS KMS key that is used to encrypt data while it is being processed by the service. This key must exist in the same AWS Region as the node you start an RDP connection to.
|
|
214
|
+
:param recording_destinations: Determines where recordings of RDP connections are stored.
|
|
215
|
+
|
|
216
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmguiconnect-preferences-connectionrecordingpreferences.html
|
|
217
|
+
:exampleMetadata: fixture=_generated
|
|
218
|
+
|
|
219
|
+
Example::
|
|
220
|
+
|
|
221
|
+
# The code below shows an example of how to instantiate this type.
|
|
222
|
+
# The values are placeholders you should change.
|
|
223
|
+
from aws_cdk import aws_ssmguiconnect as ssmguiconnect
|
|
224
|
+
|
|
225
|
+
connection_recording_preferences_property = ssmguiconnect.CfnPreferences.ConnectionRecordingPreferencesProperty(
|
|
226
|
+
kms_key_arn="kmsKeyArn",
|
|
227
|
+
recording_destinations=ssmguiconnect.CfnPreferences.RecordingDestinationsProperty(
|
|
228
|
+
s3_buckets=[ssmguiconnect.CfnPreferences.S3BucketProperty(
|
|
229
|
+
bucket_name="bucketName",
|
|
230
|
+
bucket_owner="bucketOwner"
|
|
231
|
+
)]
|
|
232
|
+
)
|
|
233
|
+
)
|
|
234
|
+
'''
|
|
235
|
+
if __debug__:
|
|
236
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9f83b9fd07eaf3bda97494ddce8a45cd58dcb54692ec0360bf9d23845c3be5f1)
|
|
237
|
+
check_type(argname="argument kms_key_arn", value=kms_key_arn, expected_type=type_hints["kms_key_arn"])
|
|
238
|
+
check_type(argname="argument recording_destinations", value=recording_destinations, expected_type=type_hints["recording_destinations"])
|
|
239
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
240
|
+
"kms_key_arn": kms_key_arn,
|
|
241
|
+
"recording_destinations": recording_destinations,
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@builtins.property
|
|
245
|
+
def kms_key_arn(self) -> builtins.str:
|
|
246
|
+
'''The ARN of a AWS KMS key that is used to encrypt data while it is being processed by the service.
|
|
247
|
+
|
|
248
|
+
This key must exist in the same AWS Region as the node you start an RDP connection to.
|
|
249
|
+
|
|
250
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmguiconnect-preferences-connectionrecordingpreferences.html#cfn-ssmguiconnect-preferences-connectionrecordingpreferences-kmskeyarn
|
|
251
|
+
'''
|
|
252
|
+
result = self._values.get("kms_key_arn")
|
|
253
|
+
assert result is not None, "Required property 'kms_key_arn' is missing"
|
|
254
|
+
return typing.cast(builtins.str, result)
|
|
255
|
+
|
|
256
|
+
@builtins.property
|
|
257
|
+
def recording_destinations(
|
|
258
|
+
self,
|
|
259
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnPreferences.RecordingDestinationsProperty"]:
|
|
260
|
+
'''Determines where recordings of RDP connections are stored.
|
|
261
|
+
|
|
262
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmguiconnect-preferences-connectionrecordingpreferences.html#cfn-ssmguiconnect-preferences-connectionrecordingpreferences-recordingdestinations
|
|
263
|
+
'''
|
|
264
|
+
result = self._values.get("recording_destinations")
|
|
265
|
+
assert result is not None, "Required property 'recording_destinations' is missing"
|
|
266
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnPreferences.RecordingDestinationsProperty"], result)
|
|
267
|
+
|
|
268
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
269
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
270
|
+
|
|
271
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
272
|
+
return not (rhs == self)
|
|
273
|
+
|
|
274
|
+
def __repr__(self) -> str:
|
|
275
|
+
return "ConnectionRecordingPreferencesProperty(%s)" % ", ".join(
|
|
276
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
@jsii.data_type(
|
|
280
|
+
jsii_type="aws-cdk-lib.aws_ssmguiconnect.CfnPreferences.RecordingDestinationsProperty",
|
|
281
|
+
jsii_struct_bases=[],
|
|
282
|
+
name_mapping={"s3_buckets": "s3Buckets"},
|
|
283
|
+
)
|
|
284
|
+
class RecordingDestinationsProperty:
|
|
285
|
+
def __init__(
|
|
286
|
+
self,
|
|
287
|
+
*,
|
|
288
|
+
s3_buckets: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnPreferences.S3BucketProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
289
|
+
) -> None:
|
|
290
|
+
'''Determines where recordings of RDP connections are stored.
|
|
291
|
+
|
|
292
|
+
:param s3_buckets: The S3 bucket where RDP connection recordings are stored.
|
|
293
|
+
|
|
294
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmguiconnect-preferences-recordingdestinations.html
|
|
295
|
+
:exampleMetadata: fixture=_generated
|
|
296
|
+
|
|
297
|
+
Example::
|
|
298
|
+
|
|
299
|
+
# The code below shows an example of how to instantiate this type.
|
|
300
|
+
# The values are placeholders you should change.
|
|
301
|
+
from aws_cdk import aws_ssmguiconnect as ssmguiconnect
|
|
302
|
+
|
|
303
|
+
recording_destinations_property = ssmguiconnect.CfnPreferences.RecordingDestinationsProperty(
|
|
304
|
+
s3_buckets=[ssmguiconnect.CfnPreferences.S3BucketProperty(
|
|
305
|
+
bucket_name="bucketName",
|
|
306
|
+
bucket_owner="bucketOwner"
|
|
307
|
+
)]
|
|
308
|
+
)
|
|
309
|
+
'''
|
|
310
|
+
if __debug__:
|
|
311
|
+
type_hints = typing.get_type_hints(_typecheckingstub__21f97360ac6f836d446e4669043ec91e366abd4faef63955c501e70a94faac1b)
|
|
312
|
+
check_type(argname="argument s3_buckets", value=s3_buckets, expected_type=type_hints["s3_buckets"])
|
|
313
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
314
|
+
"s3_buckets": s3_buckets,
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@builtins.property
|
|
318
|
+
def s3_buckets(
|
|
319
|
+
self,
|
|
320
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPreferences.S3BucketProperty"]]]:
|
|
321
|
+
'''The S3 bucket where RDP connection recordings are stored.
|
|
322
|
+
|
|
323
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmguiconnect-preferences-recordingdestinations.html#cfn-ssmguiconnect-preferences-recordingdestinations-s3buckets
|
|
324
|
+
'''
|
|
325
|
+
result = self._values.get("s3_buckets")
|
|
326
|
+
assert result is not None, "Required property 's3_buckets' is missing"
|
|
327
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnPreferences.S3BucketProperty"]]], result)
|
|
328
|
+
|
|
329
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
330
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
331
|
+
|
|
332
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
333
|
+
return not (rhs == self)
|
|
334
|
+
|
|
335
|
+
def __repr__(self) -> str:
|
|
336
|
+
return "RecordingDestinationsProperty(%s)" % ", ".join(
|
|
337
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
338
|
+
)
|
|
339
|
+
|
|
340
|
+
@jsii.data_type(
|
|
341
|
+
jsii_type="aws-cdk-lib.aws_ssmguiconnect.CfnPreferences.S3BucketProperty",
|
|
342
|
+
jsii_struct_bases=[],
|
|
343
|
+
name_mapping={"bucket_name": "bucketName", "bucket_owner": "bucketOwner"},
|
|
344
|
+
)
|
|
345
|
+
class S3BucketProperty:
|
|
346
|
+
def __init__(
|
|
347
|
+
self,
|
|
348
|
+
*,
|
|
349
|
+
bucket_name: builtins.str,
|
|
350
|
+
bucket_owner: builtins.str,
|
|
351
|
+
) -> None:
|
|
352
|
+
'''The S3 bucket where RDP connection recordings are stored.
|
|
353
|
+
|
|
354
|
+
:param bucket_name: The name of the S3 bucket where RDP connection recordings are stored.
|
|
355
|
+
:param bucket_owner: The AWS account number that owns the S3 bucket.
|
|
356
|
+
|
|
357
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmguiconnect-preferences-s3bucket.html
|
|
358
|
+
:exampleMetadata: fixture=_generated
|
|
359
|
+
|
|
360
|
+
Example::
|
|
361
|
+
|
|
362
|
+
# The code below shows an example of how to instantiate this type.
|
|
363
|
+
# The values are placeholders you should change.
|
|
364
|
+
from aws_cdk import aws_ssmguiconnect as ssmguiconnect
|
|
365
|
+
|
|
366
|
+
s3_bucket_property = ssmguiconnect.CfnPreferences.S3BucketProperty(
|
|
367
|
+
bucket_name="bucketName",
|
|
368
|
+
bucket_owner="bucketOwner"
|
|
369
|
+
)
|
|
370
|
+
'''
|
|
371
|
+
if __debug__:
|
|
372
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3939ea87d6ea5ac56e97e4118631928a1de532647a270d9cb345a6e1e23ad144)
|
|
373
|
+
check_type(argname="argument bucket_name", value=bucket_name, expected_type=type_hints["bucket_name"])
|
|
374
|
+
check_type(argname="argument bucket_owner", value=bucket_owner, expected_type=type_hints["bucket_owner"])
|
|
375
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
376
|
+
"bucket_name": bucket_name,
|
|
377
|
+
"bucket_owner": bucket_owner,
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
@builtins.property
|
|
381
|
+
def bucket_name(self) -> builtins.str:
|
|
382
|
+
'''The name of the S3 bucket where RDP connection recordings are stored.
|
|
383
|
+
|
|
384
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmguiconnect-preferences-s3bucket.html#cfn-ssmguiconnect-preferences-s3bucket-bucketname
|
|
385
|
+
'''
|
|
386
|
+
result = self._values.get("bucket_name")
|
|
387
|
+
assert result is not None, "Required property 'bucket_name' is missing"
|
|
388
|
+
return typing.cast(builtins.str, result)
|
|
389
|
+
|
|
390
|
+
@builtins.property
|
|
391
|
+
def bucket_owner(self) -> builtins.str:
|
|
392
|
+
'''The AWS account number that owns the S3 bucket.
|
|
393
|
+
|
|
394
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssmguiconnect-preferences-s3bucket.html#cfn-ssmguiconnect-preferences-s3bucket-bucketowner
|
|
395
|
+
'''
|
|
396
|
+
result = self._values.get("bucket_owner")
|
|
397
|
+
assert result is not None, "Required property 'bucket_owner' is missing"
|
|
398
|
+
return typing.cast(builtins.str, result)
|
|
399
|
+
|
|
400
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
401
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
402
|
+
|
|
403
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
404
|
+
return not (rhs == self)
|
|
405
|
+
|
|
406
|
+
def __repr__(self) -> str:
|
|
407
|
+
return "S3BucketProperty(%s)" % ", ".join(
|
|
408
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
409
|
+
)
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
@jsii.data_type(
|
|
413
|
+
jsii_type="aws-cdk-lib.aws_ssmguiconnect.CfnPreferencesProps",
|
|
414
|
+
jsii_struct_bases=[],
|
|
415
|
+
name_mapping={
|
|
416
|
+
"connection_recording_preferences": "connectionRecordingPreferences",
|
|
417
|
+
},
|
|
418
|
+
)
|
|
419
|
+
class CfnPreferencesProps:
|
|
420
|
+
def __init__(
|
|
421
|
+
self,
|
|
422
|
+
*,
|
|
423
|
+
connection_recording_preferences: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPreferences.ConnectionRecordingPreferencesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
424
|
+
) -> None:
|
|
425
|
+
'''Properties for defining a ``CfnPreferences``.
|
|
426
|
+
|
|
427
|
+
:param connection_recording_preferences: The set of preferences used for recording RDP connections in the requesting AWS account and AWS Region . This includes details such as which S3 bucket recordings are stored in.
|
|
428
|
+
|
|
429
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmguiconnect-preferences.html
|
|
430
|
+
:exampleMetadata: fixture=_generated
|
|
431
|
+
|
|
432
|
+
Example::
|
|
433
|
+
|
|
434
|
+
# The code below shows an example of how to instantiate this type.
|
|
435
|
+
# The values are placeholders you should change.
|
|
436
|
+
from aws_cdk import aws_ssmguiconnect as ssmguiconnect
|
|
437
|
+
|
|
438
|
+
cfn_preferences_props = ssmguiconnect.CfnPreferencesProps(
|
|
439
|
+
connection_recording_preferences=ssmguiconnect.CfnPreferences.ConnectionRecordingPreferencesProperty(
|
|
440
|
+
kms_key_arn="kmsKeyArn",
|
|
441
|
+
recording_destinations=ssmguiconnect.CfnPreferences.RecordingDestinationsProperty(
|
|
442
|
+
s3_buckets=[ssmguiconnect.CfnPreferences.S3BucketProperty(
|
|
443
|
+
bucket_name="bucketName",
|
|
444
|
+
bucket_owner="bucketOwner"
|
|
445
|
+
)]
|
|
446
|
+
)
|
|
447
|
+
)
|
|
448
|
+
)
|
|
449
|
+
'''
|
|
450
|
+
if __debug__:
|
|
451
|
+
type_hints = typing.get_type_hints(_typecheckingstub__98cae01e7635c618ff7b373fa87c04c806f9ee04274631cc3ad753469d5b8661)
|
|
452
|
+
check_type(argname="argument connection_recording_preferences", value=connection_recording_preferences, expected_type=type_hints["connection_recording_preferences"])
|
|
453
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
454
|
+
if connection_recording_preferences is not None:
|
|
455
|
+
self._values["connection_recording_preferences"] = connection_recording_preferences
|
|
456
|
+
|
|
457
|
+
@builtins.property
|
|
458
|
+
def connection_recording_preferences(
|
|
459
|
+
self,
|
|
460
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnPreferences.ConnectionRecordingPreferencesProperty]]:
|
|
461
|
+
'''The set of preferences used for recording RDP connections in the requesting AWS account and AWS Region .
|
|
462
|
+
|
|
463
|
+
This includes details such as which S3 bucket recordings are stored in.
|
|
464
|
+
|
|
465
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmguiconnect-preferences.html#cfn-ssmguiconnect-preferences-connectionrecordingpreferences
|
|
466
|
+
'''
|
|
467
|
+
result = self._values.get("connection_recording_preferences")
|
|
468
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnPreferences.ConnectionRecordingPreferencesProperty]], result)
|
|
469
|
+
|
|
470
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
471
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
472
|
+
|
|
473
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
474
|
+
return not (rhs == self)
|
|
475
|
+
|
|
476
|
+
def __repr__(self) -> str:
|
|
477
|
+
return "CfnPreferencesProps(%s)" % ", ".join(
|
|
478
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
479
|
+
)
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
__all__ = [
|
|
483
|
+
"CfnPreferences",
|
|
484
|
+
"CfnPreferencesProps",
|
|
485
|
+
]
|
|
486
|
+
|
|
487
|
+
publication.publish()
|
|
488
|
+
|
|
489
|
+
def _typecheckingstub__045e31f70bcabcaa4437ed6c7e11fb8462233ba15c60675b143088abfe090752(
|
|
490
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
491
|
+
id: builtins.str,
|
|
492
|
+
*,
|
|
493
|
+
connection_recording_preferences: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPreferences.ConnectionRecordingPreferencesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
494
|
+
) -> None:
|
|
495
|
+
"""Type checking stubs"""
|
|
496
|
+
pass
|
|
497
|
+
|
|
498
|
+
def _typecheckingstub__59c7a3e2f3cdd2e9d3e4372020a482f624a989ea6d129be44dbf7f070aacda70(
|
|
499
|
+
inspector: _TreeInspector_488e0dd5,
|
|
500
|
+
) -> None:
|
|
501
|
+
"""Type checking stubs"""
|
|
502
|
+
pass
|
|
503
|
+
|
|
504
|
+
def _typecheckingstub__3749ba458af11bbb5fb93542c69a8b02362071d74426f5a7f030e9ea0836efac(
|
|
505
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
506
|
+
) -> None:
|
|
507
|
+
"""Type checking stubs"""
|
|
508
|
+
pass
|
|
509
|
+
|
|
510
|
+
def _typecheckingstub__9c66582ef0ec82c9acb896e156d048eb1944403cdb814f8c249895be7c4d8043(
|
|
511
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnPreferences.ConnectionRecordingPreferencesProperty]],
|
|
512
|
+
) -> None:
|
|
513
|
+
"""Type checking stubs"""
|
|
514
|
+
pass
|
|
515
|
+
|
|
516
|
+
def _typecheckingstub__9f83b9fd07eaf3bda97494ddce8a45cd58dcb54692ec0360bf9d23845c3be5f1(
|
|
517
|
+
*,
|
|
518
|
+
kms_key_arn: builtins.str,
|
|
519
|
+
recording_destinations: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPreferences.RecordingDestinationsProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
520
|
+
) -> None:
|
|
521
|
+
"""Type checking stubs"""
|
|
522
|
+
pass
|
|
523
|
+
|
|
524
|
+
def _typecheckingstub__21f97360ac6f836d446e4669043ec91e366abd4faef63955c501e70a94faac1b(
|
|
525
|
+
*,
|
|
526
|
+
s3_buckets: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPreferences.S3BucketProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
527
|
+
) -> None:
|
|
528
|
+
"""Type checking stubs"""
|
|
529
|
+
pass
|
|
530
|
+
|
|
531
|
+
def _typecheckingstub__3939ea87d6ea5ac56e97e4118631928a1de532647a270d9cb345a6e1e23ad144(
|
|
532
|
+
*,
|
|
533
|
+
bucket_name: builtins.str,
|
|
534
|
+
bucket_owner: builtins.str,
|
|
535
|
+
) -> None:
|
|
536
|
+
"""Type checking stubs"""
|
|
537
|
+
pass
|
|
538
|
+
|
|
539
|
+
def _typecheckingstub__98cae01e7635c618ff7b373fa87c04c806f9ee04274631cc3ad753469d5b8661(
|
|
540
|
+
*,
|
|
541
|
+
connection_recording_preferences: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnPreferences.ConnectionRecordingPreferencesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
542
|
+
) -> None:
|
|
543
|
+
"""Type checking stubs"""
|
|
544
|
+
pass
|