gammarers.aws-resource-naming 0.3.0__tar.gz → 0.4.0__tar.gz

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 gammarers.aws-resource-naming might be problematic. Click here for more details.

Files changed (19) hide show
  1. {gammarers_aws_resource_naming-0.3.0/src/gammarers.aws_resource_naming.egg-info → gammarers_aws_resource_naming-0.4.0}/PKG-INFO +1 -1
  2. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/setup.py +2 -2
  3. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/src/gammarers/aws_resource_naming/_jsii/__init__.py +2 -2
  4. gammarers_aws_resource_naming-0.4.0/src/gammarers/aws_resource_naming/_jsii/aws-resource-naming@0.4.0.jsii.tgz +0 -0
  5. gammarers_aws_resource_naming-0.4.0/src/gammarers/aws_resource_naming/resource_naming/__init__.py +236 -0
  6. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0/src/gammarers.aws_resource_naming.egg-info}/PKG-INFO +1 -1
  7. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/src/gammarers.aws_resource_naming.egg-info/SOURCES.txt +1 -1
  8. gammarers_aws_resource_naming-0.3.0/src/gammarers/aws_resource_naming/_jsii/aws-resource-naming@0.3.0.jsii.tgz +0 -0
  9. gammarers_aws_resource_naming-0.3.0/src/gammarers/aws_resource_naming/resource_naming/__init__.py +0 -93
  10. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/LICENSE +0 -0
  11. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/MANIFEST.in +0 -0
  12. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/README.md +0 -0
  13. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/pyproject.toml +0 -0
  14. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/setup.cfg +0 -0
  15. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/src/gammarers/aws_resource_naming/__init__.py +0 -0
  16. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/src/gammarers/aws_resource_naming/py.typed +0 -0
  17. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/src/gammarers.aws_resource_naming.egg-info/dependency_links.txt +0 -0
  18. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/src/gammarers.aws_resource_naming.egg-info/requires.txt +0 -0
  19. {gammarers_aws_resource_naming-0.3.0 → gammarers_aws_resource_naming-0.4.0}/src/gammarers.aws_resource_naming.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gammarers.aws-resource-naming
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: @gammarers/aws-resource-naming
5
5
  Home-page: https://github.com/gammarers/aws-resource-naming.git
6
6
  Author: yicr<yicr@users.noreply.github.com>
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "gammarers.aws-resource-naming",
8
- "version": "0.3.0",
8
+ "version": "0.4.0",
9
9
  "description": "@gammarers/aws-resource-naming",
10
10
  "license": "Apache-2.0",
11
11
  "url": "https://github.com/gammarers/aws-resource-naming.git",
@@ -27,7 +27,7 @@ kwargs = json.loads(
27
27
  ],
