pulumi-docker-build 0.0.9__py3-none-any.whl → 0.1.0a1714574967__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 pulumi-docker-build might be problematic. Click here for more details.

@@ -4,101 +4,42 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
  from ._enums import *
17
12
 
18
13
  __all__ = [
19
14
  'BuildContextArgs',
20
- 'BuildContextArgsDict',
21
15
  'BuilderConfigArgs',
22
- 'BuilderConfigArgsDict',
23
16
  'CacheFromAzureBlobArgs',
24
- 'CacheFromAzureBlobArgsDict',
25
17
  'CacheFromGitHubActionsArgs',
26
- 'CacheFromGitHubActionsArgsDict',
27
18
  'CacheFromLocalArgs',
28
- 'CacheFromLocalArgsDict',
29
19
  'CacheFromRegistryArgs',
30
- 'CacheFromRegistryArgsDict',
31
20
  'CacheFromS3Args',
32
- 'CacheFromS3ArgsDict',
33
21
  'CacheFromArgs',
34
- 'CacheFromArgsDict',
35
22
  'CacheToAzureBlobArgs',
36
- 'CacheToAzureBlobArgsDict',
37
23
  'CacheToGitHubActionsArgs',
38
- 'CacheToGitHubActionsArgsDict',
39
24
  'CacheToInlineArgs',
40
- 'CacheToInlineArgsDict',
41
25
  'CacheToLocalArgs',
42
- 'CacheToLocalArgsDict',
43
26
  'CacheToRegistryArgs',
44
- 'CacheToRegistryArgsDict',
45
27
  'CacheToS3Args',
46
- 'CacheToS3ArgsDict',
47
28
  'CacheToArgs',
48
- 'CacheToArgsDict',
49
29
  'ContextArgs',
50
- 'ContextArgsDict',
51
30
  'DockerfileArgs',
52
- 'DockerfileArgsDict',
53
31
  'ExportCacheOnlyArgs',
54
- 'ExportCacheOnlyArgsDict',
55
32
  'ExportDockerArgs',
56
- 'ExportDockerArgsDict',
57
33
  'ExportImageArgs',
58
- 'ExportImageArgsDict',
59
34
  'ExportLocalArgs',
60
- 'ExportLocalArgsDict',
61
35
  'ExportOCIArgs',
62
- 'ExportOCIArgsDict',
63
36
  'ExportRegistryArgs',
64
- 'ExportRegistryArgsDict',
65
37
  'ExportTarArgs',
66
- 'ExportTarArgsDict',
67
38
  'ExportArgs',
68
- 'ExportArgsDict',
69
39
  'RegistryArgs',
70
- 'RegistryArgsDict',
71
40
  'SSHArgs',
72
- 'SSHArgsDict',
73
41
  ]
74
42
 
75
- MYPY = False
76
-
77
- if not MYPY:
78
- class BuildContextArgsDict(TypedDict):
79
- location: pulumi.Input[str]
80
- """
81
- Resources to use for build context.
82
-
83
- The location can be:
84
- * A relative or absolute path to a local directory (`.`, `./app`,
85
- `/app`, etc.).
86
- * A remote URL of a Git repository, tarball, or plain text file
87
- (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
88
- etc.).
89
- """
90
- named: NotRequired[pulumi.Input[Mapping[str, pulumi.Input['ContextArgsDict']]]]
91
- """
92
- Additional build contexts to use.
93
-
94
- These contexts are accessed with `FROM name` or `--from=name`
95
- statements when using Dockerfile 1.4+ syntax.
96
-
97
- Values can be local paths, HTTP URLs, or `docker-image://` images.
98
- """
99
- elif False:
100
- BuildContextArgsDict: TypeAlias = Mapping[str, Any]
101
-
102
43
  @pulumi.input_type
103
44
  class BuildContextArgs:
