capo-keyspaces 0.1.0__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.
- capo_keyspaces/__init__.py +70 -0
- capo_keyspaces/_async.py +25 -0
- capo_keyspaces/_auth/_identity.py +16 -0
- capo_keyspaces/_auth/_providers.py +886 -0
- capo_keyspaces/_auth/_signers.py +88 -0
- capo_keyspaces/_auth/_sigv4.py +434 -0
- capo_keyspaces/_auth/_zapros_handler.py +80 -0
- capo_keyspaces/_iter.py +113 -0
- capo_keyspaces/_operations/keyspaces_service/create_keyspace.py +170 -0
- capo_keyspaces/_operations/keyspaces_service/create_table.py +183 -0
- capo_keyspaces/_operations/keyspaces_service/create_type.py +172 -0
- capo_keyspaces/_operations/keyspaces_service/delete_keyspace.py +165 -0
- capo_keyspaces/_operations/keyspaces_service/delete_table.py +163 -0
- capo_keyspaces/_operations/keyspaces_service/delete_type.py +171 -0
- capo_keyspaces/_operations/keyspaces_service/get_keyspace.py +168 -0
- capo_keyspaces/_operations/keyspaces_service/get_table.py +173 -0
- capo_keyspaces/_operations/keyspaces_service/get_table_auto_scaling_settings.py +168 -0
- capo_keyspaces/_operations/keyspaces_service/get_type.py +166 -0
- capo_keyspaces/_operations/keyspaces_service/list_keyspaces.py +167 -0
- capo_keyspaces/_operations/keyspaces_service/list_tables.py +167 -0
- capo_keyspaces/_operations/keyspaces_service/list_tags_for_resource.py +167 -0
- capo_keyspaces/_operations/keyspaces_service/list_types.py +163 -0
- capo_keyspaces/_operations/keyspaces_service/restore_table.py +178 -0
- capo_keyspaces/_operations/keyspaces_service/tag_resource.py +164 -0
- capo_keyspaces/_operations/keyspaces_service/untag_resource.py +164 -0
- capo_keyspaces/_operations/keyspaces_service/update_keyspace.py +175 -0
- capo_keyspaces/_operations/keyspaces_service/update_table.py +181 -0
- capo_keyspaces/_pagination.py +21 -0
- capo_keyspaces/_protocol/__init__.py +1 -0
- capo_keyspaces/_protocol/errors.py +93 -0
- capo_keyspaces/_protocol/eventstream.py +238 -0
- capo_keyspaces/_protocol/serialize.py +47 -0
- capo_keyspaces/_protocol/xml.py +33 -0
- capo_keyspaces/_rule_engine/__init__.py +0 -0
- capo_keyspaces/_rule_engine/_aws_partition.py +160 -0
- capo_keyspaces/_rule_engine/_endpoint_rule_set.py +150 -0
- capo_keyspaces/_rule_engine/_endpoint_runtime.py +389 -0
- capo_keyspaces/_services/_aws_config.py +160 -0
- capo_keyspaces/_services/_pipeline.py +198 -0
- capo_keyspaces/_services/async_keyspaces.py +1467 -0
- capo_keyspaces/_services/keyspaces.py +1448 -0
- capo_keyspaces/errors/__init__.py +35 -0
- capo_keyspaces/errors/_base.py +94 -0
- capo_keyspaces/errors/access_denied_exception.py +47 -0
- capo_keyspaces/errors/conflict_exception.py +47 -0
- capo_keyspaces/errors/internal_server_exception.py +47 -0
- capo_keyspaces/errors/resource_not_found_exception.py +58 -0
- capo_keyspaces/errors/service_quota_exceeded_exception.py +49 -0
- capo_keyspaces/errors/validation_exception.py +47 -0
- capo_keyspaces/py.typed +0 -0
- capo_keyspaces/types/_prelude/blob.py +12 -0
- capo_keyspaces/types/_prelude/timestamp.py +17 -0
- capo_keyspaces/types/arn.py +5 -0
- capo_keyspaces/types/auto_scaling_policy.py +42 -0
- capo_keyspaces/types/auto_scaling_settings.py +63 -0
- capo_keyspaces/types/auto_scaling_specification.py +62 -0
- capo_keyspaces/types/boolean_object.py +5 -0
- capo_keyspaces/types/capacity_specification.py +48 -0
- capo_keyspaces/types/capacity_specification_summary.py +71 -0
- capo_keyspaces/types/capacity_units.py +5 -0
- capo_keyspaces/types/cdc_propagate_tags.py +5 -0
- capo_keyspaces/types/cdc_specification.py +62 -0
- capo_keyspaces/types/cdc_specification_summary.py +38 -0
- capo_keyspaces/types/cdc_status.py +5 -0
- capo_keyspaces/types/client_side_timestamps.py +33 -0
- capo_keyspaces/types/client_side_timestamps_status.py +5 -0
- capo_keyspaces/types/clustering_key.py +39 -0
- capo_keyspaces/types/clustering_key_list.py +29 -0
- capo_keyspaces/types/column_definition.py +38 -0
- capo_keyspaces/types/column_definition_list.py +33 -0
- capo_keyspaces/types/comment.py +26 -0
- capo_keyspaces/types/create_keyspace_request.py +67 -0
- capo_keyspaces/types/create_keyspace_response.py +31 -0
- capo_keyspaces/types/create_table_request.py +281 -0
- capo_keyspaces/types/create_table_response.py +31 -0
- capo_keyspaces/types/create_type_request.py +57 -0
- capo_keyspaces/types/create_type_response.py +39 -0
- capo_keyspaces/types/default_time_to_live.py +5 -0
- capo_keyspaces/types/delete_keyspace_request.py +31 -0
- capo_keyspaces/types/delete_keyspace_response.py +18 -0
- capo_keyspaces/types/delete_table_request.py +39 -0
- capo_keyspaces/types/delete_table_response.py +18 -0
- capo_keyspaces/types/delete_type_request.py +39 -0
- capo_keyspaces/types/delete_type_response.py +39 -0
- capo_keyspaces/types/depth.py +5 -0
- capo_keyspaces/types/double_object.py +5 -0
- capo_keyspaces/types/encryption_specification.py +38 -0
- capo_keyspaces/types/encryption_type.py +5 -0
- capo_keyspaces/types/field_definition.py +38 -0
- capo_keyspaces/types/field_list.py +29 -0
- capo_keyspaces/types/generic_string.py +5 -0
- capo_keyspaces/types/get_keyspace_request.py +31 -0
- capo_keyspaces/types/get_keyspace_response.py +87 -0
- capo_keyspaces/types/get_table_auto_scaling_settings_request.py +43 -0
- capo_keyspaces/types/get_table_auto_scaling_settings_response.py +95 -0
- capo_keyspaces/types/get_table_request.py +39 -0
- capo_keyspaces/types/get_table_response.py +287 -0
- capo_keyspaces/types/get_type_request.py +39 -0
- capo_keyspaces/types/get_type_response.py +140 -0
- capo_keyspaces/types/integer_object.py +5 -0
- capo_keyspaces/types/keyspace_name.py +5 -0
- capo_keyspaces/types/keyspace_status.py +5 -0
- capo_keyspaces/types/keyspace_summary.py +66 -0
- capo_keyspaces/types/keyspace_summary_list.py +31 -0
- capo_keyspaces/types/kms_key_arn.py +5 -0
- capo_keyspaces/types/list_keyspaces_request.py +35 -0
- capo_keyspaces/types/list_keyspaces_response.py +50 -0
- capo_keyspaces/types/list_tables_request.py +45 -0
- capo_keyspaces/types/list_tables_response.py +45 -0
- capo_keyspaces/types/list_tags_for_resource_request.py +45 -0
- capo_keyspaces/types/list_tags_for_resource_response.py +43 -0
- capo_keyspaces/types/list_types_request.py +45 -0
- capo_keyspaces/types/list_types_response.py +46 -0
- capo_keyspaces/types/max_results.py +5 -0
- capo_keyspaces/types/next_token.py +5 -0
- capo_keyspaces/types/partition_key.py +31 -0
- capo_keyspaces/types/partition_key_list.py +29 -0
- capo_keyspaces/types/point_in_time_recovery.py +33 -0
- capo_keyspaces/types/point_in_time_recovery_status.py +5 -0
- capo_keyspaces/types/point_in_time_recovery_summary.py +54 -0
- capo_keyspaces/types/region.py +5 -0
- capo_keyspaces/types/region_list.py +17 -0
- capo_keyspaces/types/replica_auto_scaling_specification.py +49 -0
- capo_keyspaces/types/replica_auto_scaling_specification_list.py +39 -0
- capo_keyspaces/types/replica_specification.py +61 -0
- capo_keyspaces/types/replica_specification_list.py +35 -0
- capo_keyspaces/types/replica_specification_summary.py +76 -0
- capo_keyspaces/types/replica_specification_summary_list.py +39 -0
- capo_keyspaces/types/replication_group_status.py +48 -0
- capo_keyspaces/types/replication_group_status_list.py +35 -0
- capo_keyspaces/types/replication_specification.py +48 -0
- capo_keyspaces/types/restore_table_request.py +190 -0
- capo_keyspaces/types/restore_table_response.py +31 -0
- capo_keyspaces/types/rs.py +5 -0
- capo_keyspaces/types/schema_definition.py +105 -0
- capo_keyspaces/types/sort_order.py +5 -0
- capo_keyspaces/types/static_column.py +31 -0
- capo_keyspaces/types/static_column_list.py +29 -0
- capo_keyspaces/types/stream_arn.py +5 -0
- capo_keyspaces/types/table_name.py +5 -0
- capo_keyspaces/types/table_name_list.py +17 -0
- capo_keyspaces/types/table_status.py +5 -0
- capo_keyspaces/types/table_summary.py +47 -0
- capo_keyspaces/types/table_summary_list.py +29 -0
- capo_keyspaces/types/tables_replication_progress.py +5 -0
- capo_keyspaces/types/tag.py +39 -0
- capo_keyspaces/types/tag_key.py +5 -0
- capo_keyspaces/types/tag_list.py +29 -0
- capo_keyspaces/types/tag_resource_request.py +45 -0
- capo_keyspaces/types/tag_resource_response.py +18 -0
- capo_keyspaces/types/tag_value.py +5 -0
- capo_keyspaces/types/target_tracking_scaling_policy_configuration.py +60 -0
- capo_keyspaces/types/throughput_mode.py +5 -0
- capo_keyspaces/types/time_to_live.py +31 -0
- capo_keyspaces/types/time_to_live_status.py +5 -0
- capo_keyspaces/types/timestamp.py +20 -0
- capo_keyspaces/types/type_name.py +5 -0
- capo_keyspaces/types/type_name_list.py +17 -0
- capo_keyspaces/types/type_status.py +5 -0
- capo_keyspaces/types/untag_resource_request.py +45 -0
- capo_keyspaces/types/untag_resource_response.py +18 -0
- capo_keyspaces/types/update_keyspace_request.py +74 -0
- capo_keyspaces/types/update_keyspace_response.py +31 -0
- capo_keyspaces/types/update_table_request.py +252 -0
- capo_keyspaces/types/update_table_response.py +31 -0
- capo_keyspaces/types/view_type.py +5 -0
- capo_keyspaces/types/warm_throughput_specification.py +29 -0
- capo_keyspaces/types/warm_throughput_specification_summary.py +49 -0
- capo_keyspaces/types/warm_throughput_status.py +5 -0
- capo_keyspaces-0.1.0.dist-info/METADATA +101 -0
- capo_keyspaces-0.1.0.dist-info/RECORD +174 -0
- capo_keyspaces-0.1.0.dist-info/WHEEL +5 -0
- capo_keyspaces-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_keyspaces-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.keyspaces#EncryptionSpecification``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_keyspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_keyspaces.types.encryption_type
|
|
11
|
+
import capo_keyspaces.types.kms_key_arn
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class EncryptionSpecification(TypedDict, closed=True):
|
|
15
|
+
type: "capo_keyspaces.types.encryption_type.EncryptionType"
|
|
16
|
+
r"""<p>The encryption option specified for the table. You can choose one of the following KMS keys (KMS keys):</p> <ul> <li> <p> <code>type:AWS_OWNED_KMS_KEY</code> - This key is owned by Amazon Keyspaces. </p> </li> <li> <p> <code>type:CUSTOMER_MANAGED_KMS_KEY</code> - This key is stored in your account and is created, owned, and managed by you. This option requires the <code>kms_key_identifier</code> of the KMS key in Amazon Resource Name (ARN) format as input. </p> </li> </ul> <p>The default is <code>type:AWS_OWNED_KMS_KEY</code>. </p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html\">Encryption at rest</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>"""
|
|
17
|
+
kms_key_identifier: NotRequired["capo_keyspaces.types.kms_key_arn.kmsKeyARN"]
|
|
18
|
+
"""<p>The Amazon Resource Name (ARN) of the customer managed KMS key, for example <code>kms_key_identifier:ARN</code>.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- awsJson1_0 ser/de ---
|
|
22
|
+
def serialize_aws_json_1_0(value: EncryptionSpecification) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
out["type"] = value["type"]
|
|
25
|
+
if "kms_key_identifier" in value:
|
|
26
|
+
out["kmsKeyIdentifier"] = value["kms_key_identifier"]
|
|
27
|
+
return out
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def deserialize_aws_json_1_0(data: dict) -> EncryptionSpecification:
|
|
31
|
+
out: EncryptionSpecification = {} # type: ignore[typeddict-item]
|
|
32
|
+
if data.get("type") is not None:
|
|
33
|
+
out["type"] = data["type"]
|
|
34
|
+
else:
|
|
35
|
+
raise DeserializationError("EncryptionSpecification.type required")
|
|
36
|
+
if data.get("kmsKeyIdentifier") is not None:
|
|
37
|
+
out["kms_key_identifier"] = data["kmsKeyIdentifier"]
|
|
38
|
+
return out
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.keyspaces#FieldDefinition``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_keyspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_keyspaces.types.generic_string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class FieldDefinition(TypedDict, closed=True):
|
|
14
|
+
name: "capo_keyspaces.types.generic_string.GenericString"
|
|
15
|
+
"""<p> The identifier. </p>"""
|
|
16
|
+
type: "capo_keyspaces.types.generic_string.GenericString"
|
|
17
|
+
r"""<p> Any supported Cassandra data type, including collections and other user-defined types that are contained in the same keyspace. </p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/keyspaces/latest/devguide/cassandra-apis.html#cassandra-data-type\">Cassandra data type support</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# --- awsJson1_0 ser/de ---
|
|
21
|
+
def serialize_aws_json_1_0(value: FieldDefinition) -> dict:
|
|
22
|
+
out: dict = {}
|
|
23
|
+
out["name"] = value["name"]
|
|
24
|
+
out["type"] = value["type"]
|
|
25
|
+
return out
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def deserialize_aws_json_1_0(data: dict) -> FieldDefinition:
|
|
29
|
+
out: FieldDefinition = {} # type: ignore[typeddict-item]
|
|
30
|
+
if data.get("name") is not None:
|
|
31
|
+
out["name"] = data["name"]
|
|
32
|
+
else:
|
|
33
|
+
raise DeserializationError("FieldDefinition.name required")
|
|
34
|
+
if data.get("type") is not None:
|
|
35
|
+
out["type"] = data["type"]
|
|
36
|
+
else:
|
|
37
|
+
raise DeserializationError("FieldDefinition.type required")
|
|
38
|
+
return out
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.keyspaces#FieldList``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_keyspaces.types.field_definition
|
|
7
|
+
|
|
8
|
+
FieldList: TypeAlias = list["capo_keyspaces.types.field_definition.FieldDefinition"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# --- awsJson1_0 ser/de ---
|
|
12
|
+
def serialize_aws_json_1_0(value: FieldList) -> list:
|
|
13
|
+
import capo_keyspaces.types.field_definition
|
|
14
|
+
|
|
15
|
+
out: list = []
|
|
16
|
+
for item in value:
|
|
17
|
+
out.append(capo_keyspaces.types.field_definition.serialize_aws_json_1_0(item))
|
|
18
|
+
return out
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_aws_json_1_0(data: list) -> FieldList:
|
|
22
|
+
import capo_keyspaces.types.field_definition
|
|
23
|
+
|
|
24
|
+
out: FieldList = []
|
|
25
|
+
for item in data:
|
|
26
|
+
if item is None:
|
|
27
|
+
continue
|
|
28
|
+
out.append(capo_keyspaces.types.field_definition.deserialize_aws_json_1_0(item))
|
|
29
|
+
return out
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.keyspaces#GetKeyspaceRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_keyspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_keyspaces.types.keyspace_name
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class GetKeyspaceRequest(TypedDict, closed=True):
|
|
14
|
+
keyspace_name: "capo_keyspaces.types.keyspace_name.KeyspaceName"
|
|
15
|
+
"""<p>The name of the keyspace.</p>"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# --- awsJson1_0 ser/de ---
|
|
19
|
+
def serialize_aws_json_1_0(value: GetKeyspaceRequest) -> dict:
|
|
20
|
+
out: dict = {}
|
|
21
|
+
out["keyspaceName"] = value["keyspace_name"]
|
|
22
|
+
return out
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def deserialize_aws_json_1_0(data: dict) -> GetKeyspaceRequest:
|
|
26
|
+
out: GetKeyspaceRequest = {} # type: ignore[typeddict-item]
|
|
27
|
+
if data.get("keyspaceName") is not None:
|
|
28
|
+
out["keyspace_name"] = data["keyspaceName"]
|
|
29
|
+
else:
|
|
30
|
+
raise DeserializationError("GetKeyspaceRequest.keyspace_name required")
|
|
31
|
+
return out
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.keyspaces#GetKeyspaceResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_keyspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_keyspaces.types.arn
|
|
11
|
+
import capo_keyspaces.types.keyspace_name
|
|
12
|
+
import capo_keyspaces.types.region_list
|
|
13
|
+
import capo_keyspaces.types.replication_group_status_list
|
|
14
|
+
import capo_keyspaces.types.rs
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GetKeyspaceResponse(TypedDict, closed=True):
|
|
18
|
+
keyspace_name: "capo_keyspaces.types.keyspace_name.KeyspaceName"
|
|
19
|
+
"""<p>The name of the keyspace.</p>"""
|
|
20
|
+
resource_arn: "capo_keyspaces.types.arn.ARN"
|
|
21
|
+
"""<p>Returns the ARN of the keyspace.</p>"""
|
|
22
|
+
replication_strategy: "capo_keyspaces.types.rs.rs"
|
|
23
|
+
"""<p> Returns the replication strategy of the keyspace. The options are <code>SINGLE_REGION</code> or <code>MULTI_REGION</code>. </p>"""
|
|
24
|
+
replication_regions: NotRequired["capo_keyspaces.types.region_list.RegionList"]
|
|
25
|
+
"""<p> If the <code>replicationStrategy</code> of the keyspace is <code>MULTI_REGION</code>, a list of replication Regions is returned. </p>"""
|
|
26
|
+
replication_group_statuses: NotRequired[
|
|
27
|
+
"capo_keyspaces.types.replication_group_status_list.ReplicationGroupStatusList"
|
|
28
|
+
]
|
|
29
|
+
"""<p> A list of all Regions the keyspace is replicated in after the update keyspace operation and their status. </p>"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# --- awsJson1_0 ser/de ---
|
|
33
|
+
def serialize_aws_json_1_0(value: GetKeyspaceResponse) -> dict:
|
|
34
|
+
out: dict = {}
|
|
35
|
+
out["keyspaceName"] = value["keyspace_name"]
|
|
36
|
+
out["resourceArn"] = value["resource_arn"]
|
|
37
|
+
out["replicationStrategy"] = value["replication_strategy"]
|
|
38
|
+
if "replication_regions" in value:
|
|
39
|
+
import capo_keyspaces.types.region_list
|
|
40
|
+
|
|
41
|
+
out["replicationRegions"] = (
|
|
42
|
+
capo_keyspaces.types.region_list.serialize_aws_json_1_0(
|
|
43
|
+
value["replication_regions"]
|
|
44
|
+
)
|
|
45
|
+
)
|
|
46
|
+
if "replication_group_statuses" in value:
|
|
47
|
+
import capo_keyspaces.types.replication_group_status_list
|
|
48
|
+
|
|
49
|
+
out["replicationGroupStatuses"] = (
|
|
50
|
+
capo_keyspaces.types.replication_group_status_list.serialize_aws_json_1_0(
|
|
51
|
+
value["replication_group_statuses"]
|
|
52
|
+
)
|
|
53
|
+
)
|
|
54
|
+
return out
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def deserialize_aws_json_1_0(data: dict) -> GetKeyspaceResponse:
|
|
58
|
+
out: GetKeyspaceResponse = {} # type: ignore[typeddict-item]
|
|
59
|
+
if data.get("keyspaceName") is not None:
|
|
60
|
+
out["keyspace_name"] = data["keyspaceName"]
|
|
61
|
+
else:
|
|
62
|
+
raise DeserializationError("GetKeyspaceResponse.keyspace_name required")
|
|
63
|
+
if data.get("resourceArn") is not None:
|
|
64
|
+
out["resource_arn"] = data["resourceArn"]
|
|
65
|
+
else:
|
|
66
|
+
raise DeserializationError("GetKeyspaceResponse.resource_arn required")
|
|
67
|
+
if data.get("replicationStrategy") is not None:
|
|
68
|
+
out["replication_strategy"] = data["replicationStrategy"]
|
|
69
|
+
else:
|
|
70
|
+
raise DeserializationError("GetKeyspaceResponse.replication_strategy required")
|
|
71
|
+
if data.get("replicationRegions") is not None:
|
|
72
|
+
import capo_keyspaces.types.region_list
|
|
73
|
+
|
|
74
|
+
out["replication_regions"] = (
|
|
75
|
+
capo_keyspaces.types.region_list.deserialize_aws_json_1_0(
|
|
76
|
+
data["replicationRegions"]
|
|
77
|
+
)
|
|
78
|
+
)
|
|
79
|
+
if data.get("replicationGroupStatuses") is not None:
|
|
80
|
+
import capo_keyspaces.types.replication_group_status_list
|
|
81
|
+
|
|
82
|
+
out["replication_group_statuses"] = (
|
|
83
|
+
capo_keyspaces.types.replication_group_status_list.deserialize_aws_json_1_0(
|
|
84
|
+
data["replicationGroupStatuses"]
|
|
85
|
+
)
|
|
86
|
+
)
|
|
87
|
+
return out
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.keyspaces#GetTableAutoScalingSettingsRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_keyspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_keyspaces.types.keyspace_name
|
|
11
|
+
import capo_keyspaces.types.table_name
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class GetTableAutoScalingSettingsRequest(TypedDict, closed=True):
|
|
15
|
+
keyspace_name: "capo_keyspaces.types.keyspace_name.KeyspaceName"
|
|
16
|
+
"""<p>The name of the keyspace.</p>"""
|
|
17
|
+
table_name: "capo_keyspaces.types.table_name.TableName"
|
|
18
|
+
"""<p>The name of the table.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- awsJson1_0 ser/de ---
|
|
22
|
+
def serialize_aws_json_1_0(value: GetTableAutoScalingSettingsRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
out["keyspaceName"] = value["keyspace_name"]
|
|
25
|
+
out["tableName"] = value["table_name"]
|
|
26
|
+
return out
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def deserialize_aws_json_1_0(data: dict) -> GetTableAutoScalingSettingsRequest:
|
|
30
|
+
out: GetTableAutoScalingSettingsRequest = {} # type: ignore[typeddict-item]
|
|
31
|
+
if data.get("keyspaceName") is not None:
|
|
32
|
+
out["keyspace_name"] = data["keyspaceName"]
|
|
33
|
+
else:
|
|
34
|
+
raise DeserializationError(
|
|
35
|
+
"GetTableAutoScalingSettingsRequest.keyspace_name required"
|
|
36
|
+
)
|
|
37
|
+
if data.get("tableName") is not None:
|
|
38
|
+
out["table_name"] = data["tableName"]
|
|
39
|
+
else:
|
|
40
|
+
raise DeserializationError(
|
|
41
|
+
"GetTableAutoScalingSettingsRequest.table_name required"
|
|
42
|
+
)
|
|
43
|
+
return out
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.keyspaces#GetTableAutoScalingSettingsResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_keyspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_keyspaces.types.arn
|
|
11
|
+
import capo_keyspaces.types.auto_scaling_specification
|
|
12
|
+
import capo_keyspaces.types.keyspace_name
|
|
13
|
+
import capo_keyspaces.types.replica_auto_scaling_specification_list
|
|
14
|
+
import capo_keyspaces.types.table_name
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GetTableAutoScalingSettingsResponse(TypedDict, closed=True):
|
|
18
|
+
keyspace_name: "capo_keyspaces.types.keyspace_name.KeyspaceName"
|
|
19
|
+
"""<p>The name of the keyspace.</p>"""
|
|
20
|
+
table_name: "capo_keyspaces.types.table_name.TableName"
|
|
21
|
+
"""<p>The name of the table.</p>"""
|
|
22
|
+
resource_arn: "capo_keyspaces.types.arn.ARN"
|
|
23
|
+
"""<p>The Amazon Resource Name (ARN) of the table.</p>"""
|
|
24
|
+
auto_scaling_specification: NotRequired[
|
|
25
|
+
"capo_keyspaces.types.auto_scaling_specification.AutoScalingSpecification"
|
|
26
|
+
]
|
|
27
|
+
"""<p>The auto scaling settings of the table.</p>"""
|
|
28
|
+
replica_specifications: NotRequired[
|
|
29
|
+
"capo_keyspaces.types.replica_auto_scaling_specification_list.ReplicaAutoScalingSpecificationList"
|
|
30
|
+
]
|
|
31
|
+
"""<p>The Amazon Web Services Region specific settings of a multi-Region table. Returns the settings for all Regions the table is replicated in.</p>"""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# --- awsJson1_0 ser/de ---
|
|
35
|
+
def serialize_aws_json_1_0(value: GetTableAutoScalingSettingsResponse) -> dict:
|
|
36
|
+
out: dict = {}
|
|
37
|
+
out["keyspaceName"] = value["keyspace_name"]
|
|
38
|
+
out["tableName"] = value["table_name"]
|
|
39
|
+
out["resourceArn"] = value["resource_arn"]
|
|
40
|
+
if "auto_scaling_specification" in value:
|
|
41
|
+
import capo_keyspaces.types.auto_scaling_specification
|
|
42
|
+
|
|
43
|
+
out["autoScalingSpecification"] = (
|
|
44
|
+
capo_keyspaces.types.auto_scaling_specification.serialize_aws_json_1_0(
|
|
45
|
+
value["auto_scaling_specification"]
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
if "replica_specifications" in value:
|
|
49
|
+
import capo_keyspaces.types.replica_auto_scaling_specification_list
|
|
50
|
+
|
|
51
|
+
out["replicaSpecifications"] = (
|
|
52
|
+
capo_keyspaces.types.replica_auto_scaling_specification_list.serialize_aws_json_1_0(
|
|
53
|
+
value["replica_specifications"]
|
|
54
|
+
)
|
|
55
|
+
)
|
|
56
|
+
return out
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def deserialize_aws_json_1_0(data: dict) -> GetTableAutoScalingSettingsResponse:
|
|
60
|
+
out: GetTableAutoScalingSettingsResponse = {} # type: ignore[typeddict-item]
|
|
61
|
+
if data.get("keyspaceName") is not None:
|
|
62
|
+
out["keyspace_name"] = data["keyspaceName"]
|
|
63
|
+
else:
|
|
64
|
+
raise DeserializationError(
|
|
65
|
+
"GetTableAutoScalingSettingsResponse.keyspace_name required"
|
|
66
|
+
)
|
|
67
|
+
if data.get("tableName") is not None:
|
|
68
|
+
out["table_name"] = data["tableName"]
|
|
69
|
+
else:
|
|
70
|
+
raise DeserializationError(
|
|
71
|
+
"GetTableAutoScalingSettingsResponse.table_name required"
|
|
72
|
+
)
|
|
73
|
+
if data.get("resourceArn") is not None:
|
|
74
|
+
out["resource_arn"] = data["resourceArn"]
|
|
75
|
+
else:
|
|
76
|
+
raise DeserializationError(
|
|
77
|
+
"GetTableAutoScalingSettingsResponse.resource_arn required"
|
|
78
|
+
)
|
|
79
|
+
if data.get("autoScalingSpecification") is not None:
|
|
80
|
+
import capo_keyspaces.types.auto_scaling_specification
|
|
81
|
+
|
|
82
|
+
out["auto_scaling_specification"] = (
|
|
83
|
+
capo_keyspaces.types.auto_scaling_specification.deserialize_aws_json_1_0(
|
|
84
|
+
data["autoScalingSpecification"]
|
|
85
|
+
)
|
|
86
|
+
)
|
|
87
|
+
if data.get("replicaSpecifications") is not None:
|
|
88
|
+
import capo_keyspaces.types.replica_auto_scaling_specification_list
|
|
89
|
+
|
|
90
|
+
out["replica_specifications"] = (
|
|
91
|
+
capo_keyspaces.types.replica_auto_scaling_specification_list.deserialize_aws_json_1_0(
|
|
92
|
+
data["replicaSpecifications"]
|
|
93
|
+
)
|
|
94
|
+
)
|
|
95
|
+
return out
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.keyspaces#GetTableRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_keyspaces.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_keyspaces.types.keyspace_name
|
|
11
|
+
import capo_keyspaces.types.table_name
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class GetTableRequest(TypedDict, closed=True):
|
|
15
|
+
keyspace_name: "capo_keyspaces.types.keyspace_name.KeyspaceName"
|
|
16
|
+
"""<p>The name of the keyspace that the table is stored in.</p>"""
|
|
17
|
+
table_name: "capo_keyspaces.types.table_name.TableName"
|
|
18
|
+
"""<p>The name of the table.</p>"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# --- awsJson1_0 ser/de ---
|
|
22
|
+
def serialize_aws_json_1_0(value: GetTableRequest) -> dict:
|
|
23
|
+
out: dict = {}
|
|
24
|
+
out["keyspaceName"] = value["keyspace_name"]
|
|
25
|
+
out["tableName"] = value["table_name"]
|
|
26
|
+
return out
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def deserialize_aws_json_1_0(data: dict) -> GetTableRequest:
|
|
30
|
+
out: GetTableRequest = {} # type: ignore[typeddict-item]
|
|
31
|
+
if data.get("keyspaceName") is not None:
|
|
32
|
+
out["keyspace_name"] = data["keyspaceName"]
|
|
33
|
+
else:
|
|
34
|
+
raise DeserializationError("GetTableRequest.keyspace_name required")
|
|
35
|
+
if data.get("tableName") is not None:
|
|
36
|
+
out["table_name"] = data["tableName"]
|
|
37
|
+
else:
|
|
38
|
+
raise DeserializationError("GetTableRequest.table_name required")
|
|
39
|
+
return out
|