cloudsnorkel.cdk-github-runners 0.15.2__tar.gz → 0.15.3__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.
Files changed (17) hide show
  1. {cloudsnorkel_cdk_github_runners-0.15.2/src/cloudsnorkel.cdk_github_runners.egg-info → cloudsnorkel_cdk_github_runners-0.15.3}/PKG-INFO +1 -1
  2. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/setup.py +2 -2
  3. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/src/cloudsnorkel/cdk_github_runners/__init__.py +50 -0
  4. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/src/cloudsnorkel/cdk_github_runners/_jsii/__init__.py +2 -2
  5. cloudsnorkel_cdk_github_runners-0.15.3/src/cloudsnorkel/cdk_github_runners/_jsii/cdk-github-runners@0.15.3.jsii.tgz +0 -0
  6. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3/src/cloudsnorkel.cdk_github_runners.egg-info}/PKG-INFO +1 -1
  7. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/src/cloudsnorkel.cdk_github_runners.egg-info/SOURCES.txt +1 -1
  8. cloudsnorkel_cdk_github_runners-0.15.2/src/cloudsnorkel/cdk_github_runners/_jsii/cdk-github-runners@0.15.2.jsii.tgz +0 -0
  9. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/LICENSE +0 -0
  10. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/MANIFEST.in +0 -0
  11. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/README.md +0 -0
  12. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/pyproject.toml +0 -0
  13. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/setup.cfg +0 -0
  14. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/src/cloudsnorkel/cdk_github_runners/py.typed +0 -0
  15. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/src/cloudsnorkel.cdk_github_runners.egg-info/dependency_links.txt +0 -0
  16. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/src/cloudsnorkel.cdk_github_runners.egg-info/requires.txt +0 -0
  17. {cloudsnorkel_cdk_github_runners-0.15.2 → cloudsnorkel_cdk_github_runners-0.15.3}/src/cloudsnorkel.cdk_github_runners.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudsnorkel.cdk-github-runners
3
- Version: 0.15.2
3
+ Version: 0.15.3
4
4
  Summary: CDK construct to create GitHub Actions self-hosted runners. Creates ephemeral runners on demand. Easy to deploy and highly customizable.
5
5
  Home-page: https://github.com/CloudSnorkel/cdk-github-runners.git
6
6
  Author: Amir Szekely<amir@cloudsnorkel.com>
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "cloudsnorkel.cdk-github-runners",
8
- "version": "0.15.2",
8
+ "version": "0.15.3",
9
9
  "description": "CDK construct to create GitHub Actions self-hosted runners. Creates ephemeral runners on demand. Easy to deploy and highly customizable.",
10
10
  "license": "Apache-2.0",
11
11
  "url": "https://github.com/CloudSnorkel/cdk-github-runners.git",
@@ -26,7 +26,7 @@ kwargs = json.loads(
26
26
  ],
27
27
  "package_data": {
28
28
  "cloudsnorkel.cdk_github_runners._jsii": [
29
- "cdk-github-runners@0.15.2.jsii.tgz"
29
+ "cdk-github-runners@0.15.3.jsii.tgz"
30
30
  ],
31
31
  "cloudsnorkel.cdk_github_runners": [
32
32
  "py.typed"
@@ -5957,6 +5957,7 @@ class ProviderSelectorResult:
5957
5957
  "launch_template": "launchTemplate",
5958
5958
  "os": "os",
5959
5959
  "runner_version": "runnerVersion",
5960
+ "cache_key": "cacheKey",
5960
5961
  "log_group": "logGroup",
5961
5962
  },
5962
5963
  )
@@ -5968,6 +5969,7 @@ class RunnerAmi:
5968
5969
  launch_template: "_aws_cdk_aws_ec2_ceddda9d.ILaunchTemplate",
5969
5970
  os: "Os",
5970
5971
  runner_version: "RunnerVersion",
