update_security_policy
¶
update_security_policy(
type: SecurityPolicyType,
name: PolicyName,
policy_version: PolicyVersion,
*,
config_overrides: Optional[OpenSearchServerlessClientConfig] = None,
description: Optional[PolicyDescription] = None,
policy: Optional[PolicyDocument] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateSecurityPolicyResponse
Updates an OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.
Parameters:
-
type(SecurityPolicyType) –The type of access 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 policy. Typically used to store information about the permissions defined in the policy.
-
policy(Optional[PolicyDocument], default:None) –The JSON policy document to use as the content for the new policy.
-
client_token(Optional[ClientToken], default:None) –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
2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 | |