create_security_config
async
¶
create_security_config(
type: SecurityConfigType,
name: ConfigName,
*,
config_overrides: Optional[AsyncOpenSearchServerlessClientConfig] = 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/async_open_search_serverless.py
3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 | |