5972
+ cache_key: typing.Optional[builtins.str] = None,
5971
5973
  log_group: typing.Optional["_aws_cdk_aws_logs_ceddda9d.LogGroup"] = None,
5972
5974
  ) -> None:
5973
5975
  '''(experimental) Description of a AMI built by {@link RunnerImageBuilder }.
@@ -5976,6 +5978,7 @@ class RunnerAmi:
5976
5978
  :param launch_template: (experimental) Launch template pointing to the latest AMI.
5977
5979
  :param os: (experimental) OS type of the image.
5978
5980
  :param runner_version: (deprecated) Installed runner version.
5981
+ :param cache_key: (experimental) Set this to a value that changes whenever the AMI changes (the AMI id or any version string works). It's used to know when the AMI's root device name needs to be looked up again. If left empty, the root device name is looked up once and reused. That's fine as long as the AMI's root device never changes. This value may be used for other things in the future that require knowing when the AMI changed.
5979
5982
  :param log_group: (experimental) Log group where image builds are logged.
5980
5983
 
5981
5984
  :stability: experimental
@@ -5986,6 +5989,7 @@ class RunnerAmi:
5986
5989
  check_type(argname="argument launch_template", value=launch_template, expected_type=type_hints["launch_template"])
5987
5990
  check_type(argname="argument os", value=os, expected_type=type_hints["os"])
5988
5991
  check_type(argname="argument runner_version", value=runner_version, expected_type=type_hints["runner_version"])
5992
+ check_type(argname="argument cache_key", value=cache_key, expected_type=type_hints["cache_key"])
5989
5993
  check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
5990
5994
  self._values: typing.Dict[builtins.str, typing.Any] = {
5991
5995
  "architecture": architecture,
@@ -5993,6 +5997,8 @@ class RunnerAmi:
5993
5997
  "os": os,
5994
5998
  "runner_version": runner_version,
5995
5999
  }
6000
+ if cache_key is not None:
6001
+ self._values["cache_key"] = cache_key
5996
6002
  if log_group is not None:
5997
6003
  self._values["log_group"] = log_group
5998
6004
 
@@ -6038,6 +6044,20 @@ class RunnerAmi:
6038
6044
  assert result is not None, "Required property 'runner_version' is missing"
6039
6045
  return typing.cast("RunnerVersion", result)
6040
6046
 
6047
+ @builtins.property
6048
+ def cache_key(self) -> typing.Optional[builtins.str]:
6049
+ '''(experimental) Set this to a value that changes whenever the AMI changes (the AMI id or any version string works).
6050
+
6051
+ It's used to know when the AMI's root device name needs to be looked up again. If left empty, the root
6052
+ device name is looked up once and reused. That's fine as long as the AMI's root device never changes.
6053
+
6054
+ This value may be used for other things in the future that require knowing when the AMI changed.
6055
+
6056
+ :stability: experimental
6057
+ '''
6058
+ result = self._values.get("cache_key")
6059
+ return typing.cast(typing.Optional[builtins.str], result)
6060
+
6041
6061
  @builtins.property
6042
6062
  def log_group(self) -> typing.Optional["_aws_cdk_aws_logs_ceddda9d.LogGroup"]:
6043
6063
  '''(experimental) Log group where image builds are logged.
