Function mongocrypt_sys::mongocrypt_ctx_setopt_masterkey_aws
source ยท pub unsafe extern "C" fn mongocrypt_ctx_setopt_masterkey_aws(
ctx: *mut mongocrypt_ctx_t,
region: *const c_char,
region_len: i32,
cmk: *const c_char,
cmk_len: i32,
) -> bool
Expand description
Identify the AWS KMS master key to use for creating a data key.
This has been superseded by the more flexible: @ref mongocrypt_ctx_setopt_key_encryption_key
@param[in] ctx The @ref mongocrypt_ctx_t object. @param[in] region The AWS region. @param[in] region_len The string length of @p region. Pass -1 to determine the string length with strlen (must be NULL terminated). @param[in] cmk The Amazon Resource Name (ARN) of the customer master key (CMK). @param[in] cmk_len The string length of @p cmk_len. Pass -1 to determine the string length with strlen (must be NULL terminated). @pre @p ctx has not been initialized. @returns A boolean indicating success. If false, an error status is set. Retrieve it with @ref mongocrypt_ctx_status