gammarers.aws-resource-naming 0.2.4__py3-none-any.whl → 0.4.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 gammarers.aws-resource-naming might be problematic. Click here for more details.

@@ -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.2.4",
33
+ "0.4.0",
34
34
  __name__[0:-6],
35
- "aws-resource-naming@0.2.4.jsii.tgz",
35
+ "aws-resource-naming@0.4.0.jsii.tgz",
36
36
  )
37
37
 
38
38
  __all__ = [
@@ -32,13 +32,115 @@ from .._jsii import *
32
32
 
33
33
 
34
34
  @jsii.data_type(
35
- jsii_type="@gammarers/aws-resource-naming.ResourceNaming.Naming",
35
+ jsii_type="@gammarers/aws-resource-naming.ResourceNaming.CustomNaming",
36
36
  jsii_struct_bases=[],
37
- name_mapping={},
37
+ name_mapping={"names": "names", "type": "type"},
38
38
  )
39
- class Naming:
40
- def __init__(self) -> None:
41
- self._values: typing.Dict[builtins.str, typing.Any] = {}
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)
42
144
 
43
145
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
44
146
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -47,20 +149,88 @@ class Naming:
47
149
  return not (rhs == self)
48
150
 
49
151
  def __repr__(self) -> str:
50
- return "Naming(%s)" % ", ".join(
152
+ return "NamingOptions(%s)" % ", ".join(
51
153
  k + "=" + repr(v) for k, v in self._values.items()
52
154
  )
53
155
 
54
156
 
55
157
  @jsii.enum(jsii_type="@gammarers/aws-resource-naming.ResourceNaming.NamingType")
56
158
  class NamingType(enum.Enum):
159
+ NO = "NO"
57
160
  DEFAULT = "DEFAULT"
58
- NONE = "NONE"
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
+ )
59
197
 
60
198
 
61
199
  __all__ = [
62
- "Naming",
200
+ "CustomNaming",
201
+ "DefaultNaming",
202
+ "NamingOptions",
63
203
  "NamingType",
204
+ "NoNaming",
64
205
  ]
65
206
 
66
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.2.4
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>
@@ -0,0 +1,10 @@
1
+ gammarers/aws_resource_naming/__init__.py,sha256=OKd0Xeh-5m5Ca20HN7uSspIKXtsUanPIEJgDs9SkVH4,1434
2
+ gammarers/aws_resource_naming/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ gammarers/aws_resource_naming/_jsii/__init__.py,sha256=FnoBht2VdYmnm6wcZnE1WB61cuwaPYElsUdM69aYWtg,1427
4
+ gammarers/aws_resource_naming/_jsii/aws-resource-naming@0.4.0.jsii.tgz,sha256=h5XTexuY8nQwQnpcQwzsszuDl2YmWlJ1nlldLdQvqhA,10599
5
+ gammarers/aws_resource_naming/resource_naming/__init__.py,sha256=TT4jTvCwgoZJM8998LHbVC37uT_Po0f9wvMwyqM08xk,8251
6
+ gammarers.aws_resource_naming-0.4.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
7
+ gammarers.aws_resource_naming-0.4.0.dist-info/METADATA,sha256=9ZfvbW_zyYOKjxCR2YitPFLZRdPDLjUfTYaieIhIzOI,1049
8
+ gammarers.aws_resource_naming-0.4.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
+ gammarers.aws_resource_naming-0.4.0.dist-info/top_level.txt,sha256=aYHffMrt-8dtQoLeNk0M8OeqbA0a5gMcnNm5hL7OMHk,10
10
+ gammarers.aws_resource_naming-0.4.0.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- gammarers/aws_resource_naming/__init__.py,sha256=OKd0Xeh-5m5Ca20HN7uSspIKXtsUanPIEJgDs9SkVH4,1434
2
- gammarers/aws_resource_naming/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- gammarers/aws_resource_naming/_jsii/__init__.py,sha256=uOOFl0ifBAlJQyVfAq9UCNr9p7rJeKaJCvWiJKwjHsU,1427
4
- gammarers/aws_resource_naming/_jsii/aws-resource-naming@0.2.4.jsii.tgz,sha256=Acxm3QPntvrUoII5-d5i4ZV7fI3KSdZOUyqxlGUPYa8,7810
5
- gammarers/aws_resource_naming/resource_naming/__init__.py,sha256=vi6mbsh9U5mrljB8cRLzMbEGg-FmfnDLWL6fGI-XlYk,2073
6
- gammarers.aws_resource_naming-0.2.4.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
7
- gammarers.aws_resource_naming-0.2.4.dist-info/METADATA,sha256=BVwSN7qq9dfjIBLUYnAy2Y7vAPipTcGarhHjBU9Ezxs,1049
8
- gammarers.aws_resource_naming-0.2.4.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
- gammarers.aws_resource_naming-0.2.4.dist-info/top_level.txt,sha256=aYHffMrt-8dtQoLeNk0M8OeqbA0a5gMcnNm5hL7OMHk,10
10
- gammarers.aws_resource_naming-0.2.4.dist-info/RECORD,,