@@ -9620,6 +9640,7 @@ class Ec2RunnerProvider(
9620
9640
  storage_size: typing.Optional["_aws_cdk_ceddda9d.Size"] = None,
9621
9641
  subnet: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.ISubnet"] = None,
9622
9642
  subnet_selection: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
9643
+ tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
9623
9644
  vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
9624
9645
  default_labels: typing.Optional[builtins.bool] = None,
9625
9646
  log_retention: typing.Optional["_aws_cdk_aws_logs_ceddda9d.RetentionDays"] = None,
@@ -9641,6 +9662,7 @@ class Ec2RunnerProvider(
9641
9662
  :param storage_size: (experimental) Size of volume available for launched runner instances. This modifies the boot volume size and doesn't add any additional volumes. Default: 30GB
9642
9663
  :param subnet: (deprecated) Subnet where the runner instances will be launched. Default: default subnet of account's default VPC
9643
9664
  :param subnet_selection: (experimental) Where to place the network interfaces within the VPC. Only the first matched subnet will be used. Default: default VPC subnet
9665
+ :param tags: (experimental) Additional tags to apply to launched runner instances and their volumes. These additional tags are set on top of ``Name``, ``GitHubRunners:Provider``, ``GitHubRunners:Repo``, and ``GitHubRunners:Labels``. You may override the built-in tags. Default: no additional tags
9644
9666
  :param vpc: (experimental) VPC where runner instances will be launched. Default: default account VPC
9645
9667
  :param default_labels: (experimental) Add default labels based on OS and architecture of the runner. This will tell GitHub Runner to add default labels like ``self-hosted``, ``linux``, ``x64``, and ``arm64``. Default: true
9646
9668
  :param log_retention: (experimental) The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. Default: logs.RetentionDays.ONE_MONTH
@@ -9666,6 +9688,7 @@ class Ec2RunnerProvider(
9666
9688
  storage_size=storage_size,
9667
9689
  subnet=subnet,
9668
9690
  subnet_selection=subnet_selection,
9691
+ tags=tags,
9669
9692
  vpc=vpc,
9670
9693
  default_labels=default_labels,
9671
9694
  log_retention=log_retention,
@@ -9918,6 +9941,7 @@ class Ec2RunnerProvider(
9918
9941
  "storage_size": "storageSize",
9919
9942
  "subnet": "subnet",
9920
9943
  "subnet_selection": "subnetSelection",
9944
+ "tags": "tags",
9921
9945
  "vpc": "vpc",
9922
9946
  },
9923
9947
  )
@@ -9941,6 +9965,7 @@ class Ec2RunnerProviderProps(RunnerProviderProps):
9941
9965
  storage_size: typing.Optional["_aws_cdk_ceddda9d.Size"] = None,
9942
9966
  subnet: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.ISubnet"] = None,
9943
9967
  subnet_selection: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
9968
+ tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
9944
9969
  vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
9945
9970
  ) -> None:
9946
9971
  '''(experimental) Properties for {@link Ec2RunnerProvider} construct.
@@ -9961,6 +9986,7 @@ class Ec2RunnerProviderProps(RunnerProviderProps):
9961
9986
  :param storage_size: (experimental) Size of volume available for launched runner instances. This modifies the boot volume size and doesn't add any additional volumes. Default: 30GB
9962
9987
  :param subnet: (deprecated) Subnet where the runner instances will be launched. Default: default subnet of account's default VPC
9963
9988
  :param subnet_selection: (experimental) Where to place the network interfaces within the VPC. Only the first matched subnet will be used. Default: default VPC subnet
9989
+ :param tags: (experimental) Additional tags to apply to launched runner instances and their volumes. These additional tags are set on top of ``Name``, ``GitHubRunners:Provider``, ``GitHubRunners:Repo``, and ``GitHubRunners:Labels``. You may override the built-in tags. Default: no additional tags
9964
9990
  :param vpc: (experimental) VPC where runner instances will be launched. Default: default account VPC
9965
9991
 
9966
9992
  :stability: experimental
@@ -9989,6 +10015,7 @@ class Ec2RunnerProviderProps(RunnerProviderProps):
9989
10015
  check_type(argname="argument storage_size", value=storage_size, expected_type=type_hints["storage_size"])
9990
10016
  check_type(argname="argument subnet", value=subnet, expected_type=type_hints["subnet"])
9991
10017
  check_type(argname="argument subnet_selection", value=subnet_selection, expected_type=type_hints["subnet_selection"])
10018
+ check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
9992
10019
  check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
9993
10020
  self._values: typing.Dict[builtins.str, typing.Any] = {}
9994
10021
  if default_labels is not None:
@@ -10023,6 +10050,8 @@ class Ec2RunnerProviderProps(RunnerProviderProps):
10023
10050
  self._values["subnet"] = subnet
10024
10051
  if subnet_selection is not None:
10025
10052
  self._values["subnet_selection"] = subnet_selection
10053
+ if tags is not None:
10054
+ self._values["tags"] = tags
10026
10055
  if vpc is not None:
10027
10056
  self._values["vpc"] = vpc
10028
10057
 
@@ -10242,6 +10271,20 @@ class Ec2RunnerProviderProps(RunnerProviderProps):
10242
10271
  result = self._values.get("subnet_selection")
10243
10272
  return typing.cast(typing.Optional["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection"], result)
10244
10273
 
10274
+ @builtins.property
10275
+ def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
10276
+ '''(experimental) Additional tags to apply to launched runner instances and their volumes.
10277
+
10278
+ These additional tags are set on top of ``Name``, ``GitHubRunners:Provider``, ``GitHubRunners:Repo``, and ``GitHubRunners:Labels``.
10279
+ You may override the built-in tags.
10280
+
10281
+ :default: no additional tags
10282
+
10283
+ :stability: experimental
10284
+ '''
10285
+ result = self._values.get("tags")
10286
+ return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
10287
+
10245
10288
  @builtins.property
10246
10289
  def vpc(self) -> typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"]:
10247
10290
  '''(experimental) VPC where runner instances will be launched.
@@ -12867,6 +12910,7 @@ class Ec2Runner(
12867
12910
  storage_size: typing.Optional["_aws_cdk_ceddda9d.Size"] = None,
12868
12911
  subnet: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.ISubnet"] = None,
12869
12912
  subnet_selection: typing.Optional[typing.Union["_aws_cdk_aws_ec2_ceddda9d.SubnetSelection", typing.Dict[builtins.str, typing.Any]]] = None,
12913
+ tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
12870
12914
  vpc: typing.Optional["_aws_cdk_aws_ec2_ceddda9d.IVpc"] = None,
12871
12915
  default_labels: typing.Optional[builtins.bool] = None,
12872
12916
  log_retention: typing.Optional["_aws_cdk_aws_logs_ceddda9d.RetentionDays"] = None,
@@ -12888,6 +12932,7 @@ class Ec2Runner(
12888
12932
  :param storage_size: (experimental) Size of volume available for launched runner instances. This modifies the boot volume size and doesn't add any additional volumes. Default: 30GB
12889
12933
  :param subnet: (deprecated) Subnet where the runner instances will be launched. Default: default subnet of account's default VPC
12890
12934
  :param subnet_selection: (experimental) Where to place the network interfaces within the VPC. Only the first matched subnet will be used. Default: default VPC subnet
12935
+ :param tags: (experimental) Additional tags to apply to launched runner instances and their volumes. These additional tags are set on top of ``Name``, ``GitHubRunners:Provider``, ``GitHubRunners:Repo``, and ``GitHubRunners:Labels``. You may override the built-in tags. Default: no additional tags
12891
12936
  :param vpc: (experimental) VPC where runner instances will be launched. Default: default account VPC
12892
12937
  :param default_labels: (experimental) Add default labels based on OS and architecture of the runner. This will tell GitHub Runner to add default labels like ``self-hosted``, ``linux``, ``x64``, and ``arm64``. Default: true
12893
12938
  :param log_retention: (experimental) The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. Default: logs.RetentionDays.ONE_MONTH
@@ -12913,6 +12958,7 @@ class Ec2Runner(
12913
12958
  storage_size=storage_size,
12914
12959
  subnet=subnet,
12915
12960
  subnet_selection=subnet_selection,
12961
+ tags=tags,
12916
12962
  vpc=vpc,
12917
12963
  default_labels=default_labels,
12918
12964
  log_retention=log_retention,
@@ -13664,6 +13710,7 @@ def _typecheckingstub__94c612bd55218b02d6290415e414adca19a5e6961e7aa4dec3a838bc3
13664
13710
  launch_template: _aws_cdk_aws_ec2_ceddda9d.ILaunchTemplate,
13665
13711
  os: Os,
13666
13712
  runner_version: RunnerVersion,
13713
+ cache_key: typing.Optional[builtins.str] = None,
13667
13714
  log_group: typing.Optional[_aws_cdk_aws_logs_ceddda9d.LogGroup] = None,
13668
13715
  ) -> None:
13669
13716
  """Type checking stubs"""
@@ -14285,6 +14332,7 @@ def _typecheckingstub__fd3f279069067627058d9a5818aab030be5ffd71ce03962b4fd7cdd85
14285
14332
  storage_size: typing.Optional[_aws_cdk_ceddda9d.Size] = None,
14286
14333
  subnet: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.ISubnet] = None,
14287
14334
  subnet_selection: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
14335
+ tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
14288
14336
  vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
14289
14337
  default_labels: typing.Optional[builtins.bool] = None,
14290
14338
  log_retention: typing.Optional[_aws_cdk_aws_logs_ceddda9d.RetentionDays] = None,
@@ -14362,6 +14410,7 @@ def _typecheckingstub__b650c4bf7f2a31b514d6f1f9e0c1b4b2cdae8b20b6f209f5b5fc74ef4
14362
14410
  storage_size: typing.Optional[_aws_cdk_ceddda9d.Size] = None,
14363
14411
  subnet: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.ISubnet] = None,
14364
14412
  subnet_selection: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
14413
+ tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
14365
14414
  vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
14366
14415
  ) -> None:
