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
2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 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 | |