pulumi-docker 4.7.0a1705607229__py3-none-any.whl → 4.7.0a1736833147__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 might be problematic. Click here for more details.

pulumi_docker/service.py CHANGED
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  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
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
  from ._inputs import *
@@ -32,8 +37,8 @@ class ServiceArgs:
32
37
  :param pulumi.Input['ServiceConvergeConfigArgs'] converge_config: A configuration to ensure that a service converges aka reaches the desired that of all task up and running
33
38
  :param pulumi.Input['ServiceEndpointSpecArgs'] endpoint_spec: Properties that can be configured to access and load balance a service
34
39
  :param pulumi.Input[Sequence[pulumi.Input['ServiceLabelArgs']]] labels: User-defined key/value metadata
35
- :param pulumi.Input['ServiceModeArgs'] mode: The mode of resolution to use for internal load balancing between tasks
36
- :param pulumi.Input[str] name: A random name for the port
40
+ :param pulumi.Input['ServiceModeArgs'] mode: Scheduling mode for the service
41
+ :param pulumi.Input[str] name: Name of the service
37
42
  :param pulumi.Input['ServiceRollbackConfigArgs'] rollback_config: Specification for the rollback strategy of the service
38
43
  :param pulumi.Input['ServiceUpdateConfigArgs'] update_config: Specification for the update strategy of the service
39
44
  """
@@ -119,7 +124,7 @@ class ServiceArgs:
119
124
  @pulumi.getter
120
125
  def mode(self) -> Optional[pulumi.Input['ServiceModeArgs']]:
121
126
  """
122
- The mode of resolution to use for internal load balancing between tasks
127
+ Scheduling mode for the service
123
128
  """
124
129
  return pulumi.get(self, "mode")
125
130
 
@@ -131,7 +136,7 @@ class ServiceArgs:
131
136
  @pulumi.getter
132
137
  def name(self) -> Optional[pulumi.Input[str]]:
133
138
  """
134
- A random name for the port
139
+ Name of the service
135
140
  """
136
141
  return pulumi.get(self, "name")
137
142
 
@@ -182,8 +187,8 @@ class _ServiceState:
182
187
  :param pulumi.Input['ServiceConvergeConfigArgs'] converge_config: A configuration to ensure that a service converges aka reaches the desired that of all task up and running
183
188
  :param pulumi.Input['ServiceEndpointSpecArgs'] endpoint_spec: Properties that can be configured to access and load balance a service
184
189
  :param pulumi.Input[Sequence[pulumi.Input['ServiceLabelArgs']]] labels: User-defined key/value metadata
185
- :param pulumi.Input['ServiceModeArgs'] mode: The mode of resolution to use for internal load balancing between tasks
186
- :param pulumi.Input[str] name: A random name for the port
190
+ :param pulumi.Input['ServiceModeArgs'] mode: Scheduling mode for the service
191
+ :param pulumi.Input[str] name: Name of the service
187
192
  :param pulumi.Input['ServiceRollbackConfigArgs'] rollback_config: Specification for the rollback strategy of the service
188
193
  :param pulumi.Input['ServiceTaskSpecArgs'] task_spec: User modifiable task configuration
189
194
  :param pulumi.Input['ServiceUpdateConfigArgs'] update_config: Specification for the update strategy of the service
@@ -259,7 +264,7 @@ class _ServiceState:
259
264
  @pulumi.getter
260
265
  def mode(self) -> Optional[pulumi.Input['ServiceModeArgs']]:
261
266
  """
262
- The mode of resolution to use for internal load balancing between tasks
267
+ Scheduling mode for the service
263
268
  """
264
269
  return pulumi.get(self, "mode")
265
270
 
@@ -271,7 +276,7 @@ class _ServiceState:
271
276
  @pulumi.getter
272
277
  def name(self) -> Optional[pulumi.Input[str]]:
273
278
  """