14367
14416
  """Type checking stubs"""
@@ -14745,6 +14794,7 @@ def _typecheckingstub__a0a6acc584ae2ad3aed3605810cea44858f1a0bc22f62f2df9005b318
14745
14794
  storage_size: typing.Optional[_aws_cdk_ceddda9d.Size] = None,
14746
14795
  subnet: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.ISubnet] = None,
14747
14796
  subnet_selection: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
14797
+ tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
14748
14798
  vpc: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IVpc] = None,
14749
14799
  default_labels: typing.Optional[builtins.bool] = None,
14750
14800
  log_retention: typing.Optional[_aws_cdk_aws_logs_ceddda9d.RetentionDays] = None,
@@ -19,9 +19,9 @@ import constructs._jsii
19
19
 
20
20
  __jsii_assembly__ = jsii.JSIIAssembly.load(
21
21
  "@cloudsnorkel/cdk-github-runners",
22
- "0.15.2",
22
+ "0.15.3",
23
23
  __name__[0:-6],
24
- "cdk-github-runners@0.15.2.jsii.tgz",
24
+ "cdk-github-runners@0.15.3.jsii.tgz",
25
25
  )
26
26
 
27
27
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloudsnorkel.cdk-github-runners
3
- Version: 0.15.2
3
+ Version: 0.15.3
4
4
  Summary: CDK construct to create GitHub Actions self-hosted runners. Creates ephemeral runners on demand. Easy to deploy and highly customizable.
5
5
  Home-page: https://github.com/CloudSnorkel/cdk-github-runners.git
6
6
  Author: Amir Szekely<amir@cloudsnorkel.com>
@@ -11,4 +11,4 @@ src/cloudsnorkel.cdk_github_runners.egg-info/top_level.txt
11
11
  src/cloudsnorkel/cdk_github_runners/__init__.py
12
12
  src/cloudsnorkel/cdk_github_runners/py.typed
13
13
  src/cloudsnorkel/cdk_github_runners/_jsii/__init__.py
14
- src/cloudsnorkel/cdk_github_runners/_jsii/cdk-github-runners@0.15.2.jsii.tgz
14
+ src/cloudsnorkel/cdk_github_runners/_jsii/cdk-github-runners@0.15.3.jsii.tgz