pulumi-docker 4.7.0a1747201669__py3-none-any.whl → 4.7.0a1747851171__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.
@@ -14,23 +14,29 @@ if sys.version_info >= (3, 11):
14
14
  else:
15
15
  from typing_extensions import NotRequired, TypedDict, TypeAlias
16
16
  from . import _utilities
17
+ from . import outputs
18
+ from ._inputs import *
17
19
 
18
20
  __all__ = ['RegistryImageArgs', 'RegistryImage']
19
21
 
20
22
  @pulumi.input_type
21
23
  class RegistryImageArgs:
22
24
  def __init__(__self__, *,
25
+ auth_config: Optional[pulumi.Input['RegistryImageAuthConfigArgs']] = None,
23
26
  insecure_skip_verify: Optional[pulumi.Input[builtins.bool]] = None,
24
27
  keep_remotely: Optional[pulumi.Input[builtins.bool]] = None,
25
28
  name: Optional[pulumi.Input[builtins.str]] = None,
26
29
  triggers: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None):
27
30
  """
28
31
  The set of arguments for constructing a RegistryImage resource.
32
+ :param pulumi.Input['RegistryImageAuthConfigArgs'] auth_config: Authentication configuration for the Docker registry. It is only used for this resource.
29
33
  :param pulumi.Input[builtins.bool] insecure_skip_verify: If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
30
34
  :param pulumi.Input[builtins.bool] keep_remotely: If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
31
35
  :param pulumi.Input[builtins.str] name: The name of the Docker image.
32
36
  :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] triggers: A map of arbitrary strings that, when changed, will force the `RegistryImage` resource to be replaced. This can be used to repush a local image
33
37
  """
38
+ if auth_config is not None:
39
+ pulumi.set(__self__, "auth_config", auth_config)
34
40
  if insecure_skip_verify is not None:
35
41
  pulumi.set(__self__, "insecure_skip_verify", insecure_skip_verify)
36
42
  if keep_remotely is not None:
@@ -40,6 +46,18 @@ class RegistryImageArgs:
40
46
  if triggers is not None:
41
47
  pulumi.set(__self__, "triggers", triggers)
42
48
 
49
+ @property
50
+ @pulumi.getter(name="authConfig")
51
+ def auth_config(self) -> Optional[pulumi.Input['RegistryImageAuthConfigArgs']]:
52
+ """
53
+ Authentication configuration for the Docker registry. It is only used for this resource.
54
+ """
55
+ return pulumi.get(self, "auth_config")
56
+
57
+ @auth_config.setter
58
+ def auth_config(self, value: Optional[pulumi.Input['RegistryImageAuthConfigArgs']]):
59
+ pulumi.set(self, "auth_config", value)
60
+
43
61
  @property
44
62
  @pulumi.getter(name="insecureSkipVerify")
45
63
  def insecure_skip_verify(self) -> Optional[pulumi.Input[builtins.bool]]:
@@ -92,6 +110,7 @@ class RegistryImageArgs:
92
110
  @pulumi.input_type
93
111
  class _RegistryImageState:
94
112
  def __init__(__self__, *,
113
+ auth_config: Optional[pulumi.Input['RegistryImageAuthConfigArgs']] = None,
95
114
  insecure_skip_verify: Optional[pulumi.Input[builtins.bool]] = None,
96
115
  keep_remotely: Optional[pulumi.Input[builtins.bool]] = None,
97
116
  name: Optional[pulumi.Input[builtins.str]] = None,
@@ -99,12 +118,15 @@ class _RegistryImageState:
99
118
  triggers: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None):
100
119
  """
101
120
  Input properties used for looking up and filtering RegistryImage resources.
121
+ :param pulumi.Input['RegistryImageAuthConfigArgs'] auth_config: Authentication configuration for the Docker registry. It is only used for this resource.
102
122
  :param pulumi.Input[builtins.bool] insecure_skip_verify: If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
103
123
  :param pulumi.Input[builtins.bool] keep_remotely: If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
104
124
  :param pulumi.Input[builtins.str] name: The name of the Docker image.
105
125
  :param pulumi.Input[builtins.str] sha256_digest: The sha256 digest of the image.
106
126
  :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] triggers: A map of arbitrary strings that, when changed, will force the `RegistryImage` resource to be replaced. This can be used to repush a local image
107
127
  """
128
+ if auth_config is not None:
129
+ pulumi.set(__self__, "auth_config", auth_config)
108
130
  if insecure_skip_verify is not None:
109
131
  pulumi.set(__self__, "insecure_skip_verify", insecure_skip_verify)
110
132
  if keep_remotely is not None:
@@ -116,6 +138,18 @@ class _RegistryImageState:
116
138
  if triggers is not None:
117
139
  pulumi.set(__self__, "triggers", triggers)
118
140
 
