update_lifecycle_policy
¶
update_lifecycle_policy(
type: LifecyclePolicyType,
name: PolicyName,
policy_version: PolicyVersion,
*,
config_overrides: Optional[OpenSearchServerlessClientConfig] = 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/open_search_serverless.py
2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 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 | |