update_security_policy(**kwargs)¶Updates an OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
See also: AWS API Documentation
Request Syntax
response = client.update_security_policy(
    clientToken='string',
    description='string',
    name='string',
    policy='string',
    policyVersion='string',
    type='encryption'|'network'
)
Unique, case-sensitive identifier to ensure idempotency of the request.
This field is autopopulated if not provided.
[REQUIRED]
The name of the policy.
[REQUIRED]
The version of the policy being updated.
[REQUIRED]
The type of access policy.
dict
Response Syntax
{
    'securityPolicyDetail': {
        'createdDate': 123,
        'description': 'string',
        'lastModifiedDate': 123,
        'name': 'string',
        'policy': {...}|[...]|123|123.4|'string'|True|None,
        'policyVersion': 'string',
        'type': 'encryption'|'network'
    }
}
Response Structure
(dict) --
securityPolicyDetail (dict) --
Details about the updated security policy.
createdDate (integer) --
The date the policy was created.
description (string) --
The description of the security policy.
lastModifiedDate (integer) --
The timestamp of when the policy was last modified.
name (string) --
The name of the policy.
policy (document) --
The JSON policy document without any whitespaces.
policyVersion (string) --
The version of the policy.
type (string) --
The type of security policy.
Exceptions
OpenSearchServiceServerless.Client.exceptions.InternalServerExceptionOpenSearchServiceServerless.Client.exceptions.ResourceNotFoundExceptionOpenSearchServiceServerless.Client.exceptions.ConflictExceptionOpenSearchServiceServerless.Client.exceptions.ValidationException