274
- A random name for the port
279
+ Name of the service
275
280
  """
276
281
  return pulumi.get(self, "name")
277
282
 
@@ -321,62 +326,82 @@ class Service(pulumi.CustomResource):
321
326
  def __init__(__self__,
322
327
  resource_name: str,
323
328
  opts: Optional[pulumi.ResourceOptions] = None,
324
- auth: Optional[pulumi.Input[pulumi.InputType['ServiceAuthArgs']]] = None,
325
- converge_config: Optional[pulumi.Input[pulumi.InputType['ServiceConvergeConfigArgs']]] = None,
326
- endpoint_spec: Optional[pulumi.Input[pulumi.InputType['ServiceEndpointSpecArgs']]] = None,
327
- labels: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceLabelArgs']]]]] = None,
328
- mode: Optional[pulumi.Input[pulumi.InputType['ServiceModeArgs']]] = None,
329
+ auth: Optional[pulumi.Input[Union['ServiceAuthArgs', 'ServiceAuthArgsDict']]] = None,
330
+ converge_config: Optional[pulumi.Input[Union['ServiceConvergeConfigArgs', 'ServiceConvergeConfigArgsDict']]] = None,
331
+ endpoint_spec: Optional[pulumi.Input[Union['ServiceEndpointSpecArgs', 'ServiceEndpointSpecArgsDict']]] = None,
332
+ labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServiceLabelArgs', 'ServiceLabelArgsDict']]]]] = None,
333
+ mode: Optional[pulumi.Input[Union['ServiceModeArgs', 'ServiceModeArgsDict']]] = None,
329
334
  name: Optional[pulumi.Input[str]] = None,
330
- rollback_config: Optional[pulumi.Input[pulumi.InputType['ServiceRollbackConfigArgs']]] = None,
331
- task_spec: Optional[pulumi.Input[pulumi.InputType['ServiceTaskSpecArgs']]] = None,
332
- update_config: Optional[pulumi.Input[pulumi.InputType['ServiceUpdateConfigArgs']]] = None,
335
+ rollback_config: Optional[pulumi.Input[Union['ServiceRollbackConfigArgs', 'ServiceRollbackConfigArgsDict']]] = None,
336
+ task_spec: Optional[pulumi.Input[Union['ServiceTaskSpecArgs', 'ServiceTaskSpecArgsDict']]] = None,
337
+ update_config: Optional[pulumi.Input[Union['ServiceUpdateConfigArgs', 'ServiceUpdateConfigArgsDict']]] = None,
333
338
  __props__=None):
334
339
  """
335
340
  ## Import
336
341
 
337
- ### Example Assuming you created a `service` as follows #!/bin/bash docker service create --name foo -p 8080:80 nginx prints th ID 4pcphbxkfn2rffhbhe6czytgi you provide the definition for the resource as follows terraform resource "docker_service" "foo" {
342
+ ### Example
338
343
 
339
- name = "foo"
344
+ Assuming you created a `service` as follows
340
345
 
341
- task_spec {
346
+ #!/bin/bash
342
347
 
343
- container_spec {
348
+ docker service create --name foo -p 8080:80 nginx
344
349
 
345
- image = "nginx"
350
+ prints th ID
346
351
 
347
- }
352
+ 4pcphbxkfn2rffhbhe6czytgi
348
353
 
349
- }
354
+ you provide the definition for the resource as follows
350
355
 
351
- endpoint_spec {
356
+ terraform
352
357
 
353
- ports {
358
+ resource "docker_service" "foo" {
354
359
 
355
- target_port
360
+ name = "foo"
356
361
 
357
- = "80"
362
+ task_spec {
358
363
 
359
- published_port = "8080"
364
+ container_spec {
365
+
366
+ image = "nginx"
367
+
368
+ }
360
369
 
361
- }
370
+ }
362
371
 
363
- } } then the import command is as follows #!/bin/bash
372
+ endpoint_spec {
373
+
374
+ ports {
375
+
376
+ target_port = "80"
377
+
378
+ published_port = "8080"
379
+
380
+ }
381
+
382
+ }
383
+
384
+ }
385
+
386
+ then the import command is as follows
387
+
388
+ #!/bin/bash
364
389
 
365
390
  ```sh
366
- $ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi
391
+ $ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi
367
392
  ```
368
393
 
