gammarers.aws-resource-naming 0.3.0__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.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__ = [
@@ -31,6 +31,90 @@ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing
31
31
  from .._jsii import *
32
32
 
33
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
+
34
118
  @jsii.data_type(
35
119
  jsii_type="@gammarers/aws-resource-naming.ResourceNaming.NamingOptions",
36
120
  jsii_struct_bases=[],
@@ -40,7 +124,7 @@ class NamingOptions:
40
124
  def __init__(
41
125
  self,
42
126
  *,
43
- naming: typing.Union["NamingType", typing.Mapping[builtins.str, builtins.str]],
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]]],
44
128
  ) -> None:
45
129
  '''
46
130
  :param naming:
@@ -53,12 +137,10 @@ class NamingOptions:
53
137
  }
54
138
 
55
139
  @builtins.property
56
- def naming(
57
- self,
58
- ) -> typing.Union["NamingType", typing.Mapping[builtins.str, builtins.str]]:
140
+ def naming(self) -> typing.Union["NoNaming", DefaultNaming, CustomNaming]:
59
141
  result = self._values.get("naming")
60
142
  assert result is not None, "Required property 'naming' is missing"
61
- return typing.cast(typing.Union["NamingType", typing.Mapping[builtins.str, builtins.str]], result)
143
+ return typing.cast(typing.Union["NoNaming", DefaultNaming, CustomNaming], result)
62
144
 
63
145
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
64
146
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -74,20 +156,81 @@ class NamingOptions:
74
156
 
75
157
  @jsii.enum(jsii_type="@gammarers/aws-resource-naming.ResourceNaming.NamingType")
76
158
  class NamingType(enum.Enum):
159
+ NO = "NO"
77
160
  DEFAULT = "DEFAULT"
78
- 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
+ )
79
197
 
80
198
 
81
199
  __all__ = [
200
+ "CustomNaming",
201
+ "DefaultNaming",
82
202
  "NamingOptions",
83
203
  "NamingType",
204
+ "NoNaming",
84
205
  ]
85
206
 
86
207
  publication.publish()
87
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
+
88
224
  def _typecheckingstub__74a21456f1875723092b0702d4fd53b02fa06b53aff36a896a2909135d5c42f6(
89
225
  *,
90
- naming: typing.Union[NamingType, typing.Mapping[builtins.str, builtins.str]],
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,
91
234
  ) -> None:
92
235
  """Type checking stubs"""
93
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>
@@ -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=96LrlqAMKq4eyarcn0NoROVkgDZYc9wlMjRGS9zl5Fk,1427
4
- gammarers/aws_resource_naming/_jsii/aws-resource-naming@0.3.0.jsii.tgz,sha256=U8sEOKxtSphe6PVarRCkY165v5sh-MZK8XDUZPHslQc,9419
5
- gammarers/aws_resource_naming/resource_naming/__init__.py,sha256=BS24oJ13zK-CkkVPWskKzMsxasrx6fGoa82wj7J04HE,3164
6
- gammarers.aws_resource_naming-0.3.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
7
- gammarers.aws_resource_naming-0.3.0.dist-info/METADATA,sha256=qu8A-u3efW3arypFEA8UjvoDfFh4KPL_WkoNbZ3GgQA,1049
8
- gammarers.aws_resource_naming-0.3.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
9
- gammarers.aws_resource_naming-0.3.0.dist-info/top_level.txt,sha256=aYHffMrt-8dtQoLeNk0M8OeqbA0a5gMcnNm5hL7OMHk,10
10
- gammarers.aws_resource_naming-0.3.0.dist-info/RECORD,,