terminate_sol_network_instance
¶
terminate_sol_network_instance(
ns_instance_id: NsInstanceId,
*,
config_overrides: Optional[tnbClientConfig] = None,
tags: Optional[TagMap] = None,
) -> TerminateSolNetworkInstanceOutput
Terminates a network instance.
A network instance is a single network created in Amazon Web Services TNB that can be deployed and on which life-cycle operations (like terminate, update, and delete) can be performed.
You must terminate a network instance before you can delete it.
Parameters:
-
ns_instance_id(NsInstanceId) –ID of the network instance.
-
tags(Optional[TagMap], default:None) –A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional value. When you use this API, the tags are only applied to the network operation that is created. These tags are not applied to the network instance. Use tags to search and filter your resources or track your Amazon Web Services costs.
Raises:
-
AccessDeniedException–Insufficient permissions to make request.
-
InternalServerException–Unexpected error occurred. Problem on the server.
-
ResourceNotFoundException–Request references a resource that doesn't exist.
-
ServiceQuotaExceededException–Service quotas have been exceeded.
-
ThrottlingException–Exception caused by throttling.
-
ValidationException–Unable to process the request because the client provided input failed to satisfy request constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Terminate a Sol Network Instance
>>> client.terminate_sol_network_instance(ns_instance_id='ni-0d5b823eb5c2a9241', tags={'Name': 'Resource'})
Source code in docs_src/capo_tnb/_services/tnb.py
2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 | |