369
394
  :param str resource_name: The name of the resource.
370
395
  :param pulumi.ResourceOptions opts: Options for the resource.
371
- :param pulumi.Input[pulumi.InputType['ServiceAuthArgs']] auth: Configuration for the authentication for pulling the images of the service
372
- :param pulumi.Input[pulumi.InputType['ServiceConvergeConfigArgs']] converge_config: A configuration to ensure that a service converges aka reaches the desired that of all task up and running
373
- :param pulumi.Input[pulumi.InputType['ServiceEndpointSpecArgs']] endpoint_spec: Properties that can be configured to access and load balance a service
374
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceLabelArgs']]]] labels: User-defined key/value metadata
375
- :param pulumi.Input[pulumi.InputType['ServiceModeArgs']] mode: The mode of resolution to use for internal load balancing between tasks
376
- :param pulumi.Input[str] name: A random name for the port
377
- :param pulumi.Input[pulumi.InputType['ServiceRollbackConfigArgs']] rollback_config: Specification for the rollback strategy of the service
378
- :param pulumi.Input[pulumi.InputType['ServiceTaskSpecArgs']] task_spec: User modifiable task configuration
379
- :param pulumi.Input[pulumi.InputType['ServiceUpdateConfigArgs']] update_config: Specification for the update strategy of the service
396
+ :param pulumi.Input[Union['ServiceAuthArgs', 'ServiceAuthArgsDict']] auth: Configuration for the authentication for pulling the images of the service
397
+ :param pulumi.Input[Union['ServiceConvergeConfigArgs', 'ServiceConvergeConfigArgsDict']] converge_config: A configuration to ensure that a service converges aka reaches the desired that of all task up and running
398
+ :param pulumi.Input[Union['ServiceEndpointSpecArgs', 'ServiceEndpointSpecArgsDict']] endpoint_spec: Properties that can be configured to access and load balance a service
399
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ServiceLabelArgs', 'ServiceLabelArgsDict']]]] labels: User-defined key/value metadata
400
+ :param pulumi.Input[Union['ServiceModeArgs', 'ServiceModeArgsDict']] mode: Scheduling mode for the service
401
+ :param pulumi.Input[str] name: Name of the service
402
+ :param pulumi.Input[Union['ServiceRollbackConfigArgs', 'ServiceRollbackConfigArgsDict']] rollback_config: Specification for the rollback strategy of the service
403
+ :param pulumi.Input[Union['ServiceTaskSpecArgs', 'ServiceTaskSpecArgsDict']] task_spec: User modifiable task configuration
404
+ :param pulumi.Input[Union['ServiceUpdateConfigArgs', 'ServiceUpdateConfigArgsDict']] update_config: Specification for the update strategy of the service
380
405
  """
381
406
  ...
382
407
  @overload
@@ -387,36 +412,56 @@ class Service(pulumi.CustomResource):
387
412
  """
388
413
  ## Import
389
414
 
390
- ### Example Assuming you created a `service` as follows #!/bin/bash docker service create --name foo -p 8080:80 nginx prints th ID 4pcphbxkfn2rffhbhe6czytgi you provide the definition for the resource as follows terraform resource "docker_service" "foo" {
415
+ ### Example
416
+
417
+ Assuming you created a `service` as follows
418
+
419
+ #!/bin/bash
420
+
421
+ docker service create --name foo -p 8080:80 nginx
422
+
423
+ prints th ID
424
+
425
+ 4pcphbxkfn2rffhbhe6czytgi
391
426
 
392
- name = "foo"
427
+ you provide the definition for the resource as follows
393
428
 
394
- task_spec {
429
+ terraform
395
430
 
396
- container_spec {
431
+ resource "docker_service" "foo" {
397
432
 
398
- image = "nginx"
433
+ name = "foo"
399
434
 
400
- }
435
+ task_spec {
401
436
 
402
- }
437
+ container_spec {
438
+
439
+ image = "nginx"
440
+
441
+ }
403
442
 
404
- endpoint_spec {
443
+ }
405
444
 
406
- ports {
445
+ endpoint_spec {
407
446
 
408
- target_port
447
+ ports {
448
+
449
+ target_port = "80"
450
+
451
+ published_port = "8080"
452
+
453
+ }
409
454
 
410
- = "80"
455
+ }
411
456
 
412
- published_port = "8080"
457
+ }
413
458
 
414
- }
459
+ then the import command is as follows
415
460
 
416
- } } then the import command is as follows #!/bin/bash
461
+ #!/bin/bash
417
462
 