141
+ @property
142
+ @pulumi.getter(name="authConfig")
143
+ def auth_config(self) -> Optional[pulumi.Input['RegistryImageAuthConfigArgs']]:
144
+ """
145
+ Authentication configuration for the Docker registry. It is only used for this resource.
146
+ """
147
+ return pulumi.get(self, "auth_config")
148
+
149
+ @auth_config.setter
150
+ def auth_config(self, value: Optional[pulumi.Input['RegistryImageAuthConfigArgs']]):
151
+ pulumi.set(self, "auth_config", value)
152
+
119
153
  @property
120
154
  @pulumi.getter(name="insecureSkipVerify")
121
155
  def insecure_skip_verify(self) -> Optional[pulumi.Input[builtins.bool]]:
@@ -183,6 +217,7 @@ class RegistryImage(pulumi.CustomResource):
183
217
  def __init__(__self__,
184
218
  resource_name: str,
185
219
  opts: Optional[pulumi.ResourceOptions] = None,
220
+ auth_config: Optional[pulumi.Input[Union['RegistryImageAuthConfigArgs', 'RegistryImageAuthConfigArgsDict']]] = None,
186
221
  insecure_skip_verify: Optional[pulumi.Input[builtins.bool]] = None,
187
222
  keep_remotely: Optional[pulumi.Input[builtins.bool]] = None,
188
223
  name: Optional[pulumi.Input[builtins.str]] = None,
@@ -194,6 +229,7 @@ class RegistryImage(pulumi.CustomResource):
194
229
 
195
230
  :param str resource_name: The name of the resource.
196
231
  :param pulumi.ResourceOptions opts: Options for the resource.
232
+ :param pulumi.Input[Union['RegistryImageAuthConfigArgs', 'RegistryImageAuthConfigArgsDict']] auth_config: Authentication configuration for the Docker registry. It is only used for this resource.
197
233
  :param pulumi.Input[builtins.bool] insecure_skip_verify: If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
198
234
  :param pulumi.Input[builtins.bool] keep_remotely: If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
199
235
  :param pulumi.Input[builtins.str] name: The name of the Docker image.
@@ -224,6 +260,7 @@ class RegistryImage(pulumi.CustomResource):
224
260
  def _internal_init(__self__,
225
261
  resource_name: str,
226
262
  opts: Optional[pulumi.ResourceOptions] = None,
263
+ auth_config: Optional[pulumi.Input[Union['RegistryImageAuthConfigArgs', 'RegistryImageAuthConfigArgsDict']]] = None,
227
264
  insecure_skip_verify: Optional[pulumi.Input[builtins.bool]] = None,
228
265
  keep_remotely: Optional[pulumi.Input[builtins.bool]] = None,
229
266
  name: Optional[pulumi.Input[builtins.str]] = None,
@@ -237,6 +274,7 @@ class RegistryImage(pulumi.CustomResource):
237
274
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
238
275
  __props__ = RegistryImageArgs.__new__(RegistryImageArgs)
239
276
 
277
+ __props__.__dict__["auth_config"] = auth_config
240
278
  __props__.__dict__["insecure_skip_verify"] = insecure_skip_verify
241
279
  __props__.__dict__["keep_remotely"] = keep_remotely
242
280
  __props__.__dict__["name"] = name
@@ -252,6 +290,7 @@ class RegistryImage(pulumi.CustomResource):
252
290
  def get(resource_name: str,
253
291
  id: pulumi.Input[str],
254
292
  opts: Optional[pulumi.ResourceOptions] = None,
293
+ auth_config: Optional[pulumi.Input[Union['RegistryImageAuthConfigArgs', 'RegistryImageAuthConfigArgsDict']]] = None,
255
294
  insecure_skip_verify: Optional[pulumi.Input[builtins.bool]] = None,
256
295
  keep_remotely: Optional[pulumi.Input[builtins.bool]] = None,
257
296
  name: Optional[pulumi.Input[builtins.str]] = None,
@@ -264,6 +303,7 @@ class RegistryImage(pulumi.CustomResource):
264
303
  :param str resource_name: The unique name of the resulting resource.
265
304
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
266
305
  :param pulumi.ResourceOptions opts: Options for the resource.
306
+ :param pulumi.Input[Union['RegistryImageAuthConfigArgs', 'RegistryImageAuthConfigArgsDict']] auth_config: Authentication configuration for the Docker registry. It is only used for this resource.
267
307
  :param pulumi.Input[builtins.bool] insecure_skip_verify: If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
268
308
  :param pulumi.Input[builtins.bool] keep_remotely: If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
269
309
  :param pulumi.Input[builtins.str] name: The name of the Docker image.
@@ -274,6 +314,7 @@ class RegistryImage(pulumi.CustomResource):
274
314
 
275
315
  __props__ = _RegistryImageState.__new__(_RegistryImageState)
276
316
 
317
+ __props__.__dict__["auth_config"] = auth_config
277
318
  __props__.__dict__["insecure_skip_verify"] = insecure_skip_verify
278
319
  __props__.__dict__["keep_remotely"] = keep_remotely
279
320
  __props__.__dict__["name"] = name
@@ -281,6 +322,14 @@ class RegistryImage(pulumi.CustomResource):
281
322
  __props__.__dict__["triggers"] = triggers
282
323
  return RegistryImage(resource_name, opts=opts, __props__=__props__)
283
324
 
325
+ @property
326
+ @pulumi.getter(name="authConfig")
327
+ def auth_config(self) -> pulumi.Output[Optional['outputs.RegistryImageAuthConfig']]:
328
+ """
329
+ Authentication configuration for the Docker registry. It is only used for this resource.
330
+ """
331
+ return pulumi.get(self, "auth_config")
332
+
284
333
  @property
285
334
  @pulumi.getter(name="insecureSkipVerify")
286
335
  def insecure_skip_verify(self) -> pulumi.Output[Optional[builtins.bool]]:
@@ -32,7 +32,6 @@ class RemoteImageArgs:
32
32
  """
33
33
  The set of arguments for constructing a RemoteImage resource.
34
34
  :param pulumi.Input[builtins.str] name: The name of the Docker image, including any tags or SHA256 repo digests.
35
- :param pulumi.Input['RemoteImageBuildArgs'] build: Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
36
35
  :param pulumi.Input[builtins.bool] force_remove: If true, then the image is removed forcibly when the resource is destroyed.
37
36
  :param pulumi.Input[builtins.bool] keep_locally: If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker local storage on destroy operation.
38
37
  :param pulumi.Input[builtins.str] platform: The platform to use when pulling the image. Defaults to the platform of the current machine.
@@ -68,9 +67,6 @@ class RemoteImageArgs:
68
67
  @property
69
68
  @pulumi.getter
70
69
  def build(self) -> Optional[pulumi.Input['RemoteImageBuildArgs']]:
71
- """
72
- Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
73
- """
74
70
  return pulumi.get(self, "build")
75
71
 
76
72
  @build.setter
@@ -152,14 +148,13 @@ class _RemoteImageState:
152
148
  triggers: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None):
153
149
  """
154
150
  Input properties used for looking up and filtering RemoteImage resources.
155
- :param pulumi.Input['RemoteImageBuildArgs'] build: Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
156
151
  :param pulumi.Input[builtins.bool] force_remove: If true, then the image is removed forcibly when the resource is destroyed.
157
152
  :param pulumi.Input[builtins.str] image_id: The ID of the image (as seen when executing `docker inspect` on the image). Can be used to reference the image via its ID in other resources.
158
153
  :param pulumi.Input[builtins.bool] keep_locally: If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker local storage on destroy operation.
159
154
  :param pulumi.Input[builtins.str] name: The name of the Docker image, including any tags or SHA256 repo digests.
160
155
  :param pulumi.Input[builtins.str] platform: The platform to use when pulling the image. Defaults to the platform of the current machine.
161
156
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] pull_triggers: List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the docker*registry*image.
162
- :param pulumi.Input[builtins.str] repo_digest: The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`.
157
+ :param pulumi.Input[builtins.str] repo_digest: The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`. This may not be populated when building an image, because it is read from the local Docker client and so may be available only when the image was either pulled from the repo or pushed to the repo (perhaps using `RegistryImage`) in a previous run.
163
158
  :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] triggers: A map of arbitrary strings that, when changed, will force the `RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change
164
159
  """
165
160
  if build is not None:
@@ -184,9 +179,6 @@ class _RemoteImageState:
184
179
  @property
185
180
  @pulumi.getter
186
181
  def build(self) -> Optional[pulumi.Input['RemoteImageBuildArgs']]:
187
- """
188
- Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
189
- """
190
182
  return pulumi.get(self, "build")
191
183
 
192
184
  @build.setter
@@ -269,7 +261,7 @@ class _RemoteImageState:
269
261
  @pulumi.getter(name="repoDigest")
270
262
  def repo_digest(self) -> Optional[pulumi.Input[builtins.str]]:
271
263
  """
272
- The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`.
264
+ The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`. This may not be populated when building an image, because it is read from the local Docker client and so may be available only when the image was either pulled from the repo or pushed to the repo (perhaps using `RegistryImage`) in a previous run.
273
265
  """
274
266
  return pulumi.get(self, "repo_digest")
275
267
 
@@ -305,67 +297,9 @@ class RemoteImage(pulumi.CustomResource):
305
297
  triggers: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
306
298
  __props__=None):
307
299
  """
308
- <!-- Bug: Type and Name are switched -->
309
- Pulls a Docker image to a given Docker host from a Docker Registry.
310
- This resource will *not* pull new layers of the image automatically unless used in conjunction with RegistryImage data source to update the `pull_triggers` field.
311
-
312
- ## Example Usage
313
-
314
- ### Basic
315
-
316
- Finds and downloads the latest `ubuntu:precise` image but does not check
317
- for further updates of the image
318
-
319
- ```python
320
- import pulumi
321
- import pulumi_docker as docker
322
-
323
- ubuntu = docker.RemoteImage("ubuntu", name="ubuntu:precise")
324
- ```
325
-
326
- ### Dynamic updates
327
-
328
- To be able to update an image dynamically when the `sha256` sum changes,
329
- you need to use it in combination with `RegistryImage` as follows:
330
-
331
- ```python
332
- import pulumi
333
- import pulumi_docker as docker
334
-
335
- ubuntu = docker.get_registry_image(name="ubuntu:precise")
336
- ubuntu_remote_image = docker.RemoteImage("ubuntu",
337
- name=ubuntu.name,
338
- pull_triggers=[ubuntu.sha256_digest])
339
- ```
340
-
341
- ### Build
342
-
343
- You can also use the resource to build an image.
344
- In this case the image "zoo" and "zoo:develop" are built.
345
-
346
- ```python
347
- import pulumi
348
- import pulumi_docker as docker
349
-
350
- zoo = docker.RemoteImage("zoo",
351
- name="zoo",
352
- build={
353
- "context": ".",
354
- "tags": ["zoo:develop"],
355
- "build_arg": {
356
- "foo": "zoo",
357
- },
358
- "label": {
359
- "author": "zoo",
360
- },
361
- })
362
- ```
363
-
364
- You can use the `triggers` argument to specify when the image should be rebuild. This is for example helpful when you want to rebuild the docker image whenever the source code changes.
365
-
300
+ Create a RemoteImage resource with the given unique name, props, and options.
366
301
  :param str resource_name: The name of the resource.
367
302
  :param pulumi.ResourceOptions opts: Options for the resource.
368
- :param pulumi.Input[Union['RemoteImageBuildArgs', 'RemoteImageBuildArgsDict']] build: Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
369
303
  :param pulumi.Input[builtins.bool] force_remove: If true, then the image is removed forcibly when the resource is destroyed.
370
304
  :param pulumi.Input[builtins.bool] keep_locally: If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker local storage on destroy operation.
371
305
  :param pulumi.Input[builtins.str] name: The name of the Docker image, including any tags or SHA256 repo digests.
@@ -380,64 +314,7 @@ class RemoteImage(pulumi.CustomResource):
380
314
  args: RemoteImageArgs,
381
315
  opts: Optional[pulumi.ResourceOptions] = None):
382
316
  """
383
- <!-- Bug: Type and Name are switched -->
384
- Pulls a Docker image to a given Docker host from a Docker Registry.
385
- This resource will *not* pull new layers of the image automatically unless used in conjunction with RegistryImage data source to update the `pull_triggers` field.
386
-
387
- ## Example Usage
388
-
389
- ### Basic
390
-
391
- Finds and downloads the latest `ubuntu:precise` image but does not check
392
- for further updates of the image
393
-
394
- ```python
395
- import pulumi
396
- import pulumi_docker as docker
397
-
398
- ubuntu = docker.RemoteImage("ubuntu", name="ubuntu:precise")
399
- ```
400
-
401
- ### Dynamic updates
402
-
403
- To be able to update an image dynamically when the `sha256` sum changes,
404
- you need to use it in combination with `RegistryImage` as follows:
405
-
406
- ```python
407
- import pulumi
408
- import pulumi_docker as docker
409
-
410
- ubuntu = docker.get_registry_image(name="ubuntu:precise")
411
- ubuntu_remote_image = docker.RemoteImage("ubuntu",
412
- name=ubuntu.name,
413
- pull_triggers=[ubuntu.sha256_digest])
414
- ```
415
-
416
- ### Build
417
-
418
- You can also use the resource to build an image.
419
- In this case the image "zoo" and "zoo:develop" are built.
420
-
421
- ```python
422
- import pulumi
423
- import pulumi_docker as docker
424
-
425
- zoo = docker.RemoteImage("zoo",
426
- name="zoo",
427
- build={
428
- "context": ".",
429
- "tags": ["zoo:develop"],
430
- "build_arg": {
431
- "foo": "zoo",
432
- },
433
- "label": {
434
- "author": "zoo",
435
- },
436
- })
437
- ```
438
-
439
- You can use the `triggers` argument to specify when the image should be rebuild. This is for example helpful when you want to rebuild the docker image whenever the source code changes.
440
-
317
+ Create a RemoteImage resource with the given unique name, props, and options.
441
318
  :param str resource_name: The name of the resource.
442
319
  :param RemoteImageArgs args: The arguments to use to populate this resource's properties.
443
320
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -506,14 +383,13 @@ class RemoteImage(pulumi.CustomResource):
506
383
  :param str resource_name: The unique name of the resulting resource.
507
384
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
508
385
  :param pulumi.ResourceOptions opts: Options for the resource.
509
- :param pulumi.Input[Union['RemoteImageBuildArgs', 'RemoteImageBuildArgsDict']] build: Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
510
386
  :param pulumi.Input[builtins.bool] force_remove: If true, then the image is removed forcibly when the resource is destroyed.
511
387
  :param pulumi.Input[builtins.str] image_id: The ID of the image (as seen when executing `docker inspect` on the image). Can be used to reference the image via its ID in other resources.
512
388
  :param pulumi.Input[builtins.bool] keep_locally: If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker local storage on destroy operation.
513
389
  :param pulumi.Input[builtins.str] name: The name of the Docker image, including any tags or SHA256 repo digests.
514
390
  :param pulumi.Input[builtins.str] platform: The platform to use when pulling the image. Defaults to the platform of the current machine.
515
391
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] pull_triggers: List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the docker*registry*image.
516
- :param pulumi.Input[builtins.str] repo_digest: The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`.
392
+ :param pulumi.Input[builtins.str] repo_digest: The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`. This may not be populated when building an image, because it is read from the local Docker client and so may be available only when the image was either pulled from the repo or pushed to the repo (perhaps using `RegistryImage`) in a previous run.
517
393
  :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] triggers: A map of arbitrary strings that, when changed, will force the `RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change
518
394
  """
519
395
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -534,9 +410,6 @@ class RemoteImage(pulumi.CustomResource):
534
410
  @property
535
411
  @pulumi.getter
536
412
  def build(self) -> pulumi.Output[Optional['outputs.RemoteImageBuild']]:
537
- """
538
- Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too.
539
- """
540
413
  return pulumi.get(self, "build")
541
414
 
542
415
  @property
@@ -591,7 +464,7 @@ class RemoteImage(pulumi.CustomResource):
591
464
  @pulumi.getter(name="repoDigest")
592
465
  def repo_digest(self) -> pulumi.Output[builtins.str]:
593
466
  """
594
- The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`.
467
+ The image sha256 digest in the form of `repo[:tag]@sha256:<hash>`. This may not be populated when building an image, because it is read from the local Docker client and so may be available only when the image was either pulled from the repo or pushed to the repo (perhaps using `RegistryImage`) in a previous run.
595
468
  """
596
469
  return pulumi.get(self, "repo_digest")
597
470
 
pulumi_docker/tag.py CHANGED
@@ -21,14 +21,18 @@ __all__ = ['TagArgs', 'Tag']
21
21
  class TagArgs:
22
22
  def __init__(__self__, *,
23
23
  source_image: pulumi.Input[builtins.str],
24
- target_image: pulumi.Input[builtins.str]):
24
+ target_image: pulumi.Input[builtins.str],
25
+ tag_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None):
25
26
  """
26
27
  The set of arguments for constructing a Tag resource.
27
28
  :param pulumi.Input[builtins.str] source_image: Name of the source image.
28
29
  :param pulumi.Input[builtins.str] target_image: Name of the target image.
30
+ :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tag_triggers: List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes.
29
31
  """
30
32
  pulumi.set(__self__, "source_image", source_image)
31
33
  pulumi.set(__self__, "target_image", target_image)
34
+ if tag_triggers is not None:
35
+ pulumi.set(__self__, "tag_triggers", tag_triggers)
32
36
 
33
37
  @property
34
38
  @pulumi.getter(name="sourceImage")
@@ -54,23 +58,39 @@ class TagArgs:
54
58
  def target_image(self, value: pulumi.Input[builtins.str]):
55
59
  pulumi.set(self, "target_image", value)
56
60
 
61
+ @property
62
+ @pulumi.getter(name="tagTriggers")
63
+ def tag_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
64
+ """
65
+ List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes.
66
+ """
67
+ return pulumi.get(self, "tag_triggers")
68
+
69
+ @tag_triggers.setter
70
+ def tag_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
71
+ pulumi.set(self, "tag_triggers", value)
72
+
57
73
 
58
74
  @pulumi.input_type
59
75
  class _TagState:
60
76
  def __init__(__self__, *,
61
77
  source_image: Optional[pulumi.Input[builtins.str]] = None,
62
78
  source_image_id: Optional[pulumi.Input[builtins.str]] = None,
79
+ tag_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
63
80
  target_image: Optional[pulumi.Input[builtins.str]] = None):
64
81
  """
65
82
  Input properties used for looking up and filtering Tag resources.
66
83
  :param pulumi.Input[builtins.str] source_image: Name of the source image.
67
84
  :param pulumi.Input[builtins.str] source_image_id: ImageID of the source image in the format of `sha256:<<ID>>`
85
+ :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tag_triggers: List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes.
68
86
  :param pulumi.Input[builtins.str] target_image: Name of the target image.
69
87
  """
70
88
  if source_image is not None:
71
89
  pulumi.set(__self__, "source_image", source_image)
72
90
  if source_image_id is not None:
73
91
  pulumi.set(__self__, "source_image_id", source_image_id)
92
+ if tag_triggers is not None:
93
+ pulumi.set(__self__, "tag_triggers", tag_triggers)
74
94
  if target_image is not None:
75
95
  pulumi.set(__self__, "target_image", target_image)
76
96
 
@@ -98,6 +118,18 @@ class _TagState:
98
118
  def source_image_id(self, value: Optional[pulumi.Input[builtins.str]]):
99
119
  pulumi.set(self, "source_image_id", value)
100
120
 
121
+ @property
122
+ @pulumi.getter(name="tagTriggers")
123
+ def tag_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
124
+ """
125
+ List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes.
126
+ """
127
+ return pulumi.get(self, "tag_triggers")
128
+
129
+ @tag_triggers.setter
130
+ def tag_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
131
+ pulumi.set(self, "tag_triggers", value)
132
+
101
133
  @property
102
134
  @pulumi.getter(name="targetImage")
103
135
  def target_image(self) -> Optional[pulumi.Input[builtins.str]]:
@@ -118,6 +150,7 @@ class Tag(pulumi.CustomResource):
118
150
  resource_name: str,
119
151
  opts: Optional[pulumi.ResourceOptions] = None,
120
152
  source_image: Optional[pulumi.Input[builtins.str]] = None,
153
+ tag_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
121
154
  target_image: Optional[pulumi.Input[builtins.str]] = None,
122
155
  __props__=None):
123
156
  """
@@ -126,6 +159,7 @@ class Tag(pulumi.CustomResource):
126
159
  :param str resource_name: The name of the resource.
127
160
  :param pulumi.ResourceOptions opts: Options for the resource.
128
161
  :param pulumi.Input[builtins.str] source_image: Name of the source image.
162
+ :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tag_triggers: List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes.
129
163
  :param pulumi.Input[builtins.str] target_image: Name of the target image.
130
164
  """
131
165
  ...
@@ -153,6 +187,7 @@ class Tag(pulumi.CustomResource):
153
187
  resource_name: str,
154
188
  opts: Optional[pulumi.ResourceOptions] = None,
155
189
  source_image: Optional[pulumi.Input[builtins.str]] = None,
190
+ tag_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
156
191
  target_image: Optional[pulumi.Input[builtins.str]] = None,
157
192
  __props__=None):
158
193
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -166,6 +201,7 @@ class Tag(pulumi.CustomResource):
166
201
  if source_image is None and not opts.urn:
167
202
  raise TypeError("Missing required property 'source_image'")
168
203
  __props__.__dict__["source_image"] = source_image
204
+ __props__.__dict__["tag_triggers"] = tag_triggers
169
205
  if target_image is None and not opts.urn:
170
206
  raise TypeError("Missing required property 'target_image'")
171
207
  __props__.__dict__["target_image"] = target_image
@@ -182,6 +218,7 @@ class Tag(pulumi.CustomResource):
182
218
  opts: Optional[pulumi.ResourceOptions] = None,
183
219
  source_image: Optional[pulumi.Input[builtins.str]] = None,
184
220
  source_image_id: Optional[pulumi.Input[builtins.str]] = None,
221
+ tag_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
185
222
  target_image: Optional[pulumi.Input[builtins.str]] = None) -> 'Tag':
186
223
  """
187
224
  Get an existing Tag resource's state with the given name, id, and optional extra
@@ -192,6 +229,7 @@ class Tag(pulumi.CustomResource):
192
229
  :param pulumi.ResourceOptions opts: Options for the resource.
193
230
  :param pulumi.Input[builtins.str] source_image: Name of the source image.
194
231
  :param pulumi.Input[builtins.str] source_image_id: ImageID of the source image in the format of `sha256:<<ID>>`
232
+ :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tag_triggers: List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes.
195
233
  :param pulumi.Input[builtins.str] target_image: Name of the target image.
196
234
  """
197
235
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -200,6 +238,7 @@ class Tag(pulumi.CustomResource):
200
238
 
201
239
  __props__.__dict__["source_image"] = source_image
202
240
  __props__.__dict__["source_image_id"] = source_image_id
241
+ __props__.__dict__["tag_triggers"] = tag_triggers
203
242
  __props__.__dict__["target_image"] = target_image
204
243
  return Tag(resource_name, opts=opts, __props__=__props__)
205
244
 
@@ -219,6 +258,14 @@ class Tag(pulumi.CustomResource):
219
258
  """
220
259
  return pulumi.get(self, "source_image_id")
221
260
 
261
+ @property
262
+ @pulumi.getter(name="tagTriggers")
263
+ def tag_triggers(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
264
+ """
265
+ List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes.
266
+ """
267
+ return pulumi.get(self, "tag_triggers")
268
+
222
269
  @property
223
270
  @pulumi.getter(name="targetImage")
224
271
  def target_image(self) -> pulumi.Output[builtins.str]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi_docker
3
- Version: 4.7.0a1747201669
3
+ Version: 4.7.0a1747851171
4
4
  Summary: A Pulumi package for interacting with Docker in Pulumi programs
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -0,0 +1,33 @@
1
+ pulumi_docker/__init__.py,sha256=pSJFpSInndO3543tSsdbfE8PCp-j60smxN6N8i81vU8,2815
2
+ pulumi_docker/_enums.py,sha256=5O9pWQMaWcWTl-XMqKni4wn_nggYs9UdAClEEQRPC1A,639
3
+ pulumi_docker/_inputs.py,sha256=g6grvXlsNkj-H4_K7MpVrpFSZhpNmsS1Imwc43y2Nz4,255419
4
+ pulumi_docker/_utilities.py,sha256=yyuODPikZ9pto3JWJRfMJo98dWmQ5_y45-TVcZG_K8Y,10807
5
+ pulumi_docker/container.py,sha256=kbuqdIWWp_j3ws9k2ichqcf8jFrc8bMRnETG6DO7wPQ,166387
6
+ pulumi_docker/get_logs.py,sha256=wx9foY6da50GOuwDBlY8yJTltdhUlEXCFpaUeUfBKM8,11548
7
+ pulumi_docker/get_network.py,sha256=1FZ-AOjQP26weO6kicutWpIbArsQnIT6gDRf7k4zJiE,6393
8
+ pulumi_docker/get_plugin.py,sha256=wSj0WtF36B69Mn_NvbBgEc_rriXCHXc299wGsA2EMe0,7333
9
+ pulumi_docker/get_registry_image.py,sha256=RIqhWTPfhbCCC3Iomoh5lihTtt4U4AOn9B4PNV2pGXg,6266
10
+ pulumi_docker/get_registry_image_manifests.py,sha256=n57Ck3K7fT-POGOX02dp-8JO6UsY6b34-CAqSS6I-JY,7310
11
+ pulumi_docker/get_remote_image.py,sha256=Zu_fMHbbLMx6q6wu2UTgM19McUkepOeTRYmNUxET-H0,5441
12
+ pulumi_docker/image.py,sha256=ojZmuE3JyXZbDwtImquQfxFnTKcuYT9iPzKckiY0KyM,21647
13
+ pulumi_docker/network.py,sha256=dtgHh-qGVg7Wm79Iygz6GDsYCzQOMGvo9PLY8eqL8cA,36474
14
+ pulumi_docker/outputs.py,sha256=Yl0WhxBOfThXEJerTEiedKVUNYnhOg5a0wfqZJ5bkSg,163376
15
+ pulumi_docker/plugin.py,sha256=Vv6USQojtRw--CmxV1G8cBRM_iFiAoFVOGa2r7VgFF0,25269
16
+ pulumi_docker/provider.py,sha256=qXEm7WN7-1tOoo14aUCjjxmpPTurrTAOM1M_2VIZ0TY,16294
17
+ pulumi_docker/pulumi-plugin.json,sha256=YRw3h7C-XwYcNpIZ7B7t0M6ivfz9xCrTXHUvqvMFhN4,82
18
+ pulumi_docker/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
+ pulumi_docker/registry_image.py,sha256=mfqipMRuo2qr4CXR0gGGUsS92K4x6OZ50NLacDG3A5w,19046
20
+ pulumi_docker/remote_image.py,sha256=6t16FMauxyPAppGgIS1bBSnDuPEWg-6OOUQrh86XIas,25487
21
+ pulumi_docker/secret.py,sha256=MYNJ-64TuHKIegPj1uWsn91SjfJgRLcd2ARUNE6JWec,10109
22
+ pulumi_docker/service.py,sha256=JvK2hH7SYof4CCGqeVzs1TjDYYLXR5tLreXnt-JeT6g,27217
23
+ pulumi_docker/service_config.py,sha256=G3e45JnaDe65WoYEMp3jeWdvAOrvLVxElrHjtV4jNks,8828
24
+ pulumi_docker/tag.py,sha256=hXaW3hwcnspr_AgKCUZXhXrUlClcwkUsmGKvdyHlFDE,12559
25
+ pulumi_docker/volume.py,sha256=3Qda-Bi3CofR79ditxuDAtyjd8NNROldf3IY9IhgqFQ,15603
26
+ pulumi_docker/config/__init__.py,sha256=nKVKdvQbN3zgJ23HPoKpz1sGrfjaDijL6xvKxGVmj7c,301
27
+ pulumi_docker/config/__init__.pyi,sha256=PaCFVwKXA_rX-C1PoivlGwm-pJ3YTkJNkyFAEXVbRWI,1492
28
+ pulumi_docker/config/outputs.py,sha256=TgEwTSRFdXugQG_wGUN0boM4KBz4FKegE4vlqErBiEA,3829
29
+ pulumi_docker/config/vars.py,sha256=8oS7011GgMPAsZouSXsrra6QmuXT_Nu5H5mcXKoH8Jo,2527
30
+ pulumi_docker-4.7.0a1747851171.dist-info/METADATA,sha256=o9_n6nHu4CxwkU6DYVXhsgO-Hswk-s7x_Ih_OBqvV1g,2404
31
+ pulumi_docker-4.7.0a1747851171.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
32
+ pulumi_docker-4.7.0a1747851171.dist-info/top_level.txt,sha256=5ASR9mwVy1gWMM-yKlseogte316p3DCyj_ozClqiynM,14
33
+ pulumi_docker-4.7.0a1747851171.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.4.0)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,32 +0,0 @@
1
- pulumi_docker/__init__.py,sha256=ffrJlnyScA7Qw7N22n0TS7lh981UgK-33hDiFskIvVs,2771
2
- pulumi_docker/_enums.py,sha256=5O9pWQMaWcWTl-XMqKni4wn_nggYs9UdAClEEQRPC1A,639
3
- pulumi_docker/_inputs.py,sha256=KdnimPTK4Ds8TMtgWPTdGJgYdFCTmfXPCxkA9osgYA4,243219
4
- pulumi_docker/_utilities.py,sha256=yyuODPikZ9pto3JWJRfMJo98dWmQ5_y45-TVcZG_K8Y,10807
5
- pulumi_docker/container.py,sha256=56nT3RpAVmFwPHdJd9RXCNBO6Zy8zUqBkXxaU41wtCo,162488
6
- pulumi_docker/get_logs.py,sha256=wx9foY6da50GOuwDBlY8yJTltdhUlEXCFpaUeUfBKM8,11548
7
- pulumi_docker/get_network.py,sha256=1FZ-AOjQP26weO6kicutWpIbArsQnIT6gDRf7k4zJiE,6393
8
- pulumi_docker/get_plugin.py,sha256=wSj0WtF36B69Mn_NvbBgEc_rriXCHXc299wGsA2EMe0,7333
9
- pulumi_docker/get_registry_image.py,sha256=RIqhWTPfhbCCC3Iomoh5lihTtt4U4AOn9B4PNV2pGXg,6266
10
- pulumi_docker/get_remote_image.py,sha256=Zu_fMHbbLMx6q6wu2UTgM19McUkepOeTRYmNUxET-H0,5441
11
- pulumi_docker/image.py,sha256=ojZmuE3JyXZbDwtImquQfxFnTKcuYT9iPzKckiY0KyM,21647
12
- pulumi_docker/network.py,sha256=eVOhid38js67iJo0hGKViyPizEQilWk080ZeLvP-C78,35165
13
- pulumi_docker/outputs.py,sha256=T2B28DeeN5zZrXXYrNDFpg2GvAiwBxFmoZraaVZfqls,154405
14
- pulumi_docker/plugin.py,sha256=Vv6USQojtRw--CmxV1G8cBRM_iFiAoFVOGa2r7VgFF0,25269
15
- pulumi_docker/provider.py,sha256=UnNE8Fi1aMwDxRe92hfJs3D0NoRkwANC2SI8YEXt800,12944
16
- pulumi_docker/pulumi-plugin.json,sha256=aMsTk6PmGlVo1lT4CaDdFlr184vIuo6pGeRmGu3K8Jc,82
17
- pulumi_docker/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- pulumi_docker/registry_image.py,sha256=VRbVePq3FxZdMkJUQAQcppCnnx3kqZBxSiTjHZJ7DN8,16140
19
- pulumi_docker/remote_image.py,sha256=Fh-tFX3OaMlORWfgYoXNZ3EQozia99F1JuXk4MCFeds,29548
20
- pulumi_docker/secret.py,sha256=MYNJ-64TuHKIegPj1uWsn91SjfJgRLcd2ARUNE6JWec,10109
21
- pulumi_docker/service.py,sha256=JvK2hH7SYof4CCGqeVzs1TjDYYLXR5tLreXnt-JeT6g,27217
22
- pulumi_docker/service_config.py,sha256=G3e45JnaDe65WoYEMp3jeWdvAOrvLVxElrHjtV4jNks,8828
23
- pulumi_docker/tag.py,sha256=qBeIpQp383_xdsfyTFmrSB1X8c7OGsCHBICOvfIKu3c,9542
24
- pulumi_docker/volume.py,sha256=3Qda-Bi3CofR79ditxuDAtyjd8NNROldf3IY9IhgqFQ,15603
25
- pulumi_docker/config/__init__.py,sha256=nKVKdvQbN3zgJ23HPoKpz1sGrfjaDijL6xvKxGVmj7c,301
26
- pulumi_docker/config/__init__.pyi,sha256=nw9XgfHuuymSvomf2zINBVu6zto0SqDk-uSUZOGlpnQ,1075
27
- pulumi_docker/config/outputs.py,sha256=TgEwTSRFdXugQG_wGUN0boM4KBz4FKegE4vlqErBiEA,3829
28
- pulumi_docker/config/vars.py,sha256=PPB2o0sm0LJ9x7NmTQTAIdQ1OKjSh631P7t2mGfi4-k,1877
29
- pulumi_docker-4.7.0a1747201669.dist-info/METADATA,sha256=m25Aa6oF3D9mA_T8kOOJn-Rax8NNseYu-DiyrTZNtU8,2404
30
- pulumi_docker-4.7.0a1747201669.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
31
- pulumi_docker-4.7.0a1747201669.dist-info/top_level.txt,sha256=5ASR9mwVy1gWMM-yKlseogte316p3DCyj_ozClqiynM,14
32
- pulumi_docker-4.7.0a1747201669.dist-info/RECORD,,