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/startswith.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
|
+
'StartswithResult',
|
|
19
|
+
'AwaitableStartswithResult',
|
|
20
|
+
'startswith',
|
|
21
|
+
'startswith_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class StartswithResult:
|
|
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 AwaitableStartswithResult(StartswithResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return StartswithResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def startswith(input: Optional[_builtins.str] = None,
|
|
47
|
+
prefix: Optional[_builtins.str] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableStartswithResult:
|
|
49
|
+
"""
|
|
50
|
+
Determines if the input string starts with the suffix.
|
|
51
|
+
"""
|
|
52
|
+
__args__ = dict()
|
|
53
|
+
__args__['input'] = input
|
|
54
|
+
__args__['prefix'] = prefix
|
|
55
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
56
|
+
__ret__ = pulumi.runtime.invoke('std:index:startswith', __args__, opts=opts, typ=StartswithResult).value
|
|
57
|
+
|
|
58
|
+
return AwaitableStartswithResult(
|
|
59
|
+
result=pulumi.get(__ret__, 'result'))
|
|
60
|
+
def startswith_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
61
|
+
prefix: Optional[pulumi.Input[_builtins.str]] = None,
|
|
62
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[StartswithResult]:
|
|
63
|
+
"""
|
|
64
|
+
Determines if the input string starts with the suffix.
|
|
65
|
+
"""
|
|
66
|
+
__args__ = dict()
|
|
67
|
+
__args__['input'] = input
|
|
68
|
+
__args__['prefix'] = prefix
|
|
69
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
70
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:startswith', __args__, opts=opts, typ=StartswithResult)
|
|
71
|
+
return __ret__.apply(lambda __response__: StartswithResult(
|
|
72
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/strrev.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
|
+
'StrrevResult',
|
|
19
|
+
'AwaitableStrrevResult',
|
|
20
|
+
'strrev',
|
|
21
|
+
'strrev_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class StrrevResult:
|
|
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 AwaitableStrrevResult(StrrevResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return StrrevResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def strrev(input: Optional[_builtins.str] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableStrrevResult:
|
|
48
|
+
"""
|
|
49
|
+
Returns the given string with all of its Unicode characters in reverse order.
|
|
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:strrev', __args__, opts=opts, typ=StrrevResult).value
|
|
55
|
+
|
|
56
|
+
return AwaitableStrrevResult(
|
|
57
|
+
result=pulumi.get(__ret__, 'result'))
|
|
58
|
+
def strrev_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
59
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[StrrevResult]:
|
|
60
|
+
"""
|
|
61
|
+
Returns the given string with all of its Unicode characters in reverse order.
|
|
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:strrev', __args__, opts=opts, typ=StrrevResult)
|
|
67
|
+
return __ret__.apply(lambda __response__: StrrevResult(
|
|
68
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/substr.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
'SubstrResult',
|
|
19
|
+
'AwaitableSubstrResult',
|
|
20
|
+
'substr',
|
|
21
|
+
'substr_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class SubstrResult:
|
|
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 AwaitableSubstrResult(SubstrResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return SubstrResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def substr(input: Optional[_builtins.str] = None,
|
|
47
|
+
length: Optional[_builtins.int] = None,
|
|
48
|
+
offset: Optional[_builtins.int] = None,
|
|
49
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableSubstrResult:
|
|
50
|
+
"""
|
|
51
|
+
Extracts a substring from the given string.
|
|
52
|
+
"""
|
|
53
|
+
__args__ = dict()
|
|
54
|
+
__args__['input'] = input
|
|
55
|
+
__args__['length'] = length
|
|
56
|
+
__args__['offset'] = offset
|
|
57
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
58
|
+
__ret__ = pulumi.runtime.invoke('std:index:substr', __args__, opts=opts, typ=SubstrResult).value
|
|
59
|
+
|
|
60
|
+
return AwaitableSubstrResult(
|
|
61
|
+
result=pulumi.get(__ret__, 'result'))
|
|
62
|
+
def substr_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
63
|
+
length: Optional[pulumi.Input[_builtins.int]] = None,
|
|
64
|
+
offset: Optional[pulumi.Input[_builtins.int]] = None,
|
|
65
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[SubstrResult]:
|
|
66
|
+
"""
|
|
67
|
+
Extracts a substring from the given string.
|
|
68
|
+
"""
|
|
69
|
+
__args__ = dict()
|
|
70
|
+
__args__['input'] = input
|
|
71
|
+
__args__['length'] = length
|
|
72
|
+
__args__['offset'] = offset
|
|
73
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
74
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:substr', __args__, opts=opts, typ=SubstrResult)
|
|
75
|
+
return __ret__.apply(lambda __response__: SubstrResult(
|
|
76
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/sum.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
|
+
'SumResult',
|
|
19
|
+
'AwaitableSumResult',
|
|
20
|
+
'sum',
|
|
21
|
+
'sum_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class SumResult:
|
|
26
|
+
def __init__(__self__, result=None):
|
|
27
|
+
if result and not isinstance(result, float):
|
|
28
|
+
raise TypeError("Expected argument 'result' to be a float")
|
|
29
|
+
pulumi.set(__self__, "result", result)
|
|
30
|
+
|
|
31
|
+
@_builtins.property
|
|
32
|
+
@pulumi.getter
|
|
33
|
+
def result(self) -> _builtins.float:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableSumResult(SumResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return SumResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def sum(input: Optional[Sequence[_builtins.float]] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableSumResult:
|
|
48
|
+
"""
|
|
49
|
+
Returns the total sum of the elements of the input 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:sum', __args__, opts=opts, typ=SumResult).value
|
|
55
|
+
|
|
56
|
+
return AwaitableSumResult(
|
|
57
|
+
result=pulumi.get(__ret__, 'result'))
|
|
58
|
+
def sum_output(input: Optional[pulumi.Input[Sequence[_builtins.float]]] = None,
|
|
59
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[SumResult]:
|
|
60
|
+
"""
|
|
61
|
+
Returns the total sum of the elements of the input 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:sum', __args__, opts=opts, typ=SumResult)
|
|
67
|
+
return __ret__.apply(lambda __response__: SumResult(
|
|
68
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/timeadd.py
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
'TimeaddResult',
|
|
19
|
+
'AwaitableTimeaddResult',
|
|
20
|
+
'timeadd',
|
|
21
|
+
'timeadd_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class TimeaddResult:
|
|
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 AwaitableTimeaddResult(TimeaddResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return TimeaddResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def timeadd(duration: Optional[_builtins.str] = None,
|
|
47
|
+
timestamp: Optional[_builtins.str] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableTimeaddResult:
|
|
49
|
+
"""
|
|
50
|
+
Adds a duration to a timestamp, returning a new timestamp.
|
|
51
|
+
Timestamps are represented as strings using RFC 3339 "Date and time format" syntax.
|
|
52
|
+
'timestamp' must be a string adhering this syntax, i.e. "2017-11-22T00:00:00Z".
|
|
53
|
+
'duration' is a string representation of a time difference, comprised of sequences of
|
|
54
|
+
numbers and unit pairs, i.e. "3.5h" or "2h15m".
|
|
55
|
+
Accepted units are "ns", "us" or "µs", "ms", "s", "m", and "h". The first number may be negative
|
|
56
|
+
to provide a negative duration, i.e. "-2h15m".
|
|
57
|
+
"""
|
|
58
|
+
__args__ = dict()
|
|
59
|
+
__args__['duration'] = duration
|
|
60
|
+
__args__['timestamp'] = timestamp
|
|
61
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
62
|
+
__ret__ = pulumi.runtime.invoke('std:index:timeadd', __args__, opts=opts, typ=TimeaddResult).value
|
|
63
|
+
|
|
64
|
+
return AwaitableTimeaddResult(
|
|
65
|
+
result=pulumi.get(__ret__, 'result'))
|
|
66
|
+
def timeadd_output(duration: Optional[pulumi.Input[_builtins.str]] = None,
|
|
67
|
+
timestamp: Optional[pulumi.Input[_builtins.str]] = None,
|
|
68
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[TimeaddResult]:
|
|
69
|
+
"""
|
|
70
|
+
Adds a duration to a timestamp, returning a new timestamp.
|
|
71
|
+
Timestamps are represented as strings using RFC 3339 "Date and time format" syntax.
|
|
72
|
+
'timestamp' must be a string adhering this syntax, i.e. "2017-11-22T00:00:00Z".
|
|
73
|
+
'duration' is a string representation of a time difference, comprised of sequences of
|
|
74
|
+
numbers and unit pairs, i.e. "3.5h" or "2h15m".
|
|
75
|
+
Accepted units are "ns", "us" or "µs", "ms", "s", "m", and "h". The first number may be negative
|
|
76
|
+
to provide a negative duration, i.e. "-2h15m".
|
|
77
|
+
"""
|
|
78
|
+
__args__ = dict()
|
|
79
|
+
__args__['duration'] = duration
|
|
80
|
+
__args__['timestamp'] = timestamp
|
|
81
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
82
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:timeadd', __args__, opts=opts, typ=TimeaddResult)
|
|
83
|
+
return __ret__.apply(lambda __response__: TimeaddResult(
|
|
84
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/timecmp.py
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
'TimecmpResult',
|
|
19
|
+
'AwaitableTimecmpResult',
|
|
20
|
+
'timecmp',
|
|
21
|
+
'timecmp_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class TimecmpResult:
|
|
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 AwaitableTimecmpResult(TimecmpResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return TimecmpResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def timecmp(timestampa: Optional[_builtins.str] = None,
|
|
47
|
+
timestampb: Optional[_builtins.str] = None,
|
|
48
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableTimecmpResult:
|
|
49
|
+
"""
|
|
50
|
+
Compares two timestamps and returns a number that represents the ordering
|
|
51
|
+
of the instants those timestamps represent.
|
|
52
|
+
Timestamps are represented as strings using RFC 3339 "Date and time format" syntax.
|
|
53
|
+
Both timestamps must be strings adhering this syntax, i.e. "2017-11-22T00:00:00Z".
|
|
54
|
+
If 'timestamp_a' is before 'timestamp_b', -1 is returned.
|
|
55
|
+
If 'timestamp_a' is equal to 'timestamp_b', 0 is returned.
|
|
56
|
+
If 'timestamp_a' is after 'timestamp_b', 1 is returned.
|
|
57
|
+
"""
|
|
58
|
+
__args__ = dict()
|
|
59
|
+
__args__['timestampa'] = timestampa
|
|
60
|
+
__args__['timestampb'] = timestampb
|
|
61
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
62
|
+
__ret__ = pulumi.runtime.invoke('std:index:timecmp', __args__, opts=opts, typ=TimecmpResult).value
|
|
63
|
+
|
|
64
|
+
return AwaitableTimecmpResult(
|
|
65
|
+
result=pulumi.get(__ret__, 'result'))
|
|
66
|
+
def timecmp_output(timestampa: Optional[pulumi.Input[_builtins.str]] = None,
|
|
67
|
+
timestampb: Optional[pulumi.Input[_builtins.str]] = None,
|
|
68
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[TimecmpResult]:
|
|
69
|
+
"""
|
|
70
|
+
Compares two timestamps and returns a number that represents the ordering
|
|
71
|
+
of the instants those timestamps represent.
|
|
72
|
+
Timestamps are represented as strings using RFC 3339 "Date and time format" syntax.
|
|
73
|
+
Both timestamps must be strings adhering this syntax, i.e. "2017-11-22T00:00:00Z".
|
|
74
|
+
If 'timestamp_a' is before 'timestamp_b', -1 is returned.
|
|
75
|
+
If 'timestamp_a' is equal to 'timestamp_b', 0 is returned.
|
|
76
|
+
If 'timestamp_a' is after 'timestamp_b', 1 is returned.
|
|
77
|
+
"""
|
|
78
|
+
__args__ = dict()
|
|
79
|
+
__args__['timestampa'] = timestampa
|
|
80
|
+
__args__['timestampb'] = timestampb
|
|
81
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
82
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:timecmp', __args__, opts=opts, typ=TimecmpResult)
|
|
83
|
+
return __ret__.apply(lambda __response__: TimecmpResult(
|
|
84
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/timestamp.py
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
'TimestampResult',
|
|
19
|
+
'AwaitableTimestampResult',
|
|
20
|
+
'timestamp',
|
|
21
|
+
'timestamp_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class TimestampResult:
|
|
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 AwaitableTimestampResult(TimestampResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return TimestampResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def timestamp(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableTimestampResult:
|
|
47
|
+
"""
|
|
48
|
+
Returns a UTC timestamp string of the current time in RFC 3339 format
|
|
49
|
+
"""
|
|
50
|
+
__args__ = dict()
|
|
51
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
52
|
+
__ret__ = pulumi.runtime.invoke('std:index:timestamp', __args__, opts=opts, typ=TimestampResult).value
|
|
53
|
+
|
|
54
|
+
return AwaitableTimestampResult(
|
|
55
|
+
result=pulumi.get(__ret__, 'result'))
|
|
56
|
+
def timestamp_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[TimestampResult]:
|
|
57
|
+
"""
|
|
58
|
+
Returns a UTC timestamp string of the current time in RFC 3339 format
|
|
59
|
+
"""
|
|
60
|
+
__args__ = dict()
|
|
61
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
62
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:timestamp', __args__, opts=opts, typ=TimestampResult)
|
|
63
|
+
return __ret__.apply(lambda __response__: TimestampResult(
|
|
64
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/title.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
|
+
'TitleResult',
|
|
19
|
+
'AwaitableTitleResult',
|
|
20
|
+
'title',
|
|
21
|
+
'title_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class TitleResult:
|
|
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 AwaitableTitleResult(TitleResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return TitleResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def title(input: Optional[_builtins.str] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableTitleResult:
|
|
48
|
+
"""
|
|
49
|
+
Converts the first letter of each word in the given string to uppercase.
|
|
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:title', __args__, opts=opts, typ=TitleResult).value
|
|
55
|
+
|
|
56
|
+
return AwaitableTitleResult(
|
|
57
|
+
result=pulumi.get(__ret__, 'result'))
|
|
58
|
+
def title_output(input: Optional[pulumi.Input[_builtins.str]] = None,
|
|
59
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[TitleResult]:
|
|
60
|
+
"""
|
|
61
|
+
Converts the first letter of each word in the given string to uppercase.
|
|
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:title', __args__, opts=opts, typ=TitleResult)
|
|
67
|
+
return __ret__.apply(lambda __response__: TitleResult(
|
|
68
|
+
result=pulumi.get(__response__, 'result')))
|
pulumi_std/tobool.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
'ToboolResult',
|
|
19
|
+
'AwaitableToboolResult',
|
|
20
|
+
'tobool',
|
|
21
|
+
'tobool_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class ToboolResult:
|
|
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) -> Optional[_builtins.bool]:
|
|
34
|
+
return pulumi.get(self, "result")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AwaitableToboolResult(ToboolResult):
|
|
38
|
+
# pylint: disable=using-constant-test
|
|
39
|
+
def __await__(self):
|
|
40
|
+
if False:
|
|
41
|
+
yield self
|
|
42
|
+
return ToboolResult(
|
|
43
|
+
result=self.result)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def tobool(input: Optional[Any] = None,
|
|
47
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableToboolResult:
|
|
48
|
+
"""
|
|
49
|
+
Converts its argument to a boolean value. Only boolean values, null, and the exact strings
|
|
50
|
+
"true" and "false" can be converted to boolean. All other values will result in an error.
|
|
51
|
+
"""
|
|
52
|
+
__args__ = dict()
|
|
53
|
+
__args__['input'] = input
|
|
54
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
55
|
+
__ret__ = pulumi.runtime.invoke('std:index:tobool', __args__, opts=opts, typ=ToboolResult).value
|
|
56
|
+
|
|
57
|
+
return AwaitableToboolResult(
|
|
58
|
+
result=pulumi.get(__ret__, 'result'))
|
|
59
|
+
def tobool_output(input: Optional[Any] = None,
|
|
60
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[ToboolResult]:
|
|
61
|
+
"""
|
|
62
|
+
Converts its argument to a boolean value. Only boolean values, null, and the exact strings
|
|
63
|
+
"true" and "false" can be converted to boolean. All other values will result in an error.
|
|
64
|
+
"""
|
|
65
|
+
__args__ = dict()
|
|
66
|
+
__args__['input'] = input
|
|
67
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
68
|
+
__ret__ = pulumi.runtime.invoke_output('std:index:tobool', __args__, opts=opts, typ=ToboolResult)
|
|
69
|
+
return __ret__.apply(lambda __response__: ToboolResult(
|
|
70
|
+
result=pulumi.get(__response__, 'result')))
|