418
463
  ```sh
419
- $ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi
464
+ $ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi
420
465
  ```
421
466
 
422
467
  :param str resource_name: The name of the resource.
@@ -434,15 +479,15 @@ class Service(pulumi.CustomResource):
434
479
  def _internal_init(__self__,
435
480
  resource_name: str,
436
481
  opts: Optional[pulumi.ResourceOptions] = None,
437
- auth: Optional[pulumi.Input[pulumi.InputType['ServiceAuthArgs']]] = None,
438
- converge_config: Optional[pulumi.Input[pulumi.InputType['ServiceConvergeConfigArgs']]] = None,
439
- endpoint_spec: Optional[pulumi.Input[pulumi.InputType['ServiceEndpointSpecArgs']]] = None,
440
- labels: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceLabelArgs']]]]] = None,
441
- mode: Optional[pulumi.Input[pulumi.InputType['ServiceModeArgs']]] = None,
482
+ auth: Optional[pulumi.Input[Union['ServiceAuthArgs', 'ServiceAuthArgsDict']]] = None,
483
+ converge_config: Optional[pulumi.Input[Union['ServiceConvergeConfigArgs', 'ServiceConvergeConfigArgsDict']]] = None,
484
+ endpoint_spec: Optional[pulumi.Input[Union['ServiceEndpointSpecArgs', 'ServiceEndpointSpecArgsDict']]] = None,
485
+ labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServiceLabelArgs', 'ServiceLabelArgsDict']]]]] = None,
486
+ mode: Optional[pulumi.Input[Union['ServiceModeArgs', 'ServiceModeArgsDict']]] = None,
442
487
  name: Optional[pulumi.Input[str]] = None,
443
- rollback_config: Optional[pulumi.Input[pulumi.InputType['ServiceRollbackConfigArgs']]] = None,
444
- task_spec: Optional[pulumi.Input[pulumi.InputType['ServiceTaskSpecArgs']]] = None,
445
- update_config: Optional[pulumi.Input[pulumi.InputType['ServiceUpdateConfigArgs']]] = None,
488
+ rollback_config: Optional[pulumi.Input[Union['ServiceRollbackConfigArgs', 'ServiceRollbackConfigArgsDict']]] = None,
489
+ task_spec: Optional[pulumi.Input[Union['ServiceTaskSpecArgs', 'ServiceTaskSpecArgsDict']]] = None,
490
+ update_config: Optional[pulumi.Input[Union['ServiceUpdateConfigArgs', 'ServiceUpdateConfigArgsDict']]] = None,
446
491
  __props__=None):
