def METHOD_NAME(self, secret_id: str, secret_value: str):
    """
    Update a secret or create it if does not exist
    """
    try:
        self.secrets_client.put_secret_value(
            SecretId=self._get_full_secret_id(secret_id), SecretString=secret_value
        )
    except ClientError as error:
        if error.response["Error"]["Code"] == "ResourceNotFoundException":
            self.secrets_client.create_secret(
                Name=self._get_full_secret_id(secret_id), SecretString=secret_value
            )
        else:
            # Can't handle anything else.
            raise error