aws-cdk-lib 2.136.1__py3-none-any.whl → 2.138.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 +8 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.136.1.jsii.tgz → aws-cdk-lib@2.138.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +152 -5
- aws_cdk/aws_amplify/__init__.py +29 -113
- aws_cdk/aws_appconfig/__init__.py +26 -33
- aws_cdk/aws_apprunner/__init__.py +5 -2
- aws_cdk/aws_appsync/__init__.py +400 -13
- aws_cdk/aws_aps/__init__.py +64 -47
- aws_cdk/aws_b2bi/__init__.py +2 -6
- aws_cdk/aws_backup/__init__.py +27 -23
- aws_cdk/aws_batch/__init__.py +103 -0
- aws_cdk/aws_bcmdataexports/__init__.py +1114 -0
- aws_cdk/aws_chatbot/__init__.py +6 -4
- aws_cdk/aws_cleanrooms/__init__.py +526 -3
- aws_cdk/aws_cleanroomsml/__init__.py +960 -0
- aws_cdk/aws_cloudfront/__init__.py +196 -15
- aws_cdk/aws_cloudtrail/__init__.py +10 -10
- aws_cdk/aws_cloudwatch/__init__.py +124 -8
- aws_cdk/aws_codebuild/__init__.py +27 -22
- aws_cdk/aws_codeconnections/__init__.py +435 -0
- aws_cdk/aws_cognito/__init__.py +175 -79
- aws_cdk/aws_deadline/__init__.py +5394 -0
- aws_cdk/aws_ec2/__init__.py +379 -173
- aws_cdk/aws_ecr_assets/__init__.py +3 -4
- aws_cdk/aws_ecs/__init__.py +240 -1
- aws_cdk/aws_efs/__init__.py +2 -2
- aws_cdk/aws_elasticache/__init__.py +86 -32
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +275 -5
- aws_cdk/aws_emr/__init__.py +2 -2
- aws_cdk/aws_entityresolution/__init__.py +1982 -773
- aws_cdk/aws_globalaccelerator/__init__.py +443 -0
- aws_cdk/aws_iam/__init__.py +24 -40
- aws_cdk/aws_internetmonitor/__init__.py +14 -6
- aws_cdk/aws_ivs/__init__.py +1273 -71
- aws_cdk/aws_kms/__init__.py +8 -13
- aws_cdk/aws_mediatailor/__init__.py +41 -0
- aws_cdk/aws_personalize/__init__.py +8 -6
- aws_cdk/aws_pinpoint/__init__.py +5 -3
- aws_cdk/aws_pipes/__init__.py +5 -1
- aws_cdk/aws_quicksight/__init__.py +12 -6
- aws_cdk/aws_rds/__init__.py +355 -85
- aws_cdk/aws_route53/__init__.py +591 -18
- aws_cdk/aws_s3_deployment/__init__.py +84 -7
- aws_cdk/aws_sagemaker/__init__.py +233 -2
- aws_cdk/aws_securityhub/__init__.py +4940 -102
- aws_cdk/aws_securitylake/__init__.py +1237 -55
- aws_cdk/aws_sns/__init__.py +183 -4
- aws_cdk/aws_ssmcontacts/__init__.py +11 -4
- aws_cdk/aws_stepfunctions/__init__.py +8 -16
- aws_cdk/aws_stepfunctions_tasks/__init__.py +676 -1
- aws_cdk/aws_transfer/__init__.py +4 -4
- aws_cdk/aws_verifiedpermissions/__init__.py +114 -37
- aws_cdk/aws_workspacesthinclient/__init__.py +8 -8
- aws_cdk/custom_resources/__init__.py +248 -26
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/RECORD +61 -57
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
'''
|
|
2
|
+
# AWS::CodeConnections 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_codeconnections as codeconnections
|
|
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 CodeConnections construct libraries](https://constructs.dev/search?q=codeconnections)
|
|
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::CodeConnections resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_CodeConnections.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::CodeConnections](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_CodeConnections.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
|
+
from typeguard import check_type
|
|
52
|
+
|
|
53
|
+
from .._jsii import *
|
|
54
|
+
|
|
55
|
+
import constructs as _constructs_77d1e7e8
|
|
56
|
+
from .. import (
|
|
57
|
+
CfnResource as _CfnResource_9df397a6,
|
|
58
|
+
CfnTag as _CfnTag_f6864754,
|
|
59
|
+
IInspectable as _IInspectable_c2943556,
|
|
60
|
+
ITaggableV2 as _ITaggableV2_4e6798f8,
|
|
61
|
+
TagManager as _TagManager_0a598cb3,
|
|
62
|
+
TreeInspector as _TreeInspector_488e0dd5,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
67
|
+
class CfnConnection(
|
|
68
|
+
_CfnResource_9df397a6,
|
|
69
|
+
metaclass=jsii.JSIIMeta,
|
|
70
|
+
jsii_type="aws-cdk-lib.aws_codeconnections.CfnConnection",
|
|
71
|
+
):
|
|
72
|
+
'''A resource that is used to connect third-party source providers with services like CodePipeline.
|
|
73
|
+
|
|
74
|
+
Note: A connection created through AWS CloudFormation , the CLI, or the SDK is in ``PENDING`` status by default. You can make its status ``AVAILABLE`` by updating the connection in the console.
|
|
75
|
+
|
|
76
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html
|
|
77
|
+
:cloudformationResource: AWS::CodeConnections::Connection
|
|
78
|
+
:exampleMetadata: fixture=_generated
|
|
79
|
+
|
|
80
|
+
Example::
|
|
81
|
+
|
|
82
|
+
# The code below shows an example of how to instantiate this type.
|
|
83
|
+
# The values are placeholders you should change.
|
|
84
|
+
from aws_cdk import aws_codeconnections as codeconnections
|
|
85
|
+
|
|
86
|
+
cfn_connection = codeconnections.CfnConnection(self, "MyCfnConnection",
|
|
87
|
+
connection_name="connectionName",
|
|
88
|
+
|
|
89
|
+
# the properties below are optional
|
|
90
|
+
host_arn="hostArn",
|
|
91
|
+
provider_type="providerType",
|
|
92
|
+
tags=[CfnTag(
|
|
93
|
+
key="key",
|
|
94
|
+
value="value"
|
|
95
|
+
)]
|
|
96
|
+
)
|
|
97
|
+
'''
|
|
98
|
+
|
|
99
|
+
def __init__(
|
|
100
|
+
self,
|
|
101
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
102
|
+
id: builtins.str,
|
|
103
|
+
*,
|
|
104
|
+
connection_name: builtins.str,
|
|
105
|
+
host_arn: typing.Optional[builtins.str] = None,
|
|
106
|
+
provider_type: typing.Optional[builtins.str] = None,
|
|
107
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
108
|
+
) -> None:
|
|
109
|
+
'''
|
|
110
|
+
:param scope: Scope in which this resource is defined.
|
|
111
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
112
|
+
:param connection_name: The name of the connection. Connection names must be unique in an AWS account .
|
|
113
|
+
:param host_arn: The Amazon Resource Name (ARN) of the host associated with the connection.
|
|
114
|
+
:param provider_type: The name of the external provider where your third-party code repository is configured.
|
|
115
|
+
:param tags: Specifies the tags applied to a connection.
|
|
116
|
+
'''
|
|
117
|
+
if __debug__:
|
|
118
|
+
type_hints = typing.get_type_hints(_typecheckingstub__da00c1ce515c51afa7843809dadd2cb48a76e0e91dd2a8096cc430768e89a815)
|
|
119
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
120
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
121
|
+
props = CfnConnectionProps(
|
|
122
|
+
connection_name=connection_name,
|
|
123
|
+
host_arn=host_arn,
|
|
124
|
+
provider_type=provider_type,
|
|
125
|
+
tags=tags,
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
129
|
+
|
|
130
|
+
@jsii.member(jsii_name="inspect")
|
|
131
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
132
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
133
|
+
|
|
134
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
135
|
+
'''
|
|
136
|
+
if __debug__:
|
|
137
|
+
type_hints = typing.get_type_hints(_typecheckingstub__78744497e1b5bae3f2ea20b9d3496e178855aef0e29d2de71777b026a6d27a1a)
|
|
138
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
139
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
140
|
+
|
|
141
|
+
@jsii.member(jsii_name="renderProperties")
|
|
142
|
+
def _render_properties(
|
|
143
|
+
self,
|
|
144
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
145
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
146
|
+
'''
|
|
147
|
+
:param props: -
|
|
148
|
+
'''
|
|
149
|
+
if __debug__:
|
|
150
|
+
type_hints = typing.get_type_hints(_typecheckingstub__440f5e3662e5ab05ab71cf41aafae8bf45c3a11a457c7bbc13517a3eb9e7278e)
|
|
151
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
152
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
153
|
+
|
|
154
|
+
@jsii.python.classproperty
|
|
155
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
156
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
157
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
158
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
159
|
+
|
|
160
|
+
@builtins.property
|
|
161
|
+
@jsii.member(jsii_name="attrConnectionArn")
|
|
162
|
+
def attr_connection_arn(self) -> builtins.str:
|
|
163
|
+
'''The Amazon Resource Name (ARN) of the connection.
|
|
164
|
+
|
|
165
|
+
The ARN is used as the connection reference when the connection is shared between AWS services .
|
|
166
|
+
.. epigraph::
|
|
167
|
+
|
|
168
|
+
The ARN is never reused if the connection is deleted.
|
|
169
|
+
|
|
170
|
+
:cloudformationAttribute: ConnectionArn
|
|
171
|
+
'''
|
|
172
|
+
return typing.cast(builtins.str, jsii.get(self, "attrConnectionArn"))
|
|
173
|
+
|
|
174
|
+
@builtins.property
|
|
175
|
+
@jsii.member(jsii_name="attrConnectionStatus")
|
|
176
|
+
def attr_connection_status(self) -> builtins.str:
|
|
177
|
+
'''The current status of the connection.
|
|
178
|
+
|
|
179
|
+
:cloudformationAttribute: ConnectionStatus
|
|
180
|
+
'''
|
|
181
|
+
return typing.cast(builtins.str, jsii.get(self, "attrConnectionStatus"))
|
|
182
|
+
|
|
183
|
+
@builtins.property
|
|
184
|
+
@jsii.member(jsii_name="attrOwnerAccountId")
|
|
185
|
+
def attr_owner_account_id(self) -> builtins.str:
|
|
186
|
+
'''The identifier of the external provider where your third-party code repository is configured.
|
|
187
|
+
|
|
188
|
+
For Bitbucket, this is the account ID of the owner of the Bitbucket repository.
|
|
189
|
+
|
|
190
|
+
:cloudformationAttribute: OwnerAccountId
|
|
191
|
+
'''
|
|
192
|
+
return typing.cast(builtins.str, jsii.get(self, "attrOwnerAccountId"))
|
|
193
|
+
|
|
194
|
+
@builtins.property
|
|
195
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
196
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
197
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
198
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
199
|
+
|
|
200
|
+
@builtins.property
|
|
201
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
202
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
203
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
204
|
+
|
|
205
|
+
@builtins.property
|
|
206
|
+
@jsii.member(jsii_name="connectionName")
|
|
207
|
+
def connection_name(self) -> builtins.str:
|
|
208
|
+
'''The name of the connection.'''
|
|
209
|
+
return typing.cast(builtins.str, jsii.get(self, "connectionName"))
|
|
210
|
+
|
|
211
|
+
@connection_name.setter
|
|
212
|
+
def connection_name(self, value: builtins.str) -> None:
|
|
213
|
+
if __debug__:
|
|
214
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7d759fec9e0861542e9267cd70eacda49ebbb2a1399fb2f36364a2a01d38cdc0)
|
|
215
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
216
|
+
jsii.set(self, "connectionName", value)
|
|
217
|
+
|
|
218
|
+
@builtins.property
|
|
219
|
+
@jsii.member(jsii_name="hostArn")
|
|
220
|
+
def host_arn(self) -> typing.Optional[builtins.str]:
|
|
221
|
+
'''The Amazon Resource Name (ARN) of the host associated with the connection.'''
|
|
222
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "hostArn"))
|
|
223
|
+
|
|
224
|
+
@host_arn.setter
|
|
225
|
+
def host_arn(self, value: typing.Optional[builtins.str]) -> None:
|
|
226
|
+
if __debug__:
|
|
227
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6c6c22c4d5132fe518d2a74aed1b6d9c89f7a2fbb163195a459d8af8791cf1c9)
|
|
228
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
229
|
+
jsii.set(self, "hostArn", value)
|
|
230
|
+
|
|
231
|
+
@builtins.property
|
|
232
|
+
@jsii.member(jsii_name="providerType")
|
|
233
|
+
def provider_type(self) -> typing.Optional[builtins.str]:
|
|
234
|
+
'''The name of the external provider where your third-party code repository is configured.'''
|
|
235
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "providerType"))
|
|
236
|
+
|
|
237
|
+
@provider_type.setter
|
|
238
|
+
def provider_type(self, value: typing.Optional[builtins.str]) -> None:
|
|
239
|
+
if __debug__:
|
|
240
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2ec396e84dc4ee92669ed87aa685780cf9af74b974c8d0d7f12b0c1196dc17d6)
|
|
241
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
242
|
+
jsii.set(self, "providerType", value)
|
|
243
|
+
|
|
244
|
+
@builtins.property
|
|
245
|
+
@jsii.member(jsii_name="tags")
|
|
246
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
247
|
+
'''Specifies the tags applied to a connection.'''
|
|
248
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
249
|
+
|
|
250
|
+
@tags.setter
|
|
251
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
252
|
+
if __debug__:
|
|
253
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cd277a1214d747c2b8b1a0998909d0fe0edc54719c5d7b8ae3621585dbf60405)
|
|
254
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
255
|
+
jsii.set(self, "tags", value)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
@jsii.data_type(
|
|
259
|
+
jsii_type="aws-cdk-lib.aws_codeconnections.CfnConnectionProps",
|
|
260
|
+
jsii_struct_bases=[],
|
|
261
|
+
name_mapping={
|
|
262
|
+
"connection_name": "connectionName",
|
|
263
|
+
"host_arn": "hostArn",
|
|
264
|
+
"provider_type": "providerType",
|
|
265
|
+
"tags": "tags",
|
|
266
|
+
},
|
|
267
|
+
)
|
|
268
|
+
class CfnConnectionProps:
|
|
269
|
+
def __init__(
|
|
270
|
+
self,
|
|
271
|
+
*,
|
|
272
|
+
connection_name: builtins.str,
|
|
273
|
+
host_arn: typing.Optional[builtins.str] = None,
|
|
274
|
+
provider_type: typing.Optional[builtins.str] = None,
|
|
275
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
276
|
+
) -> None:
|
|
277
|
+
'''Properties for defining a ``CfnConnection``.
|
|
278
|
+
|
|
279
|
+
:param connection_name: The name of the connection. Connection names must be unique in an AWS account .
|
|
280
|
+
:param host_arn: The Amazon Resource Name (ARN) of the host associated with the connection.
|
|
281
|
+
:param provider_type: The name of the external provider where your third-party code repository is configured.
|
|
282
|
+
:param tags: Specifies the tags applied to a connection.
|
|
283
|
+
|
|
284
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html
|
|
285
|
+
:exampleMetadata: fixture=_generated
|
|
286
|
+
|
|
287
|
+
Example::
|
|
288
|
+
|
|
289
|
+
# The code below shows an example of how to instantiate this type.
|
|
290
|
+
# The values are placeholders you should change.
|
|
291
|
+
from aws_cdk import aws_codeconnections as codeconnections
|
|
292
|
+
|
|
293
|
+
cfn_connection_props = codeconnections.CfnConnectionProps(
|
|
294
|
+
connection_name="connectionName",
|
|
295
|
+
|
|
296
|
+
# the properties below are optional
|
|
297
|
+
host_arn="hostArn",
|
|
298
|
+
provider_type="providerType",
|
|
299
|
+
tags=[CfnTag(
|
|
300
|
+
key="key",
|
|
301
|
+
value="value"
|
|
302
|
+
)]
|
|
303
|
+
)
|
|
304
|
+
'''
|
|
305
|
+
if __debug__:
|
|
306
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4ac62d1262e0fc9d7647548096d4e83c0367271b1f1be70c2119c14ec99b3dde)
|
|
307
|
+
check_type(argname="argument connection_name", value=connection_name, expected_type=type_hints["connection_name"])
|
|
308
|
+
check_type(argname="argument host_arn", value=host_arn, expected_type=type_hints["host_arn"])
|
|
309
|
+
check_type(argname="argument provider_type", value=provider_type, expected_type=type_hints["provider_type"])
|
|
310
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
311
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
312
|
+
"connection_name": connection_name,
|
|
313
|
+
}
|
|
314
|
+
if host_arn is not None:
|
|
315
|
+
self._values["host_arn"] = host_arn
|
|
316
|
+
if provider_type is not None:
|
|
317
|
+
self._values["provider_type"] = provider_type
|
|
318
|
+
if tags is not None:
|
|
319
|
+
self._values["tags"] = tags
|
|
320
|
+
|
|
321
|
+
@builtins.property
|
|
322
|
+
def connection_name(self) -> builtins.str:
|
|
323
|
+
'''The name of the connection.
|
|
324
|
+
|
|
325
|
+
Connection names must be unique in an AWS account .
|
|
326
|
+
|
|
327
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-connectionname
|
|
328
|
+
'''
|
|
329
|
+
result = self._values.get("connection_name")
|
|
330
|
+
assert result is not None, "Required property 'connection_name' is missing"
|
|
331
|
+
return typing.cast(builtins.str, result)
|
|
332
|
+
|
|
333
|
+
@builtins.property
|
|
334
|
+
def host_arn(self) -> typing.Optional[builtins.str]:
|
|
335
|
+
'''The Amazon Resource Name (ARN) of the host associated with the connection.
|
|
336
|
+
|
|
337
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-hostarn
|
|
338
|
+
'''
|
|
339
|
+
result = self._values.get("host_arn")
|
|
340
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
341
|
+
|
|
342
|
+
@builtins.property
|
|
343
|
+
def provider_type(self) -> typing.Optional[builtins.str]:
|
|
344
|
+
'''The name of the external provider where your third-party code repository is configured.
|
|
345
|
+
|
|
346
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-providertype
|
|
347
|
+
'''
|
|
348
|
+
result = self._values.get("provider_type")
|
|
349
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
350
|
+
|
|
351
|
+
@builtins.property
|
|
352
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
353
|
+
'''Specifies the tags applied to a connection.
|
|
354
|
+
|
|
355
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-tags
|
|
356
|
+
'''
|
|
357
|
+
result = self._values.get("tags")
|
|
358
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
359
|
+
|
|
360
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
361
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
362
|
+
|
|
363
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
364
|
+
return not (rhs == self)
|
|
365
|
+
|
|
366
|
+
def __repr__(self) -> str:
|
|
367
|
+
return "CfnConnectionProps(%s)" % ", ".join(
|
|
368
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
369
|
+
)
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
__all__ = [
|
|
373
|
+
"CfnConnection",
|
|
374
|
+
"CfnConnectionProps",
|
|
375
|
+
]
|
|
376
|
+
|
|
377
|
+
publication.publish()
|
|
378
|
+
|
|
379
|
+
def _typecheckingstub__da00c1ce515c51afa7843809dadd2cb48a76e0e91dd2a8096cc430768e89a815(
|
|
380
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
381
|
+
id: builtins.str,
|
|
382
|
+
*,
|
|
383
|
+
connection_name: builtins.str,
|
|
384
|
+
host_arn: typing.Optional[builtins.str] = None,
|
|
385
|
+
provider_type: typing.Optional[builtins.str] = None,
|
|
386
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
387
|
+
) -> None:
|
|
388
|
+
"""Type checking stubs"""
|
|
389
|
+
pass
|
|
390
|
+
|
|
391
|
+
def _typecheckingstub__78744497e1b5bae3f2ea20b9d3496e178855aef0e29d2de71777b026a6d27a1a(
|
|
392
|
+
inspector: _TreeInspector_488e0dd5,
|
|
393
|
+
) -> None:
|
|
394
|
+
"""Type checking stubs"""
|
|
395
|
+
pass
|
|
396
|
+
|
|
397
|
+
def _typecheckingstub__440f5e3662e5ab05ab71cf41aafae8bf45c3a11a457c7bbc13517a3eb9e7278e(
|
|
398
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
399
|
+
) -> None:
|
|
400
|
+
"""Type checking stubs"""
|
|
401
|
+
pass
|
|
402
|
+
|
|
403
|
+
def _typecheckingstub__7d759fec9e0861542e9267cd70eacda49ebbb2a1399fb2f36364a2a01d38cdc0(
|
|
404
|
+
value: builtins.str,
|
|
405
|
+
) -> None:
|
|
406
|
+
"""Type checking stubs"""
|
|
407
|
+
pass
|
|
408
|
+
|
|
409
|
+
def _typecheckingstub__6c6c22c4d5132fe518d2a74aed1b6d9c89f7a2fbb163195a459d8af8791cf1c9(
|
|
410
|
+
value: typing.Optional[builtins.str],
|
|
411
|
+
) -> None:
|
|
412
|
+
"""Type checking stubs"""
|
|
413
|
+
pass
|
|
414
|
+
|
|
415
|
+
def _typecheckingstub__2ec396e84dc4ee92669ed87aa685780cf9af74b974c8d0d7f12b0c1196dc17d6(
|
|
416
|
+
value: typing.Optional[builtins.str],
|
|
417
|
+
) -> None:
|
|
418
|
+
"""Type checking stubs"""
|
|
419
|
+
pass
|
|
420
|
+
|
|
421
|
+
def _typecheckingstub__cd277a1214d747c2b8b1a0998909d0fe0edc54719c5d7b8ae3621585dbf60405(
|
|
422
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
423
|
+
) -> None:
|
|
424
|
+
"""Type checking stubs"""
|
|
425
|
+
pass
|
|
426
|
+
|
|
427
|
+
def _typecheckingstub__4ac62d1262e0fc9d7647548096d4e83c0367271b1f1be70c2119c14ec99b3dde(
|
|
428
|
+
*,
|
|
429
|
+
connection_name: builtins.str,
|
|
430
|
+
host_arn: typing.Optional[builtins.str] = None,
|
|
431
|
+
provider_type: typing.Optional[builtins.str] = None,
|
|
432
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
433
|
+
) -> None:
|
|
434
|
+
"""Type checking stubs"""
|
|
435
|
+
pass
|