types-boto3-redshift 1.35.71__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.
- types_boto3_redshift/__init__.py +198 -0
- types_boto3_redshift/__init__.pyi +197 -0
- types_boto3_redshift/__main__.py +42 -0
- types_boto3_redshift/client.py +2370 -0
- types_boto3_redshift/client.pyi +2366 -0
- types_boto3_redshift/literals.py +688 -0
- types_boto3_redshift/literals.pyi +686 -0
- types_boto3_redshift/paginator.py +856 -0
- types_boto3_redshift/paginator.pyi +779 -0
- types_boto3_redshift/py.typed +0 -0
- types_boto3_redshift/type_defs.py +3191 -0
- types_boto3_redshift/type_defs.pyi +2810 -0
- types_boto3_redshift/version.py +7 -0
- types_boto3_redshift/waiter.py +107 -0
- types_boto3_redshift/waiter.pyi +98 -0
- types_boto3_redshift-1.35.71.dist-info/LICENSE +21 -0
- types_boto3_redshift-1.35.71.dist-info/METADATA +597 -0
- types_boto3_redshift-1.35.71.dist-info/RECORD +20 -0
- types_boto3_redshift-1.35.71.dist-info/WHEEL +5 -0
- types_boto3_redshift-1.35.71.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for redshift service client waiters.
|
|
3
|
+
|
|
4
|
+
[Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/)
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from boto3.session import Session
|
|
10
|
+
|
|
11
|
+
from types_boto3_redshift.client import RedshiftClient
|
|
12
|
+
from types_boto3_redshift.waiter import (
|
|
13
|
+
ClusterAvailableWaiter,
|
|
14
|
+
ClusterDeletedWaiter,
|
|
15
|
+
ClusterRestoredWaiter,
|
|
16
|
+
SnapshotAvailableWaiter,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
session = Session()
|
|
20
|
+
client: RedshiftClient = session.client("redshift")
|
|
21
|
+
|
|
22
|
+
cluster_available_waiter: ClusterAvailableWaiter = client.get_waiter("cluster_available")
|
|
23
|
+
cluster_deleted_waiter: ClusterDeletedWaiter = client.get_waiter("cluster_deleted")
|
|
24
|
+
cluster_restored_waiter: ClusterRestoredWaiter = client.get_waiter("cluster_restored")
|
|
25
|
+
snapshot_available_waiter: SnapshotAvailableWaiter = client.get_waiter("snapshot_available")
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Copyright 2024 Vlad Emelianov
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
import sys
|
|
32
|
+
|
|
33
|
+
from botocore.waiter import Waiter
|
|
34
|
+
|
|
35
|
+
from .type_defs import (
|
|
36
|
+
DescribeClustersMessageClusterAvailableWaitTypeDef,
|
|
37
|
+
DescribeClustersMessageClusterDeletedWaitTypeDef,
|
|
38
|
+
DescribeClustersMessageClusterRestoredWaitTypeDef,
|
|
39
|
+
DescribeClusterSnapshotsMessageSnapshotAvailableWaitTypeDef,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
if sys.version_info >= (3, 12):
|
|
43
|
+
from typing import Unpack
|
|
44
|
+
else:
|
|
45
|
+
from typing_extensions import Unpack
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
__all__ = (
|
|
49
|
+
"ClusterAvailableWaiter",
|
|
50
|
+
"ClusterDeletedWaiter",
|
|
51
|
+
"ClusterRestoredWaiter",
|
|
52
|
+
"SnapshotAvailableWaiter",
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class ClusterAvailableWaiter(Waiter):
|
|
57
|
+
"""
|
|
58
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterAvailable.html#Redshift.Waiter.ClusterAvailable)
|
|
59
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusteravailablewaiter)
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
def wait(self, **kwargs: Unpack[DescribeClustersMessageClusterAvailableWaitTypeDef]) -> None:
|
|
63
|
+
"""
|
|
64
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterAvailable.html#Redshift.Waiter.ClusterAvailable.wait)
|
|
65
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusteravailablewaiter)
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class ClusterDeletedWaiter(Waiter):
|
|
70
|
+
"""
|
|
71
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterDeleted.html#Redshift.Waiter.ClusterDeleted)
|
|
72
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusterdeletedwaiter)
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
def wait(self, **kwargs: Unpack[DescribeClustersMessageClusterDeletedWaitTypeDef]) -> None:
|
|
76
|
+
"""
|
|
77
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterDeleted.html#Redshift.Waiter.ClusterDeleted.wait)
|
|
78
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusterdeletedwaiter)
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class ClusterRestoredWaiter(Waiter):
|
|
83
|
+
"""
|
|
84
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterRestored.html#Redshift.Waiter.ClusterRestored)
|
|
85
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusterrestoredwaiter)
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
def wait(self, **kwargs: Unpack[DescribeClustersMessageClusterRestoredWaitTypeDef]) -> None:
|
|
89
|
+
"""
|
|
90
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterRestored.html#Redshift.Waiter.ClusterRestored.wait)
|
|
91
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusterrestoredwaiter)
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class SnapshotAvailableWaiter(Waiter):
|
|
96
|
+
"""
|
|
97
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/SnapshotAvailable.html#Redshift.Waiter.SnapshotAvailable)
|
|
98
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#snapshotavailablewaiter)
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
def wait(
|
|
102
|
+
self, **kwargs: Unpack[DescribeClusterSnapshotsMessageSnapshotAvailableWaitTypeDef]
|
|
103
|
+
) -> None:
|
|
104
|
+
"""
|
|
105
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/SnapshotAvailable.html#Redshift.Waiter.SnapshotAvailable.wait)
|
|
106
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#snapshotavailablewaiter)
|
|
107
|
+
"""
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for redshift service client waiters.
|
|
3
|
+
|
|
4
|
+
[Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/)
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from boto3.session import Session
|
|
10
|
+
|
|
11
|
+
from types_boto3_redshift.client import RedshiftClient
|
|
12
|
+
from types_boto3_redshift.waiter import (
|
|
13
|
+
ClusterAvailableWaiter,
|
|
14
|
+
ClusterDeletedWaiter,
|
|
15
|
+
ClusterRestoredWaiter,
|
|
16
|
+
SnapshotAvailableWaiter,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
session = Session()
|
|
20
|
+
client: RedshiftClient = session.client("redshift")
|
|
21
|
+
|
|
22
|
+
cluster_available_waiter: ClusterAvailableWaiter = client.get_waiter("cluster_available")
|
|
23
|
+
cluster_deleted_waiter: ClusterDeletedWaiter = client.get_waiter("cluster_deleted")
|
|
24
|
+
cluster_restored_waiter: ClusterRestoredWaiter = client.get_waiter("cluster_restored")
|
|
25
|
+
snapshot_available_waiter: SnapshotAvailableWaiter = client.get_waiter("snapshot_available")
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Copyright 2024 Vlad Emelianov
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
import sys
|
|
32
|
+
|
|
33
|
+
from botocore.waiter import Waiter
|
|
34
|
+
|
|
35
|
+
from .type_defs import (
|
|
36
|
+
DescribeClustersMessageClusterAvailableWaitTypeDef,
|
|
37
|
+
DescribeClustersMessageClusterDeletedWaitTypeDef,
|
|
38
|
+
DescribeClustersMessageClusterRestoredWaitTypeDef,
|
|
39
|
+
DescribeClusterSnapshotsMessageSnapshotAvailableWaitTypeDef,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
if sys.version_info >= (3, 12):
|
|
43
|
+
from typing import Unpack
|
|
44
|
+
else:
|
|
45
|
+
from typing_extensions import Unpack
|
|
46
|
+
|
|
47
|
+
__all__ = (
|
|
48
|
+
"ClusterAvailableWaiter",
|
|
49
|
+
"ClusterDeletedWaiter",
|
|
50
|
+
"ClusterRestoredWaiter",
|
|
51
|
+
"SnapshotAvailableWaiter",
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
class ClusterAvailableWaiter(Waiter):
|
|
55
|
+
"""
|
|
56
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterAvailable.html#Redshift.Waiter.ClusterAvailable)
|
|
57
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusteravailablewaiter)
|
|
58
|
+
"""
|
|
59
|
+
def wait(self, **kwargs: Unpack[DescribeClustersMessageClusterAvailableWaitTypeDef]) -> None:
|
|
60
|
+
"""
|
|
61
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterAvailable.html#Redshift.Waiter.ClusterAvailable.wait)
|
|
62
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusteravailablewaiter)
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
class ClusterDeletedWaiter(Waiter):
|
|
66
|
+
"""
|
|
67
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterDeleted.html#Redshift.Waiter.ClusterDeleted)
|
|
68
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusterdeletedwaiter)
|
|
69
|
+
"""
|
|
70
|
+
def wait(self, **kwargs: Unpack[DescribeClustersMessageClusterDeletedWaitTypeDef]) -> None:
|
|
71
|
+
"""
|
|
72
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterDeleted.html#Redshift.Waiter.ClusterDeleted.wait)
|
|
73
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusterdeletedwaiter)
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
class ClusterRestoredWaiter(Waiter):
|
|
77
|
+
"""
|
|
78
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterRestored.html#Redshift.Waiter.ClusterRestored)
|
|
79
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusterrestoredwaiter)
|
|
80
|
+
"""
|
|
81
|
+
def wait(self, **kwargs: Unpack[DescribeClustersMessageClusterRestoredWaitTypeDef]) -> None:
|
|
82
|
+
"""
|
|
83
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/ClusterRestored.html#Redshift.Waiter.ClusterRestored.wait)
|
|
84
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#clusterrestoredwaiter)
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
class SnapshotAvailableWaiter(Waiter):
|
|
88
|
+
"""
|
|
89
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/SnapshotAvailable.html#Redshift.Waiter.SnapshotAvailable)
|
|
90
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#snapshotavailablewaiter)
|
|
91
|
+
"""
|
|
92
|
+
def wait(
|
|
93
|
+
self, **kwargs: Unpack[DescribeClusterSnapshotsMessageSnapshotAvailableWaitTypeDef]
|
|
94
|
+
) -> None:
|
|
95
|
+
"""
|
|
96
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/waiter/SnapshotAvailable.html#Redshift.Waiter.SnapshotAvailable.wait)
|
|
97
|
+
[Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift/waiters/#snapshotavailablewaiter)
|
|
98
|
+
"""
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Vlad Emelianov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|