update_lifecycle_policy
async
¶
update_lifecycle_policy(
type: LifecyclePolicyType,
name: PolicyName,
policy_version: PolicyVersion,
*,
config_overrides: Optional[AsyncOpenSearchServerlessClientConfig] = None,
description: Optional[PolicyDescription] = None,
policy: Optional[PolicyDocument] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateLifecyclePolicyResponse
Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies.
Parameters:
-
type(LifecyclePolicyType) –The type of lifecycle policy.
-
name(PolicyName) –The name of the policy.
-
policy_version(PolicyVersion) –The version of the policy being updated.
-
description(Optional[PolicyDescription], default:None) –A description of the lifecycle policy.
-
policy(Optional[PolicyDocument], default:None) –The JSON policy document to use as the content for the lifecycle policy.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier to ensure idempotency of the request.
Raises:
-
ConflictException–When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE, FAILED, or UPDATE_FAILED state.
-
InternalServerException–Thrown when an error internal to the service occurs while processing a request.
-
ResourceNotFoundException–Thrown when accessing or deleting a resource that does not exist.
-
ServiceQuotaExceededException–Thrown when you attempt to create more resources than the service allows based on service quotas.
-
ValidationException–Thrown when the HTTP request contains invalid input or is missing required input.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_opensearchserverless/_services/async_open_search_serverless.py
2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 | |