aws-cdk-lib 2.176.0__py3-none-any.whl → 2.177.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 +11 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.176.0.jsii.tgz → aws-cdk-lib@2.177.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +2 -2
- aws_cdk/aws_appsync/__init__.py +4 -3
- aws_cdk/aws_batch/__init__.py +4 -2
- aws_cdk/aws_bedrock/__init__.py +5395 -2508
- aws_cdk/aws_cloudfront/__init__.py +12 -2
- aws_cdk/aws_cloudfront_origins/__init__.py +33 -2
- aws_cdk/aws_codepipeline/__init__.py +35 -0
- aws_cdk/aws_cognito/__init__.py +162 -139
- aws_cdk/aws_customerprofiles/__init__.py +3 -3
- aws_cdk/aws_datazone/__init__.py +195 -125
- aws_cdk/aws_ec2/__init__.py +5 -3
- aws_cdk/aws_ecs/__init__.py +27 -8
- aws_cdk/aws_efs/__init__.py +5 -5
- aws_cdk/aws_eks/__init__.py +24 -3
- aws_cdk/aws_emrserverless/__init__.py +86 -0
- aws_cdk/aws_fms/__init__.py +42 -0
- aws_cdk/aws_gamelift/__init__.py +8 -10
- aws_cdk/aws_iam/__init__.py +8 -0
- aws_cdk/aws_imagebuilder/__init__.py +62 -48
- aws_cdk/aws_lambda/__init__.py +13 -0
- aws_cdk/aws_logs/__init__.py +59 -59
- aws_cdk/aws_notifications/__init__.py +1390 -0
- aws_cdk/aws_notificationscontacts/__init__.py +593 -0
- aws_cdk/aws_rds/__init__.py +16 -22
- aws_cdk/aws_redshift/__init__.py +9 -5
- aws_cdk/aws_route53/__init__.py +4 -4
- aws_cdk/aws_route53_targets/__init__.py +15 -15
- aws_cdk/aws_s3/__init__.py +789 -0
- aws_cdk/aws_s3_notifications/__init__.py +5 -5
- aws_cdk/aws_s3tables/__init__.py +2 -2
- aws_cdk/aws_sns/__init__.py +39 -0
- aws_cdk/aws_ssm/__init__.py +5 -5
- aws_cdk/aws_synthetics/__init__.py +105 -32
- aws_cdk/cloud_assembly_schema/__init__.py +63 -4
- aws_cdk/cx_api/__init__.py +44 -4
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.177.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.177.0.dist-info}/RECORD +44 -42
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.177.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.177.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.177.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.176.0.dist-info → aws_cdk_lib-2.177.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
r'''
|
|
2
|
+
# AWS::NotificationsContacts 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_notificationscontacts as notificationscontacts
|
|
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 NotificationsContacts construct libraries](https://constructs.dev/search?q=notificationscontacts)
|
|
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::NotificationsContacts resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_NotificationsContacts.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::NotificationsContacts](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_NotificationsContacts.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
|
+
CfnTag as _CfnTag_f6864754,
|
|
74
|
+
IInspectable as _IInspectable_c2943556,
|
|
75
|
+
IResolvable as _IResolvable_da3f097b,
|
|
76
|
+
ITaggableV2 as _ITaggableV2_4e6798f8,
|
|
77
|
+
TagManager as _TagManager_0a598cb3,
|
|
78
|
+
TreeInspector as _TreeInspector_488e0dd5,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
83
|
+
class CfnEmailContact(
|
|
84
|
+
_CfnResource_9df397a6,
|
|
85
|
+
metaclass=jsii.JSIIMeta,
|
|
86
|
+
jsii_type="aws-cdk-lib.aws_notificationscontacts.CfnEmailContact",
|
|
87
|
+
):
|
|
88
|
+
'''Configures email contacts for AWS User Notifications .
|
|
89
|
+
|
|
90
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notificationscontacts-emailcontact.html
|
|
91
|
+
:cloudformationResource: AWS::NotificationsContacts::EmailContact
|
|
92
|
+
:exampleMetadata: fixture=_generated
|
|
93
|
+
|
|
94
|
+
Example::
|
|
95
|
+
|
|
96
|
+
# The code below shows an example of how to instantiate this type.
|
|
97
|
+
# The values are placeholders you should change.
|
|
98
|
+
from aws_cdk import aws_notificationscontacts as notificationscontacts
|
|
99
|
+
|
|
100
|
+
cfn_email_contact = notificationscontacts.CfnEmailContact(self, "MyCfnEmailContact",
|
|
101
|
+
email_address="emailAddress",
|
|
102
|
+
name="name",
|
|
103
|
+
|
|
104
|
+
# the properties below are optional
|
|
105
|
+
tags=[CfnTag(
|
|
106
|
+
key="key",
|
|
107
|
+
value="value"
|
|
108
|
+
)]
|
|
109
|
+
)
|
|
110
|
+
'''
|
|
111
|
+
|
|
112
|
+
def __init__(
|
|
113
|
+
self,
|
|
114
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
115
|
+
id: builtins.str,
|
|
116
|
+
*,
|
|
117
|
+
email_address: builtins.str,
|
|
118
|
+
name: builtins.str,
|
|
119
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
120
|
+
) -> None:
|
|
121
|
+
'''
|
|
122
|
+
:param scope: Scope in which this resource is defined.
|
|
123
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
124
|
+
:param email_address: The email address of the contact. The activation and notification emails are sent here.
|
|
125
|
+
:param name: The name of the contact.
|
|
126
|
+
:param tags: A list of tags to apply to the email contact.
|
|
127
|
+
'''
|
|
128
|
+
if __debug__:
|
|
129
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1de25815cbc5e561d0f90c0eee8ffe57e0f8551698ba5a811da29f445a3d211b)
|
|
130
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
131
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
132
|
+
props = CfnEmailContactProps(email_address=email_address, name=name, tags=tags)
|
|
133
|
+
|
|
134
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
135
|
+
|
|
136
|
+
@jsii.member(jsii_name="inspect")
|
|
137
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
138
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
139
|
+
|
|
140
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
141
|
+
'''
|
|
142
|
+
if __debug__:
|
|
143
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b6bae88336d9a51f69c3fc86da9d85ddead25993d2bc29fd415fa7b87726d0e7)
|
|
144
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
145
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
146
|
+
|
|
147
|
+
@jsii.member(jsii_name="renderProperties")
|
|
148
|
+
def _render_properties(
|
|
149
|
+
self,
|
|
150
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
151
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
152
|
+
'''
|
|
153
|
+
:param props: -
|
|
154
|
+
'''
|
|
155
|
+
if __debug__:
|
|
156
|
+
type_hints = typing.get_type_hints(_typecheckingstub__49a0a2d04984c43f3c80eb33fad944cd8b49b1fb73b667140e24f4f9a81d76ae)
|
|
157
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
158
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
159
|
+
|
|
160
|
+
@jsii.python.classproperty
|
|
161
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
162
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
163
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
164
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
165
|
+
|
|
166
|
+
@builtins.property
|
|
167
|
+
@jsii.member(jsii_name="attrArn")
|
|
168
|
+
def attr_arn(self) -> builtins.str:
|
|
169
|
+
'''Returns the ARN of the contact.
|
|
170
|
+
|
|
171
|
+
:cloudformationAttribute: Arn
|
|
172
|
+
'''
|
|
173
|
+
return typing.cast(builtins.str, jsii.get(self, "attrArn"))
|
|
174
|
+
|
|
175
|
+
@builtins.property
|
|
176
|
+
@jsii.member(jsii_name="attrEmailContact")
|
|
177
|
+
def attr_email_contact(self) -> _IResolvable_da3f097b:
|
|
178
|
+
'''
|
|
179
|
+
:cloudformationAttribute: EmailContact
|
|
180
|
+
'''
|
|
181
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrEmailContact"))
|
|
182
|
+
|
|
183
|
+
@builtins.property
|
|
184
|
+
@jsii.member(jsii_name="attrEmailContactAddress")
|
|
185
|
+
def attr_email_contact_address(self) -> builtins.str:
|
|
186
|
+
'''The email address of the contact.
|
|
187
|
+
|
|
188
|
+
:cloudformationAttribute: EmailContact.Address
|
|
189
|
+
'''
|
|
190
|
+
return typing.cast(builtins.str, jsii.get(self, "attrEmailContactAddress"))
|
|
191
|
+
|
|
192
|
+
@builtins.property
|
|
193
|
+
@jsii.member(jsii_name="attrEmailContactArn")
|
|
194
|
+
def attr_email_contact_arn(self) -> builtins.str:
|
|
195
|
+
'''The Amazon Resource Name (ARN) of the contact.
|
|
196
|
+
|
|
197
|
+
:cloudformationAttribute: EmailContact.Arn
|
|
198
|
+
'''
|
|
199
|
+
return typing.cast(builtins.str, jsii.get(self, "attrEmailContactArn"))
|
|
200
|
+
|
|
201
|
+
@builtins.property
|
|
202
|
+
@jsii.member(jsii_name="attrEmailContactCreationTime")
|
|
203
|
+
def attr_email_contact_creation_time(self) -> builtins.str:
|
|
204
|
+
'''The creation time of the ``EmailContact`` .
|
|
205
|
+
|
|
206
|
+
:cloudformationAttribute: EmailContact.CreationTime
|
|
207
|
+
'''
|
|
208
|
+
return typing.cast(builtins.str, jsii.get(self, "attrEmailContactCreationTime"))
|
|
209
|
+
|
|
210
|
+
@builtins.property
|
|
211
|
+
@jsii.member(jsii_name="attrEmailContactName")
|
|
212
|
+
def attr_email_contact_name(self) -> builtins.str:
|
|
213
|
+
'''The name of the contact.
|
|
214
|
+
|
|
215
|
+
:cloudformationAttribute: EmailContact.Name
|
|
216
|
+
'''
|
|
217
|
+
return typing.cast(builtins.str, jsii.get(self, "attrEmailContactName"))
|
|
218
|
+
|
|
219
|
+
@builtins.property
|
|
220
|
+
@jsii.member(jsii_name="attrEmailContactStatus")
|
|
221
|
+
def attr_email_contact_status(self) -> builtins.str:
|
|
222
|
+
'''The status of the contact.
|
|
223
|
+
|
|
224
|
+
Only activated contacts receive emails.
|
|
225
|
+
|
|
226
|
+
:cloudformationAttribute: EmailContact.Status
|
|
227
|
+
'''
|
|
228
|
+
return typing.cast(builtins.str, jsii.get(self, "attrEmailContactStatus"))
|
|
229
|
+
|
|
230
|
+
@builtins.property
|
|
231
|
+
@jsii.member(jsii_name="attrEmailContactUpdateTime")
|
|
232
|
+
def attr_email_contact_update_time(self) -> builtins.str:
|
|
233
|
+
'''The time the ``EmailContact`` was last updated.
|
|
234
|
+
|
|
235
|
+
:cloudformationAttribute: EmailContact.UpdateTime
|
|
236
|
+
'''
|
|
237
|
+
return typing.cast(builtins.str, jsii.get(self, "attrEmailContactUpdateTime"))
|
|
238
|
+
|
|
239
|
+
@builtins.property
|
|
240
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
241
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
242
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
243
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
244
|
+
|
|
245
|
+
@builtins.property
|
|
246
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
247
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
248
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
249
|
+
|
|
250
|
+
@builtins.property
|
|
251
|
+
@jsii.member(jsii_name="emailAddress")
|
|
252
|
+
def email_address(self) -> builtins.str:
|
|
253
|
+
'''The email address of the contact.'''
|
|
254
|
+
return typing.cast(builtins.str, jsii.get(self, "emailAddress"))
|
|
255
|
+
|
|
256
|
+
@email_address.setter
|
|
257
|
+
def email_address(self, value: builtins.str) -> None:
|
|
258
|
+
if __debug__:
|
|
259
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ad40c0465cbabf41bb2abf49dcce2989a3b42139c67d0d593acc1d1d67028e58)
|
|
260
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
261
|
+
jsii.set(self, "emailAddress", value) # pyright: ignore[reportArgumentType]
|
|
262
|
+
|
|
263
|
+
@builtins.property
|
|
264
|
+
@jsii.member(jsii_name="name")
|
|
265
|
+
def name(self) -> builtins.str:
|
|
266
|
+
'''The name of the contact.'''
|
|
267
|
+
return typing.cast(builtins.str, jsii.get(self, "name"))
|
|
268
|
+
|
|
269
|
+
@name.setter
|
|
270
|
+
def name(self, value: builtins.str) -> None:
|
|
271
|
+
if __debug__:
|
|
272
|
+
type_hints = typing.get_type_hints(_typecheckingstub__71ded19921304e3a6ee545520c16e2621065bcf6a576b5305f984c994ac9fe5b)
|
|
273
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
274
|
+
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
275
|
+
|
|
276
|
+
@builtins.property
|
|
277
|
+
@jsii.member(jsii_name="tags")
|
|
278
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
279
|
+
'''A list of tags to apply to the email contact.'''
|
|
280
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
281
|
+
|
|
282
|
+
@tags.setter
|
|
283
|
+
def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
|
|
284
|
+
if __debug__:
|
|
285
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6155552227ec0ef011be7e784ffc90ecfddac06545f4d44a087256c3ef2ee22b)
|
|
286
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
287
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
288
|
+
|
|
289
|
+
@jsii.data_type(
|
|
290
|
+
jsii_type="aws-cdk-lib.aws_notificationscontacts.CfnEmailContact.EmailContactProperty",
|
|
291
|
+
jsii_struct_bases=[],
|
|
292
|
+
name_mapping={
|
|
293
|
+
"address": "address",
|
|
294
|
+
"arn": "arn",
|
|
295
|
+
"creation_time": "creationTime",
|
|
296
|
+
"name": "name",
|
|
297
|
+
"status": "status",
|
|
298
|
+
"update_time": "updateTime",
|
|
299
|
+
},
|
|
300
|
+
)
|
|
301
|
+
class EmailContactProperty:
|
|
302
|
+
def __init__(
|
|
303
|
+
self,
|
|
304
|
+
*,
|
|
305
|
+
address: builtins.str,
|
|
306
|
+
arn: builtins.str,
|
|
307
|
+
creation_time: builtins.str,
|
|
308
|
+
name: builtins.str,
|
|
309
|
+
status: builtins.str,
|
|
310
|
+
update_time: builtins.str,
|
|
311
|
+
) -> None:
|
|
312
|
+
'''Configures email contacts for AWS User Notifications .
|
|
313
|
+
|
|
314
|
+
You must activate the email contact using the activation token that you will receive when the email contact is set up.
|
|
315
|
+
|
|
316
|
+
:param address: The email address of the contact.
|
|
317
|
+
:param arn: The Amazon Resource Name (ARN) of the contact.
|
|
318
|
+
:param creation_time: The creation time of the ``EmailContact`` .
|
|
319
|
+
:param name: The name of the contact.
|
|
320
|
+
:param status: The status of the contact. Only activated contacts receive emails.
|
|
321
|
+
:param update_time: The time the ``EmailContact`` was last updated.
|
|
322
|
+
|
|
323
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-notificationscontacts-emailcontact-emailcontact.html
|
|
324
|
+
:exampleMetadata: fixture=_generated
|
|
325
|
+
|
|
326
|
+
Example::
|
|
327
|
+
|
|
328
|
+
# The code below shows an example of how to instantiate this type.
|
|
329
|
+
# The values are placeholders you should change.
|
|
330
|
+
from aws_cdk import aws_notificationscontacts as notificationscontacts
|
|
331
|
+
|
|
332
|
+
email_contact_property = notificationscontacts.CfnEmailContact.EmailContactProperty(
|
|
333
|
+
address="address",
|
|
334
|
+
arn="arn",
|
|
335
|
+
creation_time="creationTime",
|
|
336
|
+
name="name",
|
|
337
|
+
status="status",
|
|
338
|
+
update_time="updateTime"
|
|
339
|
+
)
|
|
340
|
+
'''
|
|
341
|
+
if __debug__:
|
|
342
|
+
type_hints = typing.get_type_hints(_typecheckingstub__48f41a7ff86bdb3f6536168c36c8ddd6876c1a2bfcd36169b53af9ce364e0eff)
|
|
343
|
+
check_type(argname="argument address", value=address, expected_type=type_hints["address"])
|
|
344
|
+
check_type(argname="argument arn", value=arn, expected_type=type_hints["arn"])
|
|
345
|
+
check_type(argname="argument creation_time", value=creation_time, expected_type=type_hints["creation_time"])
|
|
346
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
347
|
+
check_type(argname="argument status", value=status, expected_type=type_hints["status"])
|
|
348
|
+
check_type(argname="argument update_time", value=update_time, expected_type=type_hints["update_time"])
|
|
349
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
350
|
+
"address": address,
|
|
351
|
+
"arn": arn,
|
|
352
|
+
"creation_time": creation_time,
|
|
353
|
+
"name": name,
|
|
354
|
+
"status": status,
|
|
355
|
+
"update_time": update_time,
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@builtins.property
|
|
359
|
+
def address(self) -> builtins.str:
|
|
360
|
+
'''The email address of the contact.
|
|
361
|
+
|
|
362
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-notificationscontacts-emailcontact-emailcontact.html#cfn-notificationscontacts-emailcontact-emailcontact-address
|
|
363
|
+
'''
|
|
364
|
+
result = self._values.get("address")
|
|
365
|
+
assert result is not None, "Required property 'address' is missing"
|
|
366
|
+
return typing.cast(builtins.str, result)
|
|
367
|
+
|
|
368
|
+
@builtins.property
|
|
369
|
+
def arn(self) -> builtins.str:
|
|
370
|
+
'''The Amazon Resource Name (ARN) of the contact.
|
|
371
|
+
|
|
372
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-notificationscontacts-emailcontact-emailcontact.html#cfn-notificationscontacts-emailcontact-emailcontact-arn
|
|
373
|
+
'''
|
|
374
|
+
result = self._values.get("arn")
|
|
375
|
+
assert result is not None, "Required property 'arn' is missing"
|
|
376
|
+
return typing.cast(builtins.str, result)
|
|
377
|
+
|
|
378
|
+
@builtins.property
|
|
379
|
+
def creation_time(self) -> builtins.str:
|
|
380
|
+
'''The creation time of the ``EmailContact`` .
|
|
381
|
+
|
|
382
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-notificationscontacts-emailcontact-emailcontact.html#cfn-notificationscontacts-emailcontact-emailcontact-creationtime
|
|
383
|
+
'''
|
|
384
|
+
result = self._values.get("creation_time")
|
|
385
|
+
assert result is not None, "Required property 'creation_time' is missing"
|
|
386
|
+
return typing.cast(builtins.str, result)
|
|
387
|
+
|
|
388
|
+
@builtins.property
|
|
389
|
+
def name(self) -> builtins.str:
|
|
390
|
+
'''The name of the contact.
|
|
391
|
+
|
|
392
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-notificationscontacts-emailcontact-emailcontact.html#cfn-notificationscontacts-emailcontact-emailcontact-name
|
|
393
|
+
'''
|
|
394
|
+
result = self._values.get("name")
|
|
395
|
+
assert result is not None, "Required property 'name' is missing"
|
|
396
|
+
return typing.cast(builtins.str, result)
|
|
397
|
+
|
|
398
|
+
@builtins.property
|
|
399
|
+
def status(self) -> builtins.str:
|
|
400
|
+
'''The status of the contact.
|
|
401
|
+
|
|
402
|
+
Only activated contacts receive emails.
|
|
403
|
+
|
|
404
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-notificationscontacts-emailcontact-emailcontact.html#cfn-notificationscontacts-emailcontact-emailcontact-status
|
|
405
|
+
'''
|
|
406
|
+
result = self._values.get("status")
|
|
407
|
+
assert result is not None, "Required property 'status' is missing"
|
|
408
|
+
return typing.cast(builtins.str, result)
|
|
409
|
+
|
|
410
|
+
@builtins.property
|
|
411
|
+
def update_time(self) -> builtins.str:
|
|
412
|
+
'''The time the ``EmailContact`` was last updated.
|
|
413
|
+
|
|
414
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-notificationscontacts-emailcontact-emailcontact.html#cfn-notificationscontacts-emailcontact-emailcontact-updatetime
|
|
415
|
+
'''
|
|
416
|
+
result = self._values.get("update_time")
|
|
417
|
+
assert result is not None, "Required property 'update_time' is missing"
|
|
418
|
+
return typing.cast(builtins.str, result)
|
|
419
|
+
|
|
420
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
421
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
422
|
+
|
|
423
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
424
|
+
return not (rhs == self)
|
|
425
|
+
|
|
426
|
+
def __repr__(self) -> str:
|
|
427
|
+
return "EmailContactProperty(%s)" % ", ".join(
|
|
428
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
429
|
+
)
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
@jsii.data_type(
|
|
433
|
+
jsii_type="aws-cdk-lib.aws_notificationscontacts.CfnEmailContactProps",
|
|
434
|
+
jsii_struct_bases=[],
|
|
435
|
+
name_mapping={"email_address": "emailAddress", "name": "name", "tags": "tags"},
|
|
436
|
+
)
|
|
437
|
+
class CfnEmailContactProps:
|
|
438
|
+
def __init__(
|
|
439
|
+
self,
|
|
440
|
+
*,
|
|
441
|
+
email_address: builtins.str,
|
|
442
|
+
name: builtins.str,
|
|
443
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
444
|
+
) -> None:
|
|
445
|
+
'''Properties for defining a ``CfnEmailContact``.
|
|
446
|
+
|
|
447
|
+
:param email_address: The email address of the contact. The activation and notification emails are sent here.
|
|
448
|
+
:param name: The name of the contact.
|
|
449
|
+
:param tags: A list of tags to apply to the email contact.
|
|
450
|
+
|
|
451
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notificationscontacts-emailcontact.html
|
|
452
|
+
:exampleMetadata: fixture=_generated
|
|
453
|
+
|
|
454
|
+
Example::
|
|
455
|
+
|
|
456
|
+
# The code below shows an example of how to instantiate this type.
|
|
457
|
+
# The values are placeholders you should change.
|
|
458
|
+
from aws_cdk import aws_notificationscontacts as notificationscontacts
|
|
459
|
+
|
|
460
|
+
cfn_email_contact_props = notificationscontacts.CfnEmailContactProps(
|
|
461
|
+
email_address="emailAddress",
|
|
462
|
+
name="name",
|
|
463
|
+
|
|
464
|
+
# the properties below are optional
|
|
465
|
+
tags=[CfnTag(
|
|
466
|
+
key="key",
|
|
467
|
+
value="value"
|
|
468
|
+
)]
|
|
469
|
+
)
|
|
470
|
+
'''
|
|
471
|
+
if __debug__:
|
|
472
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e7543e8bd10495fcc6c9e64b34fe84fba884f90162406e82ddba641f72f545e8)
|
|
473
|
+
check_type(argname="argument email_address", value=email_address, expected_type=type_hints["email_address"])
|
|
474
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
475
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
476
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
477
|
+
"email_address": email_address,
|
|
478
|
+
"name": name,
|
|
479
|
+
}
|
|
480
|
+
if tags is not None:
|
|
481
|
+
self._values["tags"] = tags
|
|
482
|
+
|
|
483
|
+
@builtins.property
|
|
484
|
+
def email_address(self) -> builtins.str:
|
|
485
|
+
'''The email address of the contact.
|
|
486
|
+
|
|
487
|
+
The activation and notification emails are sent here.
|
|
488
|
+
|
|
489
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notificationscontacts-emailcontact.html#cfn-notificationscontacts-emailcontact-emailaddress
|
|
490
|
+
'''
|
|
491
|
+
result = self._values.get("email_address")
|
|
492
|
+
assert result is not None, "Required property 'email_address' is missing"
|
|
493
|
+
return typing.cast(builtins.str, result)
|
|
494
|
+
|
|
495
|
+
@builtins.property
|
|
496
|
+
def name(self) -> builtins.str:
|
|
497
|
+
'''The name of the contact.
|
|
498
|
+
|
|
499
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notificationscontacts-emailcontact.html#cfn-notificationscontacts-emailcontact-name
|
|
500
|
+
'''
|
|
501
|
+
result = self._values.get("name")
|
|
502
|
+
assert result is not None, "Required property 'name' is missing"
|
|
503
|
+
return typing.cast(builtins.str, result)
|
|
504
|
+
|
|
505
|
+
@builtins.property
|
|
506
|
+
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
507
|
+
'''A list of tags to apply to the email contact.
|
|
508
|
+
|
|
509
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-notificationscontacts-emailcontact.html#cfn-notificationscontacts-emailcontact-tags
|
|
510
|
+
'''
|
|
511
|
+
result = self._values.get("tags")
|
|
512
|
+
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
513
|
+
|
|
514
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
515
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
516
|
+
|
|
517
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
518
|
+
return not (rhs == self)
|
|
519
|
+
|
|
520
|
+
def __repr__(self) -> str:
|
|
521
|
+
return "CfnEmailContactProps(%s)" % ", ".join(
|
|
522
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
523
|
+
)
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
__all__ = [
|
|
527
|
+
"CfnEmailContact",
|
|
528
|
+
"CfnEmailContactProps",
|
|
529
|
+
]
|
|
530
|
+
|
|
531
|
+
publication.publish()
|
|
532
|
+
|
|
533
|
+
def _typecheckingstub__1de25815cbc5e561d0f90c0eee8ffe57e0f8551698ba5a811da29f445a3d211b(
|
|
534
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
535
|
+
id: builtins.str,
|
|
536
|
+
*,
|
|
537
|
+
email_address: builtins.str,
|
|
538
|
+
name: builtins.str,
|
|
539
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
540
|
+
) -> None:
|
|
541
|
+
"""Type checking stubs"""
|
|
542
|
+
pass
|
|
543
|
+
|
|
544
|
+
def _typecheckingstub__b6bae88336d9a51f69c3fc86da9d85ddead25993d2bc29fd415fa7b87726d0e7(
|
|
545
|
+
inspector: _TreeInspector_488e0dd5,
|
|
546
|
+
) -> None:
|
|
547
|
+
"""Type checking stubs"""
|
|
548
|
+
pass
|
|
549
|
+
|
|
550
|
+
def _typecheckingstub__49a0a2d04984c43f3c80eb33fad944cd8b49b1fb73b667140e24f4f9a81d76ae(
|
|
551
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
552
|
+
) -> None:
|
|
553
|
+
"""Type checking stubs"""
|
|
554
|
+
pass
|
|
555
|
+
|
|
556
|
+
def _typecheckingstub__ad40c0465cbabf41bb2abf49dcce2989a3b42139c67d0d593acc1d1d67028e58(
|
|
557
|
+
value: builtins.str,
|
|
558
|
+
) -> None:
|
|
559
|
+
"""Type checking stubs"""
|
|
560
|
+
pass
|
|
561
|
+
|
|
562
|
+
def _typecheckingstub__71ded19921304e3a6ee545520c16e2621065bcf6a576b5305f984c994ac9fe5b(
|
|
563
|
+
value: builtins.str,
|
|
564
|
+
) -> None:
|
|
565
|
+
"""Type checking stubs"""
|
|
566
|
+
pass
|
|
567
|
+
|
|
568
|
+
def _typecheckingstub__6155552227ec0ef011be7e784ffc90ecfddac06545f4d44a087256c3ef2ee22b(
|
|
569
|
+
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
570
|
+
) -> None:
|
|
571
|
+
"""Type checking stubs"""
|
|
572
|
+
pass
|
|
573
|
+
|
|
574
|
+
def _typecheckingstub__48f41a7ff86bdb3f6536168c36c8ddd6876c1a2bfcd36169b53af9ce364e0eff(
|
|
575
|
+
*,
|
|
576
|
+
address: builtins.str,
|
|
577
|
+
arn: builtins.str,
|
|
578
|
+
creation_time: builtins.str,
|
|
579
|
+
name: builtins.str,
|
|
580
|
+
status: builtins.str,
|
|
581
|
+
update_time: builtins.str,
|
|
582
|
+
) -> None:
|
|
583
|
+
"""Type checking stubs"""
|
|
584
|
+
pass
|
|
585
|
+
|
|
586
|
+
def _typecheckingstub__e7543e8bd10495fcc6c9e64b34fe84fba884f90162406e82ddba641f72f545e8(
|
|
587
|
+
*,
|
|
588
|
+
email_address: builtins.str,
|
|
589
|
+
name: builtins.str,
|
|
590
|
+
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
591
|
+
) -> None:
|
|
592
|
+
"""Type checking stubs"""
|
|
593
|
+
pass
|