OpenSearchServiceServerless / Client / update_lifecycle_policy
update_lifecycle_policy¶
- OpenSearchServiceServerless.Client.update_lifecycle_policy(**kwargs)¶
- Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies. - See also: AWS API Documentation - Request Syntax- response = client.update_lifecycle_policy( type='retention', name='string', policyVersion='string', description='string', policy='string', clientToken='string' ) - Parameters:
- type (string) – - [REQUIRED] - The type of lifecycle policy. 
- name (string) – - [REQUIRED] - The name of the policy. 
- policyVersion (string) – - [REQUIRED] - The version of the policy being updated. 
- description (string) – A description of the lifecycle policy. 
- policy (string) – The JSON policy document to use as the content for the lifecycle policy. 
- clientToken (string) – - A unique, case-sensitive identifier to ensure idempotency of the request. - This field is autopopulated if not provided. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'lifecyclePolicyDetail': { 'type': 'retention', 'name': 'string', 'policyVersion': 'string', 'description': 'string', 'policy': {...}|[...]|123|123.4|'string'|True|None, 'createdDate': 123, 'lastModifiedDate': 123 } } - Response Structure- (dict) – - lifecyclePolicyDetail (dict) – - Details about the updated lifecycle policy. - type (string) – - The type of lifecycle policy. 
- name (string) – - The name of the lifecycle policy. 
- policyVersion (string) – - The version of the lifecycle policy. 
- description (string) – - The description of the lifecycle policy. 
- policy (document) – - The JSON policy document without any whitespaces. 
- createdDate (integer) – - The date the lifecycle policy was created. 
- lastModifiedDate (integer) – - The timestamp of when the lifecycle policy was last modified. 
 
 
 
 - Exceptions- OpenSearchServiceServerless.Client.exceptions.InternalServerException
- OpenSearchServiceServerless.Client.exceptions.ResourceNotFoundException
- OpenSearchServiceServerless.Client.exceptions.ConflictException
- OpenSearchServiceServerless.Client.exceptions.ValidationException
- OpenSearchServiceServerless.Client.exceptions.ServiceQuotaExceededException