104
45
  def __init__(__self__, *,
@@ -161,20 +102,6 @@ class BuildContextArgs:
161
102
  pulumi.set(self, "named", value)
162
103
 
163
104
 
164
- if not MYPY:
165
- class BuilderConfigArgsDict(TypedDict):
166
- name: NotRequired[pulumi.Input[str]]
167
- """
168
- Name of an existing buildx builder to use.
169
-
170
- Only `docker-container`, `kubernetes`, or `remote` drivers are
171
- supported. The legacy `docker` driver is not supported.
172
-
173
- Equivalent to Docker's `--builder` flag.
174
- """
175
- elif False:
176
- BuilderConfigArgsDict: TypeAlias = Mapping[str, Any]
177
-
178
105
  @pulumi.input_type
179
106
  class BuilderConfigArgs:
180
107
  def __init__(__self__, *,
@@ -208,23 +135,6 @@ class BuilderConfigArgs:
208
135
  pulumi.set(self, "name", value)
209
136
 
210
137
 
211
- if not MYPY:
212
- class CacheFromAzureBlobArgsDict(TypedDict):
213
- name: pulumi.Input[str]
214
- """
215
- The name of the cache image.
216
- """
217
- account_url: NotRequired[pulumi.Input[str]]
218
- """
219
- Base URL of the storage account.
220
- """
221
- secret_access_key: NotRequired[pulumi.Input[str]]
222
- """
223
- Blob storage account key.
224
- """
225
- elif False:
226
- CacheFromAzureBlobArgsDict: TypeAlias = Mapping[str, Any]
227
-
228
138
  @pulumi.input_type
229
139
  class CacheFromAzureBlobArgs:
230
140
  def __init__(__self__, *,
@@ -279,35 +189,6 @@ class CacheFromAzureBlobArgs:
279
189
  pulumi.set(self, "secret_access_key", value)
280
190
 
281
191
 
282
- if not MYPY:
283
- class CacheFromGitHubActionsArgsDict(TypedDict):
284
- scope: NotRequired[pulumi.Input[str]]
285
- """
286
- The scope to use for cache keys. Defaults to `buildkit`.
287
-
288
- This should be set if building and caching multiple images in one
289
- workflow, otherwise caches will overwrite each other.
290
- """
291
- token: NotRequired[pulumi.Input[str]]
292
- """
293
- The GitHub Actions token to use. This is not a personal access tokens
294
- and is typically generated automatically as part of each job.
295
-
296
- Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
297
- `crazy-max/ghaction-github-runtime` is recommended to expose this
298
- environment variable to your jobs.
299
- """
300
- url: NotRequired[pulumi.Input[str]]
301
- """
302
- The cache server URL to use for artifacts.
303
-
304
- Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
305
- `crazy-max/ghaction-github-runtime` is recommended to expose this
306
- environment variable to your jobs.
307
- """
308
- elif False:
309
- CacheFromGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
310
-
311
192
  @pulumi.input_type
312
193
  class CacheFromGitHubActionsArgs:
313
194
  def __init__(__self__, *,
@@ -327,7 +208,7 @@ class CacheFromGitHubActionsArgs:
327
208
  environment variable to your jobs.
328
209
  :param pulumi.Input[str] url: The cache server URL to use for artifacts.
329
210
 
330
- Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
211
+ Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
331
212
  `crazy-max/ghaction-github-runtime` is recommended to expose this
332
213
  environment variable to your jobs.
333
214
  """
@@ -340,7 +221,7 @@ class CacheFromGitHubActionsArgs:
340
221
  if token is not None:
341
222
  pulumi.set(__self__, "token", token)
342
223
  if url is None:
343
- url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
224
+ url = (_utilities.get_env('ACTIONS_RUNTIME_URL') or '')
344
225
  if url is not None:
345
226
  pulumi.set(__self__, "url", url)
346
227
 
@@ -382,7 +263,7 @@ class CacheFromGitHubActionsArgs:
382
263
  """
383
264
  The cache server URL to use for artifacts.
384
265
 
385
- Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
266
+ Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
386
267
  `crazy-max/ghaction-github-runtime` is recommended to expose this
387
268
  environment variable to your jobs.
388
269
  """
@@ -393,19 +274,6 @@ class CacheFromGitHubActionsArgs:
393
274
  pulumi.set(self, "url", value)
394
275
 
395
276
 
396
- if not MYPY:
397
- class CacheFromLocalArgsDict(TypedDict):
398
- src: pulumi.Input[str]
399
- """
400
- Path of the local directory where cache gets imported from.
401
- """
402
- digest: NotRequired[pulumi.Input[str]]
403
- """
404
- Digest of manifest to import.
405
- """
406
- elif False:
407
- CacheFromLocalArgsDict: TypeAlias = Mapping[str, Any]
408
-
409
277
  @pulumi.input_type
410
278
  class CacheFromLocalArgs:
411
279
  def __init__(__self__, *,
@@ -444,15 +312,6 @@ class CacheFromLocalArgs:
444
312
  pulumi.set(self, "digest", value)
445
313
 
446
314
 
447
- if not MYPY:
448
- class CacheFromRegistryArgsDict(TypedDict):
449
- ref: pulumi.Input[str]
450
- """
451
- Fully qualified name of the cache image to import.
452
- """
453
- elif False:
454
- CacheFromRegistryArgsDict: TypeAlias = Mapping[str, Any]
455
-
456
315
  @pulumi.input_type
457
316
  class CacheFromRegistryArgs:
458
317
  def __init__(__self__, *,
@@ -475,51 +334,6 @@ class CacheFromRegistryArgs:
475
334
  pulumi.set(self, "ref", value)
476
335
 
477
336
 
478
- if not MYPY:
479
- class CacheFromS3ArgsDict(TypedDict):
480
- bucket: pulumi.Input[str]
481
- """
482
- Name of the S3 bucket.
483
- """
484
- region: pulumi.Input[str]
485
- """
486
- The geographic location of the bucket. Defaults to `$AWS_REGION`.
487
- """
488
- access_key_id: NotRequired[pulumi.Input[str]]
489
- """
490
- Defaults to `$AWS_ACCESS_KEY_ID`.
491
- """
492
- blobs_prefix: NotRequired[pulumi.Input[str]]
493
- """
494
- Prefix to prepend to blob filenames.
495
- """
496
- endpoint_url: NotRequired[pulumi.Input[str]]
497
- """
498
- Endpoint of the S3 bucket.
499
- """
500
- manifests_prefix: NotRequired[pulumi.Input[str]]
501
- """
502
- Prefix to prepend on manifest filenames.
503
- """
504
- name: NotRequired[pulumi.Input[str]]
505
- """
506
- Name of the cache image.
507
- """
508
- secret_access_key: NotRequired[pulumi.Input[str]]
509
- """
510
- Defaults to `$AWS_SECRET_ACCESS_KEY`.
511
- """
512
- session_token: NotRequired[pulumi.Input[str]]
513
- """
514
- Defaults to `$AWS_SESSION_TOKEN`.
515
- """
516
- use_path_style: NotRequired[pulumi.Input[bool]]
517
- """
518
- Uses `bucket` in the URL instead of hostname when `true`.
519
- """
520
- elif False:
521
- CacheFromS3ArgsDict: TypeAlias = Mapping[str, Any]
522
-
523
337
  @pulumi.input_type
524
338
  class CacheFromS3Args:
525
339
  def __init__(__self__, *,
@@ -693,44 +507,6 @@ class CacheFromS3Args:
693
507
  pulumi.set(self, "use_path_style", value)
694
508
 
695
509
 
696
- if not MYPY:
697
- class CacheFromArgsDict(TypedDict):
698
- azblob: NotRequired[pulumi.Input['CacheFromAzureBlobArgsDict']]
699
- """
700
- Upload build caches to Azure's blob storage service.
701
- """
702
- disabled: NotRequired[pulumi.Input[bool]]
703
- """
704
- When `true` this entry will be excluded. Defaults to `false`.
705
- """
706
- gha: NotRequired[pulumi.Input['CacheFromGitHubActionsArgsDict']]
707
- """
708
- Recommended for use with GitHub Actions workflows.
709
-
710
- An action like `crazy-max/ghaction-github-runtime` is recommended to
711
- expose appropriate credentials to your GitHub workflow.
712
- """
713
- local: NotRequired[pulumi.Input['CacheFromLocalArgsDict']]
714
- """
715
- A simple backend which caches images on your local filesystem.
716
- """
717
- raw: NotRequired[pulumi.Input[str]]
718
- """
719
- A raw string as you would provide it to the Docker CLI (e.g.,
720
- `type=inline`).
721
- """
722
- registry: NotRequired[pulumi.Input['CacheFromRegistryArgsDict']]
723
- """
724
- Upload build caches to remote registries.
725
- """
726
- s3: NotRequired[pulumi.Input['CacheFromS3ArgsDict']]
727
- """
728
- Upload build caches to AWS S3 or an S3-compatible services such as
729
- MinIO.
730
- """
731
- elif False:
732
- CacheFromArgsDict: TypeAlias = Mapping[str, Any]
733
-
734
510
  @pulumi.input_type
735
511
  class CacheFromArgs:
736
512
  def __init__(__self__, *,
@@ -860,31 +636,6 @@ class CacheFromArgs:
860
636
  pulumi.set(self, "s3", value)
861
637
 
862
638
 
863
- if not MYPY:
864
- class CacheToAzureBlobArgsDict(TypedDict):
865
- name: pulumi.Input[str]
866
- """
867
- The name of the cache image.
868
- """
869
- account_url: NotRequired[pulumi.Input[str]]
870
- """
871
- Base URL of the storage account.
872
- """
873
- ignore_error: NotRequired[pulumi.Input[bool]]
874
- """
875
- Ignore errors caused by failed cache exports.
876
- """
877
- mode: NotRequired[pulumi.Input['CacheMode']]
878
- """
879
- The cache mode to use. Defaults to `min`.
880
- """
881
- secret_access_key: NotRequired[pulumi.Input[str]]
882
- """
883
- Blob storage account key.
884
- """
885
- elif False:
886
- CacheToAzureBlobArgsDict: TypeAlias = Mapping[str, Any]
887
-
888
639
  @pulumi.input_type
889
640
  class CacheToAzureBlobArgs:
890
641
  def __init__(__self__, *,
@@ -975,43 +726,6 @@ class CacheToAzureBlobArgs:
975
726
  pulumi.set(self, "secret_access_key", value)
976
727
 
977
728
 
978
- if not MYPY:
979
- class CacheToGitHubActionsArgsDict(TypedDict):
980
- ignore_error: NotRequired[pulumi.Input[bool]]
981
- """
982
- Ignore errors caused by failed cache exports.
983
- """
984
- mode: NotRequired[pulumi.Input['CacheMode']]
985
- """
986
- The cache mode to use. Defaults to `min`.
987
- """
988
- scope: NotRequired[pulumi.Input[str]]
989
- """
990
- The scope to use for cache keys. Defaults to `buildkit`.
991
-
992
- This should be set if building and caching multiple images in one
993
- workflow, otherwise caches will overwrite each other.
994
- """
995
- token: NotRequired[pulumi.Input[str]]
996
- """
997
- The GitHub Actions token to use. This is not a personal access tokens
998
- and is typically generated automatically as part of each job.
999
-
1000
- Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
1001
- `crazy-max/ghaction-github-runtime` is recommended to expose this
1002
- environment variable to your jobs.
1003
- """
1004
- url: NotRequired[pulumi.Input[str]]
1005
- """
1006
- The cache server URL to use for artifacts.
1007
-
1008
- Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
1009
- `crazy-max/ghaction-github-runtime` is recommended to expose this
1010
- environment variable to your jobs.
1011
- """
1012
- elif False:
1013
- CacheToGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
1014
-
1015
729
  @pulumi.input_type
1016
730
  class CacheToGitHubActionsArgs:
1017
731
  def __init__(__self__, *,
@@ -1035,7 +749,7 @@ class CacheToGitHubActionsArgs:
1035
749
  environment variable to your jobs.
1036
750
  :param pulumi.Input[str] url: The cache server URL to use for artifacts.
1037
751
 
1038
- Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
752
+ Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
1039
753
  `crazy-max/ghaction-github-runtime` is recommended to expose this
1040
754
  environment variable to your jobs.
1041
755
  """
@@ -1056,7 +770,7 @@ class CacheToGitHubActionsArgs:
1056
770
  if token is not None:
1057
771
  pulumi.set(__self__, "token", token)
1058
772
  if url is None:
1059
- url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
773
+ url = (_utilities.get_env('ACTIONS_RUNTIME_URL') or '')
1060
774
  if url is not None:
1061
775
  pulumi.set(__self__, "url", url)
1062
776
 
@@ -1122,7 +836,7 @@ class CacheToGitHubActionsArgs:
1122
836
  """
1123
837
  The cache server URL to use for artifacts.
1124
838
 
1125
- Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
839
+ Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
1126
840
  `crazy-max/ghaction-github-runtime` is recommended to expose this
1127
841
  environment variable to your jobs.
1128
842
  """
@@ -1133,15 +847,6 @@ class CacheToGitHubActionsArgs:
1133
847
  pulumi.set(self, "url", value)
1134
848
 
1135
849
 
1136
- if not MYPY:
1137
- class CacheToInlineArgsDict(TypedDict):
1138
- """
1139
- Include an inline cache with the exported image.
1140
- """
1141
- pass
1142
- elif False:
1143
- CacheToInlineArgsDict: TypeAlias = Mapping[str, Any]
1144
-
1145
850
  @pulumi.input_type
1146
851
  class CacheToInlineArgs:
1147
852
  def __init__(__self__):
@@ -1151,35 +856,6 @@ class CacheToInlineArgs:
1151
856
  pass
1152
857
 
1153
858
 
1154
- if not MYPY:
1155
- class CacheToLocalArgsDict(TypedDict):
1156
- dest: pulumi.Input[str]
1157
- """
1158
- Path of the local directory to export the cache.
1159
- """
1160
- compression: NotRequired[pulumi.Input['CompressionType']]
1161
- """
1162
- The compression type to use.
1163
- """
1164
- compression_level: NotRequired[pulumi.Input[int]]
1165
- """
1166
- Compression level from 0 to 22.
1167
- """
1168
- force_compression: NotRequired[pulumi.Input[bool]]
1169
- """
1170
- Forcefully apply compression.
1171
- """
1172
- ignore_error: NotRequired[pulumi.Input[bool]]
1173
- """
1174
- Ignore errors caused by failed cache exports.
1175
- """
1176
- mode: NotRequired[pulumi.Input['CacheMode']]
1177
- """
1178
- The cache mode to use. Defaults to `min`.
1179
- """
1180
- elif False:
1181
- CacheToLocalArgsDict: TypeAlias = Mapping[str, Any]
1182
-
1183
859
  @pulumi.input_type
1184
860
  class CacheToLocalArgs:
1185
861
  def __init__(__self__, *,
@@ -1292,50 +968,6 @@ class CacheToLocalArgs:
1292
968
  pulumi.set(self, "mode", value)
1293
969
 
1294
970
 
1295
- if not MYPY:
1296
- class CacheToRegistryArgsDict(TypedDict):
1297
- ref: pulumi.Input[str]
1298
- """
1299
- Fully qualified name of the cache image to import.
1300
- """
1301
- compression: NotRequired[pulumi.Input['CompressionType']]
1302
- """
1303
- The compression type to use.
1304
- """
1305
- compression_level: NotRequired[pulumi.Input[int]]
1306
- """
1307
- Compression level from 0 to 22.
1308
- """
1309
- force_compression: NotRequired[pulumi.Input[bool]]
1310
- """
1311
- Forcefully apply compression.
1312
- """
1313
- ignore_error: NotRequired[pulumi.Input[bool]]
1314
- """
1315
- Ignore errors caused by failed cache exports.
1316
- """
1317
- image_manifest: NotRequired[pulumi.Input[bool]]
1318
- """
1319
- Export cache manifest as an OCI-compatible image manifest instead of a
1320
- manifest list. Requires `ociMediaTypes` to also be `true`.
1321
-
1322
- Some registries like AWS ECR will not work with caching if this is
1323
- `false`.
1324
-
1325
- Defaults to `false` to match Docker's default behavior.
1326
- """
1327
- mode: NotRequired[pulumi.Input['CacheMode']]
1328
- """
1329
- The cache mode to use. Defaults to `min`.
1330
- """
1331
- oci_media_types: NotRequired[pulumi.Input[bool]]
1332
- """
1333
- Whether to use OCI media types in exported manifests. Defaults to
1334
- `true`.
1335
- """
1336
- elif False:
1337
- CacheToRegistryArgsDict: TypeAlias = Mapping[str, Any]
1338
-
1339
971
  @pulumi.input_type
1340
972
  class CacheToRegistryArgs:
1341
973
  def __init__(__self__, *,
@@ -1498,59 +1130,6 @@ class CacheToRegistryArgs:
1498
1130
  pulumi.set(self, "oci_media_types", value)
1499
1131
 
1500
1132
 
1501
- if not MYPY:
1502
- class CacheToS3ArgsDict(TypedDict):
1503
- bucket: pulumi.Input[str]
1504
- """
1505
- Name of the S3 bucket.
1506
- """
1507
- region: pulumi.Input[str]
1508
- """
1509
- The geographic location of the bucket. Defaults to `$AWS_REGION`.
1510
- """
1511
- access_key_id: NotRequired[pulumi.Input[str]]
1512
- """
1513
- Defaults to `$AWS_ACCESS_KEY_ID`.
1514
- """
1515
- blobs_prefix: NotRequired[pulumi.Input[str]]
1516
- """
1517
- Prefix to prepend to blob filenames.
1518
- """
1519
- endpoint_url: NotRequired[pulumi.Input[str]]
1520
- """
1521
- Endpoint of the S3 bucket.
1522
- """
1523
- ignore_error: NotRequired[pulumi.Input[bool]]
1524
- """
1525
- Ignore errors caused by failed cache exports.
1526
- """
1527
- manifests_prefix: NotRequired[pulumi.Input[str]]
1528
- """
1529
- Prefix to prepend on manifest filenames.
1530
- """
1531
- mode: NotRequired[pulumi.Input['CacheMode']]
1532
- """
1533
- The cache mode to use. Defaults to `min`.
1534
- """
1535
- name: NotRequired[pulumi.Input[str]]
1536
- """
1537
- Name of the cache image.
1538
- """
1539
- secret_access_key: NotRequired[pulumi.Input[str]]
1540
- """
1541
- Defaults to `$AWS_SECRET_ACCESS_KEY`.
1542
- """
1543
- session_token: NotRequired[pulumi.Input[str]]
1544
- """
1545
- Defaults to `$AWS_SESSION_TOKEN`.
1546
- """
1547
- use_path_style: NotRequired[pulumi.Input[bool]]
1548
- """
1549
- Uses `bucket` in the URL instead of hostname when `true`.
1550
- """
1551
- elif False:
1552
- CacheToS3ArgsDict: TypeAlias = Mapping[str, Any]
1553
-
1554
1133
  @pulumi.input_type
1555
1134
  class CacheToS3Args:
1556
1135
  def __init__(__self__, *,
@@ -1741,68 +1320,24 @@ class CacheToS3Args:
1741
1320
  """
1742
1321
  Defaults to `$AWS_SESSION_TOKEN`.
1743
1322
  """
1744
- return pulumi.get(self, "session_token")
1745
-
1746
- @session_token.setter
1747
- def session_token(self, value: Optional[pulumi.Input[str]]):
1748
- pulumi.set(self, "session_token", value)
1749
-
1750
- @property
1751
- @pulumi.getter(name="usePathStyle")
1752
- def use_path_style(self) -> Optional[pulumi.Input[bool]]:
1753
- """
1754
- Uses `bucket` in the URL instead of hostname when `true`.
1755
- """
1756
- return pulumi.get(self, "use_path_style")
1757
-
1758
- @use_path_style.setter
1759
- def use_path_style(self, value: Optional[pulumi.Input[bool]]):
1760
- pulumi.set(self, "use_path_style", value)
1761
-
1762
-
1763
- if not MYPY:
1764
- class CacheToArgsDict(TypedDict):
1765
- azblob: NotRequired[pulumi.Input['CacheToAzureBlobArgsDict']]
1766
- """
1767
- Push cache to Azure's blob storage service.
1768
- """
1769
- disabled: NotRequired[pulumi.Input[bool]]
1770
- """
1771
- When `true` this entry will be excluded. Defaults to `false`.
1772
- """
1773
- gha: NotRequired[pulumi.Input['CacheToGitHubActionsArgsDict']]
1774
- """
1775
- Recommended for use with GitHub Actions workflows.
1776
-
1777
- An action like `crazy-max/ghaction-github-runtime` is recommended to
1778
- expose appropriate credentials to your GitHub workflow.
1779
- """
1780
- inline: NotRequired[pulumi.Input['CacheToInlineArgsDict']]
1781
- """
1782
- The inline cache storage backend is the simplest implementation to get
1783
- started with, but it does not handle multi-stage builds. Consider the
1784
- `registry` cache backend instead.
1785
- """
1786
- local: NotRequired[pulumi.Input['CacheToLocalArgsDict']]
1787
- """
1788
- A simple backend which caches imagines on your local filesystem.
1789
- """
1790
- raw: NotRequired[pulumi.Input[str]]
1791
- """
1792
- A raw string as you would provide it to the Docker CLI (e.g.,
1793
- `type=inline`)
1794
- """
1795
- registry: NotRequired[pulumi.Input['CacheToRegistryArgsDict']]
1796
- """
1797
- Push caches to remote registries. Incompatible with the `docker` build
1798
- driver.
1799
- """
1800
- s3: NotRequired[pulumi.Input['CacheToS3ArgsDict']]
1323
+ return pulumi.get(self, "session_token")
1324
+
1325
+ @session_token.setter
1326
+ def session_token(self, value: Optional[pulumi.Input[str]]):
1327
+ pulumi.set(self, "session_token", value)
1328
+
1329
+ @property
1330
+ @pulumi.getter(name="usePathStyle")
1331
+ def use_path_style(self) -> Optional[pulumi.Input[bool]]:
1801
1332
  """
1802
- Push cache to AWS S3 or S3-compatible services such as MinIO.
1333
+ Uses `bucket` in the URL instead of hostname when `true`.
1803
1334
  """
1804
- elif False:
1805
- CacheToArgsDict: TypeAlias = Mapping[str, Any]
1335
+ return pulumi.get(self, "use_path_style")
1336
+
1337
+ @use_path_style.setter
1338
+ def use_path_style(self, value: Optional[pulumi.Input[bool]]):
1339
+ pulumi.set(self, "use_path_style", value)
1340
+
1806
1341
 
1807
1342
  @pulumi.input_type
1808
1343
  class CacheToArgs:
@@ -1953,22 +1488,6 @@ class CacheToArgs:
1953
1488
  pulumi.set(self, "s3", value)
1954
1489
 
1955
1490
 
1956
- if not MYPY:
1957
- class ContextArgsDict(TypedDict):
1958
- location: pulumi.Input[str]
1959
- """
1960
- Resources to use for build context.
1961
-
1962
- The location can be:
1963
- * A relative or absolute path to a local directory (`.`, `./app`,
1964
- `/app`, etc.).
1965
- * A remote URL of a Git repository, tarball, or plain text file
1966
- (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
1967
- etc.).
1968
- """
1969
- elif False:
1970
- ContextArgsDict: TypeAlias = Mapping[str, Any]
1971
-
1972
1491
  @pulumi.input_type
1973
1492
  class ContextArgs:
1974
1493
  def __init__(__self__, *,
@@ -2005,29 +1524,6 @@ class ContextArgs:
2005
1524
  pulumi.set(self, "location", value)
2006
1525
 
2007
1526
 
2008
- if not MYPY:
2009
- class DockerfileArgsDict(TypedDict):
2010
- inline: NotRequired[pulumi.Input[str]]
2011
- """
2012
- Raw Dockerfile contents.
2013
-
2014
- Conflicts with `location`.
2015
-
2016
- Equivalent to invoking Docker with `-f -`.
2017
- """
2018
- location: NotRequired[pulumi.Input[str]]
2019
- """
2020
- Location of the Dockerfile to use.
2021
-
2022
- Can be a relative or absolute path to a local file, or a remote URL.
2023
-
2024
- Defaults to `${context.location}/Dockerfile` if context is on-disk.
2025
-
2026
- Conflicts with `inline`.
2027
- """
2028
- elif False:
2029
- DockerfileArgsDict: TypeAlias = Mapping[str, Any]
2030
-
2031
1527
  @pulumi.input_type
2032
1528
  class DockerfileArgs:
2033
1529
  def __init__(__self__, *,
@@ -2087,55 +1583,12 @@ class DockerfileArgs:
2087
1583
  pulumi.set(self, "location", value)
2088
1584
 
2089
1585
 
2090
- if not MYPY:
2091
- class ExportCacheOnlyArgsDict(TypedDict):
2092
- pass
2093
- elif False:
2094
- ExportCacheOnlyArgsDict: TypeAlias = Mapping[str, Any]
2095
-
2096
1586
  @pulumi.input_type
2097
1587
  class ExportCacheOnlyArgs:
2098
1588
  def __init__(__self__):
2099
1589
  pass
2100
1590
 
2101
1591
 
2102
- if not MYPY:
2103
- class ExportDockerArgsDict(TypedDict):
2104
- annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
2105
- """
2106
- Attach an arbitrary key/value annotation to the image.
2107
- """
2108
- compression: NotRequired[pulumi.Input['CompressionType']]
2109
- """
2110
- The compression type to use.
2111
- """
2112
- compression_level: NotRequired[pulumi.Input[int]]
2113
- """
2114
- Compression level from 0 to 22.
2115
- """
2116
- dest: NotRequired[pulumi.Input[str]]
2117
- """
2118
- The local export path.
2119
- """
2120
- force_compression: NotRequired[pulumi.Input[bool]]
2121
- """
2122
- Forcefully apply compression.
2123
- """
2124
- names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2125
- """
2126
- Specify images names to export. This is overridden if tags are already specified.
2127
- """
2128
- oci_media_types: NotRequired[pulumi.Input[bool]]
2129
- """
2130
- Use OCI media types in exporter manifests.
2131
- """
2132
- tar: NotRequired[pulumi.Input[bool]]
2133
- """
2134
- Bundle the output into a tarball layout.
2135
- """
2136
- elif False:
2137
- ExportDockerArgsDict: TypeAlias = Mapping[str, Any]
2138
-
2139
1592
  @pulumi.input_type
2140
1593
  class ExportDockerArgs:
2141
1594
  def __init__(__self__, *,
@@ -2281,70 +1734,6 @@ class ExportDockerArgs:
2281
1734
  pulumi.set(self, "tar", value)
2282
1735
 
2283
1736
 
2284
- if not MYPY:
2285
- class ExportImageArgsDict(TypedDict):
2286
- annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
2287
- """
2288
- Attach an arbitrary key/value annotation to the image.
2289
- """
2290
- compression: NotRequired[pulumi.Input['CompressionType']]
2291
- """
2292
- The compression type to use.
2293
- """
2294
- compression_level: NotRequired[pulumi.Input[int]]
2295
- """
2296
- Compression level from 0 to 22.
2297
- """
2298
- dangling_name_prefix: NotRequired[pulumi.Input[str]]
2299
- """
2300
- Name image with `prefix@<digest>`, used for anonymous images.
2301
- """
2302
- force_compression: NotRequired[pulumi.Input[bool]]
2303
- """
2304
- Forcefully apply compression.
2305
- """
2306
- insecure: NotRequired[pulumi.Input[bool]]
2307
- """
2308
- Allow pushing to an insecure registry.
2309
- """
2310
- name_canonical: NotRequired[pulumi.Input[bool]]
2311
- """
2312
- Add additional canonical name (`name@<digest>`).
2313
- """
2314
- names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2315
- """
2316
- Specify images names to export. This is overridden if tags are already specified.
2317
- """
2318
- oci_media_types: NotRequired[pulumi.Input[bool]]
2319
- """
2320
- Use OCI media types in exporter manifests.
2321
- """
2322
- push: NotRequired[pulumi.Input[bool]]
2323
- """
2324
- Push after creating the image. Defaults to `false`.
2325
- """
2326
- push_by_digest: NotRequired[pulumi.Input[bool]]
2327
- """
2328
- Push image without name.
2329
- """
2330
- store: NotRequired[pulumi.Input[bool]]
2331
- """
2332
- Store resulting images to the worker's image store and ensure all of
2333
- its blobs are in the content store.
2334
-
2335
- Defaults to `true`.
2336
-
2337
- Ignored if the worker doesn't have image store (when using OCI workers,
2338
- for example).
2339
- """
2340
- unpack: NotRequired[pulumi.Input[bool]]
2341
- """
2342
- Unpack image after creation (for use with containerd). Defaults to
2343
- `false`.
2344
- """
2345
- elif False:
2346
- ExportImageArgsDict: TypeAlias = Mapping[str, Any]
2347
-
2348
1737
  @pulumi.input_type
2349
1738
  class ExportImageArgs:
2350
1739
  def __init__(__self__, *,
@@ -2584,15 +1973,6 @@ class ExportImageArgs:
2584
1973
  pulumi.set(self, "unpack", value)
2585
1974
 
2586
1975
 
2587
- if not MYPY:
2588
- class ExportLocalArgsDict(TypedDict):
2589
- dest: pulumi.Input[str]
2590
- """
2591
- Output path.
2592
- """
2593
- elif False:
2594
- ExportLocalArgsDict: TypeAlias = Mapping[str, Any]
2595
-
2596
1976
  @pulumi.input_type
2597
1977
  class ExportLocalArgs:
2598
1978
  def __init__(__self__, *,
@@ -2615,43 +1995,6 @@ class ExportLocalArgs:
2615
1995
  pulumi.set(self, "dest", value)
2616
1996
 
2617
1997
 
2618
- if not MYPY:
2619
- class ExportOCIArgsDict(TypedDict):
2620
- annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
2621
- """
2622
- Attach an arbitrary key/value annotation to the image.
2623
- """
2624
- compression: NotRequired[pulumi.Input['CompressionType']]
2625
- """
2626
- The compression type to use.
2627
- """
2628
- compression_level: NotRequired[pulumi.Input[int]]
2629
- """
2630
- Compression level from 0 to 22.
2631
- """
2632
- dest: NotRequired[pulumi.Input[str]]
2633
- """
2634
- The local export path.
2635
- """
2636
- force_compression: NotRequired[pulumi.Input[bool]]
2637
- """
2638
- Forcefully apply compression.
2639
- """
2640
- names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2641
- """
2642
- Specify images names to export. This is overridden if tags are already specified.
2643
- """
2644
- oci_media_types: NotRequired[pulumi.Input[bool]]
2645
- """
2646
- Use OCI media types in exporter manifests.
2647
- """
2648
- tar: NotRequired[pulumi.Input[bool]]
2649
- """
2650
- Bundle the output into a tarball layout.
2651
- """
2652
- elif False:
2653
- ExportOCIArgsDict: TypeAlias = Mapping[str, Any]
2654
-
2655
1998
  @pulumi.input_type
2656
1999
  class ExportOCIArgs:
2657
2000
  def __init__(__self__, *,
@@ -2797,70 +2140,6 @@ class ExportOCIArgs:
2797
2140
  pulumi.set(self, "tar", value)
2798
2141
 
2799
2142
 
2800
- if not MYPY:
2801
- class ExportRegistryArgsDict(TypedDict):
2802
- annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
2803
- """
2804
- Attach an arbitrary key/value annotation to the image.
2805
- """
2806
- compression: NotRequired[pulumi.Input['CompressionType']]
2807
- """
2808
- The compression type to use.
2809
- """
2810
- compression_level: NotRequired[pulumi.Input[int]]
2811
- """
2812
- Compression level from 0 to 22.
2813
- """
2814
- dangling_name_prefix: NotRequired[pulumi.Input[str]]
2815
- """
2816
- Name image with `prefix@<digest>`, used for anonymous images.
2817
- """
2818
- force_compression: NotRequired[pulumi.Input[bool]]
2819
- """
2820
- Forcefully apply compression.
2821
- """
2822
- insecure: NotRequired[pulumi.Input[bool]]
2823
- """
2824
- Allow pushing to an insecure registry.
2825
- """
2826
- name_canonical: NotRequired[pulumi.Input[bool]]
2827
- """
2828
- Add additional canonical name (`name@<digest>`).
2829
- """
2830
- names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2831
- """
2832
- Specify images names to export. This is overridden if tags are already specified.
2833
- """
2834
- oci_media_types: NotRequired[pulumi.Input[bool]]
2835
- """
2836
- Use OCI media types in exporter manifests.
2837
- """
2838
- push: NotRequired[pulumi.Input[bool]]
2839
- """
2840
- Push after creating the image. Defaults to `true`.
2841
- """
2842
- push_by_digest: NotRequired[pulumi.Input[bool]]
2843
- """
2844
- Push image without name.
2845
- """
2846
- store: NotRequired[pulumi.Input[bool]]
2847
- """
2848
- Store resulting images to the worker's image store and ensure all of
2849
- its blobs are in the content store.
2850
-
2851
- Defaults to `true`.
2852
-
2853
- Ignored if the worker doesn't have image store (when using OCI workers,
2854
- for example).
2855
- """
2856
- unpack: NotRequired[pulumi.Input[bool]]
2857
- """
2858
- Unpack image after creation (for use with containerd). Defaults to
2859
- `false`.
2860
- """
2861
- elif False:
2862
- ExportRegistryArgsDict: TypeAlias = Mapping[str, Any]
2863
-
2864
2143
  @pulumi.input_type
2865
2144
  class ExportRegistryArgs:
2866
2145
  def __init__(__self__, *,
@@ -3102,15 +2381,6 @@ class ExportRegistryArgs:
3102
2381
  pulumi.set(self, "unpack", value)
3103
2382
 
3104
2383
 
3105
- if not MYPY:
3106
- class ExportTarArgsDict(TypedDict):
3107
- dest: pulumi.Input[str]
3108
- """
3109
- Output path.
3110
- """
3111
- elif False:
3112
- ExportTarArgsDict: TypeAlias = Mapping[str, Any]
3113
-
3114
2384
  @pulumi.input_type
3115
2385
  class ExportTarArgs:
3116
2386
  def __init__(__self__, *,
@@ -3133,49 +2403,6 @@ class ExportTarArgs:
3133
2403
  pulumi.set(self, "dest", value)
3134
2404
 
3135
2405
 
3136
- if not MYPY:
3137
- class ExportArgsDict(TypedDict):
3138
- cacheonly: NotRequired[pulumi.Input['ExportCacheOnlyArgsDict']]
3139
- """
3140
- A no-op export. Helpful for silencing the 'no exports' warning if you
3141
- just want to populate caches.
3142
- """
3143
- disabled: NotRequired[pulumi.Input[bool]]
3144
- """
3145
- When `true` this entry will be excluded. Defaults to `false`.
3146
- """
3147
- docker: NotRequired[pulumi.Input['ExportDockerArgsDict']]
3148
- """
3149
- Export as a Docker image layout.
3150
- """
3151
- image: NotRequired[pulumi.Input['ExportImageArgsDict']]
3152
- """
3153
- Outputs the build result into a container image format.
3154
- """
3155
- local: NotRequired[pulumi.Input['ExportLocalArgsDict']]
3156
- """
3157
- Export to a local directory as files and directories.
3158
- """
3159
- oci: NotRequired[pulumi.Input['ExportOCIArgsDict']]
3160
- """
3161
- Identical to the Docker exporter but uses OCI media types by default.
3162
- """
3163
- raw: NotRequired[pulumi.Input[str]]
3164
- """
3165
- A raw string as you would provide it to the Docker CLI (e.g.,
3166
- `type=docker`)
3167
- """
3168
- registry: NotRequired[pulumi.Input['ExportRegistryArgsDict']]
3169
- """
3170
- Identical to the Image exporter, but pushes by default.
3171
- """
3172
- tar: NotRequired[pulumi.Input['ExportTarArgsDict']]
3173
- """
3174
- Export to a local directory as a tarball.
3175
- """
3176
- elif False:
3177
- ExportArgsDict: TypeAlias = Mapping[str, Any]
3178
-
3179
2406
  @pulumi.input_type
3180
2407
  class ExportArgs:
3181
2408
  def __init__(__self__, *,
@@ -3331,23 +2558,6 @@ class ExportArgs:
3331
2558
  pulumi.set(self, "tar", value)
3332
2559
 
3333
2560
 
3334
- if not MYPY:
3335
- class RegistryArgsDict(TypedDict):
3336
- address: pulumi.Input[str]
3337
- """
3338
- The registry's address (e.g. "docker.io").
3339
- """
3340
- password: NotRequired[pulumi.Input[str]]
3341
- """
3342
- Password or token for the registry.
3343
- """
3344
- username: NotRequired[pulumi.Input[str]]
3345
- """
3346
- Username for the registry.
3347
- """
3348
- elif False:
3349
- RegistryArgsDict: TypeAlias = Mapping[str, Any]
3350
-
3351
2561
  @pulumi.input_type
3352
2562
  class RegistryArgs:
3353
2563
  def __init__(__self__, *,
@@ -3402,29 +2612,6 @@ class RegistryArgs:
3402
2612
  pulumi.set(self, "username", value)
3403
2613
 
3404
2614
 
3405
- if not MYPY:
3406
- class SSHArgsDict(TypedDict):
3407
- id: pulumi.Input[str]
3408
- """
3409
- Useful for distinguishing different servers that are part of the same
3410
- build.
3411
-
3412
- A value of `default` is appropriate if only dealing with a single host.
3413
- """
3414
- paths: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
3415
- """
3416
- SSH agent socket or private keys to expose to the build under the given
3417
- identifier.
3418
-
3419
- Defaults to `[$SSH_AUTH_SOCK]`.
3420
-
3421
- Note that your keys are **not** automatically added when using an
3422
- agent. Run `ssh-add -l` locally to confirm which public keys are
3423
- visible to the agent; these will be exposed to your build.
3424
- """
3425
- elif False:
3426
- SSHArgsDict: TypeAlias = Mapping[str, Any]
3427
-
3428
2615
  @pulumi.input_type
3429
2616
  class SSHArgs:
3430
2617
  def __init__(__self__, *,