28
28
  "package_data": {
29
29
  "gammarers.aws_resource_naming._jsii": [
30
- "aws-resource-naming@0.3.0.jsii.tgz"
30
+ "aws-resource-naming@0.4.0.jsii.tgz"
31
31
  ],
32
32
  "gammarers.aws_resource_naming": [
33
33
  "py.typed"
@@ -30,9 +30,9 @@ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing
30
30
 
31
31
  __jsii_assembly__ = jsii.JSIIAssembly.load(
32
32
  "@gammarers/aws-resource-naming",
33
- "0.3.0",
33
+ "0.4.0",
34
34
  __name__[0:-6],
35
- "aws-resource-naming@0.3.0.jsii.tgz",
35
+ "aws-resource-naming@0.4.0.jsii.tgz",
36
36
  )
37
37
 
38
38
  __all__ = [
@@ -0,0 +1,236 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
3
+
4
+ import abc
5
+ import builtins
6
+ import datetime
7
+ import enum
8
+ import typing
9
+
10
+ import jsii
11
+ import publication
12
+ import typing_extensions
13
+
14
+ import typeguard
15
+ from importlib.metadata import version as _metadata_package_version
16
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
17
+
18
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
19
+ if TYPEGUARD_MAJOR_VERSION <= 2:
20
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
21
+ else:
22
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
23
+ pass
24
+ else:
25
+ if TYPEGUARD_MAJOR_VERSION == 3:
26
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
27
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
28
+ else:
29
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
30
+
31
+ from .._jsii import *
32
+
33
+
34
+ @jsii.data_type(
35
+ jsii_type="@gammarers/aws-resource-naming.ResourceNaming.CustomNaming",
36
+ jsii_struct_bases=[],
37
+ name_mapping={"names": "names", "type": "type"},
38
+ )
39
+ class CustomNaming:
40
+ def __init__(
41
+ self,
42
+ *,
43
+ names: typing.Mapping[builtins.str, builtins.str],
44
+ type: "NamingType",
45
+ ) -> None:
46
+ '''
47
+ :param names:
48
+ :param type:
49
+ '''
50
+ if __debug__:
51
+ type_hints = typing.get_type_hints(_typecheckingstub__8fff27b6dcebd6700d9f8d6f36ba20baab0f1e3a292e374831d37da1388dee34)
52
+ check_type(argname="argument names", value=names, expected_type=type_hints["names"])
53
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
54
+ self._values: typing.Dict[builtins.str, typing.Any] = {
55
+ "names": names,
56
+ "type": type,
57
+ }
58
+
59
+ @builtins.property
60
+ def names(self) -> typing.Mapping[builtins.str, builtins.str]:
61
+ result = self._values.get("names")
62
+ assert result is not None, "Required property 'names' is missing"
63
+ return typing.cast(typing.Mapping[builtins.str, builtins.str], result)
64
+
65
+ @builtins.property
66
+ def type(self) -> "NamingType":
67
+ result = self._values.get("type")
68
+ assert result is not None, "Required property 'type' is missing"
69
+ return typing.cast("NamingType", result)
70
+
71
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
72
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
73
+
74
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
75
+ return not (rhs == self)
76
+
77
+ def __repr__(self) -> str:
78
+ return "CustomNaming(%s)" % ", ".join(
79
+ k + "=" + repr(v) for k, v in self._values.items()
80
+ )
81
+
82
+
83
+ @jsii.data_type(
84
+ jsii_type="@gammarers/aws-resource-naming.ResourceNaming.DefaultNaming",
85
+ jsii_struct_bases=[],
86
+ name_mapping={"type": "type"},
87
+ )
88
+ class DefaultNaming:
89
+ def __init__(self, *, type: "NamingType") -> None:
90
+ '''
91
+ :param type:
92
+ '''
93
+ if __debug__:
94
+ type_hints = typing.get_type_hints(_typecheckingstub__a6fe688f7026700ff451ff908b5358d3e7292c007575b3de8dfbdfcbadcb332f)
95
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
96
+ self._values: typing.Dict[builtins.str, typing.Any] = {
97
+ "type": type,
98
+ }
99
+
100
+ @builtins.property
101
+ def type(self) -> "NamingType":
102
+ result = self._values.get("type")
103
+ assert result is not None, "Required property 'type' is missing"
104
+ return typing.cast("NamingType", result)
105
+
106
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
107
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
108
+
109
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
110
+ return not (rhs == self)
111
+
112
+ def __repr__(self) -> str:
113
+ return "DefaultNaming(%s)" % ", ".join(
114
+ k + "=" + repr(v) for k, v in self._values.items()
115
+ )
116
+
117
+
118
+ @jsii.data_type(
119
+ jsii_type="@gammarers/aws-resource-naming.ResourceNaming.NamingOptions",
120
+ jsii_struct_bases=[],
121
+ name_mapping={"naming": "naming"},
122
+ )
123
+ class NamingOptions:
124
+ def __init__(
125
+ self,
126
+ *,
127
+ naming: typing.Union[typing.Union["NoNaming", typing.Dict[builtins.str, typing.Any]], typing.Union[DefaultNaming, typing.Dict[builtins.str, typing.Any]], typing.Union[CustomNaming, typing.Dict[builtins.str, typing.Any]]],
128
+ ) -> None:
129
+ '''
130
+ :param naming:
131
+ '''
132
+ if __debug__:
133
+ type_hints = typing.get_type_hints(_typecheckingstub__74a21456f1875723092b0702d4fd53b02fa06b53aff36a896a2909135d5c42f6)
134
+ check_type(argname="argument naming", value=naming, expected_type=type_hints["naming"])
135
+ self._values: typing.Dict[builtins.str, typing.Any] = {
136
+ "naming": naming,
137
+ }
138
+
139
+ @builtins.property
140
+ def naming(self) -> typing.Union["NoNaming", DefaultNaming, CustomNaming]:
141
+ result = self._values.get("naming")
142
+ assert result is not None, "Required property 'naming' is missing"
143
+ return typing.cast(typing.Union["NoNaming", DefaultNaming, CustomNaming], result)
144
+
145
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
146
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
147
+
148
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
149
+ return not (rhs == self)
150
+
151
+ def __repr__(self) -> str:
152
+ return "NamingOptions(%s)" % ", ".join(
153
+ k + "=" + repr(v) for k, v in self._values.items()
154
+ )
155
+
156
+
157
+ @jsii.enum(jsii_type="@gammarers/aws-resource-naming.ResourceNaming.NamingType")
158
+ class NamingType(enum.Enum):
159
+ NO = "NO"
160
+ DEFAULT = "DEFAULT"
161
+ CUSTOM = "CUSTOM"
162
+
163
+
164
+ @jsii.data_type(
165
+ jsii_type="@gammarers/aws-resource-naming.ResourceNaming.NoNaming",
166
+ jsii_struct_bases=[],
167
+ name_mapping={"type": "type"},
168
+ )
169
+ class NoNaming:
170
+ def __init__(self, *, type: NamingType) -> None:
171
+ '''
172
+ :param type:
173
+ '''
174
+ if __debug__:
175
+ type_hints = typing.get_type_hints(_typecheckingstub__24cd6ae03c739c87909e65c512e87d9dfda9d588964f28553f04daaae884fb51)
176
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
177
+ self._values: typing.Dict[builtins.str, typing.Any] = {
178
+ "type": type,
179
+ }
180
+
181
+ @builtins.property
182
+ def type(self) -> NamingType:
183
+ result = self._values.get("type")
184
+ assert result is not None, "Required property 'type' is missing"
185
+ return typing.cast(NamingType, result)
186
+
187
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
188
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
189
+
190
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
191
+ return not (rhs == self)
192
+
193
+ def __repr__(self) -> str:
194
+ return "NoNaming(%s)" % ", ".join(
195
+ k + "=" + repr(v) for k, v in self._values.items()
196
+ )
197
+
198
+
199
+ __all__ = [
200
+ "CustomNaming",
201
+ "DefaultNaming",
202
+ "NamingOptions",
203
+ "NamingType",
204
+ "NoNaming",
205
+ ]
206
+
207
+ publication.publish()
208
+
209
+ def _typecheckingstub__8fff27b6dcebd6700d9f8d6f36ba20baab0f1e3a292e374831d37da1388dee34(
210
+ *,
211
+ names: typing.Mapping[builtins.str, builtins.str],
212
+ type: NamingType,
213
+ ) -> None:
214
+ """Type checking stubs"""
215
+ pass
216
+
217
+ def _typecheckingstub__a6fe688f7026700ff451ff908b5358d3e7292c007575b3de8dfbdfcbadcb332f(
218
+ *,
219
+ type: NamingType,
220
+ ) -> None:
221
+ """Type checking stubs"""
222
+ pass
223
+
224
+ def _typecheckingstub__74a21456f1875723092b0702d4fd53b02fa06b53aff36a896a2909135d5c42f6(
225
+ *,
226
+ naming: typing.Union[typing.Union[NoNaming, typing.Dict[builtins.str, typing.Any]], typing.Union[DefaultNaming, typing.Dict[builtins.str, typing.Any]], typing.Union[CustomNaming, typing.Dict[builtins.str, typing.Any]]],
227
+ ) -> None:
228
+ """Type checking stubs"""
229
+ pass
230
+
231
+ def _typecheckingstub__24cd6ae03c739c87909e65c512e87d9dfda9d588964f28553f04daaae884fb51(
232
+ *,
233
+ type: NamingType,
234
+ ) -> None:
235
+ """Type checking stubs"""
236
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gammarers.aws-resource-naming
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: @gammarers/aws-resource-naming
5
5
  Home-page: https://github.com/gammarers/aws-resource-naming.git
6
6
  Author: yicr<yicr@users.noreply.github.com>
@@ -11,5 +11,5 @@ src/gammarers.aws_resource_naming.egg-info/top_level.txt
11
11
  src/gammarers/aws_resource_naming/__init__.py
12
12
  src/gammarers/aws_resource_naming/py.typed
13
13
  src/gammarers/aws_resource_naming/_jsii/__init__.py
14
- src/gammarers/aws_resource_naming/_jsii/aws-resource-naming@0.3.0.jsii.tgz
14
+ src/gammarers/aws_resource_naming/_jsii/aws-resource-naming@0.4.0.jsii.tgz
15
15
  src/gammarers/aws_resource_naming/resource_naming/__init__.py
@@ -1,93 +0,0 @@
1
- from pkgutil import extend_path
2
- __path__ = extend_path(__path__, __name__)
3
-
4
- import abc
5
- import builtins
6
- import datetime
7
- import enum
8
- import typing
9
-
10
- import jsii
11
- import publication
12
- import typing_extensions
13
-
14
- import typeguard
15
- from importlib.metadata import version as _metadata_package_version
16
- TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
17
-
18
- def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
19
- if TYPEGUARD_MAJOR_VERSION <= 2:
20
- return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
21
- else:
22
- if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
23
- pass
24
- else:
25
- if TYPEGUARD_MAJOR_VERSION == 3:
26
- typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
27
- typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
28
- else:
29
- typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
30
-
31
- from .._jsii import *
32
-
33
-
34
- @jsii.data_type(
35
- jsii_type="@gammarers/aws-resource-naming.ResourceNaming.NamingOptions",
36
- jsii_struct_bases=[],
37
- name_mapping={"naming": "naming"},
38
- )
39
- class NamingOptions:
40
- def __init__(
41
- self,
42
- *,
43
- naming: typing.Union["NamingType", typing.Mapping[builtins.str, builtins.str]],
44
- ) -> None:
45
- '''
46
- :param naming:
47
- '''
48
- if __debug__:
49
- type_hints = typing.get_type_hints(_typecheckingstub__74a21456f1875723092b0702d4fd53b02fa06b53aff36a896a2909135d5c42f6)
50
- check_type(argname="argument naming", value=naming, expected_type=type_hints["naming"])
51
- self._values: typing.Dict[builtins.str, typing.Any] = {
52
- "naming": naming,
53
- }
54
-
55
- @builtins.property
56
- def naming(
57
- self,
58
- ) -> typing.Union["NamingType", typing.Mapping[builtins.str, builtins.str]]:
59
- result = self._values.get("naming")
60
- assert result is not None, "Required property 'naming' is missing"
61
- return typing.cast(typing.Union["NamingType", typing.Mapping[builtins.str, builtins.str]], result)
62
-
63
- def __eq__(self, rhs: typing.Any) -> builtins.bool:
64
- return isinstance(rhs, self.__class__) and rhs._values == self._values
65
-
66
- def __ne__(self, rhs: typing.Any) -> builtins.bool:
67
- return not (rhs == self)
68
-
69
- def __repr__(self) -> str:
70
- return "NamingOptions(%s)" % ", ".join(
71
- k + "=" + repr(v) for k, v in self._values.items()
72
- )
73
-
74
-
75
- @jsii.enum(jsii_type="@gammarers/aws-resource-naming.ResourceNaming.NamingType")
76
- class NamingType(enum.Enum):
77
- DEFAULT = "DEFAULT"
78
- NONE = "NONE"
79
-
80
-
81
- __all__ = [
82
- "NamingOptions",
83
- "NamingType",
84
- ]
85
-
86
- publication.publish()
87
-
88
- def _typecheckingstub__74a21456f1875723092b0702d4fd53b02fa06b53aff36a896a2909135d5c42f6(
89
- *,
90
- naming: typing.Union[NamingType, typing.Mapping[builtins.str, builtins.str]],
91
- ) -> None:
92
- """Type checking stubs"""
93
- pass