pulumi-null 0.0.3a1709366046__py3-none-any.whl → 0.1.0a1715061333__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.
@@ -96,7 +96,8 @@ def get_data_source(has_computed_default: Optional[str] = None,
96
96
  inputs: Optional[Mapping[str, str]] = None,
97
97
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDataSourceResult:
98
98
  """
99
- Use this data source to access information about an existing resource.
99
+ ## Example Usage
100
+
100
101
 
101
102
  :param str has_computed_default: If set, its literal value will be stored and returned. If not, its value defaults to `"default"`. This argument exists primarily for testing and has little practical use.
102
103
  :param Mapping[str, str] inputs: A map of arbitrary strings that is copied into the `outputs` attribute, and accessible directly for interpolation.
@@ -120,7 +121,8 @@ def get_data_source_output(has_computed_default: Optional[pulumi.Input[Optional[
120
121
  inputs: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
121
122
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDataSourceResult]:
122
123
  """
123
- Use this data source to access information about an existing resource.
124
+ ## Example Usage
125
+
124
126
 
125
127
  :param str has_computed_default: If set, its literal value will be stored and returned. If not, its value defaults to `"default"`. This argument exists primarily for testing and has little practical use.
126
128
  :param Mapping[str, str] inputs: A map of arbitrary strings that is copied into the `outputs` attribute, and accessible directly for interpolation.
pulumi_null/resource.py CHANGED
@@ -67,7 +67,33 @@ class Resource(pulumi.CustomResource):
67
67
  triggers: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
68
68
  __props__=None):
69
69
  """
70
- Create a Resource resource with the given unique name, props, and options.
70
+ ## Example Usage
71
+
72
+ ```python
73
+ import pulumi
74
+ import pulumi_aws as aws
75
+ import pulumi_null as null
76
+ import pulumi_std as std
77
+
78
+ cluster = []
79
+ for range in [{"value": i} for i in range(0, 3)]:
80
+ cluster.append(aws.index.Instance(f"cluster-{range['value']}",
81
+ ami=ami-0dcc1e21636832c5d,
82
+ instance_type=m5.large))
83
+ # The primary use-case for the null resource is as a do-nothing container
84
+ # for arbitrary actions taken by a provisioner.
85
+ #
86
+ # In this example, three EC2 instances are created and then a
87
+ # null_resource instance is used to gather data about all three
88
+ # and execute a single action that affects them all. Due to the triggers
89
+ # map, the null_resource will be replaced each time the instance ids
90
+ # change, and thus the remote-exec provisioner will be re-run.
91
+ cluster_resource = null.Resource("cluster", triggers={
92
+ "cluster_instance_ids": std.join(separator=",",
93
+ input=[__item["id"] for __item in cluster]).result,
94
+ })
95
+ ```
96
+
71
97
  :param str resource_name: The name of the resource.
72
98
  :param pulumi.ResourceOptions opts: Options for the resource.
73
99
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] triggers: A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.
@@ -79,7 +105,33 @@ class Resource(pulumi.CustomResource):
79
105
  args: Optional[ResourceArgs] = None,
80
106
  opts: Optional[pulumi.ResourceOptions] = None):
81
107
  """
82
- Create a Resource resource with the given unique name, props, and options.
108
+ ## Example Usage
109
+
110
+ ```python
111
+ import pulumi
112
+ import pulumi_aws as aws
113
+ import pulumi_null as null
114
+ import pulumi_std as std
115
+
116
+ cluster = []
117
+ for range in [{"value": i} for i in range(0, 3)]:
118
+ cluster.append(aws.index.Instance(f"cluster-{range['value']}",
119
+ ami=ami-0dcc1e21636832c5d,
120
+ instance_type=m5.large))
121
+ # The primary use-case for the null resource is as a do-nothing container
122
+ # for arbitrary actions taken by a provisioner.
123
+ #
124
+ # In this example, three EC2 instances are created and then a
125
+ # null_resource instance is used to gather data about all three
126
+ # and execute a single action that affects them all. Due to the triggers
127
+ # map, the null_resource will be replaced each time the instance ids
128
+ # change, and thus the remote-exec provisioner will be re-run.
129
+ cluster_resource = null.Resource("cluster", triggers={
130
+ "cluster_instance_ids": std.join(separator=",",
131
+ input=[__item["id"] for __item in cluster]).result,
132
+ })
133
+ ```
134
+
83
135
  :param str resource_name: The name of the resource.
84
136
  :param ResourceArgs args: The arguments to use to populate this resource's properties.
85
137
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_null
3
- Version: 0.0.3a1709366046
3
+ Version: 0.1.0a1715061333
4
4
  Summary: A Pulumi package for creating and managing Null cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://www.pulumi.com/
@@ -0,0 +1,11 @@
1
+ pulumi_null/__init__.py,sha256=vfO-Nyln5Y_KQyhBViIfR85yyF-7e_dM8AWDOgBltxk,682
2
+ pulumi_null/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
3
+ pulumi_null/get_data_source.py,sha256=fAZn0ddoCFmZnWkky1nvISA_xZCtWRzXHvmQHee9g5A,5564
4
+ pulumi_null/provider.py,sha256=SLc7l69q4BwAiTTj6UutzTFplKhivhcTH8x06xaqsuM,3414
5
+ pulumi_null/pulumi-plugin.json,sha256=xKWQ3pWIFdx8ao-qagk5twTTzey4mlMpszE1QbEoV9s,41
6
+ pulumi_null/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ pulumi_null/resource.py,sha256=ozZbh7enU3dEorIF4ztQH4hc6P2v4EWdKCjbPVqK4p0,8640
8
+ pulumi_null-0.1.0a1715061333.dist-info/METADATA,sha256=DzZmLjJgNLkxRqVuKaNpdBKDTydK17umM6oB1EJ7-pI,2774
9
+ pulumi_null-0.1.0a1715061333.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
10
+ pulumi_null-0.1.0a1715061333.dist-info/top_level.txt,sha256=Ru9dJEzD8mCrozV4N2VCSavoQqMS9aa8gq-PLsirmtc,12
11
+ pulumi_null-0.1.0a1715061333.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,11 +0,0 @@
1
- pulumi_null/__init__.py,sha256=vfO-Nyln5Y_KQyhBViIfR85yyF-7e_dM8AWDOgBltxk,682
2
- pulumi_null/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
3
- pulumi_null/get_data_source.py,sha256=KwW7lzYd9L1Uis5LdSDhz4OiROB1ubzVaaNbprF5jWM,5670
4
- pulumi_null/provider.py,sha256=SLc7l69q4BwAiTTj6UutzTFplKhivhcTH8x06xaqsuM,3414
5
- pulumi_null/pulumi-plugin.json,sha256=xKWQ3pWIFdx8ao-qagk5twTTzey4mlMpszE1QbEoV9s,41
6
- pulumi_null/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- pulumi_null/resource.py,sha256=kJ34pwpvzfi7jBub7fhYNCcTi7-YD-Zo4vYLMD13mMk,6526
8
- pulumi_null-0.0.3a1709366046.dist-info/METADATA,sha256=NNDTWK97SQx2pRZck73uZ0W-2hzOjxxgR1NVfqKHCFk,2774
9
- pulumi_null-0.0.3a1709366046.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
10
- pulumi_null-0.0.3a1709366046.dist-info/top_level.txt,sha256=Ru9dJEzD8mCrozV4N2VCSavoQqMS9aa8gq-PLsirmtc,12
11
- pulumi_null-0.0.3a1709366046.dist-info/RECORD,,