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/format.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
|
+
'FormatResult',
|
|
19
|
+
'AwaitableFormatResult',
|
|
20
|
+
'format',
|
|
21
|
+
'format_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class FormatResult:
|
|
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 AwaitableFormatResult(FormatResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return FormatResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def format(args: Optional[Sequence[Any]] = None,
|
|
47
|
+
input: Optional[_builtins.str] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableFormatResult:
|
|
49
|
+
"""
|
|
50
|
+
Formats a string according to the given format. The syntax for the format is standard sprintf syntax.
|
|
51
|
+
"""
|
|
52
|
+
__args__ = dict()
|
|
53
|
+
__args__['args'] = args
|
|
54
|
+
__args__['input'] = input
|
|
55
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
56
|
+
__ret__ = pulumi.runtime.invoke('std:index:format', __args__, opts=opts, typ=FormatResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableFormatResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def format_output(args: Optional[pulumi.Input[Sequence[Any]]] = None,
|
|
61
|
+
input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
62
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[FormatResult]:
|
|
63
|
+
"""
|
|
64
|
+
Formats a string according to the given format. The syntax for the format is standard sprintf syntax.
|
|
65
|
+
"""
|
|
66
|
+
__args__ = dict()
|
|
67
|
+
__args__['args'] = args
|
|
68
|
+
__args__['input'] = input
|
|
69
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
70
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:format', __args__, opts=opts, typ=FormatResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: FormatResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/formatlist.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
|
+
'FormatlistResult',
|
|
19
|
+
'AwaitableFormatlistResult',
|
|
20
|
+
'formatlist',
|
|
21
|
+
'formatlist_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class FormatlistResult:
|
|
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[_builtins.str]:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableFormatlistResult(FormatlistResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return FormatlistResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def formatlist(args: Optional[Sequence[Any]] = None,
|
|
47
|
+
input: Optional[_builtins.str] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableFormatlistResult:
|
|
49
|
+
"""
|
|
50
|
+
Formats a list of strings according to the given format. Argument values which are lists are "zipped" together to produce a list of results.
|
|
51
|
+
"""
|
|
52
|
+
__args__ = dict()
|
|
53
|
+
__args__['args'] = args
|
|
54
|
+
__args__['input'] = input
|
|
55
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
56
|
+
__ret__ = pulumi.runtime.invoke('std:index:formatlist', __args__, opts=opts, typ=FormatlistResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableFormatlistResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def formatlist_output(args: Optional[pulumi.Input[Sequence[Any]]] = None,
|
|
61
|
+
input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
62
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[FormatlistResult]:
|
|
63
|
+
"""
|
|
64
|
+
Formats a list of strings according to the given format. Argument values which are lists are "zipped" together to produce a list of results.
|
|
65
|
+
"""
|
|
66
|
+
__args__ = dict()
|
|
67
|
+
__args__['args'] = args
|
|
68
|
+
__args__['input'] = input
|
|
69
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
70
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:formatlist', __args__, opts=opts, typ=FormatlistResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: FormatlistResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/indent.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
|
+
'IndentResult',
|
|
19
|
+
'AwaitableIndentResult',
|
|
20
|
+
'indent',
|
|
21
|
+
'indent_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class IndentResult:
|
|
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 AwaitableIndentResult(IndentResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return IndentResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def indent(input: Optional[_builtins.str] = None,
|
|
47
|
+
spaces: Optional[_builtins.int] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableIndentResult:
|
|
49
|
+
"""
|
|
50
|
+
Adds a given number of spaces after each newline character in the given string.
|
|
51
|
+
"""
|
|
52
|
+
__args__ = dict()
|
|
53
|
+
__args__['input'] = input
|
|
54
|
+
__args__['spaces'] = spaces
|
|
55
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
56
|
+
__ret__ = pulumi.runtime.invoke('std:index:indent', __args__, opts=opts, typ=IndentResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableIndentResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def indent_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
61
|
+
spaces: Optional[pulumi.Input[_builtins.int]] = None,
|
|
62
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[IndentResult]:
|
|
63
|
+
"""
|
|
64
|
+
Adds a given number of spaces after each newline character in the given string.
|
|
65
|
+
"""
|
|
66
|
+
__args__ = dict()
|
|
67
|
+
__args__['input'] = input
|
|
68
|
+
__args__['spaces'] = spaces
|
|
69
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
70
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:indent', __args__, opts=opts, typ=IndentResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: IndentResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/index.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
|
+
'IndexResult',
|
|
19
|
+
'AwaitableIndexResult',
|
|
20
|
+
'index',
|
|
21
|
+
'index_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class IndexResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, int):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a int")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> _builtins.int:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableIndexResult(IndexResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return IndexResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def index(element: Optional[Any] = None,
|
|
47
|
+
input: Optional[Sequence[Any]] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableIndexResult:
|
|
49
|
+
"""
|
|
50
|
+
Finds the index of a given element in a list.
|
|
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:index', __args__, opts=opts, typ=IndexResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableIndexResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def index_output(element: Optional[Any] = None,
|
|
61
|
+
input: Optional[pulumi.Input[Sequence[Any]]] = None,
|
|
62
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[IndexResult]:
|
|
63
|
+
"""
|
|
64
|
+
Finds the index of a given element in a list.
|
|
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:index', __args__, opts=opts, typ=IndexResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: IndexResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/join.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
|
+
'JoinResult',
|
|
19
|
+
'AwaitableJoinResult',
|
|
20
|
+
'join',
|
|
21
|
+
'join_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class JoinResult:
|
|
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 AwaitableJoinResult(JoinResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return JoinResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def join(input: Optional[Sequence[_builtins.str]] = None,
|
|
47
|
+
separator: Optional[_builtins.str] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableJoinResult:
|
|
49
|
+
"""
|
|
50
|
+
Joins the list with the delimiter for a resultant string.
|
|
51
|
+
"""
|
|
52
|
+
__args__ = dict()
|
|
53
|
+
__args__['input'] = input
|
|
54
|
+
__args__['separator'] = separator
|
|
55
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
56
|
+
__ret__ = pulumi.runtime.invoke('std:index:join', __args__, opts=opts, typ=JoinResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableJoinResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def join_output(input: Optional[pulumi.Input[Sequence[_builtins.str]]] = None,
|
|
61
|
+
separator: Optional[pulumi.Input[_builtins.str]] = None,
|
|
62
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[JoinResult]:
|
|
63
|
+
"""
|
|
64
|
+
Joins the list with the delimiter for a resultant string.
|
|
65
|
+
"""
|
|
66
|
+
__args__ = dict()
|
|
67
|
+
__args__['input'] = input
|
|
68
|
+
__args__['separator'] = separator
|
|
69
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
70
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:join', __args__, opts=opts, typ=JoinResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: JoinResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/jsondecode.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
|
+
'JsondecodeResult',
|
|
19
|
+
'AwaitableJsondecodeResult',
|
|
20
|
+
'jsondecode',
|
|
21
|
+
'jsondecode_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class JsondecodeResult:
|
|
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 AwaitableJsondecodeResult(JsondecodeResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return JsondecodeResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def jsondecode(input: Optional[_builtins.str] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableJsondecodeResult:
|
|
48
|
+
"""
|
|
49
|
+
Interprets a given string as JSON and returns a represetation
|
|
50
|
+
of the result of decoding that string.
|
|
51
|
+
If input is not valid JSON, the result will be the input unchanged.
|
|
52
|
+
"""
|
|
53
|
+
__args__ = dict()
|
|
54
|
+
__args__['input'] = input
|
|
55
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
56
|
+
__ret__ = pulumi.runtime.invoke('std:index:jsondecode', __args__, opts=opts, typ=JsondecodeResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableJsondecodeResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def jsondecode_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
61
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[JsondecodeResult]:
|
|
62
|
+
"""
|
|
63
|
+
Interprets a given string as JSON and returns a represetation
|
|
64
|
+
of the result of decoding that string.
|
|
65
|
+
If input is not valid JSON, the result will be the input unchanged.
|
|
66
|
+
"""
|
|
67
|
+
__args__ = dict()
|
|
68
|
+
__args__['input'] = input
|
|
69
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
70
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:jsondecode', __args__, opts=opts, typ=JsondecodeResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: JsondecodeResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/jsonencode.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
|
+
'JsonencodeResult',
|
|
19
|
+
'AwaitableJsonencodeResult',
|
|
20
|
+
'jsonencode',
|
|
21
|
+
'jsonencode_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class JsonencodeResult:
|
|
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 AwaitableJsonencodeResult(JsonencodeResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return JsonencodeResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def jsonencode(input: Optional[Any] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableJsonencodeResult:
|
|
48
|
+
"""
|
|
49
|
+
Returns a JSON-encoded representation of the given value,
|
|
50
|
+
which can contain arbitrarily-nested lists and maps.
|
|
51
|
+
Note that if the value is a string then its value will be placed in quotes.
|
|
52
|
+
"""
|
|
53
|
+
__args__ = dict()
|
|
54
|
+
__args__['input'] = input
|
|
55
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
56
|
+
__ret__ = pulumi.runtime.invoke('std:index:jsonencode', __args__, opts=opts, typ=JsonencodeResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableJsonencodeResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def jsonencode_output(input: Optional[Any] = None,
|
|
61
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[JsonencodeResult]:
|
|
62
|
+
"""
|
|
63
|
+
Returns a JSON-encoded representation of the given value,
|
|
64
|
+
which can contain arbitrarily-nested lists and maps.
|
|
65
|
+
Note that if the value is a string then its value will be placed in quotes.
|
|
66
|
+
"""
|
|
67
|
+
__args__ = dict()
|
|
68
|
+
__args__['input'] = input
|
|
69
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
70
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:jsonencode', __args__, opts=opts, typ=JsonencodeResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: JsonencodeResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/keys.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
|
+
'KeysResult',
|
|
19
|
+
'AwaitableKeysResult',
|
|
20
|
+
'keys',
|
|
21
|
+
'keys_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class KeysResult:
|
|
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[_builtins.str]:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableKeysResult(KeysResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return KeysResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def keys(input: Optional[Mapping[str, Any]] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableKeysResult:
|
|
48
|
+
"""
|
|
49
|
+
Returns a lexically sorted list of the map keys.
|
|
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:keys', __args__, opts=opts, typ=KeysResult).value
|
|
55
|
+
|
|
56
|
+
return AwaitableKeysResult(
|
|
57
|
+
result=pulumi.get(__ret__, 'result'))
|
|
58
|
+
def keys_output(input: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
|
59
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[KeysResult]:
|
|
60
|
+
"""
|
|
61
|
+
Returns a lexically sorted list of the map keys.
|
|
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:keys', __args__, opts=opts, typ=KeysResult)
|
|
67
|
+
return __ret__.apply(lambda __response__: KeysResult(
|
|
68
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/length.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
|
+
'LengthResult',
|
|
19
|
+
'AwaitableLengthResult',
|
|
20
|
+
'length',
|
|
21
|
+
'length_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class LengthResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, int):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a int")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> _builtins.int:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableLengthResult(LengthResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return LengthResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def length(input: Optional[Any] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableLengthResult:
|
|
48
|
+
"""
|
|
49
|
+
Determines the length of a given list, map, or 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:length', __args__, opts=opts, typ=LengthResult).value
|
|
55
|
+
|
|
56
|
+
return AwaitableLengthResult(
|
|
57
|
+
result=pulumi.get(__ret__, 'result'))
|
|
58
|
+
def length_output(input: Optional[Any] = None,
|
|
59
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[LengthResult]:
|
|
60
|
+
"""
|
|
61
|
+
Determines the length of a given list, map, or 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:length', __args__, opts=opts, typ=LengthResult)
|
|
67
|
+
return __ret__.apply(lambda __response__: LengthResult(
|
|
68
|
+
result=pulumi.get(__response__, 'result')))
|