update_security_config
async
¶
update_security_config(
id: SecurityConfigId,
config_version: PolicyVersion,
*,
config_overrides: Optional[AsyncOpenSearchServerlessClientConfig] = None,
description: Optional[ConfigDescription] = None,
saml_options: Optional[SamlConfigOptions] = None,
iam_identity_center_options_updates: Optional[
UpdateIamIdentityCenterConfigOptions
] = None,
iam_federation_options: Optional[IamFederationConfigOptions] = None,
client_token: Optional[ClientToken] = None,
) -> UpdateSecurityConfigResponse
Updates a security configuration for OpenSearch Serverless. For more information, see SAML authentication for Amazon OpenSearch Serverless.
Parameters:
-
id(SecurityConfigId) –The security configuration identifier. For SAML the ID will be
saml/<accountId>/<idpProviderName>. For example,saml/123456789123/OKTADev. -
config_version(PolicyVersion) –The version of the security configuration to be updated. You can find the most recent version of a security configuration using the
GetSecurityPolicycommand. -
description(Optional[ConfigDescription], default:None) –A description of the security configuration.
-
saml_options(Optional[SamlConfigOptions], default:None) –SAML options in in the form of a key-value map.
-
iam_identity_center_options_updates(Optional[UpdateIamIdentityCenterConfigOptions], default:None) –Describes IAM Identity Center options in the form of a key-value map.
-
iam_federation_options(Optional[IamFederationConfigOptions], default:None) –Describes IAM federation options in the form of a key-value map for updating an existing security configuration. Use this field to modify IAM federation settings for the security configuration.
-
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/async_open_search_serverless.py
3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 | |