447
492
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
448
493
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -473,15 +518,15 @@ class Service(pulumi.CustomResource):
473
518
  def get(resource_name: str,
474
519
  id: pulumi.Input[str],
475
520
  opts: Optional[pulumi.ResourceOptions] = None,
476
- auth: Optional[pulumi.Input[pulumi.InputType['ServiceAuthArgs']]] = None,
477
- converge_config: Optional[pulumi.Input[pulumi.InputType['ServiceConvergeConfigArgs']]] = None,
478
- endpoint_spec: Optional[pulumi.Input[pulumi.InputType['ServiceEndpointSpecArgs']]] = None,
479
- labels: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceLabelArgs']]]]] = None,
480
- mode: Optional[pulumi.Input[pulumi.InputType['ServiceModeArgs']]] = None,
521
+ auth: Optional[pulumi.Input[Union['ServiceAuthArgs', 'ServiceAuthArgsDict']]] = None,
522
+ converge_config: Optional[pulumi.Input[Union['ServiceConvergeConfigArgs', 'ServiceConvergeConfigArgsDict']]] = None,
523
+ endpoint_spec: Optional[pulumi.Input[Union['ServiceEndpointSpecArgs', 'ServiceEndpointSpecArgsDict']]] = None,
524
+ labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServiceLabelArgs', 'ServiceLabelArgsDict']]]]] = None,
525
+ mode: Optional[pulumi.Input[Union['ServiceModeArgs', 'ServiceModeArgsDict']]] = None,
481
526
  name: Optional[pulumi.Input[str]] = None,
482
- rollback_config: Optional[pulumi.Input[pulumi.InputType['ServiceRollbackConfigArgs']]] = None,
483
- task_spec: Optional[pulumi.Input[pulumi.InputType['ServiceTaskSpecArgs']]] = None,
484
- update_config: Optional[pulumi.Input[pulumi.InputType['ServiceUpdateConfigArgs']]] = None) -> 'Service':
527
+ rollback_config: Optional[pulumi.Input[Union['ServiceRollbackConfigArgs', 'ServiceRollbackConfigArgsDict']]] = None,
528
+ task_spec: Optional[pulumi.Input[Union['ServiceTaskSpecArgs', 'ServiceTaskSpecArgsDict']]] = None,
529
+ update_config: Optional[pulumi.Input[Union['ServiceUpdateConfigArgs', 'ServiceUpdateConfigArgsDict']]] = None) -> 'Service':
485
530
  """
486
531
  Get an existing Service resource's state with the given name, id, and optional extra
487
532
  properties used to qualify the lookup.
@@ -489,15 +534,15 @@ class Service(pulumi.CustomResource):
489
534
  :param str resource_name: The unique name of the resulting resource.
490
535
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
491
536
  :param pulumi.ResourceOptions opts: Options for the resource.
492
- :param pulumi.Input[pulumi.InputType['ServiceAuthArgs']] auth: Configuration for the authentication for pulling the images of the service
493
- :param pulumi.Input[pulumi.InputType['ServiceConvergeConfigArgs']] converge_config: A configuration to ensure that a service converges aka reaches the desired that of all task up and running
494
- :param pulumi.Input[pulumi.InputType['ServiceEndpointSpecArgs']] endpoint_spec: Properties that can be configured to access and load balance a service
495
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceLabelArgs']]]] labels: User-defined key/value metadata
496
- :param pulumi.Input[pulumi.InputType['ServiceModeArgs']] mode: The mode of resolution to use for internal load balancing between tasks
497
- :param pulumi.Input[str] name: A random name for the port
498
- :param pulumi.Input[pulumi.InputType['ServiceRollbackConfigArgs']] rollback_config: Specification for the rollback strategy of the service
499
- :param pulumi.Input[pulumi.InputType['ServiceTaskSpecArgs']] task_spec: User modifiable task configuration
500
- :param pulumi.Input[pulumi.InputType['ServiceUpdateConfigArgs']] update_config: Specification for the update strategy of the service
537
+ :param pulumi.Input[Union['ServiceAuthArgs', 'ServiceAuthArgsDict']] auth: Configuration for the authentication for pulling the images of the service
538
+ :param pulumi.Input[Union['ServiceConvergeConfigArgs', 'ServiceConvergeConfigArgsDict']] converge_config: A configuration to ensure that a service converges aka reaches the desired that of all task up and running
539
+ :param pulumi.Input[Union['ServiceEndpointSpecArgs', 'ServiceEndpointSpecArgsDict']] endpoint_spec: Properties that can be configured to access and load balance a service
540
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ServiceLabelArgs', 'ServiceLabelArgsDict']]]] labels: User-defined key/value metadata
541
+ :param pulumi.Input[Union['ServiceModeArgs', 'ServiceModeArgsDict']] mode: Scheduling mode for the service
542
+ :param pulumi.Input[str] name: Name of the service
543
+ :param pulumi.Input[Union['ServiceRollbackConfigArgs', 'ServiceRollbackConfigArgsDict']] rollback_config: Specification for the rollback strategy of the service
544
+ :param pulumi.Input[Union['ServiceTaskSpecArgs', 'ServiceTaskSpecArgsDict']] task_spec: User modifiable task configuration
545
+ :param pulumi.Input[Union['ServiceUpdateConfigArgs', 'ServiceUpdateConfigArgsDict']] update_config: Specification for the update strategy of the service
501
546
  """
