capo-lambda-core 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_lambda_core/__init__.py +71 -0
- capo_lambda_core/_async.py +25 -0
- capo_lambda_core/_auth/_identity.py +16 -0
- capo_lambda_core/_auth/_providers.py +886 -0
- capo_lambda_core/_auth/_signers.py +121 -0
- capo_lambda_core/_auth/_sigv4.py +579 -0
- capo_lambda_core/_auth/_zapros_handler.py +80 -0
- capo_lambda_core/_body.py +221 -0
- capo_lambda_core/_iter.py +113 -0
- capo_lambda_core/_operations/lambda_core_api_service/create_network_connector.py +166 -0
- capo_lambda_core/_operations/lambda_core_api_service/delete_network_connector.py +163 -0
- capo_lambda_core/_operations/lambda_core_api_service/get_network_connector.py +162 -0
- capo_lambda_core/_operations/lambda_core_api_service/list_network_connectors.py +166 -0
- capo_lambda_core/_operations/lambda_core_api_service/update_network_connector.py +169 -0
- capo_lambda_core/_pagination.py +21 -0
- capo_lambda_core/_protocol/__init__.py +1 -0
- capo_lambda_core/_protocol/errors.py +93 -0
- capo_lambda_core/_protocol/eventstream.py +240 -0
- capo_lambda_core/_protocol/serialize.py +47 -0
- capo_lambda_core/_protocol/xml.py +33 -0
- capo_lambda_core/_resources/lambda_core_api_service/network_connector.py +616 -0
- capo_lambda_core/_rule_engine/__init__.py +0 -0
- capo_lambda_core/_rule_engine/_aws_partition.py +160 -0
- capo_lambda_core/_rule_engine/_endpoint_rule_set.py +135 -0
- capo_lambda_core/_rule_engine/_endpoint_runtime.py +389 -0
- capo_lambda_core/_services/_aws_config.py +160 -0
- capo_lambda_core/_services/_pipeline.py +247 -0
- capo_lambda_core/_services/async_lambda_core.py +468 -0
- capo_lambda_core/_services/lambda_core.py +463 -0
- capo_lambda_core/errors/__init__.py +39 -0
- capo_lambda_core/errors/_base.py +94 -0
- capo_lambda_core/errors/invalid_parameter_value_exception.py +59 -0
- capo_lambda_core/errors/network_connector_limit_exceeded_exception.py +60 -0
- capo_lambda_core/errors/resource_conflict_exception.py +57 -0
- capo_lambda_core/errors/resource_not_found_exception.py +57 -0
- capo_lambda_core/errors/service_exception.py +55 -0
- capo_lambda_core/errors/too_many_requests_exception.py +74 -0
- capo_lambda_core/py.typed +0 -0
- capo_lambda_core/types/_prelude/blob.py +12 -0
- capo_lambda_core/types/_prelude/timestamp.py +17 -0
- capo_lambda_core/types/associated_compute_resource_types_list.py +31 -0
- capo_lambda_core/types/client_token_string.py +5 -0
- capo_lambda_core/types/compute_resource_type.py +14 -0
- capo_lambda_core/types/core_timestamp.py +20 -0
- capo_lambda_core/types/create_network_connector_request.py +88 -0
- capo_lambda_core/types/create_network_connector_response.py +93 -0
- capo_lambda_core/types/delete_network_connector_request.py +25 -0
- capo_lambda_core/types/delete_network_connector_response.py +93 -0
- capo_lambda_core/types/get_network_connector_request.py +25 -0
- capo_lambda_core/types/get_network_connector_response.py +196 -0
- capo_lambda_core/types/list_network_connectors_request.py +34 -0
- capo_lambda_core/types/list_network_connectors_response.py +54 -0
- capo_lambda_core/types/max_hundred_list_items.py +5 -0
- capo_lambda_core/types/network_connector_arn.py +5 -0
- capo_lambda_core/types/network_connector_configuration.py +48 -0
- capo_lambda_core/types/network_connector_id.py +6 -0
- capo_lambda_core/types/network_connector_identifier.py +6 -0
- capo_lambda_core/types/network_connector_last_update_status.py +18 -0
- capo_lambda_core/types/network_connector_last_update_status_reason.py +5 -0
- capo_lambda_core/types/network_connector_last_update_status_reason_code.py +22 -0
- capo_lambda_core/types/network_connector_name.py +5 -0
- capo_lambda_core/types/network_connector_role_arn.py +5 -0
- capo_lambda_core/types/network_connector_security_group_id.py +5 -0
- capo_lambda_core/types/network_connector_security_group_ids.py +19 -0
- capo_lambda_core/types/network_connector_state.py +21 -0
- capo_lambda_core/types/network_connector_state_reason_code.py +22 -0
- capo_lambda_core/types/network_connector_subnet_id.py +5 -0
- capo_lambda_core/types/network_connector_subnet_ids.py +19 -0
- capo_lambda_core/types/network_connector_summary.py +94 -0
- capo_lambda_core/types/network_connector_tag_key.py +5 -0
- capo_lambda_core/types/network_connector_tag_value.py +5 -0
- capo_lambda_core/types/network_connector_tags.py +29 -0
- capo_lambda_core/types/network_connector_type.py +14 -0
- capo_lambda_core/types/network_connector_version.py +5 -0
- capo_lambda_core/types/network_connector_vpc_egress_configuration.py +103 -0
- capo_lambda_core/types/network_connectors_list.py +35 -0
- capo_lambda_core/types/network_protocol.py +17 -0
- capo_lambda_core/types/string.py +5 -0
- capo_lambda_core/types/throttle_reason.py +21 -0
- capo_lambda_core/types/update_network_connector_request.py +64 -0
- capo_lambda_core/types/update_network_connector_response.py +138 -0
- capo_lambda_core-0.1.0.dist-info/METADATA +103 -0
- capo_lambda_core-0.1.0.dist-info/RECORD +86 -0
- capo_lambda_core-0.1.0.dist-info/WHEEL +5 -0
- capo_lambda_core-0.1.0.dist-info/licenses/LICENSE +21 -0
- capo_lambda_core-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#DeleteNetworkConnectorResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_lambda_core.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_lambda_core.types.network_connector_arn
|
|
11
|
+
import capo_lambda_core.types.network_connector_configuration
|
|
12
|
+
import capo_lambda_core.types.network_connector_id
|
|
13
|
+
import capo_lambda_core.types.network_connector_name
|
|
14
|
+
import capo_lambda_core.types.network_connector_role_arn
|
|
15
|
+
import capo_lambda_core.types.network_connector_state
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class DeleteNetworkConnectorResponse(TypedDict, closed=True):
|
|
19
|
+
arn: "capo_lambda_core.types.network_connector_arn.NetworkConnectorArn"
|
|
20
|
+
"""<p>The Amazon Resource Name (ARN) of the network connector.</p>"""
|
|
21
|
+
name: "capo_lambda_core.types.network_connector_name.NetworkConnectorName"
|
|
22
|
+
"""<p>The name of the network connector.</p>"""
|
|
23
|
+
id: "capo_lambda_core.types.network_connector_id.NetworkConnectorId"
|
|
24
|
+
configuration: NotRequired[
|
|
25
|
+
"capo_lambda_core.types.network_connector_configuration.NetworkConnectorConfiguration"
|
|
26
|
+
]
|
|
27
|
+
"""<p>The network configuration of the connector, including VPC subnets and security groups.</p>"""
|
|
28
|
+
operator_role: NotRequired[
|
|
29
|
+
"capo_lambda_core.types.network_connector_role_arn.NetworkConnectorRoleArn"
|
|
30
|
+
]
|
|
31
|
+
"""<p>The ARN of the IAM role that Lambda uses to manage the underlying ENI resources for this connector.</p>"""
|
|
32
|
+
state: NotRequired[
|
|
33
|
+
"capo_lambda_core.types.network_connector_state.NetworkConnectorState"
|
|
34
|
+
]
|
|
35
|
+
"""<p>The current state of the network connector. The State field is typically <code>DELETING</code> after this call.</p>"""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# --- restJson1 ser/de ---
|
|
39
|
+
def serialize_json(value: DeleteNetworkConnectorResponse) -> dict:
|
|
40
|
+
out: dict = {}
|
|
41
|
+
out["Arn"] = value["arn"]
|
|
42
|
+
out["Name"] = value["name"]
|
|
43
|
+
out["Id"] = value["id"]
|
|
44
|
+
if "configuration" in value:
|
|
45
|
+
import capo_lambda_core.types.network_connector_configuration
|
|
46
|
+
|
|
47
|
+
out["Configuration"] = (
|
|
48
|
+
capo_lambda_core.types.network_connector_configuration.serialize_json(
|
|
49
|
+
value["configuration"]
|
|
50
|
+
)
|
|
51
|
+
)
|
|
52
|
+
if "operator_role" in value:
|
|
53
|
+
out["OperatorRole"] = value["operator_role"]
|
|
54
|
+
if "state" in value:
|
|
55
|
+
import capo_lambda_core.types.network_connector_state
|
|
56
|
+
|
|
57
|
+
out["State"] = capo_lambda_core.types.network_connector_state.serialize_json(
|
|
58
|
+
value["state"]
|
|
59
|
+
)
|
|
60
|
+
return out
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def deserialize_json(data: dict) -> DeleteNetworkConnectorResponse:
|
|
64
|
+
out: DeleteNetworkConnectorResponse = {} # type: ignore[typeddict-item]
|
|
65
|
+
if data.get("Arn") is not None:
|
|
66
|
+
out["arn"] = data["Arn"]
|
|
67
|
+
else:
|
|
68
|
+
raise DeserializationError("DeleteNetworkConnectorResponse.arn required")
|
|
69
|
+
if data.get("Name") is not None:
|
|
70
|
+
out["name"] = data["Name"]
|
|
71
|
+
else:
|
|
72
|
+
raise DeserializationError("DeleteNetworkConnectorResponse.name required")
|
|
73
|
+
if data.get("Id") is not None:
|
|
74
|
+
out["id"] = data["Id"]
|
|
75
|
+
else:
|
|
76
|
+
raise DeserializationError("DeleteNetworkConnectorResponse.id required")
|
|
77
|
+
if data.get("Configuration") is not None:
|
|
78
|
+
import capo_lambda_core.types.network_connector_configuration
|
|
79
|
+
|
|
80
|
+
out["configuration"] = (
|
|
81
|
+
capo_lambda_core.types.network_connector_configuration.deserialize_json(
|
|
82
|
+
data["Configuration"]
|
|
83
|
+
)
|
|
84
|
+
)
|
|
85
|
+
if data.get("OperatorRole") is not None:
|
|
86
|
+
out["operator_role"] = data["OperatorRole"]
|
|
87
|
+
if data.get("State") is not None:
|
|
88
|
+
import capo_lambda_core.types.network_connector_state
|
|
89
|
+
|
|
90
|
+
out["state"] = capo_lambda_core.types.network_connector_state.deserialize_json(
|
|
91
|
+
data["State"]
|
|
92
|
+
)
|
|
93
|
+
return out
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#GetNetworkConnectorRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_lambda_core.types.network_connector_identifier
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetNetworkConnectorRequest(TypedDict, closed=True):
|
|
12
|
+
identifier: (
|
|
13
|
+
"capo_lambda_core.types.network_connector_identifier.NetworkConnectorIdentifier"
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# --- restJson1 ser/de ---
|
|
18
|
+
def serialize_json(value: GetNetworkConnectorRequest) -> dict:
|
|
19
|
+
out: dict = {}
|
|
20
|
+
return out
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def deserialize_json(data: dict) -> GetNetworkConnectorRequest:
|
|
24
|
+
out: GetNetworkConnectorRequest = {} # type: ignore[typeddict-item]
|
|
25
|
+
return out
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#GetNetworkConnectorResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_lambda_core.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_lambda_core.types.core_timestamp
|
|
11
|
+
import capo_lambda_core.types.network_connector_arn
|
|
12
|
+
import capo_lambda_core.types.network_connector_configuration
|
|
13
|
+
import capo_lambda_core.types.network_connector_id
|
|
14
|
+
import capo_lambda_core.types.network_connector_last_update_status
|
|
15
|
+
import capo_lambda_core.types.network_connector_last_update_status_reason
|
|
16
|
+
import capo_lambda_core.types.network_connector_last_update_status_reason_code
|
|
17
|
+
import capo_lambda_core.types.network_connector_name
|
|
18
|
+
import capo_lambda_core.types.network_connector_role_arn
|
|
19
|
+
import capo_lambda_core.types.network_connector_state
|
|
20
|
+
import capo_lambda_core.types.network_connector_state_reason_code
|
|
21
|
+
import capo_lambda_core.types.network_connector_version
|
|
22
|
+
import capo_lambda_core.types.string
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class GetNetworkConnectorResponse(TypedDict, closed=True):
|
|
26
|
+
arn: "capo_lambda_core.types.network_connector_arn.NetworkConnectorArn"
|
|
27
|
+
"""<p>The Amazon Resource Name (ARN) of the network connector.</p>"""
|
|
28
|
+
name: "capo_lambda_core.types.network_connector_name.NetworkConnectorName"
|
|
29
|
+
"""<p>The name of the network connector.</p>"""
|
|
30
|
+
id: "capo_lambda_core.types.network_connector_id.NetworkConnectorId"
|
|
31
|
+
version: NotRequired[
|
|
32
|
+
"capo_lambda_core.types.network_connector_version.NetworkConnectorVersion"
|
|
33
|
+
]
|
|
34
|
+
"""<p>The version number of the connector configuration, incremented on each update.</p>"""
|
|
35
|
+
configuration: NotRequired[
|
|
36
|
+
"capo_lambda_core.types.network_connector_configuration.NetworkConnectorConfiguration"
|
|
37
|
+
]
|
|
38
|
+
"""<p>The network configuration of the connector, including VPC subnets and security groups.</p>"""
|
|
39
|
+
operator_role: NotRequired[
|
|
40
|
+
"capo_lambda_core.types.network_connector_role_arn.NetworkConnectorRoleArn"
|
|
41
|
+
]
|
|
42
|
+
"""<p>The ARN of the IAM role that Lambda uses to manage the underlying ENI resources for this connector.</p>"""
|
|
43
|
+
state: NotRequired[
|
|
44
|
+
"capo_lambda_core.types.network_connector_state.NetworkConnectorState"
|
|
45
|
+
]
|
|
46
|
+
"""<p>The current state of the network connector.</p>"""
|
|
47
|
+
state_reason: NotRequired["capo_lambda_core.types.string.String"]
|
|
48
|
+
"""<p>A human-readable explanation of the current state, populated when the state is <code>FAILED</code> or <code>DELETE_FAILED</code>.</p>"""
|
|
49
|
+
state_reason_code: NotRequired[
|
|
50
|
+
"capo_lambda_core.types.network_connector_state_reason_code.NetworkConnectorStateReasonCode"
|
|
51
|
+
]
|
|
52
|
+
"""<p>A machine-readable code indicating the reason for the current state. Use this for programmatic error handling.</p>"""
|
|
53
|
+
last_update_status: NotRequired[
|
|
54
|
+
"capo_lambda_core.types.network_connector_last_update_status.NetworkConnectorLastUpdateStatus"
|
|
55
|
+
]
|
|
56
|
+
"""<p>The status of the most recent update operation (<code>Successful</code>, <code>Failed</code>, or <code>InProgress</code>).</p>"""
|
|
57
|
+
last_update_status_reason: NotRequired[
|
|
58
|
+
"capo_lambda_core.types.network_connector_last_update_status_reason.NetworkConnectorLastUpdateStatusReason"
|
|
59
|
+
]
|
|
60
|
+
"""<p>A human-readable explanation of the last update status.</p>"""
|
|
61
|
+
last_update_status_reason_code: NotRequired[
|
|
62
|
+
"capo_lambda_core.types.network_connector_last_update_status_reason_code.NetworkConnectorLastUpdateStatusReasonCode"
|
|
63
|
+
]
|
|
64
|
+
"""<p>A machine-readable code indicating the reason for the last update status. Use this for programmatic error handling.</p>"""
|
|
65
|
+
last_modified: NotRequired["capo_lambda_core.types.core_timestamp.CoreTimestamp"]
|
|
66
|
+
"""<p>The date and time when the connector configuration was last modified.</p>"""
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
# --- restJson1 ser/de ---
|
|
70
|
+
def serialize_json(value: GetNetworkConnectorResponse) -> dict:
|
|
71
|
+
out: dict = {}
|
|
72
|
+
out["Arn"] = value["arn"]
|
|
73
|
+
out["Name"] = value["name"]
|
|
74
|
+
out["Id"] = value["id"]
|
|
75
|
+
if "version" in value:
|
|
76
|
+
out["Version"] = value["version"]
|
|
77
|
+
if "configuration" in value:
|
|
78
|
+
import capo_lambda_core.types.network_connector_configuration
|
|
79
|
+
|
|
80
|
+
out["Configuration"] = (
|
|
81
|
+
capo_lambda_core.types.network_connector_configuration.serialize_json(
|
|
82
|
+
value["configuration"]
|
|
83
|
+
)
|
|
84
|
+
)
|
|
85
|
+
if "operator_role" in value:
|
|
86
|
+
out["OperatorRole"] = value["operator_role"]
|
|
87
|
+
if "state" in value:
|
|
88
|
+
import capo_lambda_core.types.network_connector_state
|
|
89
|
+
|
|
90
|
+
out["State"] = capo_lambda_core.types.network_connector_state.serialize_json(
|
|
91
|
+
value["state"]
|
|
92
|
+
)
|
|
93
|
+
if "state_reason" in value:
|
|
94
|
+
out["StateReason"] = value["state_reason"]
|
|
95
|
+
if "state_reason_code" in value:
|
|
96
|
+
import capo_lambda_core.types.network_connector_state_reason_code
|
|
97
|
+
|
|
98
|
+
out["StateReasonCode"] = (
|
|
99
|
+
capo_lambda_core.types.network_connector_state_reason_code.serialize_json(
|
|
100
|
+
value["state_reason_code"]
|
|
101
|
+
)
|
|
102
|
+
)
|
|
103
|
+
if "last_update_status" in value:
|
|
104
|
+
import capo_lambda_core.types.network_connector_last_update_status
|
|
105
|
+
|
|
106
|
+
out["LastUpdateStatus"] = (
|
|
107
|
+
capo_lambda_core.types.network_connector_last_update_status.serialize_json(
|
|
108
|
+
value["last_update_status"]
|
|
109
|
+
)
|
|
110
|
+
)
|
|
111
|
+
if "last_update_status_reason" in value:
|
|
112
|
+
out["LastUpdateStatusReason"] = value["last_update_status_reason"]
|
|
113
|
+
if "last_update_status_reason_code" in value:
|
|
114
|
+
import capo_lambda_core.types.network_connector_last_update_status_reason_code
|
|
115
|
+
|
|
116
|
+
out["LastUpdateStatusReasonCode"] = (
|
|
117
|
+
capo_lambda_core.types.network_connector_last_update_status_reason_code.serialize_json(
|
|
118
|
+
value["last_update_status_reason_code"]
|
|
119
|
+
)
|
|
120
|
+
)
|
|
121
|
+
if "last_modified" in value:
|
|
122
|
+
import capo_lambda_core.types.core_timestamp
|
|
123
|
+
|
|
124
|
+
out["LastModified"] = capo_lambda_core.types.core_timestamp.serialize_json(
|
|
125
|
+
value["last_modified"]
|
|
126
|
+
)
|
|
127
|
+
return out
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def deserialize_json(data: dict) -> GetNetworkConnectorResponse:
|
|
131
|
+
out: GetNetworkConnectorResponse = {} # type: ignore[typeddict-item]
|
|
132
|
+
if data.get("Arn") is not None:
|
|
133
|
+
out["arn"] = data["Arn"]
|
|
134
|
+
else:
|
|
135
|
+
raise DeserializationError("GetNetworkConnectorResponse.arn required")
|
|
136
|
+
if data.get("Name") is not None:
|
|
137
|
+
out["name"] = data["Name"]
|
|
138
|
+
else:
|
|
139
|
+
raise DeserializationError("GetNetworkConnectorResponse.name required")
|
|
140
|
+
if data.get("Id") is not None:
|
|
141
|
+
out["id"] = data["Id"]
|
|
142
|
+
else:
|
|
143
|
+
raise DeserializationError("GetNetworkConnectorResponse.id required")
|
|
144
|
+
if data.get("Version") is not None:
|
|
145
|
+
out["version"] = data["Version"]
|
|
146
|
+
if data.get("Configuration") is not None:
|
|
147
|
+
import capo_lambda_core.types.network_connector_configuration
|
|
148
|
+
|
|
149
|
+
out["configuration"] = (
|
|
150
|
+
capo_lambda_core.types.network_connector_configuration.deserialize_json(
|
|
151
|
+
data["Configuration"]
|
|
152
|
+
)
|
|
153
|
+
)
|
|
154
|
+
if data.get("OperatorRole") is not None:
|
|
155
|
+
out["operator_role"] = data["OperatorRole"]
|
|
156
|
+
if data.get("State") is not None:
|
|
157
|
+
import capo_lambda_core.types.network_connector_state
|
|
158
|
+
|
|
159
|
+
out["state"] = capo_lambda_core.types.network_connector_state.deserialize_json(
|
|
160
|
+
data["State"]
|
|
161
|
+
)
|
|
162
|
+
if data.get("StateReason") is not None:
|
|
163
|
+
out["state_reason"] = data["StateReason"]
|
|
164
|
+
if data.get("StateReasonCode") is not None:
|
|
165
|
+
import capo_lambda_core.types.network_connector_state_reason_code
|
|
166
|
+
|
|
167
|
+
out["state_reason_code"] = (
|
|
168
|
+
capo_lambda_core.types.network_connector_state_reason_code.deserialize_json(
|
|
169
|
+
data["StateReasonCode"]
|
|
170
|
+
)
|
|
171
|
+
)
|
|
172
|
+
if data.get("LastUpdateStatus") is not None:
|
|
173
|
+
import capo_lambda_core.types.network_connector_last_update_status
|
|
174
|
+
|
|
175
|
+
out["last_update_status"] = (
|
|
176
|
+
capo_lambda_core.types.network_connector_last_update_status.deserialize_json(
|
|
177
|
+
data["LastUpdateStatus"]
|
|
178
|
+
)
|
|
179
|
+
)
|
|
180
|
+
if data.get("LastUpdateStatusReason") is not None:
|
|
181
|
+
out["last_update_status_reason"] = data["LastUpdateStatusReason"]
|
|
182
|
+
if data.get("LastUpdateStatusReasonCode") is not None:
|
|
183
|
+
import capo_lambda_core.types.network_connector_last_update_status_reason_code
|
|
184
|
+
|
|
185
|
+
out["last_update_status_reason_code"] = (
|
|
186
|
+
capo_lambda_core.types.network_connector_last_update_status_reason_code.deserialize_json(
|
|
187
|
+
data["LastUpdateStatusReasonCode"]
|
|
188
|
+
)
|
|
189
|
+
)
|
|
190
|
+
if data.get("LastModified") is not None:
|
|
191
|
+
import capo_lambda_core.types.core_timestamp
|
|
192
|
+
|
|
193
|
+
out["last_modified"] = capo_lambda_core.types.core_timestamp.deserialize_json(
|
|
194
|
+
data["LastModified"]
|
|
195
|
+
)
|
|
196
|
+
return out
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#ListNetworkConnectorsRequest``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
import capo_lambda_core.types.max_hundred_list_items
|
|
9
|
+
import capo_lambda_core.types.network_connector_state
|
|
10
|
+
import capo_lambda_core.types.string
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ListNetworkConnectorsRequest(TypedDict, closed=True):
|
|
14
|
+
state: NotRequired[
|
|
15
|
+
"capo_lambda_core.types.network_connector_state.NetworkConnectorState"
|
|
16
|
+
]
|
|
17
|
+
"""<p>Optional filter to return only connectors in the specified state (for example, <code>ACTIVE</code> or <code>FAILED</code>).</p>"""
|
|
18
|
+
marker: NotRequired["capo_lambda_core.types.string.String"]
|
|
19
|
+
"""<p>The pagination token from a previous <code>ListNetworkConnectors</code> response. Use this value to retrieve the next page of results.</p>"""
|
|
20
|
+
max_items: NotRequired[
|
|
21
|
+
"capo_lambda_core.types.max_hundred_list_items.MaxHundredListItems"
|
|
22
|
+
]
|
|
23
|
+
"""<p>The maximum number of connectors to return per page. Valid range: 1 to 100.</p>"""
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# --- restJson1 ser/de ---
|
|
27
|
+
def serialize_json(value: ListNetworkConnectorsRequest) -> dict:
|
|
28
|
+
out: dict = {}
|
|
29
|
+
return out
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def deserialize_json(data: dict) -> ListNetworkConnectorsRequest:
|
|
33
|
+
out: ListNetworkConnectorsRequest = {} # type: ignore[typeddict-item]
|
|
34
|
+
return out
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#ListNetworkConnectorsResponse``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from typing_extensions import NotRequired, TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_lambda_core.errors import DeserializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_lambda_core.types.network_connectors_list
|
|
11
|
+
import capo_lambda_core.types.string
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ListNetworkConnectorsResponse(TypedDict, closed=True):
|
|
15
|
+
network_connectors: (
|
|
16
|
+
"capo_lambda_core.types.network_connectors_list.NetworkConnectorsList"
|
|
17
|
+
)
|
|
18
|
+
"""<p>A list of network connector summaries for the current page of results.</p>"""
|
|
19
|
+
next_marker: NotRequired["capo_lambda_core.types.string.String"]
|
|
20
|
+
"""<p>The pagination token to include in a subsequent request to retrieve the next page. This value is null when there are no more results.</p>"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# --- restJson1 ser/de ---
|
|
24
|
+
def serialize_json(value: ListNetworkConnectorsResponse) -> dict:
|
|
25
|
+
out: dict = {}
|
|
26
|
+
import capo_lambda_core.types.network_connectors_list
|
|
27
|
+
|
|
28
|
+
out["NetworkConnectors"] = (
|
|
29
|
+
capo_lambda_core.types.network_connectors_list.serialize_json(
|
|
30
|
+
value["network_connectors"]
|
|
31
|
+
)
|
|
32
|
+
)
|
|
33
|
+
if "next_marker" in value:
|
|
34
|
+
out["NextMarker"] = value["next_marker"]
|
|
35
|
+
return out
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def deserialize_json(data: dict) -> ListNetworkConnectorsResponse:
|
|
39
|
+
out: ListNetworkConnectorsResponse = {} # type: ignore[typeddict-item]
|
|
40
|
+
if data.get("NetworkConnectors") is not None:
|
|
41
|
+
import capo_lambda_core.types.network_connectors_list
|
|
42
|
+
|
|
43
|
+
out["network_connectors"] = (
|
|
44
|
+
capo_lambda_core.types.network_connectors_list.deserialize_json(
|
|
45
|
+
data["NetworkConnectors"]
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
else:
|
|
49
|
+
raise DeserializationError(
|
|
50
|
+
"ListNetworkConnectorsResponse.network_connectors required"
|
|
51
|
+
)
|
|
52
|
+
if data.get("NextMarker") is not None:
|
|
53
|
+
out["next_marker"] = data["NextMarker"]
|
|
54
|
+
return out
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#NetworkConnectorConfiguration``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
from typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
from capo_lambda_core.errors import DeserializationError, SerializationError
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import capo_lambda_core.types.network_connector_vpc_egress_configuration
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class _NetworkConnectorConfiguration_VpcEgressConfiguration(TypedDict, closed=True):
|
|
14
|
+
VpcEgressConfiguration: "capo_lambda_core.types.network_connector_vpc_egress_configuration.NetworkConnectorVpcEgressConfiguration"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
NetworkConnectorConfiguration: TypeAlias = (
|
|
18
|
+
_NetworkConnectorConfiguration_VpcEgressConfiguration
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# --- restJson1 ser/de ---
|
|
23
|
+
def serialize_json(value: NetworkConnectorConfiguration) -> dict:
|
|
24
|
+
if "VpcEgressConfiguration" in value:
|
|
25
|
+
import capo_lambda_core.types.network_connector_vpc_egress_configuration
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
"VpcEgressConfiguration": capo_lambda_core.types.network_connector_vpc_egress_configuration.serialize_json(
|
|
29
|
+
value["VpcEgressConfiguration"]
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
else:
|
|
33
|
+
raise SerializationError("NetworkConnectorConfiguration: no variant present")
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def deserialize_json(data: dict) -> NetworkConnectorConfiguration:
|
|
37
|
+
if data.get("VpcEgressConfiguration") is not None:
|
|
38
|
+
import capo_lambda_core.types.network_connector_vpc_egress_configuration
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
"VpcEgressConfiguration": capo_lambda_core.types.network_connector_vpc_egress_configuration.deserialize_json(
|
|
42
|
+
data["VpcEgressConfiguration"]
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
else:
|
|
46
|
+
raise DeserializationError(
|
|
47
|
+
"NetworkConnectorConfiguration: no recognized variant key"
|
|
48
|
+
)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#NetworkConnectorLastUpdateStatus``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
NetworkConnectorLastUpdateStatus: TypeAlias = Literal[
|
|
6
|
+
"Successful",
|
|
7
|
+
"Failed",
|
|
8
|
+
"InProgress",
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# --- restJson1 ser/de ---
|
|
13
|
+
def serialize_json(value: NetworkConnectorLastUpdateStatus) -> str:
|
|
14
|
+
return value
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def deserialize_json(data: str) -> NetworkConnectorLastUpdateStatus:
|
|
18
|
+
return cast(NetworkConnectorLastUpdateStatus, data)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#NetworkConnectorLastUpdateStatusReasonCode``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
NetworkConnectorLastUpdateStatusReasonCode: TypeAlias = Literal[
|
|
6
|
+
"DisallowedByVpcEncryptionControl",
|
|
7
|
+
"Ec2RequestLimitExceeded",
|
|
8
|
+
"InsufficientRolePermissions",
|
|
9
|
+
"InternalError",
|
|
10
|
+
"InvalidSecurityGroup",
|
|
11
|
+
"InvalidSubnet",
|
|
12
|
+
"SubnetOutOfIPAddresses",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: NetworkConnectorLastUpdateStatusReasonCode) -> str:
|
|
18
|
+
return value
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_json(data: str) -> NetworkConnectorLastUpdateStatusReasonCode:
|
|
22
|
+
return cast(NetworkConnectorLastUpdateStatusReasonCode, data)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#NetworkConnectorSecurityGroupIds``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_lambda_core.types.network_connector_security_group_id
|
|
7
|
+
|
|
8
|
+
NetworkConnectorSecurityGroupIds: TypeAlias = list[
|
|
9
|
+
"capo_lambda_core.types.network_connector_security_group_id.NetworkConnectorSecurityGroupId"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: NetworkConnectorSecurityGroupIds) -> list:
|
|
15
|
+
return list(value)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def deserialize_json(data: list) -> NetworkConnectorSecurityGroupIds:
|
|
19
|
+
return [item for item in data if item is not None]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#NetworkConnectorState``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
NetworkConnectorState: TypeAlias = Literal[
|
|
6
|
+
"PENDING",
|
|
7
|
+
"ACTIVE",
|
|
8
|
+
"INACTIVE",
|
|
9
|
+
"FAILED",
|
|
10
|
+
"DELETING",
|
|
11
|
+
"DELETE_FAILED",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
# --- restJson1 ser/de ---
|
|
16
|
+
def serialize_json(value: NetworkConnectorState) -> str:
|
|
17
|
+
return value
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def deserialize_json(data: str) -> NetworkConnectorState:
|
|
21
|
+
return cast(NetworkConnectorState, data)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#NetworkConnectorStateReasonCode``."""
|
|
2
|
+
|
|
3
|
+
from typing import Literal, TypeAlias, cast
|
|
4
|
+
|
|
5
|
+
NetworkConnectorStateReasonCode: TypeAlias = Literal[
|
|
6
|
+
"DisallowedByVpcEncryptionControl",
|
|
7
|
+
"Ec2RequestLimitExceeded",
|
|
8
|
+
"InsufficientRolePermissions",
|
|
9
|
+
"InternalError",
|
|
10
|
+
"InvalidSecurityGroup",
|
|
11
|
+
"InvalidSubnet",
|
|
12
|
+
"SubnetOutOfIPAddresses",
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# --- restJson1 ser/de ---
|
|
17
|
+
def serialize_json(value: NetworkConnectorStateReasonCode) -> str:
|
|
18
|
+
return value
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def deserialize_json(data: str) -> NetworkConnectorStateReasonCode:
|
|
22
|
+
return cast(NetworkConnectorStateReasonCode, data)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Generated from Smithy shape ``com.amazonaws.lambdacore#NetworkConnectorSubnetIds``."""
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, TypeAlias
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
import capo_lambda_core.types.network_connector_subnet_id
|
|
7
|
+
|
|
8
|
+
NetworkConnectorSubnetIds: TypeAlias = list[
|
|
9
|
+
"capo_lambda_core.types.network_connector_subnet_id.NetworkConnectorSubnetId"
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# --- restJson1 ser/de ---
|
|
14
|
+
def serialize_json(value: NetworkConnectorSubnetIds) -> list:
|
|
15
|
+
return list(value)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def deserialize_json(data: list) -> NetworkConnectorSubnetIds:
|
|
19
|
+
return [item for item in data if item is not None]
|