create_security_config
¶
create_security_config(
type: SecurityConfigType,
name: ConfigName,
*,
config_overrides: Optional[OpenSearchServerlessClientConfig] = None,
description: Optional[ConfigDescription] = None,
saml_options: Optional[SamlConfigOptions] = None,
iam_identity_center_options: Optional[CreateIamIdentityCenterConfigOptions] = None,
iam_federation_options: Optional[IamFederationConfigOptions] = None,
client_token: Optional[ClientToken] = None,
) -> CreateSecurityConfigResponse
Specifies a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
Parameters:
-
type(SecurityConfigType) –The type of security configuration.
-
name(ConfigName) –The name of the security configuration.
-
description(Optional[ConfigDescription], default:None) –A description of the security configuration.
-
saml_options(Optional[SamlConfigOptions], default:None) –Describes SAML options in the form of a key-value map. This field is required if you specify
SAMLfor thetypeparameter. -
iam_identity_center_options(Optional[CreateIamIdentityCenterConfigOptions], default:None) –Describes IAM Identity Center options in the form of a key-value map. This field is required if you specify
iamidentitycenterfor thetypeparameter. -
iam_federation_options(Optional[IamFederationConfigOptions], default:None) –Describes IAM federation options in the form of a key-value map. This field is required if you specify
iamFederationfor thetypeparameter. -
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.
-
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
2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 | |