put_core_network_policy
async
¶
put_core_network_policy(
core_network_id: CoreNetworkId,
policy_document: SynthesizedJsonCoreNetworkPolicyDocument,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
description: Optional[ConstrainedString] = None,
latest_version_id: Optional[Integer] = None,
client_token: Optional[ClientToken] = None,
) -> PutCoreNetworkPolicyResponse
Creates a new, immutable version of a core network policy. A subsequent change set is created showing the differences between the LIVE policy and the submitted policy.
Parameters:
-
core_network_id(CoreNetworkId) –The ID of a core network.
-
policy_document(SynthesizedJsonCoreNetworkPolicyDocument) –The policy document.
-
description(Optional[ConstrainedString], default:None) –a core network policy description.
-
latest_version_id(Optional[Integer], default:None) –The ID of a core network policy.
-
client_token(Optional[ClientToken], default:None) –The client token associated with the request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–There was a conflict processing the request. Updating or deleting the resource can cause an inconsistent state.
-
CoreNetworkPolicyException–Describes a core network policy exception.
-
InternalServerException–The request has failed due to an internal error.
-
ResourceNotFoundException–The specified resource could not be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 | |