pepperize.cdk-github 0.0.1007__tar.gz → 0.1.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.
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/LICENSE +1 -1
- {pepperize_cdk_github-0.0.1007/src/pepperize.cdk_github.egg-info → pepperize_cdk_github-0.1.0}/PKG-INFO +8 -7
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/pyproject.toml +2 -2
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/setup.py +10 -9
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0/src/pepperize.cdk_github.egg-info}/PKG-INFO +8 -7
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/src/pepperize.cdk_github.egg-info/SOURCES.txt +1 -1
- pepperize_cdk_github-0.1.0/src/pepperize.cdk_github.egg-info/requires.txt +4 -0
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/src/pepperize_cdk_github/__init__.py +66 -52
- pepperize_cdk_github-0.1.0/src/pepperize_cdk_github/_jsii/__init__.py +28 -0
- pepperize_cdk_github-0.1.0/src/pepperize_cdk_github/_jsii/cdk-github@0.1.0.jsii.tgz +0 -0
- pepperize_cdk_github-0.0.1007/src/pepperize.cdk_github.egg-info/requires.txt +0 -5
- pepperize_cdk_github-0.0.1007/src/pepperize_cdk_github/_jsii/__init__.py +0 -42
- pepperize_cdk_github-0.0.1007/src/pepperize_cdk_github/_jsii/cdk-github@0.0.1007.jsii.tgz +0 -0
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/MANIFEST.in +0 -0
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/README.md +0 -0
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/setup.cfg +0 -0
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/src/pepperize.cdk_github.egg-info/dependency_links.txt +0 -0
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/src/pepperize.cdk_github.egg-info/top_level.txt +0 -0
- {pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/src/pepperize_cdk_github/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pepperize.cdk-github
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.1.0
|
|
4
4
|
Summary: Manage GitHub resources like repositories, teams, members, integrations and workflows with the AWS CDK as Custom Resources in CloudFormation with [cdk-github](https://github.com/pepperize/cdk-github).
|
|
5
5
|
Home-page: https://github.com/pepperize/cdk-github.git
|
|
6
6
|
Author: Patrick Florek<patrick.florek@gmail.com>
|
|
@@ -10,20 +10,21 @@ Classifier: Intended Audience :: Developers
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: JavaScript
|
|
12
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
18
|
Classifier: Typing :: Typed
|
|
17
19
|
Classifier: Development Status :: 5 - Production/Stable
|
|
18
20
|
Classifier: License :: OSI Approved
|
|
19
|
-
Requires-Python:
|
|
21
|
+
Requires-Python: >=3.10
|
|
20
22
|
Description-Content-Type: text/markdown
|
|
21
23
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: aws-cdk-lib<3.0.0,>=2.
|
|
23
|
-
Requires-Dist: constructs<11.0.0,>=10.
|
|
24
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
24
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.278.0
|
|
25
|
+
Requires-Dist: constructs<11.0.0,>=10.5.1
|
|
26
|
+
Requires-Dist: jsii<2.0.0,>=1.143.0
|
|
25
27
|
Requires-Dist: publication>=0.0.3
|
|
26
|
-
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
|
27
28
|
|
|
28
29
|
[](https://makeapullrequest.com)
|
|
29
30
|
[](https://github.com/pepperize/cdk-github/blob/main/LICENSE)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools~=75.3.2", "
|
|
2
|
+
requires = ["setuptools~=75.3.2", "build~=1.6.1"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[tool.pyright]
|
|
6
6
|
defineConstant = { DEBUG = true }
|
|
7
|
-
pythonVersion = "3.
|
|
7
|
+
pythonVersion = "3.10"
|
|
8
8
|
pythonPlatform = "All"
|
|
9
9
|
reportSelfClsParameterName = false
|
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
|
5
5
|
"""
|
|
6
6
|
{
|
|
7
7
|
"name": "pepperize.cdk-github",
|
|
8
|
-
"version": "0.0
|
|
8
|
+
"version": "0.1.0",
|
|
9
9
|
"description": "Manage GitHub resources like repositories, teams, members, integrations and workflows with the AWS CDK as Custom Resources in CloudFormation with [cdk-github](https://github.com/pepperize/cdk-github).",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"url": "https://github.com/pepperize/cdk-github.git",
|
|
@@ -26,28 +26,29 @@ kwargs = json.loads(
|
|
|
26
26
|
],
|
|
27
27
|
"package_data": {
|
|
28
28
|
"pepperize_cdk_github._jsii": [
|
|
29
|
-
"cdk-github@0.0.
|
|
29
|
+
"cdk-github@0.1.0.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"pepperize_cdk_github": [
|
|
32
32
|
"py.typed"
|
|
33
33
|
]
|
|
34
34
|
},
|
|
35
|
-
"python_requires": "
|
|
35
|
+
"python_requires": ">=3.10",
|
|
36
36
|
"install_requires": [
|
|
37
|
-
"aws-cdk-lib>=2.
|
|
38
|
-
"constructs>=10.
|
|
39
|
-
"jsii>=1.
|
|
40
|
-
"publication>=0.0.3"
|
|
41
|
-
"typeguard>=2.13.3,<4.3.0"
|
|
37
|
+
"aws-cdk-lib>=2.278.0, <3.0.0",
|
|
38
|
+
"constructs>=10.5.1, <11.0.0",
|
|
39
|
+
"jsii>=1.143.0, <2.0.0",
|
|
40
|
+
"publication>=0.0.3"
|
|
42
41
|
],
|
|
43
42
|
"classifiers": [
|
|
44
43
|
"Intended Audience :: Developers",
|
|
45
44
|
"Operating System :: OS Independent",
|
|
46
45
|
"Programming Language :: JavaScript",
|
|
47
46
|
"Programming Language :: Python :: 3 :: Only",
|
|
48
|
-
"Programming Language :: Python :: 3.9",
|
|
49
47
|
"Programming Language :: Python :: 3.10",
|
|
50
48
|
"Programming Language :: Python :: 3.11",
|
|
49
|
+
"Programming Language :: Python :: 3.12",
|
|
50
|
+
"Programming Language :: Python :: 3.13",
|
|
51
|
+
"Programming Language :: Python :: 3.14",
|
|
51
52
|
"Typing :: Typed",
|
|
52
53
|
"Development Status :: 5 - Production/Stable",
|
|
53
54
|
"License :: OSI Approved"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pepperize.cdk-github
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.1.0
|
|
4
4
|
Summary: Manage GitHub resources like repositories, teams, members, integrations and workflows with the AWS CDK as Custom Resources in CloudFormation with [cdk-github](https://github.com/pepperize/cdk-github).
|
|
5
5
|
Home-page: https://github.com/pepperize/cdk-github.git
|
|
6
6
|
Author: Patrick Florek<patrick.florek@gmail.com>
|
|
@@ -10,20 +10,21 @@ Classifier: Intended Audience :: Developers
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: JavaScript
|
|
12
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
18
|
Classifier: Typing :: Typed
|
|
17
19
|
Classifier: Development Status :: 5 - Production/Stable
|
|
18
20
|
Classifier: License :: OSI Approved
|
|
19
|
-
Requires-Python:
|
|
21
|
+
Requires-Python: >=3.10
|
|
20
22
|
Description-Content-Type: text/markdown
|
|
21
23
|
License-File: LICENSE
|
|
22
|
-
Requires-Dist: aws-cdk-lib<3.0.0,>=2.
|
|
23
|
-
Requires-Dist: constructs<11.0.0,>=10.
|
|
24
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
24
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.278.0
|
|
25
|
+
Requires-Dist: constructs<11.0.0,>=10.5.1
|
|
26
|
+
Requires-Dist: jsii<2.0.0,>=1.143.0
|
|
25
27
|
Requires-Dist: publication>=0.0.3
|
|
26
|
-
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
|
27
28
|
|
|
28
29
|
[](https://makeapullrequest.com)
|
|
29
30
|
[](https://github.com/pepperize/cdk-github/blob/main/LICENSE)
|
|
@@ -11,4 +11,4 @@ src/pepperize.cdk_github.egg-info/top_level.txt
|
|
|
11
11
|
src/pepperize_cdk_github/__init__.py
|
|
12
12
|
src/pepperize_cdk_github/py.typed
|
|
13
13
|
src/pepperize_cdk_github/_jsii/__init__.py
|
|
14
|
-
src/pepperize_cdk_github/_jsii/cdk-github@0.0.
|
|
14
|
+
src/pepperize_cdk_github/_jsii/cdk-github@0.1.0.jsii.tgz
|
{pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/src/pepperize_cdk_github/__init__.py
RENAMED
|
@@ -326,6 +326,8 @@ new GithubActionsSecretRepository(scope, "GithubRepo", {
|
|
|
326
326
|
|
|
327
327
|
See [GitHub Developer Guide](https://docs.github.com/de/rest/actions/secrets#create-or-update-a-repository-secret), [API Reference](https://github.com/pepperize/cdk-github/blob/main/API.md)
|
|
328
328
|
'''
|
|
329
|
+
from __future__ import annotations
|
|
330
|
+
|
|
329
331
|
from pkgutil import extend_path
|
|
330
332
|
__path__ = extend_path(__path__, __name__)
|
|
331
333
|
|
|
@@ -339,30 +341,35 @@ import jsii
|
|
|
339
341
|
import publication
|
|
340
342
|
import typing_extensions
|
|
341
343
|
|
|
342
|
-
import
|
|
343
|
-
|
|
344
|
-
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
345
|
-
|
|
346
|
-
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
347
|
-
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
348
|
-
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
349
|
-
else:
|
|
350
|
-
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
351
|
-
pass
|
|
352
|
-
else:
|
|
353
|
-
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
354
|
-
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
355
|
-
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
356
|
-
else:
|
|
357
|
-
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
344
|
+
from jsii._type_checking import cached_type_hints, check_type
|
|
345
|
+
|
|
358
346
|
|
|
359
347
|
from ._jsii import *
|
|
360
348
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
349
|
+
class _LazyImport:
|
|
350
|
+
def __init__(self, module_name: str) -> None:
|
|
351
|
+
self._module_name = module_name
|
|
352
|
+
self._module: typing.Any = None
|
|
353
|
+
def __getattr__(self, name: str) -> typing.Any:
|
|
354
|
+
if self._module is None:
|
|
355
|
+
import importlib
|
|
356
|
+
self._module = importlib.import_module(self._module_name)
|
|
357
|
+
return getattr(self._module, name)
|
|
358
|
+
|
|
359
|
+
if typing.TYPE_CHECKING:
|
|
360
|
+
|
|
361
|
+
import aws_cdk as _aws_cdk_ceddda9d
|
|
362
|
+
import aws_cdk.aws_secretsmanager as _aws_cdk_aws_secretsmanager_ceddda9d
|
|
363
|
+
import aws_cdk.aws_ssm as _aws_cdk_aws_ssm_ceddda9d
|
|
364
|
+
import aws_cdk.custom_resources as _aws_cdk_custom_resources_ceddda9d
|
|
365
|
+
import constructs as _constructs_77d1e7e8
|
|
366
|
+
else:
|
|
367
|
+
|
|
368
|
+
_aws_cdk_aws_secretsmanager_ceddda9d = _LazyImport("aws_cdk.aws_secretsmanager")
|
|
369
|
+
_aws_cdk_aws_ssm_ceddda9d = _LazyImport("aws_cdk.aws_ssm")
|
|
370
|
+
_aws_cdk_ceddda9d = _LazyImport("aws_cdk")
|
|
371
|
+
_aws_cdk_custom_resources_ceddda9d = _LazyImport("aws_cdk.custom_resources")
|
|
372
|
+
_constructs_77d1e7e8 = _LazyImport("constructs")
|
|
366
373
|
|
|
367
374
|
|
|
368
375
|
@jsii.data_type(
|
|
@@ -386,7 +393,7 @@ class GithubApiCall:
|
|
|
386
393
|
ignore_error_codes_matching: typing.Optional[builtins.str] = None,
|
|
387
394
|
output_paths: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
388
395
|
parameters: typing.Any = None,
|
|
389
|
-
physical_resource_id: typing.Optional[_aws_cdk_custom_resources_ceddda9d.PhysicalResourceId] = None,
|
|
396
|
+
physical_resource_id: typing.Optional["_aws_cdk_custom_resources_ceddda9d.PhysicalResourceId"] = None,
|
|
390
397
|
) -> None:
|
|
391
398
|
'''
|
|
392
399
|
:param endpoint: The endpoint to call.
|
|
@@ -397,7 +404,7 @@ class GithubApiCall:
|
|
|
397
404
|
:param physical_resource_id: The physical resource id of the custom resource for this call. Default: undefined - for "Create" requests, defaults to the event's RequestId, for "Update" and "Delete", defaults to the current ``PhysicalResourceId``.
|
|
398
405
|
'''
|
|
399
406
|
if __debug__:
|
|
400
|
-
type_hints =
|
|
407
|
+
type_hints = cached_type_hints(_typecheckingstub__c44a6ed82823e6106770483149fb381def9b614340cbdf2ee1f568994d4994bd)
|
|
401
408
|
check_type(argname="argument endpoint", value=endpoint, expected_type=type_hints["endpoint"])
|
|
402
409
|
check_type(argname="argument method", value=method, expected_type=type_hints["method"])
|
|
403
410
|
check_type(argname="argument ignore_error_codes_matching", value=ignore_error_codes_matching, expected_type=type_hints["ignore_error_codes_matching"])
|
|
@@ -475,7 +482,7 @@ class GithubApiCall:
|
|
|
475
482
|
@builtins.property
|
|
476
483
|
def physical_resource_id(
|
|
477
484
|
self,
|
|
478
|
-
) -> typing.Optional[_aws_cdk_custom_resources_ceddda9d.PhysicalResourceId]:
|
|
485
|
+
) -> typing.Optional["_aws_cdk_custom_resources_ceddda9d.PhysicalResourceId"]:
|
|
479
486
|
'''The physical resource id of the custom resource for this call.
|
|
480
487
|
|
|
481
488
|
:default: undefined - for "Create" requests, defaults to the event's RequestId, for "Update" and "Delete", defaults to the current ``PhysicalResourceId``.
|
|
@@ -483,7 +490,7 @@ class GithubApiCall:
|
|
|
483
490
|
:see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref-responses.html
|
|
484
491
|
'''
|
|
485
492
|
result = self._values.get("physical_resource_id")
|
|
486
|
-
return typing.cast(typing.Optional[_aws_cdk_custom_resources_ceddda9d.PhysicalResourceId], result)
|
|
493
|
+
return typing.cast(typing.Optional["_aws_cdk_custom_resources_ceddda9d.PhysicalResourceId"], result)
|
|
487
494
|
|
|
488
495
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
489
496
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -502,20 +509,24 @@ class GithubCustomResourceBase(
|
|
|
502
509
|
metaclass=jsii.JSIIAbstractClass,
|
|
503
510
|
jsii_type="@pepperize/cdk-github.GithubCustomResourceBase",
|
|
504
511
|
):
|
|
505
|
-
def __init__(
|
|
512
|
+
def __init__(
|
|
513
|
+
self,
|
|
514
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
515
|
+
id: builtins.str,
|
|
516
|
+
) -> None:
|
|
506
517
|
'''Creates a new construct node.
|
|
507
518
|
|
|
508
519
|
:param scope: The scope in which to define this construct.
|
|
509
520
|
:param id: The scoped construct ID. Must be unique amongst siblings. If the ID includes a path separator (``/``), then it will be replaced by double dash ``--``.
|
|
510
521
|
'''
|
|
511
522
|
if __debug__:
|
|
512
|
-
type_hints =
|
|
523
|
+
type_hints = cached_type_hints(_typecheckingstub__38438883b6b085826e161771a9672aa025f16f31a72598a6e4d0503624714f8f)
|
|
513
524
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
514
525
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
515
526
|
jsii.create(self.__class__, self, [scope, id])
|
|
516
527
|
|
|
517
528
|
@jsii.member(jsii_name="getAtt")
|
|
518
|
-
def get_att(self, attribute_name: builtins.str) -> _aws_cdk_ceddda9d.Reference:
|
|
529
|
+
def get_att(self, attribute_name: builtins.str) -> "_aws_cdk_ceddda9d.Reference":
|
|
519
530
|
'''Returns the value of an attribute of the custom resource of an arbitrary type.
|
|
520
531
|
|
|
521
532
|
Attributes are returned from the custom resource provider through the
|
|
@@ -529,9 +540,9 @@ class GithubCustomResourceBase(
|
|
|
529
540
|
use the convenience ``getAttString`` for string attributes.
|
|
530
541
|
'''
|
|
531
542
|
if __debug__:
|
|
532
|
-
type_hints =
|
|
543
|
+
type_hints = cached_type_hints(_typecheckingstub__72c6a4166499a94ce64d65c0901a6567d898914b75553010caab35842cc2520b)
|
|
533
544
|
check_type(argname="argument attribute_name", value=attribute_name, expected_type=type_hints["attribute_name"])
|
|
534
|
-
return typing.cast(_aws_cdk_ceddda9d.Reference, jsii.invoke(self, "getAtt", [attribute_name]))
|
|
545
|
+
return typing.cast("_aws_cdk_ceddda9d.Reference", jsii.invoke(self, "getAtt", [attribute_name]))
|
|
535
546
|
|
|
536
547
|
@jsii.member(jsii_name="getAttString")
|
|
537
548
|
def get_att_string(self, attribute_name: builtins.str) -> builtins.str:
|
|
@@ -545,7 +556,7 @@ class GithubCustomResourceBase(
|
|
|
545
556
|
:return: a token for ``Fn::GetAtt`` encoded as a string.
|
|
546
557
|
'''
|
|
547
558
|
if __debug__:
|
|
548
|
-
type_hints =
|
|
559
|
+
type_hints = cached_type_hints(_typecheckingstub__57bb1bee46251a71a269b3ef1b062cbd93554ae4926adf563184773409af6134)
|
|
549
560
|
check_type(argname="argument attribute_name", value=attribute_name, expected_type=type_hints["attribute_name"])
|
|
550
561
|
return typing.cast(builtins.str, jsii.invoke(self, "getAttString", [attribute_name]))
|
|
551
562
|
|
|
@@ -574,7 +585,7 @@ class GithubCustomResourceOptions:
|
|
|
574
585
|
:param auth_options: Currently, supports only GitHub App. Example:: const auth = { appId, privateKey }; const installationAuth = { appId, privateKey, installationId };
|
|
575
586
|
'''
|
|
576
587
|
if __debug__:
|
|
577
|
-
type_hints =
|
|
588
|
+
type_hints = cached_type_hints(_typecheckingstub__3aebf76d03bfa0187418a2ffdf41e801ff3b577aa72220a25ec15acf1958430a)
|
|
578
589
|
check_type(argname="argument auth_options", value=auth_options, expected_type=type_hints["auth_options"])
|
|
579
590
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
580
591
|
"auth_options": auth_options,
|
|
@@ -623,9 +634,9 @@ class GithubCustomResourceProps(GithubCustomResourceOptions):
|
|
|
623
634
|
self,
|
|
624
635
|
*,
|
|
625
636
|
auth_options: "IAuthOptions",
|
|
626
|
-
on_create: typing.Optional[typing.Union[GithubApiCall, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
627
|
-
on_delete: typing.Optional[typing.Union[GithubApiCall, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
628
|
-
on_update: typing.Optional[typing.Union[GithubApiCall, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
637
|
+
on_create: typing.Optional[typing.Union["GithubApiCall", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
638
|
+
on_delete: typing.Optional[typing.Union["GithubApiCall", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
639
|
+
on_update: typing.Optional[typing.Union["GithubApiCall", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
629
640
|
resource_type: typing.Optional[builtins.str] = None,
|
|
630
641
|
) -> None:
|
|
631
642
|
'''
|
|
@@ -642,7 +653,7 @@ class GithubCustomResourceProps(GithubCustomResourceOptions):
|
|
|
642
653
|
if isinstance(on_update, dict):
|
|
643
654
|
on_update = GithubApiCall(**on_update)
|
|
644
655
|
if __debug__:
|
|
645
|
-
type_hints =
|
|
656
|
+
type_hints = cached_type_hints(_typecheckingstub__1c8edec08159118c71ac4a94db67b290e347e016adad191face6c2fea17c250d)
|
|
646
657
|
check_type(argname="argument auth_options", value=auth_options, expected_type=type_hints["auth_options"])
|
|
647
658
|
check_type(argname="argument on_create", value=on_create, expected_type=type_hints["on_create"])
|
|
648
659
|
check_type(argname="argument on_delete", value=on_delete, expected_type=type_hints["on_delete"])
|
|
@@ -676,22 +687,22 @@ class GithubCustomResourceProps(GithubCustomResourceOptions):
|
|
|
676
687
|
return typing.cast("IAuthOptions", result)
|
|
677
688
|
|
|
678
689
|
@builtins.property
|
|
679
|
-
def on_create(self) -> typing.Optional[GithubApiCall]:
|
|
690
|
+
def on_create(self) -> typing.Optional["GithubApiCall"]:
|
|
680
691
|
'''The GitHub Api call to make when the resource is created.'''
|
|
681
692
|
result = self._values.get("on_create")
|
|
682
|
-
return typing.cast(typing.Optional[GithubApiCall], result)
|
|
693
|
+
return typing.cast(typing.Optional["GithubApiCall"], result)
|
|
683
694
|
|
|
684
695
|
@builtins.property
|
|
685
|
-
def on_delete(self) -> typing.Optional[GithubApiCall]:
|
|
696
|
+
def on_delete(self) -> typing.Optional["GithubApiCall"]:
|
|
686
697
|
'''The GitHub Api call to make when the resource is deleted.'''
|
|
687
698
|
result = self._values.get("on_delete")
|
|
688
|
-
return typing.cast(typing.Optional[GithubApiCall], result)
|
|
699
|
+
return typing.cast(typing.Optional["GithubApiCall"], result)
|
|
689
700
|
|
|
690
701
|
@builtins.property
|
|
691
|
-
def on_update(self) -> typing.Optional[GithubApiCall]:
|
|
702
|
+
def on_update(self) -> typing.Optional["GithubApiCall"]:
|
|
692
703
|
'''The GitHub Api call to make when the resource is updated.'''
|
|
693
704
|
result = self._values.get("on_update")
|
|
694
|
-
return typing.cast(typing.Optional[GithubApiCall], result)
|
|
705
|
+
return typing.cast(typing.Optional["GithubApiCall"], result)
|
|
695
706
|
|
|
696
707
|
@builtins.property
|
|
697
708
|
def resource_type(self) -> typing.Optional[builtins.str]:
|
|
@@ -736,7 +747,7 @@ class AuthOptions(
|
|
|
736
747
|
@builtins.classmethod
|
|
737
748
|
def app_auth(
|
|
738
749
|
cls,
|
|
739
|
-
secret: _aws_cdk_aws_secretsmanager_ceddda9d.ISecret,
|
|
750
|
+
secret: "_aws_cdk_aws_secretsmanager_ceddda9d.ISecret",
|
|
740
751
|
) -> "AuthOptions":
|
|
741
752
|
'''GitHub App or installation authentication.
|
|
742
753
|
|
|
@@ -745,7 +756,7 @@ class AuthOptions(
|
|
|
745
756
|
:see: https://github.com/octokit/auth-app.js/#readme
|
|
746
757
|
'''
|
|
747
758
|
if __debug__:
|
|
748
|
-
type_hints =
|
|
759
|
+
type_hints = cached_type_hints(_typecheckingstub__40bd18010eabb96176b1524b3cbf1fdd6e0dab0f27d89bc17eebf1e4b01a64e0)
|
|
749
760
|
check_type(argname="argument secret", value=secret, expected_type=type_hints["secret"])
|
|
750
761
|
return typing.cast("AuthOptions", jsii.sinvoke(cls, "appAuth", [secret]))
|
|
751
762
|
|
|
@@ -753,7 +764,7 @@ class AuthOptions(
|
|
|
753
764
|
@builtins.classmethod
|
|
754
765
|
def token_auth(
|
|
755
766
|
cls,
|
|
756
|
-
parameter: _aws_cdk_aws_ssm_ceddda9d.IParameter,
|
|
767
|
+
parameter: "_aws_cdk_aws_ssm_ceddda9d.IParameter",
|
|
757
768
|
) -> "AuthOptions":
|
|
758
769
|
'''Personal Access Token authentication.
|
|
759
770
|
|
|
@@ -762,7 +773,7 @@ class AuthOptions(
|
|
|
762
773
|
:see: https://github.com/octokit/auth-token.js#readme
|
|
763
774
|
'''
|
|
764
775
|
if __debug__:
|
|
765
|
-
type_hints =
|
|
776
|
+
type_hints = cached_type_hints(_typecheckingstub__9ba10bce7d2f7f9a64938fe085321969cb9b61af281c396716449878413f1d99)
|
|
766
777
|
check_type(argname="argument parameter", value=parameter, expected_type=type_hints["parameter"])
|
|
767
778
|
return typing.cast("AuthOptions", jsii.sinvoke(cls, "tokenAuth", [parameter]))
|
|
768
779
|
|
|
@@ -830,14 +841,14 @@ class GithubCustomResource(
|
|
|
830
841
|
|
|
831
842
|
def __init__(
|
|
832
843
|
self,
|
|
833
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
844
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
834
845
|
id: builtins.str,
|
|
835
846
|
*,
|
|
836
|
-
on_create: typing.Optional[typing.Union[GithubApiCall, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
837
|
-
on_delete: typing.Optional[typing.Union[GithubApiCall, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
838
|
-
on_update: typing.Optional[typing.Union[GithubApiCall, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
847
|
+
on_create: typing.Optional[typing.Union["GithubApiCall", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
848
|
+
on_delete: typing.Optional[typing.Union["GithubApiCall", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
849
|
+
on_update: typing.Optional[typing.Union["GithubApiCall", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
839
850
|
resource_type: typing.Optional[builtins.str] = None,
|
|
840
|
-
auth_options: IAuthOptions,
|
|
851
|
+
auth_options: "IAuthOptions",
|
|
841
852
|
) -> None:
|
|
842
853
|
'''
|
|
843
854
|
:param scope: -
|
|
@@ -849,7 +860,7 @@ class GithubCustomResource(
|
|
|
849
860
|
:param auth_options: Currently, supports only GitHub App. Example:: const auth = { appId, privateKey }; const installationAuth = { appId, privateKey, installationId };
|
|
850
861
|
'''
|
|
851
862
|
if __debug__:
|
|
852
|
-
type_hints =
|
|
863
|
+
type_hints = cached_type_hints(_typecheckingstub__34ac3907b3892d527d8ed5ffbe6f3d09b02d1b1041cd1e29f5f4f7710a70cefa)
|
|
853
864
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
854
865
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
855
866
|
props = GithubCustomResourceProps(
|
|
@@ -948,3 +959,6 @@ def _typecheckingstub__34ac3907b3892d527d8ed5ffbe6f3d09b02d1b1041cd1e29f5f4f7710
|
|
|
948
959
|
) -> None:
|
|
949
960
|
"""Type checking stubs"""
|
|
950
961
|
pass
|
|
962
|
+
|
|
963
|
+
for cls in [IAuthOptions]:
|
|
964
|
+
typing.cast(typing.Any, cls).__protocol_attrs__ = typing.cast(typing.Any, cls).__protocol_attrs__ - set(['__jsii_proxy_class__', '__jsii_type__'])
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
from jsii._type_checking import cached_type_hints, check_type
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
import aws_cdk._jsii
|
|
18
|
+
import constructs._jsii
|
|
19
|
+
|
|
20
|
+
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
21
|
+
"@pepperize/cdk-github", "0.1.0", __name__[0:-6], "cdk-github@0.1.0.jsii.tgz"
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"__jsii_assembly__",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
publication.publish()
|
|
Binary file
|
|
@@ -1,42 +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
|
-
import aws_cdk._jsii
|
|
32
|
-
import constructs._jsii
|
|
33
|
-
|
|
34
|
-
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
35
|
-
"@pepperize/cdk-github", "0.0.1007", __name__[0:-6], "cdk-github@0.0.1007.jsii.tgz"
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
__all__ = [
|
|
39
|
-
"__jsii_assembly__",
|
|
40
|
-
]
|
|
41
|
-
|
|
42
|
-
publication.publish()
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pepperize_cdk_github-0.0.1007 → pepperize_cdk_github-0.1.0}/src/pepperize_cdk_github/py.typed
RENAMED
|
File without changes
|