pulumi-std 2.3.0a1770334078__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.
- pulumi_std/__init__.py +121 -0
- pulumi_std/_utilities.py +331 -0
- pulumi_std/abs.py +70 -0
- pulumi_std/abspath.py +70 -0
- pulumi_std/alltrue.py +70 -0
- pulumi_std/anytrue.py +70 -0
- pulumi_std/base64decode.py +68 -0
- pulumi_std/base64encode.py +68 -0
- pulumi_std/base64gzip.py +68 -0
- pulumi_std/base64sha256.py +70 -0
- pulumi_std/base64sha512.py +70 -0
- pulumi_std/basename.py +68 -0
- pulumi_std/bcrypt.py +74 -0
- pulumi_std/ceil.py +68 -0
- pulumi_std/chomp.py +68 -0
- pulumi_std/chunklist.py +72 -0
- pulumi_std/cidrhost.py +78 -0
- pulumi_std/cidrnetmask.py +74 -0
- pulumi_std/cidrsubnet.py +82 -0
- pulumi_std/cidrsubnets.py +72 -0
- pulumi_std/coalesce.py +68 -0
- pulumi_std/coalescelist.py +68 -0
- pulumi_std/compact.py +68 -0
- pulumi_std/concat.py +68 -0
- pulumi_std/contains.py +72 -0
- pulumi_std/csvdecode.py +82 -0
- pulumi_std/dirname.py +68 -0
- pulumi_std/distinct.py +68 -0
- pulumi_std/element.py +72 -0
- pulumi_std/endswith.py +72 -0
- pulumi_std/file.py +68 -0
- pulumi_std/filebase64.py +68 -0
- pulumi_std/filebase64sha256.py +68 -0
- pulumi_std/filebase64sha512.py +68 -0
- pulumi_std/fileexists.py +68 -0
- pulumi_std/filemd5.py +68 -0
- pulumi_std/filesha1.py +68 -0
- pulumi_std/filesha256.py +68 -0
- pulumi_std/filesha512.py +68 -0
- pulumi_std/flatten.py +70 -0
- pulumi_std/floor.py +68 -0
- pulumi_std/format.py +72 -0
- pulumi_std/formatlist.py +72 -0
- pulumi_std/indent.py +72 -0
- pulumi_std/index.py +72 -0
- pulumi_std/join.py +72 -0
- pulumi_std/jsondecode.py +72 -0
- pulumi_std/jsonencode.py +72 -0
- pulumi_std/keys.py +68 -0
- pulumi_std/length.py +68 -0
- pulumi_std/log.py +72 -0
- pulumi_std/lookup.py +76 -0
- pulumi_std/lower.py +68 -0
- pulumi_std/map.py +68 -0
- pulumi_std/matchkeys.py +74 -0
- pulumi_std/max.py +68 -0
- pulumi_std/md5.py +68 -0
- pulumi_std/merge.py +70 -0
- pulumi_std/min.py +68 -0
- pulumi_std/parseint.py +76 -0
- pulumi_std/pathexpand.py +68 -0
- pulumi_std/pow.py +72 -0
- pulumi_std/provider.py +77 -0
- pulumi_std/pulumi-plugin.json +5 -0
- pulumi_std/py.typed +0 -0
- pulumi_std/range.py +80 -0
- pulumi_std/regex.py +72 -0
- pulumi_std/regexall.py +72 -0
- pulumi_std/replace.py +86 -0
- pulumi_std/reverse.py +68 -0
- pulumi_std/rsadecrypt.py +74 -0
- pulumi_std/setintersection.py +68 -0
- pulumi_std/sha1.py +68 -0
- pulumi_std/sha256.py +68 -0
- pulumi_std/sha512.py +68 -0
- pulumi_std/signum.py +68 -0
- pulumi_std/slice.py +76 -0
- pulumi_std/sort.py +68 -0
- pulumi_std/split.py +72 -0
- pulumi_std/startswith.py +72 -0
- pulumi_std/strrev.py +68 -0
- pulumi_std/substr.py +76 -0
- pulumi_std/sum.py +68 -0
- pulumi_std/timeadd.py +84 -0
- pulumi_std/timecmp.py +84 -0
- pulumi_std/timestamp.py +64 -0
- pulumi_std/title.py +68 -0
- pulumi_std/tobool.py +70 -0
- pulumi_std/tolist.py +68 -0
- pulumi_std/tonumber.py +70 -0
- pulumi_std/toset.py +68 -0
- pulumi_std/tostring.py +70 -0
- pulumi_std/transpose.py +68 -0
- pulumi_std/trim.py +72 -0
- pulumi_std/trimprefix.py +72 -0
- pulumi_std/trimspace.py +70 -0
- pulumi_std/trimsuffix.py +72 -0
- pulumi_std/upper.py +68 -0
- pulumi_std/urlencode.py +68 -0
- pulumi_std/uuid.py +64 -0
- pulumi_std/values.py +68 -0
- pulumi_std/zipmap.py +72 -0
- pulumi_std-2.3.0a1770334078.dist-info/METADATA +47 -0
- pulumi_std-2.3.0a1770334078.dist-info/RECORD +106 -0
- pulumi_std-2.3.0a1770334078.dist-info/WHEEL +5 -0
- pulumi_std-2.3.0a1770334078.dist-info/top_level.txt +1 -0
pulumi_std/concat.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'ConcatResult',
|
|
19
|
+
'AwaitableConcatResult',
|
|
20
|
+
'concat',
|
|
21
|
+
'concat_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class ConcatResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, list):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a list")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> Sequence[Any]:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableConcatResult(ConcatResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return ConcatResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def concat(input: Optional[Sequence[Sequence[Any]]] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableConcatResult:
|
|
48
|
+
"""
|
|
49
|
+
Combines two or more lists into a single list.
|
|
50
|
+
"""
|
|
51
|
+
__args__ = dict()
|
|
52
|
+
__args__['input'] = input
|
|
53
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
54
|
+
__ret__ = pulumi.runtime.invoke('std:index:concat', __args__, opts=opts, typ=ConcatResult).value
|
|
55
|
+
|
|
56
|
+
return AwaitableConcatResult(
|
|
57
|
+
result=pulumi.get(__ret__, 'result'))
|
|
58
|
+
def concat_output(input: Optional[pulumi.Input[Sequence[Sequence[Any]]]] = None,
|
|
59
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[ConcatResult]:
|
|
60
|
+
"""
|
|
61
|
+
Combines two or more lists into a single list.
|
|
62
|
+
"""
|
|
63
|
+
__args__ = dict()
|
|
64
|
+
__args__['input'] = input
|
|
65
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
66
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:concat', __args__, opts=opts, typ=ConcatResult)
|
|
67
|
+
return __ret__.apply(lambda __response__: ConcatResult(
|
|
68
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/contains.py
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'ContainsResult',
|
|
19
|
+
'AwaitableContainsResult',
|
|
20
|
+
'contains',
|
|
21
|
+
'contains_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class ContainsResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, bool):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a bool")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> _builtins.bool:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableContainsResult(ContainsResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return ContainsResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def contains(element: Optional[Any] = None,
|
|
47
|
+
input: Optional[Sequence[Any]] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableContainsResult:
|
|
49
|
+
"""
|
|
50
|
+
Returns true if a list contains the given element and returns false otherwise.
|
|
51
|
+
"""
|
|
52
|
+
__args__ = dict()
|
|
53
|
+
__args__['element'] = element
|
|
54
|
+
__args__['input'] = input
|
|
55
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
56
|
+
__ret__ = pulumi.runtime.invoke('std:index:contains', __args__, opts=opts, typ=ContainsResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableContainsResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def contains_output(element: Optional[Any] = None,
|
|
61
|
+
input: Optional[pulumi.Input[Sequence[Any]]] = None,
|
|
62
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[ContainsResult]:
|
|
63
|
+
"""
|
|
64
|
+
Returns true if a list contains the given element and returns false otherwise.
|
|
65
|
+
"""
|
|
66
|
+
__args__ = dict()
|
|
67
|
+
__args__['element'] = element
|
|
68
|
+
__args__['input'] = input
|
|
69
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
70
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:contains', __args__, opts=opts, typ=ContainsResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: ContainsResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/csvdecode.py
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'CsvdecodeResult',
|
|
19
|
+
'AwaitableCsvdecodeResult',
|
|
20
|
+
'csvdecode',
|
|
21
|
+
'csvdecode_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class CsvdecodeResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, list):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a list")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> Sequence[Mapping[str, _builtins.str]]:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableCsvdecodeResult(CsvdecodeResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return CsvdecodeResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def csvdecode(input: Optional[_builtins.str] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableCsvdecodeResult:
|
|
48
|
+
"""
|
|
49
|
+
Decodes a string containing CSV-formatted data and produces a list of maps representing that data.
|
|
50
|
+
The first line of the CSV data is interpreted as a "header" row: the values given
|
|
51
|
+
are used as the keys in the resulting maps.
|
|
52
|
+
Each subsequent line becomes a single map in the resulting list,
|
|
53
|
+
matching the keys from the header row with the given values by index.
|
|
54
|
+
All lines in the file must contain the same number of fields,
|
|
55
|
+
or this function will produce an error.
|
|
56
|
+
Follows the format defined in RFC 4180.
|
|
57
|
+
"""
|
|
58
|
+
__args__ = dict()
|
|
59
|
+
__args__['input'] = input
|
|
60
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
61
|
+
__ret__ = pulumi.runtime.invoke('std:index:csvdecode', __args__, opts=opts, typ=CsvdecodeResult).value
|
|
62
|
+
|
|
63
|
+
return AwaitableCsvdecodeResult(
|
|
64
|
+
result=pulumi.get(__ret__, 'result'))
|
|
65
|
+
def csvdecode_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
66
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[CsvdecodeResult]:
|
|
67
|
+
"""
|
|
68
|
+
Decodes a string containing CSV-formatted data and produces a list of maps representing that data.
|
|
69
|
+
The first line of the CSV data is interpreted as a "header" row: the values given
|
|
70
|
+
are used as the keys in the resulting maps.
|
|
71
|
+
Each subsequent line becomes a single map in the resulting list,
|
|
72
|
+
matching the keys from the header row with the given values by index.
|
|
73
|
+
All lines in the file must contain the same number of fields,
|
|
74
|
+
or this function will produce an error.
|
|
75
|
+
Follows the format defined in RFC 4180.
|
|
76
|
+
"""
|
|
77
|
+
__args__ = dict()
|
|
78
|
+
__args__['input'] = input
|
|
79
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
80
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:csvdecode', __args__, opts=opts, typ=CsvdecodeResult)
|
|
81
|
+
return __ret__.apply(lambda __response__: CsvdecodeResult(
|
|
82
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/dirname.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'DirnameResult',
|
|
19
|
+
'AwaitableDirnameResult',
|
|
20
|
+
'dirname',
|
|
21
|
+
'dirname_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class DirnameResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, str):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a str")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> _builtins.str:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableDirnameResult(DirnameResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return DirnameResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def dirname(input: Optional[_builtins.str] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableDirnameResult:
|
|
48
|
+
"""
|
|
49
|
+
Returns all but the last element of path, typically the path's directory.
|
|
50
|
+
"""
|
|
51
|
+
__args__ = dict()
|
|
52
|
+
__args__['input'] = input
|
|
53
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
54
|
+
__ret__ = pulumi.runtime.invoke('std:index:dirname', __args__, opts=opts, typ=DirnameResult).value
|
|
55
|
+
|
|
56
|
+
return AwaitableDirnameResult(
|
|
57
|
+
result=pulumi.get(__ret__, 'result'))
|
|
58
|
+
def dirname_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
59
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[DirnameResult]:
|
|
60
|
+
"""
|
|
61
|
+
Returns all but the last element of path, typically the path's directory.
|
|
62
|
+
"""
|
|
63
|
+
__args__ = dict()
|
|
64
|
+
__args__['input'] = input
|
|
65
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
66
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:dirname', __args__, opts=opts, typ=DirnameResult)
|
|
67
|
+
return __ret__.apply(lambda __response__: DirnameResult(
|
|
68
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/distinct.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'DistinctResult',
|
|
19
|
+
'AwaitableDistinctResult',
|
|
20
|
+
'distinct',
|
|
21
|
+
'distinct_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class DistinctResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, list):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a list")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> Sequence[Any]:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableDistinctResult(DistinctResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return DistinctResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def distinct(input: Optional[Sequence[Any]] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableDistinctResult:
|
|
48
|
+
"""
|
|
49
|
+
Removes duplicate items from a list.
|
|
50
|
+
"""
|
|
51
|
+
__args__ = dict()
|
|
52
|
+
__args__['input'] = input
|
|
53
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
54
|
+
__ret__ = pulumi.runtime.invoke('std:index:distinct', __args__, opts=opts, typ=DistinctResult).value
|
|
55
|
+
|
|
56
|
+
return AwaitableDistinctResult(
|
|
57
|
+
result=pulumi.get(__ret__, 'result'))
|
|
58
|
+
def distinct_output(input: Optional[pulumi.Input[Sequence[Any]]] = None,
|
|
59
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[DistinctResult]:
|
|
60
|
+
"""
|
|
61
|
+
Removes duplicate items from a list.
|
|
62
|
+
"""
|
|
63
|
+
__args__ = dict()
|
|
64
|
+
__args__['input'] = input
|
|
65
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
66
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:distinct', __args__, opts=opts, typ=DistinctResult)
|
|
67
|
+
return __ret__.apply(lambda __response__: DistinctResult(
|
|
68
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/element.py
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'ElementResult',
|
|
19
|
+
'AwaitableElementResult',
|
|
20
|
+
'element',
|
|
21
|
+
'element_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class ElementResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, dict):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a dict")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> Any:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableElementResult(ElementResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return ElementResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def element(index: Optional[_builtins.int] = None,
|
|
47
|
+
input: Optional[Sequence[Any]] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableElementResult:
|
|
49
|
+
"""
|
|
50
|
+
Returns the element at the specified index.
|
|
51
|
+
"""
|
|
52
|
+
__args__ = dict()
|
|
53
|
+
__args__['index'] = index
|
|
54
|
+
__args__['input'] = input
|
|
55
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
56
|
+
__ret__ = pulumi.runtime.invoke('std:index:element', __args__, opts=opts, typ=ElementResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableElementResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def element_output(index: Optional[pulumi.Input[_builtins.int]] = None,
|
|
61
|
+
input: Optional[pulumi.Input[Sequence[Any]]] = None,
|
|
62
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[ElementResult]:
|
|
63
|
+
"""
|
|
64
|
+
Returns the element at the specified index.
|
|
65
|
+
"""
|
|
66
|
+
__args__ = dict()
|
|
67
|
+
__args__['index'] = index
|
|
68
|
+
__args__['input'] = input
|
|
69
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
70
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:element', __args__, opts=opts, typ=ElementResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: ElementResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/endswith.py
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'EndswithResult',
|
|
19
|
+
'AwaitableEndswithResult',
|
|
20
|
+
'endswith',
|
|
21
|
+
'endswith_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class EndswithResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, bool):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a bool")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> _builtins.bool:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableEndswithResult(EndswithResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return EndswithResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def endswith(input: Optional[_builtins.str] = None,
|
|
47
|
+
suffix: Optional[_builtins.str] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableEndswithResult:
|
|
49
|
+
"""
|
|
50
|
+
Determines if the input string ends with the suffix.
|
|
51
|
+
"""
|
|
52
|
+
__args__ = dict()
|
|
53
|
+
__args__['input'] = input
|
|
54
|
+
__args__['suffix'] = suffix
|
|
55
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
56
|
+
__ret__ = pulumi.runtime.invoke('std:index:endswith', __args__, opts=opts, typ=EndswithResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableEndswithResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def endswith_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
61
|
+
suffix: Optional[pulumi.Input[_builtins.str]] = None,
|
|
62
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[EndswithResult]:
|
|
63
|
+
"""
|
|
64
|
+
Determines if the input string ends with the suffix.
|
|
65
|
+
"""
|
|
66
|
+
__args__ = dict()
|
|
67
|
+
__args__['input'] = input
|
|
68
|
+
__args__['suffix'] = suffix
|
|
69
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
70
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:endswith', __args__, opts=opts, typ=EndswithResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: EndswithResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/file.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'FileResult',
|
|
19
|
+
'AwaitableFileResult',
|
|
20
|
+
'file',
|
|
21
|
+
'file_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class FileResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, str):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a str")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> _builtins.str:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableFileResult(FileResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return FileResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def file(input: Optional[_builtins.str] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableFileResult:
|
|
48
|
+
"""
|
|
49
|
+
Reads the contents of a file into the string.
|
|
50
|
+
"""
|
|
51
|
+
__args__ = dict()
|
|
52
|
+
__args__['input'] = input
|
|
53
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
54
|
+
__ret__ = pulumi.runtime.invoke('std:index:file', __args__, opts=opts, typ=FileResult).value
|
|
55
|
+
|
|
56
|
+
return AwaitableFileResult(
|
|
57
|
+
result=pulumi.get(__ret__, 'result'))
|
|
58
|
+
def file_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
59
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[FileResult]:
|
|
60
|
+
"""
|
|
61
|
+
Reads the contents of a file into the string.
|
|
62
|
+
"""
|
|
63
|
+
__args__ = dict()
|
|
64
|
+
__args__['input'] = input
|
|
65
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
66
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:file', __args__, opts=opts, typ=FileResult)
|
|
67
|
+
return __ret__.apply(lambda __response__: FileResult(
|
|
68
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/filebase64.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'Filebase64Result',
|
|
19
|
+
'AwaitableFilebase64Result',
|
|
20
|
+
'filebase64',
|
|
21
|
+
'filebase64_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class Filebase64Result:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, str):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a str")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> _builtins.str:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableFilebase64Result(Filebase64Result):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return Filebase64Result(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def filebase64(input: Optional[_builtins.str] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableFilebase64Result:
|
|
48
|
+
"""
|
|
49
|
+
Reads the contents of a file and returns them as a base64-encoded string.
|
|
50
|
+
"""
|
|
51
|
+
__args__ = dict()
|
|
52
|
+
__args__['input'] = input
|
|
53
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
54
|
+
__ret__ = pulumi.runtime.invoke('std:index:filebase64', __args__, opts=opts, typ=Filebase64Result).value
|
|
55
|
+
|
|
56
|
+
return AwaitableFilebase64Result(
|
|
57
|
+
result=pulumi.get(__ret__, 'result'))
|
|
58
|
+
def filebase64_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
59
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[Filebase64Result]:
|
|
60
|
+
"""
|
|
61
|
+
Reads the contents of a file and returns them as a base64-encoded string.
|
|
62
|
+
"""
|
|
63
|
+
__args__ = dict()
|
|
64
|
+
__args__['input'] = input
|
|
65
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
66
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:filebase64', __args__, opts=opts, typ=Filebase64Result)
|
|
67
|
+
return __ret__.apply(lambda __response__: Filebase64Result(
|
|
68
|
+
result=pulumi.get(__response__, 'result')))
|