update_access_policy
¶
update_access_policy(
type: AccessPolicyType,
name: PolicyName,
policy_version: PolicyVersion,
*,
config_overrides: Optional[OpenSearchServerlessClientConfig] = None,
description: Optional[PolicyDescription] = None,
policy: Optional[PolicyDocument] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateAccessPolicyResponse
Updates an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.
Parameters:
-
type(AccessPolicyType) –The type of 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 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.
-
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
1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 | |