502
547
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
503
548
 
@@ -550,7 +595,7 @@ class Service(pulumi.CustomResource):
550
595
  @pulumi.getter
551
596
  def mode(self) -> pulumi.Output['outputs.ServiceMode']:
552
597
  """
553
- The mode of resolution to use for internal load balancing between tasks
598
+ Scheduling mode for the service
554
599
  """
555
600
  return pulumi.get(self, "mode")
556
601
 
@@ -558,7 +603,7 @@ class Service(pulumi.CustomResource):
558
603
  @pulumi.getter
559
604
  def name(self) -> pulumi.Output[str]:
560
605
  """
561
- A random name for the port
606
+ Name of the service
562
607
  """
563
608
  return pulumi.get(self, "name")
564
609
 
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['ServiceConfigArgs', 'ServiceConfig']
@@ -101,16 +106,36 @@ class ServiceConfig(pulumi.CustomResource):
101
106
  """
102
107
  ## Import
103
108
 
104
- ### Example Assuming you created a `config` as follows #!/bin/bash printf '{"a":"b"}' | docker config create foo - prints the id
109
+ ### Example
105
110
 
106
- 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d you provide the definition for the resource as follows terraform resource "docker_config" "foo" {
111
+ Assuming you created a `config` as follows
107
112
 
108
- name = "foo"
113
+ #!/bin/bash
109
114
 
110
- data = base64encode("{\\"a\\"\\"b\\"}") } then the import command is as follows #!/bin/bash
115
+ printf '{"a":"b"}' | docker config create foo -
116
+
117
+ prints the id
118
+
119
+ 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d
120
+
121
+ you provide the definition for the resource as follows
122
+
123
+ terraform
124
+
125
+ resource "docker_config" "foo" {
126
+
127
+ name = "foo"
128
+
129
+ data = base64encode("{\\"a\\": \\"b\\"}")
130
+
131
+ }
132
+
133
+ then the import command is as follows
134
+
135
+ #!/bin/bash
111
136
 
112
137
  ```sh
113
- $ pulumi import docker:index/serviceConfig:ServiceConfig foo 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d
138
+ $ pulumi import docker:index/serviceConfig:ServiceConfig foo 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d
114
139
  ```
115
140
 
116
141
  :param str resource_name: The name of the resource.
@@ -127,16 +152,36 @@ class ServiceConfig(pulumi.CustomResource):
127
152
  """
128
153
  ## Import
129
154
 
130
- ### Example Assuming you created a `config` as follows #!/bin/bash printf '{"a":"b"}' | docker config create foo - prints the id
155
+ ### Example
156
+
157
+ Assuming you created a `config` as follows
158
+
159
+ #!/bin/bash
160
+
161
+ printf '{"a":"b"}' | docker config create foo -
162
+
163
+ prints the id
164
+
165
+ 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d
166
+
167
+ you provide the definition for the resource as follows
168
+
169
+ terraform
170
+
171
+ resource "docker_config" "foo" {
172
+
173
+ name = "foo"
174
+
175
+ data = base64encode("{\\"a\\": \\"b\\"}")
131
176
 
132
- 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d you provide the definition for the resource as follows terraform resource "docker_config" "foo" {
177
+ }
133
178
 
134
- name = "foo"
179
+ then the import command is as follows
135
180
 
136
- data = base64encode("{\\"a\\"\\"b\\"}") } then the import command is as follows #!/bin/bash
181
+ #!/bin/bash
137
182
 
138
183
  ```sh
139
- $ pulumi import docker:index/serviceConfig:ServiceConfig foo 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d
184
+ $ pulumi import docker:index/serviceConfig:ServiceConfig foo 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d
140
185
  ```
141
186
 
142
187
  :param str resource_name: The name of the resource.
pulumi_docker/tag.py CHANGED
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['TagArgs', 'Tag']